studyStudent.vue 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 100%;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. overflow: auto;
  12. "
  13. >
  14. <!-- <div class="btnAllNT">
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div> -->
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div
  72. class="courseTitle"
  73. :style="{ margin: tcid && inviteCode && '10px auto 0px' }"
  74. >
  75. <div
  76. style="
  77. max-width: calc(100% - 40px);
  78. width: auto;
  79. white-space: nowrap;
  80. overflow: hidden;
  81. text-overflow: ellipsis;
  82. word-break: break-word;
  83. display: block;
  84. "
  85. >
  86. <el-tooltip
  87. effect="light"
  88. :content="courseDetail.title"
  89. placement="top"
  90. >
  91. <div class="ctitle">
  92. {{ courseDetail.title }}
  93. </div>
  94. </el-tooltip>
  95. </div>
  96. <el-tooltip effect="light" content="收缩" placement="top">
  97. <div class="mlImg" @click="setContent2(false)">
  98. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  99. </div>
  100. </el-tooltip>
  101. </div>
  102. <div
  103. class="inviteBox"
  104. v-if="tcid && inviteCode"
  105. style="padding: 0 0 8px 0"
  106. >
  107. <div>
  108. <span>随机码:{{ inviteCode }}</span>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="cru_selectBox">
  113. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  114. <div class="stageChild" :class="{ navActive: item.isOpen }">
  115. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  116. <div
  117. class="navItem"
  118. :class="{
  119. openTaskActive:
  120. navIndex == taskCount &&
  121. nav.id == navId &&
  122. stageIndex == courseType
  123. }"
  124. >
  125. <div v-if="nav.tool[0].tool != undefined">
  126. <div
  127. class="closeTri1"
  128. v-if="
  129. navIndex == taskCount &&
  130. nav.id == navId &&
  131. stageIndex == courseType
  132. "
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img
  136. :style="{
  137. transform: nav.isOpen
  138. ? 'rotate(0deg)'
  139. : 'rotate(270deg)'
  140. }"
  141. src="../../assets/icon/newIcons/bDown2.png"
  142. alt
  143. />
  144. </div>
  145. <div
  146. class="closeTri1"
  147. v-else
  148. @click="openTask(stageIndex, navIndex, nav.id)"
  149. >
  150. <img
  151. :style="{
  152. transform: nav.isOpen
  153. ? 'rotate(90deg)'
  154. : 'rotate(0deg)'
  155. }"
  156. src="../../assets/icon/newIcons/right.png"
  157. alt
  158. />
  159. </div>
  160. </div>
  161. <div v-else class="noToolBlue"></div>
  162. <div
  163. @click="openTask(stageIndex, navIndex, nav.id)"
  164. class="navItemList"
  165. :class="{
  166. isItemList:
  167. navIndex == taskCount &&
  168. nav.id == navId &&
  169. stageIndex == courseType
  170. }"
  171. >
  172. <div>任务{{ navIndex + 1 }}:</div>
  173. <el-tooltip
  174. effect="light"
  175. :content="nav.taskName"
  176. placement="top"
  177. >
  178. <div
  179. :style="{
  180. width:
  181. IsLookOpen && !nav.isLook
  182. ? 'calc(100% - 75px)'
  183. : 'auto'
  184. }"
  185. >
  186. {{ nav.taskName }}
  187. </div>
  188. </el-tooltip>
  189. </div>
  190. <div class="lockTaskIcon">
  191. <img
  192. src="../../assets/lock.png"
  193. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  194. courseDetail.course_teacher.indexOf(userid) ==-1"
  195. alt=""
  196. />
  197. </div>
  198. </div>
  199. <div
  200. v-if="nav.tool[0].tool != undefined"
  201. class="toolChild"
  202. :class="{ toolActive: nav.isOpen }"
  203. >
  204. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  205. <div
  206. class="gjCss"
  207. :class="{
  208. isGjCss: t.isTool
  209. }"
  210. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  211. >
  212. <div>工具{{ toolIndex2 + 1 }}:</div>
  213. <div v-if="t.tool == 58">模拟驾驶</div>
  214. <div v-if="t.tool == 59">路径搜索</div>
  215. <div v-if="t.tool == 60">深度学习</div>
  216. <div v-if="t.tool == 10">倒计时</div>
  217. <div v-if="t.tool == 65">挑人</div>
  218. <div v-if="t.tool == 7">思维网格</div>
  219. <div v-if="t.tool == 1">电子白板</div>
  220. <div v-if="t.tool == 52">文档</div>
  221. <div v-if="t.tool == 3">思维导图</div>
  222. <div v-if="t.tool == 48">表格</div>
  223. <div v-if="t.tool == 49">学生分组</div>
  224. <div v-if="t.tool == 4">问卷调查</div>
  225. <div v-if="t.tool == 45">选择题</div>
  226. <div v-if="t.tool == 15">问答</div>
  227. <div v-if="t.tool == 16">作业提交</div>
  228. <div v-if="t.tool == 50">批量上传</div>
  229. <div v-if="t.tool == 41">选择匹配</div>
  230. <div v-if="t.tool == 47">排序</div>
  231. <div v-if="t.tool == 40">个人评价</div>
  232. <div v-if="t.tool == 18">训练平台</div>
  233. <div v-if="t.tool == 21">AIoT Blockly</div>
  234. <div v-if="t.tool == 23">AI Python</div>
  235. <div v-if="t.tool == 24">AI Blockly</div>
  236. <div v-if="t.tool == 32">源码编辑</div>
  237. <div v-if="t.tool == 57">CocoPi</div>
  238. <div v-if="t.tool == 63">海龟编程</div>
  239. <div v-if="t.tool == 28">翻译</div>
  240. <div v-if="t.tool == 31">数字画板</div>
  241. <div v-if="t.tool == 39">GeoGebra</div>
  242. <div v-if="t.tool == 66">公式编辑</div>
  243. <div v-if="t.tool == 67">分子结构</div>
  244. <div v-if="t.tool == 68">时间轴</div>
  245. <div v-if="t.tool == 69">英语写作</div>
  246. <div v-if="t.tool == 70">英语口语</div>
  247. <div v-if="t.tool == 25">目标管理</div>
  248. <div v-if="t.tool == 26">课程设计</div>
  249. <div v-if="t.tool == 62">交互视频</div>
  250. <div v-if="t.tool == 71">AI智能体</div>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. <div
  260. class="body_student"
  261. :style="{
  262. width: mlDialog
  263. ? 'calc(100% - ' +
  264. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  265. ' - 20% - 40px)'
  266. : 'calc(100% - ' +
  267. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  268. ' - 10px)',
  269. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  270. }"
  271. >
  272. <div
  273. class="new_topFixed"
  274. :style="{
  275. width: mlDialog
  276. ? 'calc(100% - ' +
  277. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  278. ' - 20% - 40px)'
  279. : 'calc(100% - ' +
  280. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  281. ' - 10px)',
  282. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  283. }"
  284. ></div>
  285. <div
  286. class="new_top"
  287. :style="{
  288. width: mlDialog
  289. ? 'calc(100% - ' +
  290. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  291. ' - 20% - 47px)'
  292. : 'calc(100% - ' +
  293. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  294. ' - 18px)',
  295. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  296. }"
  297. >
  298. <div
  299. class="courseIndex"
  300. :style="{
  301. width:
  302. (orgArray.includes(org) || oidArray.includes(oid)) &&
  303. !['2'].includes(tType)
  304. ? '100%'
  305. : 'calc(100% - 745px)'
  306. }"
  307. >
  308. <div>任务{{ taskCount + 1 }}</div>
  309. <el-tooltip
  310. effect="light"
  311. :content="
  312. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  313. "
  314. placement="top"
  315. >
  316. <div>
  317. {{
  318. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  319. .task
  320. }}
  321. </div>
  322. </el-tooltip>
  323. </div>
  324. <div
  325. class="btnAll"
  326. v-show="
  327. (!orgArray.includes(org) && !oidArray.includes(oid)) ||
  328. ['2'].includes(tType)
  329. "
  330. >
  331. <div class="btnLeft">
  332. <el-tooltip effect="light" content="刷新" placement="top">
  333. <div class="reBtnIcon" @click="refreshCourse">
  334. <span>刷新</span>
  335. </div>
  336. </el-tooltip>
  337. <el-tooltip effect="light" content="评论" placement="top">
  338. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  339. <span>评论</span>
  340. </div>
  341. </el-tooltip>
  342. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  343. <el-tooltip effect="light" content="录制" placement="top">
  344. <div class="vedioIcon" @click="startRecording">
  345. <span>录制</span>
  346. </div>
  347. </el-tooltip>
  348. </div>
  349. <div v-else-if="tType == 1 || tType == 4">
  350. <el-tooltip effect="light" content="下载" placement="top">
  351. <div class="vedioIcon1" @click="stopRecording">
  352. <span>下载</span>
  353. </div>
  354. </el-tooltip>
  355. </div>
  356. </div>
  357. <div class="btnRight">
  358. <div
  359. class="last"
  360. @click="nextOrpreSteps(0)"
  361. v-if="!(IsFollow && tType == 2)"
  362. @mouseover="isHovered = true"
  363. @mouseout="isHovered = false"
  364. >
  365. <div class="lastImg">
  366. <img
  367. :src="
  368. isHovered
  369. ? require('../../assets/icon/newIcons/whiteLast.png')
  370. : require('../../assets/icon/newIcons/last.png')
  371. "
  372. alt=""
  373. />
  374. </div>
  375. <div class="lastText">上一步</div>
  376. </div>
  377. <div
  378. class="last"
  379. @click="nextOrpreSteps(1)"
  380. v-if="!(IsFollow && tType == 2)"
  381. @mouseover="isHovered1 = true"
  382. @mouseout="isHovered1 = false"
  383. >
  384. <div class="lastText">下一步</div>
  385. <div class="lastImg">
  386. <img
  387. :src="
  388. isHovered1
  389. ? require('../../assets/icon/newIcons/whiteNext.png')
  390. : require('../../assets/icon/newIcons/next.png')
  391. "
  392. alt=""
  393. />
  394. </div>
  395. </div>
  396. <div
  397. class="last"
  398. @click="juriVisible = true"
  399. v-if="tType == 1"
  400. @mouseover="isHovered2 = true"
  401. @mouseout="isHovered2 = false"
  402. >
  403. <div class="lastImg">
  404. <img
  405. :src="
  406. isHovered2
  407. ? require('../../assets/icon/newIcons/whiteLock.png')
  408. : require('../../assets/icon/newIcons/lock.png')
  409. "
  410. alt=""
  411. />
  412. </div>
  413. <div class="lastText">权限</div>
  414. </div>
  415. <div
  416. class="returnBtn1 returnIcon"
  417. @click.stop="
  418. goTo(
  419. '/courseDetail?userid=' +
  420. userid +
  421. '&oid=' +
  422. oid +
  423. '&org=' +
  424. org +
  425. '&cid=' +
  426. classId +
  427. '&courseId=' +
  428. id +
  429. '&tType=' +
  430. tType +
  431. '&screenType=' +
  432. screenType
  433. )
  434. "
  435. >
  436. <div class="lastImg">
  437. <img src="../../assets/icon/newIcon/return.png" alt="" />
  438. </div>
  439. <div class="lastText" style="color: #000">返回</div>
  440. </div>
  441. </div>
  442. <!-- <div
  443. class="returnBtn lockIcon"
  444. @click="juriVisible = true"
  445. v-if="tType == 1"
  446. >
  447. 权限
  448. </div>
  449. <div
  450. class="returnBtn vedioIcon"
  451. @click="startRecording"
  452. v-if="!videoStart && (tType == 1 || tType == 4)"
  453. >
  454. 录制
  455. </div>
  456. <div
  457. class="returnBtn"
  458. @click="stopRecording"
  459. v-else-if="tType == 1 || tType == 4"
  460. style="background: #ee5255"
  461. >
  462. 下载
  463. </div>
  464. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  465. 评论
  466. </div>
  467. <div
  468. class="returnBtn"
  469. @click="nextOrpreSteps(0)"
  470. v-if="!(IsFollow && tType == 2)"
  471. >
  472. 上一步
  473. </div>
  474. <div
  475. class="returnBtn"
  476. @click="nextOrpreSteps(1)"
  477. v-if="!(IsFollow && tType == 2)"
  478. >
  479. 下一步
  480. </div>
  481. <div class="returnBtn" @click="refreshCourse">刷新</div>
  482. <div
  483. class="returnBtn returnIcon"
  484. @click.stop="
  485. goTo(
  486. '/courseDetail?userid=' +
  487. userid +
  488. '&oid=' +
  489. oid +
  490. '&org=' +
  491. org +
  492. '&cid=' +
  493. classId +
  494. '&courseId=' +
  495. id +
  496. '&tType=' +
  497. tType +
  498. '&screenType=' +
  499. screenType
  500. )
  501. "
  502. >
  503. 返回
  504. </div> -->
  505. </div>
  506. </div>
  507. <div
  508. class="isNoMessage"
  509. v-if="
  510. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  511. .chapterData.length == 0 &&
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .toolChoose[0].tool.length == 0 &&
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .taskDetail == '' &&
  516. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  517. .eList &&
  518. !(
  519. courseDetail.userid == userid ||
  520. (courseDetail.course_teacher &&
  521. courseDetail.course_teacher.indexOf(userid) != -1)
  522. )
  523. "
  524. >
  525. <img src="../../assets/icon/isNoMessage.png" alt />
  526. </div>
  527. <div class="study_top" :class="{ pzClass: pzDialog }">
  528. <div
  529. class="vedioBox"
  530. v-if="
  531. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  532. .taskDetail != '' ||
  533. vChapterData[taskCount].length > 0 ||
  534. fileC[taskCount].length > 0
  535. "
  536. style="border-radius: 0 0 20px 20px"
  537. >
  538. <div
  539. class="taskBox"
  540. v-if="
  541. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  542. .taskDetail != ''
  543. "
  544. >
  545. <div
  546. style="
  547. display: flex;
  548. flex-wrap: nowrap;
  549. flex-direction: column;
  550. position: relative;
  551. "
  552. >
  553. <div
  554. style="
  555. padding: 15px 0;
  556. line-height: 29px;
  557. font-size: 18px;
  558. color: #0e1e33;
  559. "
  560. class="cont"
  561. v-if="
  562. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  563. .taskDetail != ''
  564. "
  565. v-html="
  566. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  567. .taskDetail
  568. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  569. taskCount
  570. ].taskDetail
  571. : '暂无描述'
  572. "
  573. ></div>
  574. </div>
  575. </div>
  576. <div
  577. class="student_head"
  578. v-if="
  579. vChapterData[taskCount].length > 0 ||
  580. fileC[taskCount].length > 0
  581. "
  582. >
  583. <div
  584. class="vedioTaskBox"
  585. v-loading="downLoading || showType == 7"
  586. >
  587. <div
  588. :class="
  589. contentDialog == false
  590. ? 'box_course isContentCss'
  591. : 'box_course'
  592. "
  593. v-if="
  594. vChapterData.length > 0 &&
  595. vChapterData[taskCount] &&
  596. showType !== ''
  597. "
  598. >
  599. <div class="wheel" style="height: auto" v-if="showType === 0">
  600. <div
  601. class="workd_media"
  602. style="height: 650px; width: calc(100% - 50px)"
  603. >
  604. <video-player
  605. class="video-player vjs-custom-skin"
  606. :class="contentDialog == false ? 'isAllWidth' : ''"
  607. :playsinline="true"
  608. :options="playerO[taskCount]"
  609. @play="onPlayerPlay($event)"
  610. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  611. ></video-player>
  612. </div>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-if="showType == 1"
  617. style="
  618. box-shadow: 0 0 6px 1px #f2f2f2;
  619. width: 95%;
  620. margin: 0 auto;
  621. background: #f1f1f1;
  622. "
  623. >
  624. <div class="title">查看文档</div>
  625. <el-form class="textBox">
  626. <el-form-item class="textTitle">
  627. <div style="font-size: 22px">
  628. {{ text.name }}
  629. </div>
  630. </el-form-item>
  631. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  632. <div v-html="text.url" class="textContent cont"></div>
  633. </el-form>
  634. </div>
  635. <div
  636. class="wheel"
  637. v-if="
  638. pptImgUrl1.indexOf(
  639. 'https://view.officeapps.live.com/op/view.aspx?src='
  640. ) != -1 && showType == 2
  641. "
  642. style="width: 95%; margin: 0 auto"
  643. >
  644. <iframe
  645. style="width: 100%; height: 100%; border: none"
  646. :src="pptImgUrl1"
  647. ></iframe>
  648. </div>
  649. <div
  650. class="wheel"
  651. v-else-if="showType == 2"
  652. style="width: 95%; margin: 0 auto"
  653. >
  654. <iframe
  655. style="width: 100%; height: 100%; border: none"
  656. security="restricted"
  657. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  658. :src="pptImgUrl1"
  659. ></iframe>
  660. </div>
  661. <div
  662. class="wheel"
  663. v-if="showType == 3"
  664. style="width: 95%; margin: 0 auto"
  665. >
  666. <pdf
  667. :pdfUrl="pptImgUrl1"
  668. style="width: 100%; height: 100%; overflow: auto"
  669. ></pdf>
  670. </div>
  671. <div
  672. class="wheel"
  673. v-if="showType == 4"
  674. style="width: 95%; margin: 0 auto"
  675. >
  676. <el-image
  677. :src="pptImgUrl1"
  678. fit="contain"
  679. style="width: 100%; height: 100%; cursor: pointer"
  680. @click="previewImg(pptImgUrl1)"
  681. ></el-image>
  682. </div>
  683. </div>
  684. <div
  685. class="pButton"
  686. style="position: absolute; right: 20px; top: 0; z-index: 998"
  687. v-if="!contentDialog"
  688. @click="setContent(true)"
  689. >
  690. <!-- 批 -->
  691. <img
  692. src="../../assets/icon/newIcons/isLeft.png"
  693. style="width: 45px"
  694. alt=""
  695. />
  696. </div>
  697. <div
  698. v-if="contentDialog == true"
  699. :style="{
  700. width:
  701. (vChapterData[taskCount].length > 0 ||
  702. fileC[taskCount].length > 0) &&
  703. showType === ''
  704. ? 'calc(100%)'
  705. : '300px',
  706. margin:
  707. (vChapterData[taskCount].length > 0 ||
  708. fileC[taskCount].length > 0) &&
  709. showType === ''
  710. ? '0 15px'
  711. : '0 15px 0 0'
  712. }"
  713. >
  714. <div
  715. class="vedioList"
  716. v-if="
  717. vChapterData[taskCount].length > 0 ||
  718. fileC[taskCount].length > 0
  719. "
  720. style="height: 650px"
  721. >
  722. <div class="navCorOpenBox">
  723. <div class="navTitile">内容列表:</div>
  724. <div class="navCorOpen" @click="setContent(false)">
  725. <img
  726. src="../../assets/icon/newIcons/isRight.png"
  727. alt=""
  728. />
  729. </div>
  730. </div>
  731. <div class="navBox">
  732. <div
  733. v-show="
  734. vChapterData[taskCount].length > 0 ||
  735. fileC[taskCount].length > 0
  736. "
  737. style="padding: 10px 0 25px 0"
  738. >
  739. <div
  740. class="vedioTimeBox"
  741. v-for="(vitem, vindex) in vChapterData[taskCount]"
  742. :key="vindex + '1'"
  743. >
  744. <div class="navListItem" v-if="vitem.type == 2">
  745. <div
  746. @click="lookVedio(vitem.url, vindex)"
  747. class="navText"
  748. :class="isClickNav == vindex ? 'isClickNav' : ''"
  749. >
  750. <span v-if="vitem.text">{{ vitem.text }}-</span
  751. >{{ vitem.name }}
  752. </div>
  753. <div class="downIcon" @click="downloadFile2(vitem)">
  754. <img
  755. src="../../assets/icon/newIcon/down.png"
  756. alt
  757. />
  758. </div>
  759. </div>
  760. <div class="navListItem" v-if="vitem.type == 6">
  761. <div
  762. @click="lookText(taskCount, vindex)"
  763. class="navText"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.name }}.doc
  767. </div>
  768. <div
  769. class="downIcon"
  770. @click="checkFileFull1(vitem.type, vitem)"
  771. >
  772. <img
  773. src="../../assets/icon/newIcon/allScreen.png"
  774. alt
  775. />
  776. </div>
  777. </div>
  778. <div
  779. class="navListItem"
  780. v-if="vitem.type == 8 || vitem.type == 14"
  781. >
  782. <div
  783. @click="doUrl(vitem.url, vindex)"
  784. class="navText"
  785. :class="isClickNav == vindex ? 'isClickNav' : ''"
  786. >
  787. {{ vitem.title ? vitem.title : vitem.url }}
  788. </div>
  789. <div
  790. class="downIcon"
  791. @click="checkFileFull1(vitem.type, vitem)"
  792. >
  793. <img
  794. src="../../assets/icon/newIcon/allScreen.png"
  795. alt
  796. />
  797. </div>
  798. </div>
  799. <div class="navListItem" v-if="vitem.type == 3">
  800. <div
  801. @click="downFile(vitem, vindex)"
  802. class="navText"
  803. :class="isClickNav == vindex ? 'isClickNav' : ''"
  804. >
  805. <span v-if="vitem.text">{{ vitem.text }}-</span
  806. >{{ vitem.name }}
  807. </div>
  808. <div
  809. class="downIcon"
  810. @click="checkFileFull1(vitem.type, vitem)"
  811. >
  812. <img
  813. src="../../assets/icon/newIcon/allScreen.png"
  814. alt
  815. />
  816. </div>
  817. <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div>
  823. </div>
  824. <div class="navListItem" v-if="vitem.type == 12">
  825. <div class="navText" @click="downloadFile2(vitem)">
  826. <span v-if="vitem.text">{{ vitem.text }}-</span
  827. >{{ vitem.name }}
  828. </div>
  829. <div
  830. class="downIcon"
  831. @click="checkFileFull1(vitem.type, vitem)"
  832. >
  833. <img
  834. src="../../assets/icon/newIcon/allScreen.png"
  835. alt
  836. />
  837. </div>
  838. <div class="downIcon" @click="downloadFile2(vitem)">
  839. <img
  840. src="../../assets/icon/newIcon/down.png"
  841. alt
  842. />
  843. </div>
  844. </div>
  845. <div class="navListItem" v-if="vitem.type == 13">
  846. <div
  847. class="navText"
  848. @click="checkPhoto(vitem, vindex)"
  849. :class="isClickNav == vindex ? 'isClickNav' : ''"
  850. >
  851. {{ vitem.name }}
  852. </div>
  853. <div class="downIcon" @click="downloadFile2(vitem)">
  854. <img
  855. src="../../assets/icon/newIcon/down.png"
  856. alt
  857. />
  858. </div>
  859. </div>
  860. </div>
  861. <div
  862. class="fileC_box"
  863. v-if="fileC[taskCount].length > 0"
  864. >
  865. <div class="fileC_title">以下文件不支持预览</div>
  866. <div
  867. class="vedioTimeBox"
  868. v-for="(vitem, vindex) in fileC[taskCount]"
  869. :key="vindex + '1'"
  870. >
  871. <div class="navListItem" v-if="vitem.type == 12">
  872. <div class="navText" style="color: #acb4bf">
  873. <span v-if="vitem.text">{{ vitem.text }}-</span
  874. >{{ vitem.name }}
  875. </div>
  876. <div
  877. class="downIcon"
  878. @click="downloadFile2(vitem)"
  879. >
  880. <img
  881. src="../../assets/icon/newIcon/down.png"
  882. alt
  883. />
  884. </div>
  885. </div>
  886. </div>
  887. </div>
  888. </div>
  889. </div>
  890. </div>
  891. </div>
  892. </div>
  893. <div style="width: calc(100% - 315px)">
  894. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  895. <!-- <el-button
  896. type="primary"
  897. class="newButton"
  898. @click="checkFileFull(showType, pptImgUrl1)"
  899. >全屏查看</el-button
  900. >
  901. <el-button
  902. type="primary"
  903. class="newButton"
  904. @click="downloadFile(pptImgUrl1)"
  905. v-if="showType != 2"
  906. >文件下载</el-button
  907. > -->
  908. <el-button
  909. class="newButton"
  910. v-if="
  911. showType == 2 &&
  912. pptImgUrl1.indexOf(
  913. 'https://view.officeapps.live.com/op/view.aspx?src='
  914. ) == -1
  915. "
  916. type="primary"
  917. @click="openLine(pptImgUrl1)"
  918. >打开链接
  919. </el-button>
  920. </div>
  921. <!-- <div
  922. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  923. v-if="showType == 1"
  924. >
  925. <el-button
  926. type="primary"
  927. class="newButton"
  928. @click="checkFileFull(showType, text)"
  929. >全屏查看</el-button
  930. >
  931. </div> -->
  932. </div>
  933. </div>
  934. </div>
  935. <div class="student_body" v-resize="resize">
  936. <div
  937. class="vedioBox"
  938. :style="{
  939. borderRadius:
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .taskDetail == '' &&
  942. vChapterData[taskCount].length == 0 &&
  943. fileC[taskCount].length == 0
  944. ? '0 0 20px 20px'
  945. : '20px'
  946. }"
  947. v-if="
  948. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  949. .toolChoose[0].tool &&
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool.length > 0
  952. "
  953. >
  954. <div
  955. class="toolHeng2"
  956. style="position: relative"
  957. v-if="
  958. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  959. .toolChoose[0].tool &&
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool.length &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length > 0
  964. "
  965. >
  966. <div class="workNav">工作区</div>
  967. <div
  968. class="filebox"
  969. style="flex-wrap: nowrap"
  970. v-for="(tool, toolIndex) in chapInfoList[courseType]
  971. .chapterInfo[0].taskJson[taskCount].toolChoose"
  972. :key="toolIndex"
  973. >
  974. <div class="bzBox">
  975. <div class="yCss"></div>
  976. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  977. 工具{{ toolIndex + 1 }}
  978. </div>
  979. <div
  980. v-if="timeWorkList[toolIndex].length > 0"
  981. style="margin: 0 0 0 10px"
  982. >
  983. {{
  984. timeWorkList[toolIndex][0].time
  985. ? "时间:" + timeWorkList[toolIndex][0].time
  986. : ""
  987. }}
  988. </div>
  989. </div>
  990. <div class="toolBox">
  991. <div>
  992. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  993. :key="indexTool"-->
  994. <!-- <div class="iframeBox">
  995. <div
  996. class="addPoint isBorder"
  997. v-for="(tooC, toolCIndex) in tool.tool"
  998. :key="toolCIndex"
  999. >
  1000. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1001. <div
  1002. class="iframeName"
  1003. >
  1004. 电子白板
  1005. </div>
  1006. <iframe
  1007. src="https://iwb.cocorobo.cn/"
  1008. ref="whiteBoard"
  1009. ></iframe>
  1010. </div>
  1011. </div>
  1012. </div>-->
  1013. <div class="noiframeBox">
  1014. <div
  1015. class="addPoint"
  1016. v-for="(tooC, toolCIndex) in tool.tool"
  1017. :key="toolCIndex"
  1018. >
  1019. <div v-if="tooC == 1">
  1020. <img
  1021. src="../../assets/icon/secondToolList/whiteBoard.png"
  1022. alt
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. />
  1025. <div style="margin: 5px 0">电子白板</div>
  1026. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1027. style="position: absolute;right: 33px;top: -30px;">
  1028. 投影
  1029. </div>
  1030. </div>
  1031. <div v-if="tooC == 3">
  1032. <img
  1033. src="../../assets/icon/secondToolList/mindMapping.png"
  1034. alt
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. />
  1037. <div style="margin: 5px 0">思维导图</div>
  1038. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1039. style="position: absolute;right: 33px;top: -30px;">
  1040. 投影
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 6">
  1044. <img
  1045. src="../../assets/icon/secondToolList/doc.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">协同文档</div>
  1050. </div>
  1051. <div v-if="tooC == 7">
  1052. <img
  1053. src="../../assets/icon/secondToolList/mindNetwork.png"
  1054. alt
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. />
  1057. <div style="margin: 5px 0">思维网格</div>
  1058. <!-- && worksStudent[toolIndex].length>0 -->
  1059. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1060. style="position: absolute;right: 33px;top: -30px;">
  1061. 投影
  1062. </div>
  1063. </div>
  1064. <div v-if="tooC == 8">
  1065. <img
  1066. src="../../assets/icon/secondToolList/library.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">素材库</div>
  1071. </div>
  1072. <div v-if="tooC == 17">
  1073. <img
  1074. src="../../assets/icon/secondToolList/library.png"
  1075. alt
  1076. @click="addTools(tooC, toolIndex, taskCount)"
  1077. />
  1078. <div style="margin: 5px 0">学习资料</div>
  1079. </div>
  1080. <div v-if="tooC == 2">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/secondToolList/note.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">便签</div>
  1087. </div>
  1088. <div v-if="tooC == 4">
  1089. <img
  1090. @click="addTools(tooC, toolIndex, taskCount)"
  1091. src="../../assets/icon/thirdToolList/ask.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">问卷调查</div>
  1095. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1096. style="position: absolute;right: 153px;top: -30px;">
  1097. 投影
  1098. </div>
  1099. <div
  1100. class="upload_toolBtn"
  1101. v-if="tType === '1'"
  1102. @click="
  1103. openStatisticalAnalysis(
  1104. tooC,
  1105. toolIndex,
  1106. taskCount,
  1107. 45
  1108. )
  1109. "
  1110. style="position: absolute;right: 33px;top: -30px;"
  1111. >
  1112. 统计分析
  1113. </div>
  1114. </div>
  1115. <div v-if="tooC == 45">
  1116. <img
  1117. @click="addTools(tooC, toolIndex, taskCount)"
  1118. src="../../assets/icon/thirdToolList/choose.png"
  1119. alt
  1120. />
  1121. <div style="margin: 5px 0">选择题</div>
  1122. <div
  1123. class="upload_toolBtn"
  1124. @click="
  1125. openChoseWorksDetailDialog(
  1126. tooC,
  1127. toolIndex,
  1128. taskCount,
  1129. 45
  1130. )
  1131. "
  1132. style="position: absolute;right: 33px;top: -30px;"
  1133. >
  1134. 投影
  1135. </div>
  1136. </div>
  1137. <!-- <div v-if="tooC == 5">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/score.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">量规评分</div>
  1144. </div> -->
  1145. <div v-if="tooC == 10">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/time.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">倒计时</div>
  1152. </div>
  1153. <div v-if="tooC == 15">
  1154. <img
  1155. @click="addTools(tooC, toolIndex, taskCount)"
  1156. src="../../assets/icon/thirdToolList/answer.png"
  1157. alt
  1158. />
  1159. <div style="margin: 5px 0">问答</div>
  1160. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1161. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1162. 投影
  1163. </div>
  1164. </div>
  1165. <div v-if="tooC == 26">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/courseDesign.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">课程设计</div>
  1172. </div>
  1173. <div v-if="tooC == 18">
  1174. <img
  1175. @click="addTools(tooC, toolIndex, taskCount)"
  1176. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1177. alt
  1178. />
  1179. <div style="margin: 5px 0">训练服务器</div>
  1180. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1181. style="position: absolute;right: 33px;top: -30px;">
  1182. 投影
  1183. </div>
  1184. </div>
  1185. <div v-if="tooC == 16">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/thirdToolList/work.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">作业提交</div>
  1192. </div>
  1193. <div v-if="tooC == 50">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../../assets/icon/thirdToolList/plwork.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">批量上传</div>
  1200. </div>
  1201. <div v-if="tooC == 21">
  1202. <img
  1203. @click="addTools(tooC, toolIndex, taskCount)"
  1204. src="../../assets/icon/fourthToolList/program.png"
  1205. alt
  1206. />
  1207. <div style="margin: 5px 0">AIoT Blockly</div>
  1208. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1209. style="position: absolute;right: 33px;top: -30px;">
  1210. 投影
  1211. </div>
  1212. </div>
  1213. <!-- <div v-if="tooC == 22">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/fourthToolList/program.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">AI体验</div>
  1220. </div> -->
  1221. <div v-if="tooC == 23">
  1222. <img
  1223. @click="addTools(tooC, toolIndex, taskCount)"
  1224. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1225. alt
  1226. />
  1227. <div style="margin: 5px 0">AI Python</div>
  1228. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1229. style="position: absolute;right: 33px;top: -30px;">
  1230. 投影
  1231. </div>
  1232. </div>
  1233. <div v-if="tooC == 24">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../../assets/icon/fourthToolList/AIprogram.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">AI Blockly</div>
  1240. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1241. style="position: absolute;right: 33px;top: -30px;">
  1242. 投影
  1243. </div>
  1244. </div>
  1245. <div v-if="tooC == 25">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../../assets/icon/thirdToolList/evalua.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">目标管理</div>
  1252. </div>
  1253. <div v-if="tooC == 31">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../../assets/icon/secondToolList/networkPanel.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">数学画板</div>
  1260. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1261. style="position: absolute;right: 33px;top: -30px;">
  1262. 投影
  1263. </div>
  1264. </div>
  1265. <div v-if="tooC == 28">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../../assets/icon/secondToolList/translation.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">翻译</div>
  1272. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1273. style="position: absolute;right: 33px;top: -30px;">
  1274. 投影
  1275. </div>
  1276. </div>
  1277. <div v-if="tooC == 37">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../../assets/icon/secondToolList/mohe.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">魔盒识字</div>
  1284. </div>
  1285. <div v-if="tooC == 38">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../../assets/icon/secondToolList/24game.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">24点</div>
  1292. </div>
  1293. <div v-if="tooC == 39">
  1294. <img
  1295. @click="addTools(tooC, toolIndex, taskCount)"
  1296. src="../../assets/icon/secondToolList/GeoGebra.png"
  1297. alt
  1298. />
  1299. <div style="margin: 5px 0">GeoGebra</div>
  1300. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1301. style="position: absolute;right: 33px;top: -30px;">
  1302. 投影
  1303. </div>
  1304. </div>
  1305. <div v-if="tooC == 32">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../../assets/icon/thirdToolList/code.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">源码编辑</div>
  1312. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1313. style="position: absolute;right: 153px;top: -42px;">
  1314. 投影
  1315. </div>
  1316. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1317. style="position: absolute;left: 110px;bottom: 30px;">
  1318. 上传文件
  1319. <input type="file" accept="*" style="display: none"
  1320. @change="beforeUpload1($event, 7, toolIndex)" />
  1321. </div> -->
  1322. </div>
  1323. <div v-if="tooC == 40">
  1324. <img
  1325. @click="addTools(tooC, toolIndex, taskCount)"
  1326. src="../../assets/icon/secondToolList/eval.png"
  1327. alt
  1328. />
  1329. <div style="margin: 5px 0">个人评价</div>
  1330. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1331. style="position: absolute;right: 33px;top: -30px;">
  1332. 投影
  1333. </div>
  1334. </div>
  1335. <div v-if="tooC == 41">
  1336. <img
  1337. @click="addTools(tooC, toolIndex, taskCount)"
  1338. src="../../assets/icon/thirdToolList/select.png"
  1339. alt
  1340. />
  1341. <div style="margin: 5px 0">选择匹配</div>
  1342. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1343. style="position: absolute;right: 33px;top: -30px;">
  1344. 投影
  1345. </div>
  1346. </div>
  1347. <div v-if="tooC == 44">
  1348. <img
  1349. @click="addTools(tooC, toolIndex, taskCount)"
  1350. src="../../assets/icon/thirdToolList/hanClass.png"
  1351. alt
  1352. />
  1353. <div style="margin: 5px 0">汉字宫</div>
  1354. </div>
  1355. <div v-if="tooC == 47">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../../assets/icon/fourthToolList/conSentences.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">排序</div>
  1362. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1363. style="position: absolute;right: 33px;top: -30px;">
  1364. 投影
  1365. </div>
  1366. </div>
  1367. <div v-if="tooC == 48">
  1368. <img
  1369. @click="addTools(tooC, toolIndex, taskCount)"
  1370. src="../../assets/icon/fourthToolList/table.png"
  1371. alt
  1372. />
  1373. <div style="margin: 5px 0">表格</div>
  1374. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1375. style="position: absolute;right: 33px;top: -30px;">
  1376. 投影
  1377. </div>
  1378. </div>
  1379. <div v-if="tooC == 52">
  1380. <img
  1381. @click="addTools(tooC, toolIndex, taskCount)"
  1382. src="../../assets/icon/fourthToolList/text.png"
  1383. alt
  1384. />
  1385. <div style="margin: 5px 0">文档</div>
  1386. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1387. style="position: absolute;right: 33px;top: -30px;">
  1388. 投影
  1389. </div>
  1390. </div>
  1391. <div v-if="tooC == 49">
  1392. <img
  1393. @click="addTools(tooC, toolIndex, taskCount)"
  1394. src="../../assets/icon/fourthToolList/group.png"
  1395. alt
  1396. />
  1397. <div style="margin: 5px 0">学生分组</div>
  1398. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1399. style="position: absolute;right: 33px;top: -30px;">
  1400. 投影
  1401. </div>
  1402. </div>
  1403. <div v-if="tooC == 57">
  1404. <img
  1405. @click="addTools(tooC, toolIndex, taskCount)"
  1406. src="../../assets/icon/fourthToolList/cocopi.png"
  1407. alt
  1408. />
  1409. <div style="margin: 5px 0">CocoPi</div>
  1410. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1411. style="position: absolute;right: 33px;top: -30px;">
  1412. 投影
  1413. </div>
  1414. </div>
  1415. <div v-if="tooC == 58">
  1416. <img
  1417. @click="addTools(tooC, toolIndex, taskCount)"
  1418. src="../../assets/icon/fourthToolList/car.png"
  1419. alt
  1420. />
  1421. <div style="margin: 5px 0">模拟驾驶</div>
  1422. </div>
  1423. <div v-if="tooC == 59">
  1424. <img
  1425. @click="addTools(tooC, toolIndex, taskCount)"
  1426. src="../../assets/icon/fourthToolList/lineSearch.png"
  1427. alt
  1428. />
  1429. <div style="margin: 5px 0">路径搜索</div>
  1430. </div>
  1431. <div v-if="tooC == 60">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/fourthToolList/deepLearning.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">深度学习</div>
  1438. </div>
  1439. <div v-if="tooC == 61">
  1440. <img
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/fourthToolList/allHistory.png"
  1443. alt
  1444. />
  1445. <div style="margin: 5px 0">全历史</div>
  1446. </div>
  1447. <div v-if="tooC == 62">
  1448. <img
  1449. @click="addTools(tooC, toolIndex, taskCount)"
  1450. src="../../assets/icon/fourthToolList/interVideo.png"
  1451. alt
  1452. />
  1453. <div style="margin: 5px 0">交互视频</div>
  1454. </div>
  1455. <div v-if="tooC == 63">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../../assets/icon/fourthToolList/Wood.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">海龟编程</div>
  1462. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1463. style="position: absolute;right: 33px;top: -30px;">
  1464. 投影
  1465. </div>
  1466. </div>
  1467. <div v-if="tooC == 71">
  1468. <img
  1469. @click="addTools(tooC, toolIndex, taskCount)"
  1470. src="../../assets/icon/fourthToolList/chatgpt.png"
  1471. alt
  1472. />
  1473. <div style="margin: 5px 0">AI智能体</div>
  1474. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1475. style="position: absolute;right: 33px;top: -30px;">
  1476. 投影
  1477. </div>
  1478. </div>
  1479. <div v-if="tooC == 65">
  1480. <img
  1481. @click="addTools(tooC, toolIndex, taskCount)"
  1482. src="../../assets/icon/firstToolList/pickPeople.png"
  1483. alt
  1484. />
  1485. <div style="margin: 5px 0">挑人</div>
  1486. </div>
  1487. <div v-if="tooC == 66">
  1488. <img
  1489. @click="addTools(tooC, toolIndex, taskCount)"
  1490. src="../../assets/icon/secondToolList/formulaEdi.png"
  1491. alt
  1492. />
  1493. <div style="margin: 5px 0">公式编辑</div>
  1494. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1495. style="position: absolute;right: 33px;top: -30px;">
  1496. 投影
  1497. </div>
  1498. </div>
  1499. <div v-if="tooC == 67">
  1500. <img
  1501. @click="addTools(tooC, toolIndex, taskCount)"
  1502. src="../../assets/icon/secondToolList/molStr.png"
  1503. alt
  1504. />
  1505. <div style="margin: 5px 0">分子结构</div>
  1506. </div>
  1507. <div v-if="tooC == 68">
  1508. <img
  1509. @click="addTools(tooC, toolIndex, taskCount)"
  1510. src="../../assets/icon/secondToolList/timeAxis.png"
  1511. alt
  1512. />
  1513. <div style="margin: 5px 0">时间轴</div>
  1514. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1515. style="position: absolute;right: 33px;top: -30px;">
  1516. 投影
  1517. </div> -->
  1518. </div>
  1519. <div v-if="tooC == 69">
  1520. <img
  1521. @click="addTools(tooC, toolIndex, taskCount)"
  1522. src="../../assets/icon/secondToolList/english.png"
  1523. alt
  1524. />
  1525. <div style="margin: 5px 0">英语写作</div>
  1526. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1527. style="position: absolute;right: 33px;top: -30px;">
  1528. 投影
  1529. </div>
  1530. </div>
  1531. <div v-if="tooC == 70">
  1532. <img
  1533. @click="addTools(tooC, toolIndex, taskCount)"
  1534. src="../../assets/icon/thirdToolList/englishVoice.png"
  1535. alt
  1536. />
  1537. <div style="margin: 5px 0">英语口语</div>
  1538. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1539. style="position: absolute;right: 33px;top: -30px;">
  1540. 投影
  1541. </div>
  1542. </div>
  1543. </div>
  1544. </div>
  1545. </div>
  1546. <div
  1547. class="tooldetail"
  1548. v-if="tool.toolDetail != ''"
  1549. :class="{
  1550. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1551. }"
  1552. >
  1553. <!-- <div class="toolTitle">工具描述</div> -->
  1554. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1555. <div
  1556. style="height:100%;"
  1557. v-html="contentConvent(tool.toolDetail)"
  1558. v-if="toolDetailIndex != toolIndex"
  1559. ></div>
  1560. <div v-else @click.stop="" style="height:100%;">
  1561. <textarea
  1562. @change="
  1563. () => {
  1564. $forceUpdate();
  1565. }
  1566. "
  1567. class="checkTextArea"
  1568. rows="3"
  1569. v-autoHeight="70"
  1570. type="text"
  1571. placeholder="请输入任务描述"
  1572. v-model="updateToolDetailInner"
  1573. ></textarea>
  1574. </div>
  1575. </div>
  1576. <el-button
  1577. type="primary"
  1578. v-if="tool.tool[0] == 32"
  1579. style="position: absolute; right: 30px; top: -45px"
  1580. @click="addImg($event)"
  1581. >上传作业<input
  1582. type="file"
  1583. accept="*"
  1584. style="display: none"
  1585. @change="beforeUpload1($event, 7, toolIndex)"
  1586. /></el-button>
  1587. <el-button
  1588. type="primary"
  1589. v-if="tool.tool[0] == 15"
  1590. style="position: absolute; right: 30px; top: -45px"
  1591. @click="openWordCloud(toolIndex)"
  1592. >生成词云</el-button
  1593. >
  1594. <el-button
  1595. type="primary"
  1596. v-if="
  1597. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1598. "
  1599. style="position: absolute; right: 30px; top: -45px"
  1600. @click="uploadWorks(toolIndex)"
  1601. >导出作业</el-button
  1602. >
  1603. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1604. position: absolute;
  1605. right: 30px;
  1606. transform: translateY(-130%);
  1607. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1608. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1609. </div>
  1610. <div
  1611. v-if="
  1612. tType &&
  1613. tType == 2 &&
  1614. !sIsOpen &&
  1615. tool.tool.indexOf(16) != -1
  1616. "
  1617. class="worksBox"
  1618. >
  1619. <div
  1620. class="zuoyeYulan"
  1621. v-if="workStudent[toolIndex].length > 0"
  1622. >
  1623. <span class="worksTitle">作业预览</span>
  1624. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1625. </div>
  1626. <div
  1627. class="worksDetailBox"
  1628. v-if="workStudent[toolIndex].length > 0"
  1629. >
  1630. <div
  1631. class="works"
  1632. style="
  1633. width: 200px;
  1634. height: 140px;
  1635. margin: 10px 10px 10px 0;
  1636. box-shadow: 0 0 6px 1px #dfdada;
  1637. "
  1638. v-for="(w, wIndex) in workStudent[toolIndex]"
  1639. :key="wIndex"
  1640. >
  1641. <div class="workImg" v-if="w.type == 0">
  1642. <img
  1643. :src="w.works"
  1644. @click="previewImg(w.works, w)"
  1645. alt
  1646. />
  1647. <div
  1648. class="answerScore"
  1649. v-if="w.score"
  1650. @click.stop="openScore(w)"
  1651. :class="{
  1652. rightW:
  1653. w.userid == userid || tType == 1 || tType == 4
  1654. }"
  1655. >
  1656. {{ JSON.parse(w.score).wScore }}分
  1657. </div>
  1658. <div
  1659. class="answerScore"
  1660. @click.stop="openScore(w)"
  1661. v-else-if="courseDetail.userid == userid"
  1662. :class="{
  1663. rightW:
  1664. w.userid == userid || tType == 1 || tType == 4
  1665. }"
  1666. >
  1667. 评分
  1668. </div>
  1669. <div
  1670. class="stuLookScore"
  1671. v-if="
  1672. w.userid == userid ||
  1673. (tType == 1 &&
  1674. courseDetail.state == 5 &&
  1675. ((chapInfoList[courseType].chapterInfo[0]
  1676. .taskJson[taskCount].eList &&
  1677. chapInfoList[courseType].chapterInfo[0]
  1678. .taskJson[taskCount].eList.length) ||
  1679. (tool.eList && tool.eList.length)))
  1680. "
  1681. >
  1682. <el-popover
  1683. placement="top"
  1684. width="318"
  1685. trigger="hover"
  1686. >
  1687. <markScore
  1688. :loading="AIloading[toolIndex][wIndex].loading"
  1689. :markScoreVisible="markScoreVisible"
  1690. :ref="`markSco${toolIndex}${wIndex}`"
  1691. @updateLoading="updateLoading"
  1692. @updateDocSco="updateDocSco"
  1693. @refreshOther="refreshOther"
  1694. @markScoreDig="markScoreDig"
  1695. :tool="tool"
  1696. :wIndex="wIndex"
  1697. :scoCon="w"
  1698. :toolIndex="toolIndex"
  1699. :key="refreshKey"
  1700. :stage="courseType"
  1701. :task="taskCount"
  1702. :scoTit="
  1703. chapInfoList[courseType].chapterInfo[0]
  1704. .taskJson[taskCount].eList
  1705. "
  1706. >
  1707. </markScore>
  1708. <div
  1709. @click="
  1710. markScoreDig2(
  1711. w.sName,
  1712. worksStudent,
  1713. w.userid,
  1714. toolIndex,
  1715. chapInfoList[courseType].chapterInfo[0]
  1716. .taskJson[taskCount].eList,
  1717. AIloading[toolIndex][wIndex].loading,
  1718. tool
  1719. )
  1720. "
  1721. slot="reference"
  1722. >
  1723. <span v-if="AIloading[toolIndex][wIndex].sco">
  1724. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1725. </span>
  1726. <span v-else>
  1727. 评分
  1728. </span>
  1729. </div>
  1730. </el-popover>
  1731. </div>
  1732. <img
  1733. class="deleteImg"
  1734. src="../../assets/deleteworks.png"
  1735. v-if="
  1736. w.userid == userid || tType == 1 || tType == 4
  1737. "
  1738. @click.stop="deleteWorks(w.wid)"
  1739. alt
  1740. />
  1741. </div>
  1742. <div class="workImg" v-if="w.type == 1">
  1743. <img :src="word" @click="openFile(w.works)" alt />
  1744. <div
  1745. class="answerScore"
  1746. v-if="w.score"
  1747. @click.stop="openScore(w)"
  1748. :class="{
  1749. rightW:
  1750. w.userid == userid || tType == 1 || tType == 4
  1751. }"
  1752. >
  1753. {{ JSON.parse(w.score).wScore }}分
  1754. </div>
  1755. <div
  1756. class="answerScore"
  1757. @click.stop="openScore(w)"
  1758. v-else-if="courseDetail.userid == userid"
  1759. :class="{
  1760. rightW:
  1761. w.userid == userid || tType == 1 || tType == 4
  1762. }"
  1763. >
  1764. 评分
  1765. </div>
  1766. <div
  1767. class="stuLookScore"
  1768. v-if="
  1769. w.userid == userid ||
  1770. (tType == 1 &&
  1771. courseDetail.state == 5 &&
  1772. ((chapInfoList[courseType].chapterInfo[0]
  1773. .taskJson[taskCount].eList &&
  1774. chapInfoList[courseType].chapterInfo[0]
  1775. .taskJson[taskCount].eList.length) ||
  1776. (tool.eList && tool.eList.length)))
  1777. "
  1778. >
  1779. <el-popover
  1780. placement="top"
  1781. width="318"
  1782. trigger="hover"
  1783. >
  1784. <markScore
  1785. :loading="AIloading[toolIndex][wIndex].loading"
  1786. :markScoreVisible="markScoreVisible"
  1787. :ref="`markSco${toolIndex}${wIndex}`"
  1788. @updateLoading="updateLoading"
  1789. @updateDocSco="updateDocSco"
  1790. @refreshOther="refreshOther"
  1791. @markScoreDig="markScoreDig"
  1792. :tool="tool"
  1793. :wIndex="wIndex"
  1794. :scoCon="w"
  1795. :toolIndex="toolIndex"
  1796. :key="refreshKey"
  1797. :stage="courseType"
  1798. :task="taskCount"
  1799. :scoTit="
  1800. chapInfoList[courseType].chapterInfo[0]
  1801. .taskJson[taskCount].eList
  1802. "
  1803. >
  1804. </markScore>
  1805. <div
  1806. @click="
  1807. markScoreDig2(
  1808. w.sName,
  1809. worksStudent,
  1810. w.userid,
  1811. toolIndex,
  1812. chapInfoList[courseType].chapterInfo[0]
  1813. .taskJson[taskCount].eList,
  1814. AIloading[toolIndex][wIndex].loading,
  1815. tool
  1816. )
  1817. "
  1818. slot="reference"
  1819. >
  1820. <span v-if="AIloading[toolIndex][wIndex].sco">
  1821. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1822. </span>
  1823. <span v-else>
  1824. 评分
  1825. </span>
  1826. </div>
  1827. </el-popover>
  1828. </div>
  1829. <img
  1830. class="deleteImg"
  1831. src="../../assets/deleteworks.png"
  1832. v-if="
  1833. w.userid == userid || tType == 1 || tType == 4
  1834. "
  1835. @click.stop="deleteWorks(w.wid)"
  1836. alt
  1837. />
  1838. </div>
  1839. <div class="workImg" v-if="w.type == 3">
  1840. <img
  1841. style="cursor: pointer"
  1842. :src="video"
  1843. @click="openVideo(w)"
  1844. alt
  1845. />
  1846. <div
  1847. class="answerScore"
  1848. v-if="w.score"
  1849. @click.stop="openScore(w)"
  1850. :class="{
  1851. rightW:
  1852. w.userid == userid || tType == 1 || tType == 4
  1853. }"
  1854. >
  1855. {{ JSON.parse(w.score).wScore }}分
  1856. </div>
  1857. <div
  1858. class="answerScore"
  1859. @click.stop="openScore(w)"
  1860. v-else-if="courseDetail.userid == userid"
  1861. :class="{
  1862. rightW:
  1863. w.userid == userid || tType == 1 || tType == 4
  1864. }"
  1865. >
  1866. 评分
  1867. </div>
  1868. <div
  1869. class="stuLookScore"
  1870. v-if="
  1871. w.userid == userid ||
  1872. (tType == 1 &&
  1873. courseDetail.state == 5 &&
  1874. ((chapInfoList[courseType].chapterInfo[0]
  1875. .taskJson[taskCount].eList &&
  1876. chapInfoList[courseType].chapterInfo[0]
  1877. .taskJson[taskCount].eList.length) ||
  1878. (tool.eList && tool.eList.length)))
  1879. "
  1880. >
  1881. <el-popover
  1882. placement="top"
  1883. width="318"
  1884. trigger="hover"
  1885. >
  1886. <markScore
  1887. :loading="AIloading[toolIndex][wIndex].loading"
  1888. :markScoreVisible="markScoreVisible"
  1889. :ref="`markSco${toolIndex}${wIndex}`"
  1890. @updateLoading="updateLoading"
  1891. @updateDocSco="updateDocSco"
  1892. @refreshOther="refreshOther"
  1893. @markScoreDig="markScoreDig"
  1894. :tool="tool"
  1895. :wIndex="wIndex"
  1896. :scoCon="w"
  1897. :toolIndex="toolIndex"
  1898. :key="refreshKey"
  1899. :stage="courseType"
  1900. :task="taskCount"
  1901. :scoTit="
  1902. chapInfoList[courseType].chapterInfo[0]
  1903. .taskJson[taskCount].eList
  1904. "
  1905. >
  1906. </markScore>
  1907. <div
  1908. @click="
  1909. markScoreDig2(
  1910. w.sName,
  1911. worksStudent,
  1912. w.userid,
  1913. toolIndex,
  1914. chapInfoList[courseType].chapterInfo[0]
  1915. .taskJson[taskCount].eList,
  1916. AIloading[toolIndex][wIndex].loading,
  1917. tool
  1918. )
  1919. "
  1920. slot="reference"
  1921. >
  1922. <span v-if="AIloading[toolIndex][wIndex].sco">
  1923. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1924. </span>
  1925. <span v-else>
  1926. 评分
  1927. </span>
  1928. </div>
  1929. </el-popover>
  1930. </div>
  1931. <img
  1932. class="deleteImg"
  1933. src="../../assets/deleteworks.png"
  1934. v-if="
  1935. w.userid == userid || tType == 1 || tType == 4
  1936. "
  1937. @click.stop="deleteWorks(w.wid)"
  1938. alt
  1939. />
  1940. </div>
  1941. <div class="workImg" v-if="w.type == 12">
  1942. <img
  1943. style="cursor: pointer"
  1944. :src="word2"
  1945. @click="downloadFile(w.works)"
  1946. alt
  1947. />
  1948. <div
  1949. class="answerScore"
  1950. v-if="w.score"
  1951. @click.stop="openScore(w)"
  1952. :class="{
  1953. rightW:
  1954. w.userid == userid || tType == 1 || tType == 4
  1955. }"
  1956. >
  1957. {{ JSON.parse(w.score).wScore }}分
  1958. </div>
  1959. <div
  1960. class="answerScore"
  1961. @click.stop="openScore(w)"
  1962. v-else-if="courseDetail.userid == userid"
  1963. :class="{
  1964. rightW:
  1965. w.userid == userid || tType == 1 || tType == 4
  1966. }"
  1967. >
  1968. 评分
  1969. </div>
  1970. <div
  1971. class="stuLookScore"
  1972. v-if="
  1973. w.userid == userid ||
  1974. (tType == 1 &&
  1975. courseDetail.state == 5 &&
  1976. ((chapInfoList[courseType].chapterInfo[0]
  1977. .taskJson[taskCount].eList &&
  1978. chapInfoList[courseType].chapterInfo[0]
  1979. .taskJson[taskCount].eList.length) ||
  1980. (tool.eList && tool.eList.length)))
  1981. "
  1982. >
  1983. <el-popover
  1984. placement="top"
  1985. width="318"
  1986. trigger="hover"
  1987. >
  1988. <markScore
  1989. :loading="AIloading[toolIndex][wIndex].loading"
  1990. :markScoreVisible="markScoreVisible"
  1991. :ref="`markSco${toolIndex}${wIndex}`"
  1992. @updateLoading="updateLoading"
  1993. @updateDocSco="updateDocSco"
  1994. @refreshOther="refreshOther"
  1995. @markScoreDig="markScoreDig"
  1996. :tool="tool"
  1997. :wIndex="wIndex"
  1998. :scoCon="w"
  1999. :toolIndex="toolIndex"
  2000. :key="refreshKey"
  2001. :stage="courseType"
  2002. :task="taskCount"
  2003. :scoTit="
  2004. chapInfoList[courseType].chapterInfo[0]
  2005. .taskJson[taskCount].eList
  2006. "
  2007. >
  2008. </markScore>
  2009. <div
  2010. @click="
  2011. markScoreDig2(
  2012. w.sName,
  2013. worksStudent,
  2014. w.userid,
  2015. toolIndex,
  2016. chapInfoList[courseType].chapterInfo[0]
  2017. .taskJson[taskCount].eList,
  2018. AIloading[toolIndex][wIndex].loading,
  2019. tool
  2020. )
  2021. "
  2022. slot="reference"
  2023. >
  2024. <span v-if="AIloading[toolIndex][wIndex].sco">
  2025. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2026. </span>
  2027. <span v-else>
  2028. 评分
  2029. </span>
  2030. </div>
  2031. </el-popover>
  2032. </div>
  2033. <img
  2034. class="deleteImg"
  2035. src="../../assets/deleteworks.png"
  2036. v-if="
  2037. w.userid == userid || tType == 1 || tType == 4
  2038. "
  2039. @click.stop="deleteWorks(w.wid)"
  2040. alt
  2041. />
  2042. </div>
  2043. <div class="worksName">
  2044. <div>{{ w.sName }}</div>
  2045. </div>
  2046. </div>
  2047. </div>
  2048. </div>
  2049. <div
  2050. v-if="
  2051. tType &&
  2052. tType == 2 &&
  2053. !sIsOpen &&
  2054. tool.tool.indexOf(32) != -1
  2055. "
  2056. class="worksBox"
  2057. >
  2058. <div
  2059. class="zuoyeYulan"
  2060. v-if="workStudent[toolIndex].length > 0"
  2061. >
  2062. <span class="worksTitle">作业预览</span>
  2063. </div>
  2064. <div
  2065. class="worksDetailBox"
  2066. v-if="workStudent[toolIndex].length > 0"
  2067. >
  2068. <div
  2069. class="works"
  2070. style="
  2071. width: 200px;
  2072. height: 140px;
  2073. margin: 10px 10px 10px 0;
  2074. box-shadow: 0 0 6px 1px #dfdada;
  2075. "
  2076. v-for="(w, wIndex) in workStudent[toolIndex]"
  2077. :key="wIndex"
  2078. >
  2079. <div class="workImg">
  2080. <img
  2081. :src="word2"
  2082. @click="downloadFile(w.works)"
  2083. alt
  2084. />
  2085. <div
  2086. class="answerScore"
  2087. v-if="w.score"
  2088. @click.stop="openScore(w)"
  2089. :class="{
  2090. rightW:
  2091. w.userid == userid || tType == 1 || tType == 4
  2092. }"
  2093. >
  2094. {{ JSON.parse(w.score).wScore }}分
  2095. </div>
  2096. <div
  2097. class="answerScore"
  2098. @click.stop="openScore(w)"
  2099. v-else-if="courseDetail.userid == userid"
  2100. :class="{
  2101. rightW:
  2102. w.userid == userid || tType == 1 || tType == 4
  2103. }"
  2104. >
  2105. 评分
  2106. </div>
  2107. <img
  2108. class="deleteImg"
  2109. src="../../assets/deleteworks.png"
  2110. v-if="
  2111. w.userid == userid || tType == 1 || tType == 4
  2112. "
  2113. @click.stop="deleteWorks(w.wid)"
  2114. alt
  2115. />
  2116. </div>
  2117. <div class="worksName">
  2118. <div>{{ w.sName }}</div>
  2119. </div>
  2120. </div>
  2121. </div>
  2122. </div>
  2123. <div
  2124. v-if="
  2125. tType &&
  2126. tType == 2 &&
  2127. !sIsOpen &&
  2128. tool.tool.indexOf(57) != -1
  2129. "
  2130. class="worksBox"
  2131. >
  2132. <div
  2133. class="zuoyeYulan"
  2134. v-if="workStudent[toolIndex].length > 0"
  2135. >
  2136. <span class="worksTitle">作业预览</span>
  2137. </div>
  2138. <div
  2139. class="worksDetailBox"
  2140. v-if="workStudent[toolIndex].length > 0"
  2141. >
  2142. <div
  2143. class="works"
  2144. style="
  2145. width: 200px;
  2146. height: 140px;
  2147. margin: 10px 10px 10px 0;
  2148. box-shadow: 0 0 6px 1px #dfdada;
  2149. "
  2150. v-for="(w, wIndex) in workStudent[toolIndex]"
  2151. :key="wIndex"
  2152. >
  2153. <div class="workImg">
  2154. <img
  2155. :src="word2"
  2156. @click="downloadFile(w.works)"
  2157. v-if="w.type == 12"
  2158. alt
  2159. />
  2160. <img
  2161. :src="word2"
  2162. @click="
  2163. openCocoPi(57, toolIndex, w.userid, w.sName)
  2164. "
  2165. v-else-if="w.type == 15"
  2166. alt
  2167. />
  2168. <div
  2169. class="answerScore"
  2170. v-if="w.score"
  2171. @click.stop="openScore(w)"
  2172. :class="{
  2173. rightW:
  2174. w.userid == userid || tType == 1 || tType == 4
  2175. }"
  2176. >
  2177. {{ JSON.parse(w.score).wScore }}分
  2178. </div>
  2179. <div
  2180. class="answerScore"
  2181. @click.stop="openScore(w)"
  2182. v-else-if="courseDetail.userid == userid"
  2183. :class="{
  2184. rightW:
  2185. w.userid == userid || tType == 1 || tType == 4
  2186. }"
  2187. >
  2188. 评分
  2189. </div>
  2190. <img
  2191. class="deleteImg"
  2192. src="../../assets/deleteworks.png"
  2193. v-if="
  2194. w.userid == userid || tType == 1 || tType == 4
  2195. "
  2196. @click.stop="deleteWorks(w.wid)"
  2197. alt
  2198. />
  2199. </div>
  2200. <div class="worksName">
  2201. <div>{{ w.sName }}</div>
  2202. </div>
  2203. </div>
  2204. </div>
  2205. </div>
  2206. <div
  2207. v-if="
  2208. tType &&
  2209. tType == 2 &&
  2210. !sIsOpen &&
  2211. tool.tool.indexOf(4) != -1
  2212. "
  2213. class="worksBox"
  2214. >
  2215. <div
  2216. class="zuoyeYulan"
  2217. v-if="workStudent[toolIndex].length > 0"
  2218. >
  2219. <span class="worksTitle">作业预览</span>
  2220. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2221. </div>
  2222. <div
  2223. class="worksDetailBox"
  2224. v-if="workStudent[toolIndex].length > 0"
  2225. >
  2226. <div
  2227. class="isWorksName2"
  2228. v-for="(w, wIndex) in workStudent[toolIndex]"
  2229. :key="wIndex"
  2230. @click="
  2231. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2232. "
  2233. >
  2234. {{ w.sName }}
  2235. <img
  2236. class="deleteImg deleteImg2"
  2237. src="../../assets/deleteworks.png"
  2238. v-if="w.userid == userid || tType == 1 || tType == 4"
  2239. @click.stop="deleteWorks(w.wid)"
  2240. alt
  2241. />
  2242. </div>
  2243. <!-- <div
  2244. class="works"
  2245. style="
  2246. width: 200px;
  2247. height: 140px;
  2248. border-radius: 10px;
  2249. box-shadow: 0 0 6px 1px #dfdada;
  2250. overflow: hidden;
  2251. "
  2252. v-for="(w, wIndex) in workStudent[toolIndex]"
  2253. :key="wIndex"
  2254. >
  2255. <div class="workImg">
  2256. <img
  2257. src="../../assets/icon/works/noImg.png"
  2258. @click="
  2259. openTools(
  2260. 4,
  2261. toolIndex,
  2262. taskCount,
  2263. w.works,
  2264. w.sName
  2265. )
  2266. "
  2267. alt
  2268. />
  2269. </div>
  2270. <div class="worksName">
  2271. <div>{{ w.sName }}</div>
  2272. <div>{{ w.time }}</div>
  2273. </div>
  2274. </div> -->
  2275. </div>
  2276. </div>
  2277. <div
  2278. v-if="
  2279. tType &&
  2280. ((tType == 2 && sIsOpen == true) ||
  2281. tType == 1 ||
  2282. tType == 4) &&
  2283. tool.tool.indexOf(62) != -1
  2284. "
  2285. class="worksBox"
  2286. >
  2287. <div
  2288. class="zuoyeYulan"
  2289. v-if="
  2290. worksStudent.length &&
  2291. worksStudent[toolIndex].length > 0
  2292. "
  2293. >
  2294. <div class="worksTop">
  2295. <div>作业预览</div>
  2296. <div
  2297. class="corOpen"
  2298. @click="contract(toolIndex)"
  2299. v-if="
  2300. isCloseList[toolIndex].isCloseBoolean &&
  2301. isCloseList[toolIndex].isClose == 0
  2302. "
  2303. >
  2304. 折叠
  2305. </div>
  2306. <div
  2307. class="corOpen"
  2308. @click="contract(toolIndex)"
  2309. v-if="isCloseList[toolIndex].isClose == 1"
  2310. >
  2311. 展开
  2312. </div>
  2313. </div>
  2314. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2315. </div>
  2316. <div>
  2317. <div
  2318. :id="'tool-' + toolIndex"
  2319. :style="{
  2320. height:
  2321. isCloseList[toolIndex].isClose == 1
  2322. ? retrnToolHeight('tool-' + toolIndex)
  2323. : 'auto',
  2324. overflow:
  2325. isCloseList[toolIndex].isClose == 1
  2326. ? 'hidden'
  2327. : 'unset'
  2328. }"
  2329. class="worksDetailBox"
  2330. v-if="
  2331. worksStudent.length &&
  2332. worksStudent[toolIndex].length > 0
  2333. "
  2334. >
  2335. <div
  2336. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2337. :key="wIndex"
  2338. class="isWorksName2"
  2339. @click="
  2340. openTools(
  2341. 62,
  2342. toolIndex,
  2343. taskCount,
  2344. w.works,
  2345. w.sName
  2346. )
  2347. "
  2348. >
  2349. {{ w.sName }}
  2350. <img
  2351. class="deleteImg deleteImg2"
  2352. src="../../assets/deleteworks.png"
  2353. v-if="
  2354. w.userid == userid || tType == 1 || tType == 4
  2355. "
  2356. @click.stop="deleteWorks(w.wid)"
  2357. alt
  2358. />
  2359. </div>
  2360. </div>
  2361. </div>
  2362. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2363. 未提交
  2364. </div>
  2365. <div
  2366. class="noWorksS"
  2367. v-if="noWorksS && noWorksS[toolIndex].length"
  2368. >
  2369. <div
  2370. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2371. :key="sIndex"
  2372. class="noWorksName"
  2373. >
  2374. <el-tooltip
  2375. effect="dark"
  2376. :content="s.student"
  2377. placement="top"
  2378. >
  2379. <span>{{ s.student }}</span>
  2380. </el-tooltip>
  2381. </div>
  2382. </div>
  2383. </div>
  2384. <div
  2385. v-if="
  2386. tType &&
  2387. tType == 2 &&
  2388. !sIsOpen &&
  2389. tool.tool.indexOf(62) != -1
  2390. "
  2391. class="worksBox"
  2392. >
  2393. <div
  2394. class="zuoyeYulan"
  2395. v-if="workStudent[toolIndex].length > 0"
  2396. >
  2397. <span class="worksTitle">作业预览</span>
  2398. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2399. </div>
  2400. <div
  2401. class="worksDetailBox"
  2402. v-if="workStudent[toolIndex].length > 0"
  2403. >
  2404. <div
  2405. class="isWorksName2"
  2406. v-for="(w, wIndex) in workStudent[toolIndex]"
  2407. :key="wIndex"
  2408. @click="
  2409. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2410. "
  2411. >
  2412. {{ w.sName }}
  2413. <img
  2414. class="deleteImg deleteImg2"
  2415. src="../../assets/deleteworks.png"
  2416. v-if="w.userid == userid || tType == 1 || tType == 4"
  2417. @click.stop="deleteWorks(w.wid)"
  2418. alt
  2419. />
  2420. </div>
  2421. </div>
  2422. </div>
  2423. <div
  2424. v-if="
  2425. tType &&
  2426. tType == 2 &&
  2427. !sIsOpen &&
  2428. tool.tool.indexOf(45) != -1
  2429. "
  2430. class="worksBox"
  2431. >
  2432. <div
  2433. class="zuoyeYulan"
  2434. v-if="workStudent[toolIndex].length > 0"
  2435. >
  2436. <span class="worksTitle">作业预览</span>
  2437. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2438. </div>
  2439. <div
  2440. class="worksDetailBox"
  2441. v-if="workStudent[toolIndex].length > 0"
  2442. >
  2443. <div
  2444. class="isWorksName2"
  2445. v-for="(w, wIndex) in workStudent[toolIndex]"
  2446. :key="wIndex"
  2447. @click="
  2448. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2449. "
  2450. >
  2451. {{ w.sName }}
  2452. <img
  2453. class="deleteImg deleteImg2"
  2454. src="../../assets/deleteworks.png"
  2455. v-if="w.userid == userid || tType == 1 || tType == 4"
  2456. @click.stop="deleteWorks(w.wid)"
  2457. alt
  2458. />
  2459. </div>
  2460. </div>
  2461. </div>
  2462. <div
  2463. v-if="
  2464. tType &&
  2465. tType == 2 &&
  2466. !sIsOpen &&
  2467. tool.tool.indexOf(69) != -1
  2468. "
  2469. class="worksBox"
  2470. >
  2471. <div
  2472. class="zuoyeYulan"
  2473. v-if="workStudent[toolIndex].length > 0"
  2474. >
  2475. <span class="worksTitle">作业预览</span>
  2476. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2477. </div>
  2478. <div
  2479. class="worksDetailBox"
  2480. v-if="workStudent[toolIndex].length > 0"
  2481. >
  2482. <div
  2483. class="isWorksName2"
  2484. v-for="(w, wIndex) in workStudent[toolIndex]"
  2485. :key="wIndex"
  2486. @click="
  2487. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2488. "
  2489. >
  2490. {{ w.sName }}
  2491. <img
  2492. class="deleteImg deleteImg2"
  2493. src="../../assets/deleteworks.png"
  2494. v-if="w.userid == userid || tType == 1 || tType == 4"
  2495. @click.stop="deleteWorks(w.wid)"
  2496. alt
  2497. />
  2498. </div>
  2499. </div>
  2500. </div>
  2501. <div
  2502. v-if="
  2503. tType &&
  2504. tType == 2 &&
  2505. !sIsOpen &&
  2506. tool.tool.indexOf(15) != -1
  2507. "
  2508. class="worksBox"
  2509. >
  2510. <div
  2511. class="zuoyeYulan"
  2512. v-if="workStudent[toolIndex].length > 0"
  2513. >
  2514. <span class="worksTitle">作业预览</span>
  2515. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2516. </div>
  2517. <div
  2518. class="worksDetailBox"
  2519. v-if="workStudent[toolIndex].length > 0"
  2520. >
  2521. <div
  2522. class="works"
  2523. v-for="(w, wIndex) in workStudent[toolIndex]"
  2524. :key="wIndex"
  2525. >
  2526. <div class="workImg">
  2527. <!-- <img
  2528. src="../../assets/icon/works/noImg.png"
  2529. @click="openTools(15, toolIndex, taskCount, w.works)"
  2530. alt=""
  2531. />-->
  2532. <div class="answerBg">
  2533. <!-- <div>{{ w.sName }}</div> -->
  2534. <el-tooltip
  2535. class="item"
  2536. effect="light"
  2537. :content="JSON.parse(w.works)[0].answer"
  2538. placement="top"
  2539. >
  2540. <div class="answerContent">
  2541. {{ JSON.parse(w.works)[0].answer }}
  2542. </div>
  2543. </el-tooltip>
  2544. <div
  2545. class="answerScore"
  2546. v-if="w.score"
  2547. @click.stop="openScore(w)"
  2548. :class="{
  2549. rightW:
  2550. w.userid == userid || tType == 1 || tType == 4
  2551. }"
  2552. >
  2553. {{ JSON.parse(w.score).wScore }}分
  2554. </div>
  2555. <div
  2556. class="answerScore"
  2557. @click.stop="openScore(w)"
  2558. v-else-if="courseDetail.userid == userid"
  2559. :class="{
  2560. rightW:
  2561. w.userid == userid || tType == 1 || tType == 4
  2562. }"
  2563. >
  2564. 评分
  2565. </div>
  2566. <img
  2567. class="deleteImg"
  2568. src="../../assets/deleteworks.png"
  2569. v-if="
  2570. w.userid == userid || tType == 1 || tType == 4
  2571. "
  2572. @click.stop="deleteWorks(w.wid)"
  2573. alt
  2574. />
  2575. </div>
  2576. <div class="comment">
  2577. <div class="worksName">
  2578. <div>{{ w.sName }}</div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. </div>
  2584. </div>
  2585. <div
  2586. v-if="
  2587. tType &&
  2588. tType == 2 &&
  2589. !sIsOpen &&
  2590. tool.tool.indexOf(1) != -1
  2591. "
  2592. class="worksBox"
  2593. >
  2594. <div
  2595. class="zuoyeYulan"
  2596. v-if="workStudent[toolIndex].length > 0"
  2597. >
  2598. <span class="worksTitle">作业预览</span>
  2599. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2600. </div>
  2601. <div
  2602. class="worksDetailBox"
  2603. v-if="workStudent[toolIndex].length > 0"
  2604. >
  2605. <div
  2606. class="works"
  2607. style="
  2608. width: 200px;
  2609. height: 140px;
  2610. margin: 10px 10px 10px 0;
  2611. box-shadow: 0 0 6px 1px #dfdada;
  2612. "
  2613. v-for="(w, wIndex) in workStudent[toolIndex]"
  2614. :key="wIndex"
  2615. >
  2616. <div class="workImg">
  2617. <img
  2618. :src="w.works"
  2619. @click="previewImg(w.works, w)"
  2620. alt
  2621. />
  2622. <div
  2623. class="answerScore"
  2624. v-if="w.score"
  2625. @click.stop="openScore(w)"
  2626. :class="{
  2627. rightW:
  2628. w.userid == userid || tType == 1 || tType == 4
  2629. }"
  2630. >
  2631. {{ JSON.parse(w.score).wScore }}分
  2632. </div>
  2633. <div
  2634. class="answerScore"
  2635. @click.stop="openScore(w)"
  2636. v-else-if="courseDetail.userid == userid"
  2637. :class="{
  2638. rightW:
  2639. w.userid == userid || tType == 1 || tType == 4
  2640. }"
  2641. >
  2642. 评分
  2643. </div>
  2644. <div
  2645. class="stuLookScore"
  2646. v-if="
  2647. w.userid == userid ||
  2648. (tType == 1 &&
  2649. courseDetail.state == 5 &&
  2650. ((chapInfoList[courseType].chapterInfo[0]
  2651. .taskJson[taskCount].eList &&
  2652. chapInfoList[courseType].chapterInfo[0]
  2653. .taskJson[taskCount].eList.length) ||
  2654. (tool.eList && tool.eList.length)))
  2655. "
  2656. >
  2657. <el-popover
  2658. placement="top"
  2659. width="318"
  2660. trigger="hover"
  2661. >
  2662. <markScore
  2663. :loading="AIloading[toolIndex][wIndex].loading"
  2664. :markScoreVisible="markScoreVisible"
  2665. :ref="`markSco${toolIndex}${wIndex}`"
  2666. @updateLoading="updateLoading"
  2667. @updateDocSco="updateDocSco"
  2668. @refreshOther="refreshOther"
  2669. @markScoreDig="markScoreDig"
  2670. :tool="tool"
  2671. :wIndex="wIndex"
  2672. :scoCon="w"
  2673. :toolIndex="toolIndex"
  2674. :key="refreshKey"
  2675. :stage="courseType"
  2676. :task="taskCount"
  2677. :scoTit="
  2678. chapInfoList[courseType].chapterInfo[0]
  2679. .taskJson[taskCount].eList
  2680. "
  2681. >
  2682. </markScore>
  2683. <div
  2684. @click="
  2685. markScoreDig2(
  2686. w.sName,
  2687. worksStudent,
  2688. w.userid,
  2689. toolIndex,
  2690. chapInfoList[courseType].chapterInfo[0]
  2691. .taskJson[taskCount].eList,
  2692. AIloading[toolIndex][wIndex].loading,
  2693. tool
  2694. )
  2695. "
  2696. slot="reference"
  2697. >
  2698. <span v-if="AIloading[toolIndex][wIndex].sco">
  2699. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2700. </span>
  2701. <span v-else>
  2702. 评分
  2703. </span>
  2704. </div>
  2705. </el-popover>
  2706. </div>
  2707. <img
  2708. class="deleteImg"
  2709. src="../../assets/deleteworks.png"
  2710. v-if="
  2711. w.userid == userid || tType == 1 || tType == 4
  2712. "
  2713. @click.stop="deleteWorks(w.wid)"
  2714. alt
  2715. />
  2716. </div>
  2717. <div class="worksName">
  2718. <div>{{ w.sName }}</div>
  2719. </div>
  2720. </div>
  2721. </div>
  2722. </div>
  2723. <div
  2724. v-if="
  2725. tType &&
  2726. tType == 2 &&
  2727. !sIsOpen &&
  2728. tool.tool.indexOf(3) != -1
  2729. "
  2730. class="worksBox"
  2731. >
  2732. <div
  2733. class="zuoyeYulan"
  2734. v-if="workStudent[toolIndex].length > 0"
  2735. >
  2736. <span class="worksTitle">作业预览</span>
  2737. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2738. </div>
  2739. <div
  2740. class="worksDetailBox"
  2741. v-if="workStudent[toolIndex].length > 0"
  2742. >
  2743. <div
  2744. class="works"
  2745. style="
  2746. width: 200px;
  2747. height: 140px;
  2748. margin: 10px 10px 10px 0;
  2749. box-shadow: 0 0 6px 1px #dfdada;
  2750. "
  2751. v-for="(w, wIndex) in workStudent[toolIndex]"
  2752. :key="wIndex"
  2753. >
  2754. <div class="workImg">
  2755. <img
  2756. :src="w.works"
  2757. @click="previewImg(w.works, w)"
  2758. alt
  2759. />
  2760. <div
  2761. class="answerScore"
  2762. v-if="w.score"
  2763. @click.stop="openScore(w)"
  2764. :class="{
  2765. rightW:
  2766. w.userid == userid || tType == 1 || tType == 4
  2767. }"
  2768. >
  2769. {{ JSON.parse(w.score).wScore }}分
  2770. </div>
  2771. <div
  2772. class="answerScore"
  2773. @click.stop="openScore(w)"
  2774. v-else-if="courseDetail.userid == userid"
  2775. :class="{
  2776. rightW:
  2777. w.userid == userid || tType == 1 || tType == 4
  2778. }"
  2779. >
  2780. 评分
  2781. </div>
  2782. <div
  2783. class="stuLookScore"
  2784. v-if="
  2785. w.userid == userid ||
  2786. (tType == 1 &&
  2787. courseDetail.state == 5 &&
  2788. ((chapInfoList[courseType].chapterInfo[0]
  2789. .taskJson[taskCount].eList &&
  2790. chapInfoList[courseType].chapterInfo[0]
  2791. .taskJson[taskCount].eList.length) ||
  2792. (tool.eList && tool.eList.length)))
  2793. "
  2794. >
  2795. <el-popover
  2796. placement="top"
  2797. width="318"
  2798. trigger="hover"
  2799. >
  2800. <markScore
  2801. :loading="AIloading[toolIndex][wIndex].loading"
  2802. :markScoreVisible="markScoreVisible"
  2803. :ref="`markSco${toolIndex}${wIndex}`"
  2804. @updateLoading="updateLoading"
  2805. @updateDocSco="updateDocSco"
  2806. @refreshOther="refreshOther"
  2807. @markScoreDig="markScoreDig"
  2808. :tool="tool"
  2809. :wIndex="wIndex"
  2810. :scoCon="w"
  2811. :toolIndex="toolIndex"
  2812. :key="refreshKey"
  2813. :stage="courseType"
  2814. :task="taskCount"
  2815. :scoTit="
  2816. chapInfoList[courseType].chapterInfo[0]
  2817. .taskJson[taskCount].eList
  2818. "
  2819. >
  2820. </markScore>
  2821. <div
  2822. @click="
  2823. markScoreDig2(
  2824. w.sName,
  2825. worksStudent,
  2826. w.userid,
  2827. toolIndex,
  2828. chapInfoList[courseType].chapterInfo[0]
  2829. .taskJson[taskCount].eList,
  2830. AIloading[toolIndex][wIndex].loading,
  2831. tool
  2832. )
  2833. "
  2834. slot="reference"
  2835. >
  2836. <span v-if="AIloading[toolIndex][wIndex].sco">
  2837. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2838. </span>
  2839. <span v-else>
  2840. 评分
  2841. </span>
  2842. </div>
  2843. </el-popover>
  2844. </div>
  2845. <img
  2846. class="deleteImg"
  2847. src="../../assets/deleteworks.png"
  2848. v-if="
  2849. w.userid == userid || tType == 1 || tType == 4
  2850. "
  2851. @click.stop="deleteWorks(w.wid)"
  2852. alt
  2853. />
  2854. </div>
  2855. <div class="worksName">
  2856. <div>{{ w.sName }}</div>
  2857. </div>
  2858. </div>
  2859. </div>
  2860. </div>
  2861. <div
  2862. v-if="
  2863. tType &&
  2864. tType == 2 &&
  2865. !sIsOpen &&
  2866. tool.tool.indexOf(6) != -1
  2867. "
  2868. class="worksBox"
  2869. >
  2870. <div
  2871. class="zuoyeYulan"
  2872. v-if="workStudent[toolIndex].length > 0"
  2873. >
  2874. <span class="worksTitle">作业预览</span>
  2875. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2876. </div>
  2877. <div
  2878. class="worksDetailBox"
  2879. v-if="workStudent[toolIndex].length > 0"
  2880. >
  2881. <div
  2882. class="works"
  2883. style="
  2884. width: 200px;
  2885. height: 140px;
  2886. margin: 10px 10px 10px 0;
  2887. box-shadow: 0 0 6px 1px #dfdada;
  2888. "
  2889. v-for="(w, wIndex) in workStudent[toolIndex]"
  2890. :key="wIndex"
  2891. >
  2892. <div class="workImg">
  2893. <img
  2894. :src="w.works"
  2895. @click="previewImg(w.works, w)"
  2896. alt
  2897. />
  2898. <div
  2899. class="answerScore"
  2900. v-if="w.score"
  2901. @click.stop="openScore(w)"
  2902. :class="{
  2903. rightW:
  2904. w.userid == userid || tType == 1 || tType == 4
  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"
  2913. :class="{
  2914. rightW:
  2915. w.userid == userid || tType == 1 || tType == 4
  2916. }"
  2917. >
  2918. 评分
  2919. </div>
  2920. <img
  2921. class="deleteImg"
  2922. src="../../assets/deleteworks.png"
  2923. v-if="
  2924. w.userid == userid || tType == 1 || tType == 4
  2925. "
  2926. @click.stop="deleteWorks(w.wid)"
  2927. alt
  2928. />
  2929. </div>
  2930. <div class="worksName">
  2931. <div>{{ w.sName }}</div>
  2932. </div>
  2933. </div>
  2934. </div>
  2935. </div>
  2936. <div
  2937. v-if="
  2938. tType &&
  2939. tType == 2 &&
  2940. !sIsOpen &&
  2941. tool.tool.indexOf(7) != -1
  2942. "
  2943. class="worksBox"
  2944. >
  2945. <div
  2946. class="zuoyeYulan"
  2947. v-if="workStudent[toolIndex].length > 0"
  2948. >
  2949. <span class="worksTitle">作业预览</span>
  2950. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2951. </div>
  2952. <div
  2953. class="worksDetailBox"
  2954. v-if="workStudent[toolIndex].length > 0"
  2955. >
  2956. <div
  2957. class="works"
  2958. style="
  2959. width: 200px;
  2960. height: 140px;
  2961. margin: 10px 10px 10px 0;
  2962. box-shadow: 0 0 6px 1px #dfdada;
  2963. "
  2964. v-for="(w, wIndex) in workStudent[toolIndex]"
  2965. :key="wIndex"
  2966. >
  2967. <div class="workImg">
  2968. <img
  2969. :src="w.works"
  2970. @click="previewImg(w.works, w)"
  2971. alt
  2972. />
  2973. <div
  2974. class="answerScore"
  2975. v-if="w.score"
  2976. @click.stop="openScore(w)"
  2977. :class="{
  2978. rightW:
  2979. w.userid == userid || tType == 1 || tType == 4
  2980. }"
  2981. >
  2982. {{ JSON.parse(w.score).wScore }}分
  2983. </div>
  2984. <div
  2985. class="answerScore"
  2986. @click.stop="openScore(w)"
  2987. v-else-if="courseDetail.userid == userid"
  2988. :class="{
  2989. rightW:
  2990. w.userid == userid || tType == 1 || tType == 4
  2991. }"
  2992. >
  2993. 评分
  2994. </div>
  2995. <div
  2996. class="stuLookScore"
  2997. v-if="
  2998. w.userid == userid ||
  2999. (tType == 1 &&
  3000. courseDetail.state == 5 &&
  3001. ((chapInfoList[courseType].chapterInfo[0]
  3002. .taskJson[taskCount].eList &&
  3003. chapInfoList[courseType].chapterInfo[0]
  3004. .taskJson[taskCount].eList.length) ||
  3005. (tool.eList && tool.eList.length)))
  3006. "
  3007. >
  3008. <el-popover
  3009. placement="top"
  3010. width="318"
  3011. trigger="hover"
  3012. >
  3013. <markScore
  3014. :loading="AIloading[toolIndex][wIndex].loading"
  3015. :markScoreVisible="markScoreVisible"
  3016. :ref="`markSco${toolIndex}${wIndex}`"
  3017. @updateLoading="updateLoading"
  3018. @updateDocSco="updateDocSco"
  3019. @refreshOther="refreshOther"
  3020. @markScoreDig="markScoreDig"
  3021. :tool="tool"
  3022. :wIndex="wIndex"
  3023. :scoCon="w"
  3024. :toolIndex="toolIndex"
  3025. :key="refreshKey"
  3026. :stage="courseType"
  3027. :task="taskCount"
  3028. :scoTit="
  3029. chapInfoList[courseType].chapterInfo[0]
  3030. .taskJson[taskCount].eList
  3031. "
  3032. >
  3033. </markScore>
  3034. <div
  3035. @click="
  3036. markScoreDig2(
  3037. w.sName,
  3038. worksStudent,
  3039. w.userid,
  3040. toolIndex,
  3041. chapInfoList[courseType].chapterInfo[0]
  3042. .taskJson[taskCount].eList,
  3043. AIloading[toolIndex][wIndex].loading,
  3044. tool
  3045. )
  3046. "
  3047. slot="reference"
  3048. >
  3049. <span v-if="AIloading[toolIndex][wIndex].sco">
  3050. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3051. </span>
  3052. <span v-else>
  3053. 评分
  3054. </span>
  3055. </div>
  3056. </el-popover>
  3057. </div>
  3058. <img
  3059. class="deleteImg"
  3060. src="../../assets/deleteworks.png"
  3061. v-if="
  3062. w.userid == userid || tType == 1 || tType == 4
  3063. "
  3064. @click.stop="deleteWorks(w.wid)"
  3065. alt
  3066. />
  3067. </div>
  3068. <div class="worksName">
  3069. <div>{{ w.sName }}</div>
  3070. </div>
  3071. </div>
  3072. </div>
  3073. </div>
  3074. <div
  3075. v-if="
  3076. tType &&
  3077. tType == 2 &&
  3078. !sIsOpen &&
  3079. tool.tool.indexOf(26) != -1
  3080. "
  3081. class="worksBox"
  3082. >
  3083. <div
  3084. class="zuoyeYulan"
  3085. v-if="workStudent[toolIndex].length > 0"
  3086. >
  3087. <span class="worksTitle">作业预览</span>
  3088. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3089. </div>
  3090. <div
  3091. class="worksDetailBox"
  3092. v-if="workStudent[toolIndex].length > 0"
  3093. >
  3094. <div
  3095. class="works"
  3096. style="
  3097. width: 200px;
  3098. height: 140px;
  3099. margin: 10px 10px 10px 0;
  3100. box-shadow: 0 0 6px 1px #dfdada;
  3101. "
  3102. v-for="(w, wIndex) in workStudent[toolIndex]"
  3103. :key="wIndex"
  3104. >
  3105. <div class="workImg">
  3106. <img
  3107. :src="w.works"
  3108. @click="previewImg(w.works, w)"
  3109. alt
  3110. />
  3111. <img
  3112. class="deleteImg"
  3113. src="../../assets/deleteworks.png"
  3114. v-if="
  3115. w.userid == userid || tType == 1 || tType == 4
  3116. "
  3117. @click.stop="deleteWorks(w.wid)"
  3118. alt
  3119. />
  3120. </div>
  3121. <div class="worksName">
  3122. <div>{{ w.sName }}</div>
  3123. </div>
  3124. </div>
  3125. </div>
  3126. </div>
  3127. <div
  3128. v-if="
  3129. tType &&
  3130. ((tType == 2 && sIsOpen == true) ||
  3131. tType == 1 ||
  3132. tType == 4) &&
  3133. tool.tool.indexOf(16) != -1
  3134. "
  3135. class="worksBox"
  3136. >
  3137. <div
  3138. class="zuoyeYulan"
  3139. style="display: flex;justify-content: space-between;align-items: center;"
  3140. v-if="
  3141. (worksStudent.length &&
  3142. worksStudent[toolIndex].length > 0) ||
  3143. (courseGroup.group && courseGroup.group.length)
  3144. "
  3145. >
  3146. <div class="worksTop">
  3147. <div>作业预览</div>
  3148. <div
  3149. class="corOpen"
  3150. @click="contract(toolIndex)"
  3151. v-if="
  3152. isCloseList[toolIndex].isCloseBoolean &&
  3153. isCloseList[toolIndex].isClose == 0
  3154. "
  3155. >
  3156. 折叠
  3157. </div>
  3158. <div
  3159. class="corOpen"
  3160. @click="contract(toolIndex)"
  3161. v-if="isCloseList[toolIndex].isClose == 1"
  3162. >
  3163. 展开
  3164. </div>
  3165. </div>
  3166. <div
  3167. style="display: flex;"
  3168. v-if="
  3169. (courseDetail.userid == userid ||
  3170. (courseDetail.course_teacher &&
  3171. courseDetail.course_teacher.indexOf(userid) !=
  3172. -1)) &&
  3173. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3174. taskCount
  3175. ].eList &&
  3176. chapInfoList[courseType].chapterInfo[0].taskJson[
  3177. taskCount
  3178. ].eList.length) ||
  3179. (tool.eList && tool.eList.length)) &&
  3180. courseDetail.state == 5
  3181. "
  3182. >
  3183. <!-- <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"> -->
  3184. <div
  3185. style="margin-right:10px"
  3186. class="ScoreBtn"
  3187. @click="
  3188. resetLoopEva(
  3189. worksStudent[toolIndex],
  3190. chapInfoList[courseType].chapterInfo[0].taskJson[
  3191. taskCount
  3192. ].eList,
  3193. courseType,
  3194. taskCount,
  3195. toolIndex,
  3196. tool.toolDetail,
  3197. worksStudent
  3198. )
  3199. "
  3200. >
  3201. 一键重置
  3202. </div>
  3203. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3204. <img
  3205. src="../../assets/icon/newIcons/rootImg.png"
  3206. alt=""
  3207. />
  3208. AI评分
  3209. </div>
  3210. <div
  3211. class="ScoreBtn"
  3212. v-else-if="!loopLoading[toolIndex].loading"
  3213. @click="
  3214. loopEva(
  3215. worksStudent[toolIndex],
  3216. chapInfoList[courseType].chapterInfo[0].taskJson[
  3217. taskCount
  3218. ].eList,
  3219. courseType,
  3220. taskCount,
  3221. toolIndex,
  3222. tool.toolDetail,
  3223. chapInfoList[courseType].chapterInfo[0].taskJson[
  3224. taskCount
  3225. ].taskDetail,
  3226. tool
  3227. )
  3228. "
  3229. >
  3230. <img
  3231. src="../../assets/icon/newIcons/rootImg.png"
  3232. alt=""
  3233. />
  3234. AI评分
  3235. </div>
  3236. <div class="ScoreBtn" v-else>
  3237. <img
  3238. src="../../assets/icon/newIcons/rootImg.png"
  3239. alt=""
  3240. />
  3241. 正在评分
  3242. </div>
  3243. </div>
  3244. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3245. </div>
  3246. <div
  3247. class="group_workBox"
  3248. v-for="(g, gindex) in courseGroup.group"
  3249. :key="gindex"
  3250. >
  3251. <div class="group_box">
  3252. <div class="group_title">
  3253. <el-tooltip
  3254. class="item"
  3255. effect="light"
  3256. :content="g.name"
  3257. placement="top"
  3258. >
  3259. <div class="group_name">{{ g.name }}</div>
  3260. </el-tooltip>
  3261. </div>
  3262. <div
  3263. class="group_work"
  3264. v-if="
  3265. g.works &&
  3266. g.works.length &&
  3267. g.works[toolIndex].length
  3268. "
  3269. >
  3270. <div
  3271. class="works"
  3272. style="
  3273. width: 200px;
  3274. height: 140px;
  3275. margin: 10px 10px 10px 0;
  3276. border-radius: 15px;
  3277. box-shadow: 0 0 6px 1px #dfdada;
  3278. "
  3279. v-for="(w, wIndex) in g.works[toolIndex]"
  3280. :key="wIndex"
  3281. :class="w.type == 1 ? 'isTypeOne' : ''"
  3282. >
  3283. <div class="workImg" v-if="w.type == 0">
  3284. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3285. <img
  3286. :src="w.works"
  3287. @click="previewImg(w.works, w)"
  3288. alt
  3289. />
  3290. <div
  3291. class="answerScore"
  3292. v-if="w.score"
  3293. @click.stop="openScore(w)"
  3294. :class="{
  3295. rightW:
  3296. w.userid == userid ||
  3297. tType == 1 ||
  3298. tType == 4 ||
  3299. w.ateacher == userid
  3300. }"
  3301. >
  3302. {{ JSON.parse(w.score).wScore }}分
  3303. </div>
  3304. <div
  3305. class="answerScore"
  3306. @click.stop="openScore(w)"
  3307. v-else-if="courseDetail.userid == userid"
  3308. :class="{
  3309. rightW:
  3310. w.userid == userid ||
  3311. tType == 1 ||
  3312. tType == 4 ||
  3313. w.ateacher == userid
  3314. }"
  3315. >
  3316. 评分
  3317. </div>
  3318. <img
  3319. class="deleteImg"
  3320. src="../../assets/deleteworks.png"
  3321. v-if="
  3322. w.userid == userid || tType == 1 || tType == 4
  3323. "
  3324. @click.stop="deleteWorks(w.wid)"
  3325. alt
  3326. />
  3327. </div>
  3328. <div class="workImg" v-if="w.type == 1">
  3329. <img :src="word" @click="openFile(w.works)" alt />
  3330. <!-- @click="openFile(w.works)" -->
  3331. <div
  3332. class="answerScore"
  3333. v-if="w.score"
  3334. @click.stop="openScore(w)"
  3335. :class="{
  3336. rightW:
  3337. w.userid == userid ||
  3338. tType == 1 ||
  3339. tType == 4 ||
  3340. w.ateacher == userid
  3341. }"
  3342. >
  3343. {{ JSON.parse(w.score).wScore }}分
  3344. </div>
  3345. <div
  3346. class="answerScore"
  3347. @click.stop="openScore(w)"
  3348. v-else-if="courseDetail.userid == userid"
  3349. :class="{
  3350. rightW:
  3351. w.userid == userid ||
  3352. tType == 1 ||
  3353. tType == 4 ||
  3354. w.ateacher == userid
  3355. }"
  3356. >
  3357. 评分
  3358. </div>
  3359. <img
  3360. class="deleteImg"
  3361. src="../../assets/deleteworks.png"
  3362. v-if="
  3363. w.userid == userid || tType == 1 || tType == 4
  3364. "
  3365. @click.stop="deleteWorks(w.wid)"
  3366. alt
  3367. />
  3368. </div>
  3369. <div class="workImg" v-if="w.type == 3">
  3370. <img
  3371. style="cursor: pointer"
  3372. :src="video"
  3373. @click="openVideo(w)"
  3374. alt
  3375. />
  3376. <!-- @click="openVideo(w.works)" -->
  3377. <div
  3378. class="answerScore"
  3379. v-if="w.score"
  3380. @click.stop="openScore(w)"
  3381. :class="{
  3382. rightW:
  3383. w.userid == userid ||
  3384. tType == 1 ||
  3385. tType == 4 ||
  3386. w.ateacher == userid
  3387. }"
  3388. >
  3389. {{ JSON.parse(w.score).wScore }}分
  3390. </div>
  3391. <div
  3392. class="answerScore"
  3393. @click.stop="openScore(w)"
  3394. v-else-if="courseDetail.userid == userid"
  3395. :class="{
  3396. rightW:
  3397. w.userid == userid ||
  3398. tType == 1 ||
  3399. tType == 4 ||
  3400. w.ateacher == userid
  3401. }"
  3402. >
  3403. 评分
  3404. </div>
  3405. <img
  3406. class="deleteImg"
  3407. src="../../assets/deleteworks.png"
  3408. v-if="
  3409. w.userid == userid || tType == 1 || tType == 4
  3410. "
  3411. @click.stop="deleteWorks(w.wid)"
  3412. alt
  3413. />
  3414. </div>
  3415. <div class="workImg" v-if="w.type == 12">
  3416. <img
  3417. style="cursor: pointer"
  3418. :src="word2"
  3419. @click="downloadFile(w.works)"
  3420. alt
  3421. />
  3422. <!-- @click="openVideo(w.works)" -->
  3423. <div
  3424. class="answerScore"
  3425. v-if="w.score"
  3426. @click.stop="openScore(w)"
  3427. :class="{
  3428. rightW:
  3429. w.userid == userid ||
  3430. tType == 1 ||
  3431. tType == 4 ||
  3432. w.ateacher == userid
  3433. }"
  3434. >
  3435. {{ JSON.parse(w.score).wScore }}分
  3436. </div>
  3437. <div
  3438. class="answerScore"
  3439. @click.stop="openScore(w)"
  3440. v-else-if="courseDetail.userid == userid"
  3441. :class="{
  3442. rightW:
  3443. w.userid == userid ||
  3444. tType == 1 ||
  3445. tType == 4 ||
  3446. w.ateacher == userid
  3447. }"
  3448. >
  3449. 评分
  3450. </div>
  3451. <img
  3452. class="deleteImg"
  3453. src="../../assets/deleteworks.png"
  3454. v-if="
  3455. w.userid == userid || tType == 1 || tType == 4
  3456. "
  3457. @click.stop="deleteWorks(w.wid)"
  3458. alt
  3459. />
  3460. </div>
  3461. <div class="comment" style="min-width: 200px">
  3462. <div class="worksName">
  3463. <div>{{ w.sName }}</div>
  3464. </div>
  3465. <div class="commentList">
  3466. <div class="commentList">
  3467. <div
  3468. class="commentImg"
  3469. @click="
  3470. isLikes(
  3471. w.wid,
  3472. userid,
  3473. 1,
  3474. null,
  3475. w.isLikes,
  3476. w.sName
  3477. )
  3478. "
  3479. >
  3480. <img
  3481. :src="w.isLikes == true ? likes : noLikes"
  3482. alt=""
  3483. />
  3484. </div>
  3485. <div>{{ w.likesCount }}</div>
  3486. </div>
  3487. <div
  3488. class="commentList"
  3489. style="margin-right: 15px"
  3490. >
  3491. <div
  3492. class="commentImg"
  3493. @click="
  3494. commentOther(
  3495. w,
  3496. toolIndex,
  3497. wIndex,
  3498. null,
  3499. g.id
  3500. )
  3501. "
  3502. >
  3503. <img
  3504. src="../../assets/icon/comment/comment.png"
  3505. alt=""
  3506. />
  3507. </div>
  3508. <div>{{ w.commentCount }}</div>
  3509. </div>
  3510. </div>
  3511. </div>
  3512. </div>
  3513. </div>
  3514. <div class="group_work" v-else>暂无提交作业</div>
  3515. </div>
  3516. </div>
  3517. <div
  3518. :id="'tool-' + toolIndex"
  3519. :style="{
  3520. height:
  3521. isCloseList[toolIndex].isClose == 1
  3522. ? retrnToolHeight('tool-' + toolIndex)
  3523. : 'auto',
  3524. overflow:
  3525. isCloseList[toolIndex].isClose == 1
  3526. ? 'hidden'
  3527. : 'unset'
  3528. }"
  3529. class="worksDetailBox"
  3530. v-if="
  3531. worksStudent.length &&
  3532. worksStudent[toolIndex].length > 0
  3533. "
  3534. >
  3535. <div
  3536. class="works"
  3537. style="
  3538. width: 200px;
  3539. height: 140px;
  3540. margin: 10px 10px 10px 0;
  3541. border-radius: 15px;
  3542. box-shadow: 0 0 6px 1px #dfdada;
  3543. "
  3544. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3545. :key="wIndex"
  3546. :class="w.type == 1 ? 'isTypeOne' : ''"
  3547. >
  3548. <div class="workImg" v-if="w.type == 0">
  3549. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3550. <img
  3551. :src="w.works"
  3552. @click="previewImg(w.works, w)"
  3553. alt
  3554. />
  3555. <div
  3556. class="answerScore"
  3557. v-if="w.score"
  3558. @click.stop="openScore(w)"
  3559. :class="{
  3560. rightW:
  3561. w.userid == userid ||
  3562. tType == 1 ||
  3563. tType == 4 ||
  3564. w.ateacher == userid
  3565. }"
  3566. >
  3567. {{ JSON.parse(w.score).wScore }}分
  3568. </div>
  3569. <div
  3570. class="answerScore"
  3571. @click.stop="openScore(w)"
  3572. v-else-if="
  3573. courseDetail.userid == userid &&
  3574. courseDetail.state != 5 &&
  3575. chapInfoList[courseType].chapterInfo[0]
  3576. .taskJson[taskCount].eList &&
  3577. chapInfoList[courseType].chapterInfo[0]
  3578. .taskJson[taskCount].eList.length
  3579. "
  3580. :class="{
  3581. rightW:
  3582. w.userid == userid ||
  3583. tType == 1 ||
  3584. tType == 4 ||
  3585. w.ateacher == userid
  3586. }"
  3587. >
  3588. 评分
  3589. </div>
  3590. <!-- <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"> -->
  3591. <div
  3592. v-else-if="
  3593. (courseDetail.userid == userid ||
  3594. (courseDetail.course_teacher &&
  3595. courseDetail.course_teacher.indexOf(userid) !=
  3596. -1) ||
  3597. (w.userid == userid && sIsOpen)) &&
  3598. courseDetail.state == 5 &&
  3599. ((chapInfoList[courseType].chapterInfo[0]
  3600. .taskJson[taskCount].eList &&
  3601. chapInfoList[courseType].chapterInfo[0]
  3602. .taskJson[taskCount].eList.length) ||
  3603. (tool.eList && tool.eList.length))
  3604. "
  3605. >
  3606. <el-popover
  3607. placement="top"
  3608. width="318"
  3609. :disabled="AIloading[toolIndex][wIndex].loading"
  3610. trigger="hover"
  3611. >
  3612. <markScore
  3613. :loading="AIloading[toolIndex][wIndex].loading"
  3614. :markScoreVisible="markScoreVisible"
  3615. :ref="`markSco${toolIndex}${wIndex}`"
  3616. @updateLoading="updateLoading"
  3617. @updateDocSco="updateDocSco"
  3618. @refreshOther="refreshOther"
  3619. @markScoreDig="markScoreDig"
  3620. :tool="tool"
  3621. :wIndex="wIndex"
  3622. :scoCon="w"
  3623. :toolIndex="toolIndex"
  3624. :key="refreshKey"
  3625. :stage="courseType"
  3626. :task="taskCount"
  3627. :scoTit="
  3628. chapInfoList[courseType].chapterInfo[0]
  3629. .taskJson[taskCount].eList
  3630. "
  3631. >
  3632. </markScore>
  3633. <div
  3634. class="answerScore"
  3635. @click="
  3636. markScoreDig2(
  3637. w.sName,
  3638. worksStudent,
  3639. w.userid,
  3640. toolIndex,
  3641. chapInfoList[courseType].chapterInfo[0]
  3642. .taskJson[taskCount].eList,
  3643. AIloading[toolIndex][wIndex].loading,
  3644. tool
  3645. )
  3646. "
  3647. slot="reference"
  3648. :class="{
  3649. rightW:
  3650. w.userid == userid ||
  3651. tType == 1 ||
  3652. tType == 4 ||
  3653. w.ateacher == userid
  3654. }"
  3655. >
  3656. <span v-if="AIloading[toolIndex][wIndex].sco">
  3657. {{
  3658. AIloading[toolIndex][wIndex].loading
  3659. ? "评分中"
  3660. : AIloading[toolIndex][wIndex].sco + "分"
  3661. }}
  3662. </span>
  3663. <span v-else>
  3664. {{
  3665. AIloading[toolIndex][wIndex].loading
  3666. ? "评分中"
  3667. : "评分"
  3668. }}
  3669. </span>
  3670. </div>
  3671. </el-popover>
  3672. </div>
  3673. <img
  3674. class="deleteImg"
  3675. src="../../assets/deleteworks.png"
  3676. v-if="
  3677. w.userid == userid || tType == 1 || tType == 4
  3678. "
  3679. @click.stop="deleteWorks(w.wid)"
  3680. alt
  3681. />
  3682. </div>
  3683. <div class="workImg" v-if="w.type == 1">
  3684. <img :src="word" @click="openFile(w.works)" alt />
  3685. <!-- @click="openFile(w.works)" -->
  3686. <div
  3687. class="answerScore"
  3688. v-if="w.score"
  3689. @click.stop="openScore(w)"
  3690. :class="{
  3691. rightW:
  3692. w.userid == userid ||
  3693. tType == 1 ||
  3694. tType == 4 ||
  3695. w.ateacher == userid
  3696. }"
  3697. >
  3698. {{ JSON.parse(w.score).wScore }}分
  3699. </div>
  3700. <div
  3701. class="answerScore"
  3702. @click.stop="openScore(w)"
  3703. v-else-if="
  3704. courseDetail.userid == userid &&
  3705. courseDetail.state != 5 &&
  3706. chapInfoList[courseType].chapterInfo[0]
  3707. .taskJson[taskCount].eList &&
  3708. chapInfoList[courseType].chapterInfo[0]
  3709. .taskJson[taskCount].eList.length
  3710. "
  3711. :class="{
  3712. rightW:
  3713. w.userid == userid ||
  3714. tType == 1 ||
  3715. tType == 4 ||
  3716. w.ateacher == userid
  3717. }"
  3718. >
  3719. 评分
  3720. </div>
  3721. <!-- <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"> -->
  3722. <div
  3723. v-else-if="
  3724. (courseDetail.userid == userid ||
  3725. (courseDetail.course_teacher &&
  3726. courseDetail.course_teacher.indexOf(userid) !=
  3727. -1) ||
  3728. (w.userid == userid && sIsOpen)) &&
  3729. courseDetail.state == 5 &&
  3730. ((chapInfoList[courseType].chapterInfo[0]
  3731. .taskJson[taskCount].eList &&
  3732. chapInfoList[courseType].chapterInfo[0]
  3733. .taskJson[taskCount].eList.length) ||
  3734. (tool.eList && tool.eList.length))
  3735. "
  3736. >
  3737. <el-popover
  3738. placement="top"
  3739. width="318"
  3740. :disabled="AIloading[toolIndex][wIndex].loading"
  3741. trigger="hover"
  3742. >
  3743. <markScore
  3744. :loading="AIloading[toolIndex][wIndex].loading"
  3745. :markScoreVisible="markScoreVisible"
  3746. :ref="`markSco${toolIndex}${wIndex}`"
  3747. @updateLoading="updateLoading"
  3748. @updateDocSco="updateDocSco"
  3749. @refreshOther="refreshOther"
  3750. @markScoreDig="markScoreDig"
  3751. :tool="tool"
  3752. :wIndex="wIndex"
  3753. :scoCon="w"
  3754. :toolIndex="toolIndex"
  3755. :key="refreshKey"
  3756. :stage="courseType"
  3757. :task="taskCount"
  3758. :scoTit="
  3759. chapInfoList[courseType].chapterInfo[0]
  3760. .taskJson[taskCount].eList
  3761. "
  3762. >
  3763. </markScore>
  3764. <div
  3765. class="answerScore"
  3766. @click="
  3767. markScoreDig2(
  3768. w.sName,
  3769. worksStudent,
  3770. w.userid,
  3771. toolIndex,
  3772. chapInfoList[courseType].chapterInfo[0]
  3773. .taskJson[taskCount].eList,
  3774. AIloading[toolIndex][wIndex].loading,
  3775. tool
  3776. )
  3777. "
  3778. slot="reference"
  3779. :class="{
  3780. rightW:
  3781. w.userid == userid ||
  3782. tType == 1 ||
  3783. tType == 4 ||
  3784. w.ateacher == userid
  3785. }"
  3786. >
  3787. <span v-if="AIloading[toolIndex][wIndex].sco">
  3788. {{
  3789. AIloading[toolIndex][wIndex].loading
  3790. ? "评分中"
  3791. : AIloading[toolIndex][wIndex].sco + "分"
  3792. }}
  3793. </span>
  3794. <span v-else>
  3795. {{
  3796. AIloading[toolIndex][wIndex].loading
  3797. ? "评分中"
  3798. : "评分"
  3799. }}
  3800. </span>
  3801. </div>
  3802. </el-popover>
  3803. </div>
  3804. <img
  3805. class="deleteImg"
  3806. src="../../assets/deleteworks.png"
  3807. v-if="
  3808. w.userid == userid || tType == 1 || tType == 4
  3809. "
  3810. @click.stop="deleteWorks(w.wid)"
  3811. alt
  3812. />
  3813. </div>
  3814. <div class="workImg" v-if="w.type == 3">
  3815. <img
  3816. style="cursor: pointer"
  3817. :src="video"
  3818. @click="openVideo(w)"
  3819. alt
  3820. />
  3821. <!-- @click="openVideo(w.works)" -->
  3822. <div
  3823. class="answerScore"
  3824. v-if="w.score"
  3825. @click.stop="openScore(w)"
  3826. :class="{
  3827. rightW:
  3828. w.userid == userid ||
  3829. tType == 1 ||
  3830. tType == 4 ||
  3831. w.ateacher == userid
  3832. }"
  3833. >
  3834. {{ JSON.parse(w.score).wScore }}分
  3835. </div>
  3836. <div
  3837. class="answerScore"
  3838. @click.stop="openScore(w)"
  3839. v-else-if="
  3840. courseDetail.userid == userid &&
  3841. courseDetail.state != 5 &&
  3842. chapInfoList[courseType].chapterInfo[0]
  3843. .taskJson[taskCount].eList &&
  3844. chapInfoList[courseType].chapterInfo[0]
  3845. .taskJson[taskCount].eList.length
  3846. "
  3847. :class="{
  3848. rightW:
  3849. w.userid == userid ||
  3850. tType == 1 ||
  3851. tType == 4 ||
  3852. w.ateacher == userid
  3853. }"
  3854. >
  3855. 评分
  3856. </div>
  3857. <!-- <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"> -->
  3858. <div
  3859. v-else-if="
  3860. (courseDetail.userid == userid ||
  3861. (courseDetail.course_teacher &&
  3862. courseDetail.course_teacher.indexOf(userid) !=
  3863. -1) ||
  3864. (w.userid == userid && sIsOpen)) &&
  3865. courseDetail.state == 5 &&
  3866. ((chapInfoList[courseType].chapterInfo[0]
  3867. .taskJson[taskCount].eList &&
  3868. chapInfoList[courseType].chapterInfo[0]
  3869. .taskJson[taskCount].eList.length) ||
  3870. (tool.eList && tool.eList.length))
  3871. "
  3872. >
  3873. <el-popover
  3874. placement="top"
  3875. width="318"
  3876. :disabled="AIloading[toolIndex][wIndex].loading"
  3877. trigger="hover"
  3878. >
  3879. <markScore
  3880. :loading="AIloading[toolIndex][wIndex].loading"
  3881. :markScoreVisible="markScoreVisible"
  3882. :ref="`markSco${toolIndex}${wIndex}`"
  3883. @updateLoading="updateLoading"
  3884. @updateDocSco="updateDocSco"
  3885. @refreshOther="refreshOther"
  3886. @markScoreDig="markScoreDig"
  3887. :tool="tool"
  3888. :wIndex="wIndex"
  3889. :scoCon="w"
  3890. :toolIndex="toolIndex"
  3891. :key="refreshKey"
  3892. :stage="courseType"
  3893. :task="taskCount"
  3894. :scoTit="
  3895. chapInfoList[courseType].chapterInfo[0]
  3896. .taskJson[taskCount].eList
  3897. "
  3898. >
  3899. </markScore>
  3900. <div
  3901. class="answerScore"
  3902. @click="
  3903. markScoreDig2(
  3904. w.sName,
  3905. worksStudent,
  3906. w.userid,
  3907. toolIndex,
  3908. chapInfoList[courseType].chapterInfo[0]
  3909. .taskJson[taskCount].eList,
  3910. AIloading[toolIndex][wIndex].loading,
  3911. tool
  3912. )
  3913. "
  3914. slot="reference"
  3915. :class="{
  3916. rightW:
  3917. w.userid == userid ||
  3918. tType == 1 ||
  3919. tType == 4 ||
  3920. w.ateacher == userid
  3921. }"
  3922. >
  3923. <span v-if="AIloading[toolIndex][wIndex].sco">
  3924. {{
  3925. AIloading[toolIndex][wIndex].loading
  3926. ? "评分中"
  3927. : AIloading[toolIndex][wIndex].sco + "分"
  3928. }}
  3929. </span>
  3930. <span v-else>
  3931. {{
  3932. AIloading[toolIndex][wIndex].loading
  3933. ? "评分中"
  3934. : "评分"
  3935. }}
  3936. </span>
  3937. </div>
  3938. </el-popover>
  3939. </div>
  3940. <img
  3941. class="deleteImg"
  3942. src="../../assets/deleteworks.png"
  3943. v-if="
  3944. w.userid == userid || tType == 1 || tType == 4
  3945. "
  3946. @click.stop="deleteWorks(w.wid)"
  3947. alt
  3948. />
  3949. </div>
  3950. <div class="workImg" v-if="w.type == 12">
  3951. <img
  3952. style="cursor: pointer"
  3953. :src="word2"
  3954. @click="downloadFile(w.works)"
  3955. alt
  3956. />
  3957. <!-- @click="openVideo(w.works)" -->
  3958. <div
  3959. class="answerScore"
  3960. v-if="w.score"
  3961. @click.stop="openScore(w)"
  3962. :class="{
  3963. rightW:
  3964. w.userid == userid ||
  3965. tType == 1 ||
  3966. tType == 4 ||
  3967. w.ateacher == userid
  3968. }"
  3969. >
  3970. {{ JSON.parse(w.score).wScore }}分
  3971. </div>
  3972. <div
  3973. class="answerScore"
  3974. @click.stop="openScore(w)"
  3975. v-else-if="
  3976. courseDetail.userid == userid &&
  3977. courseDetail.state != 5 &&
  3978. chapInfoList[courseType].chapterInfo[0]
  3979. .taskJson[taskCount].eList &&
  3980. chapInfoList[courseType].chapterInfo[0]
  3981. .taskJson[taskCount].eList.length
  3982. "
  3983. :class="{
  3984. rightW:
  3985. w.userid == userid ||
  3986. tType == 1 ||
  3987. tType == 4 ||
  3988. w.ateacher == userid
  3989. }"
  3990. >
  3991. 评分
  3992. </div>
  3993. <!-- <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"> -->
  3994. <div
  3995. v-else-if="
  3996. (courseDetail.userid == userid ||
  3997. (courseDetail.course_teacher &&
  3998. courseDetail.course_teacher.indexOf(userid) !=
  3999. -1) ||
  4000. (w.userid == userid && sIsOpen)) &&
  4001. courseDetail.state == 5 &&
  4002. ((chapInfoList[courseType].chapterInfo[0]
  4003. .taskJson[taskCount].eList &&
  4004. chapInfoList[courseType].chapterInfo[0]
  4005. .taskJson[taskCount].eList.length) ||
  4006. (tool.eList && tool.eList.length))
  4007. "
  4008. >
  4009. <el-popover
  4010. placement="top"
  4011. width="318"
  4012. :disabled="AIloading[toolIndex][wIndex].loading"
  4013. trigger="hover"
  4014. >
  4015. <markScore
  4016. :loading="AIloading[toolIndex][wIndex].loading"
  4017. :markScoreVisible="markScoreVisible"
  4018. :ref="`markSco${toolIndex}${wIndex}`"
  4019. @updateLoading="updateLoading"
  4020. @updateDocSco="updateDocSco"
  4021. @refreshOther="refreshOther"
  4022. @markScoreDig="markScoreDig"
  4023. :tool="tool"
  4024. :wIndex="wIndex"
  4025. :scoCon="w"
  4026. :toolIndex="toolIndex"
  4027. :key="refreshKey"
  4028. :stage="courseType"
  4029. :task="taskCount"
  4030. :scoTit="
  4031. chapInfoList[courseType].chapterInfo[0]
  4032. .taskJson[taskCount].eList
  4033. "
  4034. >
  4035. </markScore>
  4036. <div
  4037. class="answerScore"
  4038. @click="
  4039. markScoreDig2(
  4040. w.sName,
  4041. worksStudent,
  4042. w.userid,
  4043. toolIndex,
  4044. chapInfoList[courseType].chapterInfo[0]
  4045. .taskJson[taskCount].eList,
  4046. AIloading[toolIndex][wIndex].loading,
  4047. tool
  4048. )
  4049. "
  4050. slot="reference"
  4051. :class="{
  4052. rightW:
  4053. w.userid == userid ||
  4054. tType == 1 ||
  4055. tType == 4 ||
  4056. w.ateacher == userid
  4057. }"
  4058. >
  4059. <span v-if="AIloading[toolIndex][wIndex].sco">
  4060. {{
  4061. AIloading[toolIndex][wIndex].loading
  4062. ? "评分中"
  4063. : AIloading[toolIndex][wIndex].sco + "分"
  4064. }}
  4065. </span>
  4066. <span v-else>
  4067. {{
  4068. AIloading[toolIndex][wIndex].loading
  4069. ? "评分中"
  4070. : "评分"
  4071. }}
  4072. </span>
  4073. </div>
  4074. </el-popover>
  4075. </div>
  4076. <img
  4077. class="deleteImg"
  4078. src="../../assets/deleteworks.png"
  4079. v-if="
  4080. w.userid == userid || tType == 1 || tType == 4
  4081. "
  4082. @click.stop="deleteWorks(w.wid)"
  4083. alt
  4084. />
  4085. </div>
  4086. <div class="comment" style="min-width: 200px">
  4087. <div class="worksName">
  4088. <div>{{ w.sName }}</div>
  4089. </div>
  4090. <div class="commentList">
  4091. <div class="commentList">
  4092. <div
  4093. class="commentImg"
  4094. @click="
  4095. isLikes(
  4096. w.wid,
  4097. userid,
  4098. 1,
  4099. null,
  4100. w.isLikes,
  4101. w.sName
  4102. )
  4103. "
  4104. >
  4105. <img
  4106. :src="w.isLikes == true ? likes : noLikes"
  4107. alt=""
  4108. />
  4109. </div>
  4110. <div>{{ w.likesCount }}</div>
  4111. </div>
  4112. <div class="commentList" style="margin-right: 15px">
  4113. <div
  4114. class="commentImg"
  4115. @click="commentOther(w, toolIndex, wIndex)"
  4116. >
  4117. <img
  4118. src="../../assets/icon/comment/comment.png"
  4119. alt=""
  4120. />
  4121. </div>
  4122. <div>{{ w.commentCount }}</div>
  4123. </div>
  4124. </div>
  4125. </div>
  4126. </div>
  4127. </div>
  4128. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4129. 未提交
  4130. </div>
  4131. <div
  4132. class="noWorksS"
  4133. v-if="noWorksS && noWorksS[toolIndex].length"
  4134. >
  4135. <div
  4136. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4137. :key="sIndex"
  4138. class="noWorksName"
  4139. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4140. >
  4141. <el-tooltip
  4142. effect="dark"
  4143. :content="s.student"
  4144. placement="top"
  4145. >
  4146. <span>{{ s.student }}</span>
  4147. </el-tooltip>
  4148. </div>
  4149. </div>
  4150. </div>
  4151. <div
  4152. v-if="
  4153. tType &&
  4154. ((tType == 2 && sIsOpen == true) ||
  4155. tType == 1 ||
  4156. tType == 4) &&
  4157. tool.tool.indexOf(70) != -1
  4158. "
  4159. class="worksBox"
  4160. >
  4161. <div
  4162. class="zuoyeYulan"
  4163. v-if="
  4164. worksStudent.length &&
  4165. worksStudent[toolIndex].length > 0
  4166. "
  4167. >
  4168. <div class="worksTop">
  4169. <div>作业预览</div>
  4170. <div
  4171. class="corOpen"
  4172. @click="contract(toolIndex)"
  4173. v-if="
  4174. isCloseList[toolIndex].isCloseBoolean &&
  4175. isCloseList[toolIndex].isClose == 0
  4176. "
  4177. >
  4178. 折叠
  4179. </div>
  4180. <div
  4181. class="corOpen"
  4182. @click="contract(toolIndex)"
  4183. v-if="isCloseList[toolIndex].isClose == 1"
  4184. >
  4185. 展开
  4186. </div>
  4187. </div>
  4188. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4189. </div>
  4190. <div
  4191. :id="'tool-' + toolIndex"
  4192. :style="{
  4193. height:
  4194. isCloseList[toolIndex].isClose == 1
  4195. ? retrnToolHeight('tool-' + toolIndex)
  4196. : 'auto',
  4197. overflow:
  4198. isCloseList[toolIndex].isClose == 1
  4199. ? 'hidden'
  4200. : 'unset'
  4201. }"
  4202. class="worksDetailBox"
  4203. v-if="
  4204. worksStudent.length &&
  4205. worksStudent[toolIndex].length > 0
  4206. "
  4207. >
  4208. <div
  4209. class="works"
  4210. style="
  4211. width: 200px;
  4212. height: 140px;
  4213. margin: 10px 10px 10px 0;
  4214. border-radius: 15px;
  4215. box-shadow: 0 0 6px 1px #dfdada;
  4216. "
  4217. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4218. :key="wIndex"
  4219. :class="w.type == 1 ? 'isTypeOne' : ''"
  4220. >
  4221. <div
  4222. class="workImg"
  4223. @click.stop="openScore(w, toolIndex)"
  4224. >
  4225. <img :src="word" alt />
  4226. <img
  4227. class="deleteImg"
  4228. src="../../assets/deleteworks.png"
  4229. v-if="
  4230. w.userid == userid || tType == 1 || tType == 4
  4231. "
  4232. @click.stop="deleteWorks(w.wid)"
  4233. alt
  4234. />
  4235. </div>
  4236. <div class="comment" style="min-width: 200px">
  4237. <div class="worksName">
  4238. <div>{{ w.sName }}</div>
  4239. </div>
  4240. </div>
  4241. </div>
  4242. </div>
  4243. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4244. 未提交
  4245. </div>
  4246. <div
  4247. class="noWorksS"
  4248. v-if="noWorksS && noWorksS[toolIndex].length"
  4249. >
  4250. <div
  4251. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4252. :key="sIndex"
  4253. class="noWorksName"
  4254. >
  4255. <el-tooltip
  4256. effect="dark"
  4257. :content="s.student"
  4258. placement="top"
  4259. >
  4260. <span>{{ s.student }}</span>
  4261. </el-tooltip>
  4262. </div>
  4263. </div>
  4264. </div>
  4265. <div
  4266. v-if="
  4267. tType &&
  4268. tType == 2 &&
  4269. !sIsOpen &&
  4270. tool.tool.indexOf(70) != -1
  4271. "
  4272. class="worksBox"
  4273. >
  4274. <div
  4275. class="zuoyeYulan"
  4276. v-if="workStudent[toolIndex].length > 0"
  4277. >
  4278. <span class="worksTitle">作业预览</span>
  4279. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4280. </div>
  4281. <div
  4282. class="worksDetailBox"
  4283. v-if="workStudent[toolIndex].length > 0"
  4284. >
  4285. <div
  4286. class="works"
  4287. style="
  4288. width: 200px;
  4289. height: 140px;
  4290. margin: 10px 10px 10px 0;
  4291. box-shadow: 0 0 6px 1px #dfdada;
  4292. "
  4293. v-for="(w, wIndex) in workStudent[toolIndex]"
  4294. :key="wIndex"
  4295. >
  4296. <div
  4297. class="workImg"
  4298. @click.stop="openScore(w, toolIndex)"
  4299. >
  4300. <img :src="word" alt />
  4301. <img
  4302. class="deleteImg"
  4303. src="../../assets/deleteworks.png"
  4304. v-if="
  4305. w.userid == userid || tType == 1 || tType == 4
  4306. "
  4307. @click.stop="deleteWorks(w.wid)"
  4308. alt
  4309. />
  4310. </div>
  4311. <div class="worksName">
  4312. <div>{{ w.sName }}</div>
  4313. </div>
  4314. </div>
  4315. </div>
  4316. </div>
  4317. <div
  4318. v-if="
  4319. tType &&
  4320. ((tType == 2 && sIsOpen == true) ||
  4321. tType == 1 ||
  4322. tType == 4) &&
  4323. tool.tool.indexOf(32) != -1
  4324. "
  4325. class="worksBox"
  4326. >
  4327. <div
  4328. class="zuoyeYulan"
  4329. v-if="
  4330. worksStudent.length &&
  4331. worksStudent[toolIndex].length > 0
  4332. "
  4333. >
  4334. <div class="worksTop">
  4335. <div>作业预览</div>
  4336. <div
  4337. class="corOpen"
  4338. @click="contract(toolIndex)"
  4339. v-if="
  4340. isCloseList[toolIndex].isCloseBoolean &&
  4341. isCloseList[toolIndex].isClose == 0
  4342. "
  4343. >
  4344. 折叠
  4345. </div>
  4346. <div
  4347. class="corOpen"
  4348. @click="contract(toolIndex)"
  4349. v-if="isCloseList[toolIndex].isClose == 1"
  4350. >
  4351. 展开
  4352. </div>
  4353. </div>
  4354. </div>
  4355. <div
  4356. :id="'tool-' + toolIndex"
  4357. :style="{
  4358. height:
  4359. isCloseList[toolIndex].isClose == 1
  4360. ? retrnToolHeight('tool-' + toolIndex)
  4361. : 'auto',
  4362. overflow:
  4363. isCloseList[toolIndex].isClose == 1
  4364. ? 'hidden'
  4365. : 'unset'
  4366. }"
  4367. class="worksDetailBox"
  4368. v-if="
  4369. worksStudent.length &&
  4370. worksStudent[toolIndex].length > 0
  4371. "
  4372. >
  4373. <div
  4374. class="works"
  4375. style="
  4376. width: 200px;
  4377. height: 140px;
  4378. margin: 10px 10px 10px 0;
  4379. border-radius: 15px;
  4380. box-shadow: 0 0 6px 1px #dfdada;
  4381. "
  4382. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4383. :key="wIndex"
  4384. :class="w.type == 1 ? 'isTypeOne' : ''"
  4385. >
  4386. <div class="workImg">
  4387. <img
  4388. :src="word2"
  4389. @click="downloadFile(w.works)"
  4390. alt
  4391. />
  4392. <div
  4393. class="answerScore"
  4394. v-if="w.score"
  4395. @click.stop="openScore(w)"
  4396. :class="{
  4397. rightW:
  4398. w.userid == userid ||
  4399. tType == 1 ||
  4400. tType == 4 ||
  4401. w.ateacher == userid
  4402. }"
  4403. >
  4404. {{ JSON.parse(w.score).wScore }}分
  4405. </div>
  4406. <div
  4407. class="answerScore"
  4408. @click.stop="openScore(w)"
  4409. v-else-if="courseDetail.userid == userid"
  4410. :class="{
  4411. rightW:
  4412. w.userid == userid ||
  4413. tType == 1 ||
  4414. tType == 4 ||
  4415. w.ateacher == userid
  4416. }"
  4417. >
  4418. 评分
  4419. </div>
  4420. <img
  4421. class="deleteImg"
  4422. src="../../assets/deleteworks.png"
  4423. v-if="
  4424. w.userid == userid || tType == 1 || tType == 4
  4425. "
  4426. @click.stop="deleteWorks(w.wid)"
  4427. alt
  4428. />
  4429. </div>
  4430. <div class="comment" style="min-width: 200px">
  4431. <div class="worksName">
  4432. <div>{{ w.sName }}</div>
  4433. </div>
  4434. <div class="commentList">
  4435. <div class="commentList">
  4436. <div
  4437. class="commentImg"
  4438. @click="
  4439. isLikes(
  4440. w.wid,
  4441. userid,
  4442. 1,
  4443. null,
  4444. w.isLikes,
  4445. w.sName
  4446. )
  4447. "
  4448. >
  4449. <img
  4450. :src="w.isLikes == true ? likes : noLikes"
  4451. alt=""
  4452. />
  4453. </div>
  4454. <div>{{ w.likesCount }}</div>
  4455. </div>
  4456. <div class="commentList" style="margin-right: 15px">
  4457. <div
  4458. class="commentImg"
  4459. @click="commentOther(w, toolIndex, wIndex)"
  4460. >
  4461. <img
  4462. src="../../assets/icon/comment/comment.png"
  4463. alt=""
  4464. />
  4465. </div>
  4466. <div>{{ w.commentCount }}</div>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. </div>
  4471. </div>
  4472. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4473. 未提交
  4474. </div>
  4475. <div
  4476. class="noWorksS"
  4477. v-if="noWorksS && noWorksS[toolIndex].length"
  4478. >
  4479. <div
  4480. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4481. :key="sIndex"
  4482. class="noWorksName"
  4483. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4484. >
  4485. <el-tooltip
  4486. effect="dark"
  4487. :content="s.student"
  4488. placement="top"
  4489. >
  4490. <span>{{ s.student }}</span>
  4491. </el-tooltip>
  4492. </div>
  4493. </div>
  4494. </div>
  4495. <div
  4496. v-if="
  4497. tType &&
  4498. ((tType == 2 && sIsOpen == true) ||
  4499. tType == 1 ||
  4500. tType == 4) &&
  4501. tool.tool.indexOf(57) != -1
  4502. "
  4503. class="worksBox"
  4504. >
  4505. <div
  4506. class="zuoyeYulan"
  4507. v-if="
  4508. worksStudent.length &&
  4509. worksStudent[toolIndex].length > 0
  4510. "
  4511. >
  4512. <div class="worksTop">
  4513. <div>作业预览</div>
  4514. <div
  4515. class="corOpen"
  4516. @click="contract(toolIndex)"
  4517. v-if="
  4518. isCloseList[toolIndex].isCloseBoolean &&
  4519. isCloseList[toolIndex].isClose == 0
  4520. "
  4521. >
  4522. 折叠
  4523. </div>
  4524. <div
  4525. class="corOpen"
  4526. @click="contract(toolIndex)"
  4527. v-if="isCloseList[toolIndex].isClose == 1"
  4528. >
  4529. 展开
  4530. </div>
  4531. </div>
  4532. </div>
  4533. <div
  4534. :id="'tool-' + toolIndex"
  4535. :style="{
  4536. height:
  4537. isCloseList[toolIndex].isClose == 1
  4538. ? retrnToolHeight('tool-' + toolIndex)
  4539. : 'auto',
  4540. overflow:
  4541. isCloseList[toolIndex].isClose == 1
  4542. ? 'hidden'
  4543. : 'unset'
  4544. }"
  4545. class="worksDetailBox"
  4546. v-if="
  4547. worksStudent.length &&
  4548. worksStudent[toolIndex].length > 0
  4549. "
  4550. >
  4551. <div
  4552. class="works"
  4553. style="
  4554. width: 200px;
  4555. height: 140px;
  4556. margin: 10px 10px 10px 0;
  4557. border-radius: 15px;
  4558. box-shadow: 0 0 6px 1px #dfdada;
  4559. "
  4560. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4561. :key="wIndex"
  4562. :class="w.type == 1 ? 'isTypeOne' : ''"
  4563. >
  4564. <div class="workImg">
  4565. <img
  4566. :src="word2"
  4567. @click="downloadFile(w.works)"
  4568. v-if="w.type == 12"
  4569. alt
  4570. />
  4571. <img
  4572. :src="word2"
  4573. @click="
  4574. openCocoPi(57, toolIndex, w.userid, w.sName)
  4575. "
  4576. v-else-if="w.type == 15"
  4577. alt
  4578. />
  4579. <div
  4580. class="answerScore"
  4581. v-if="w.score"
  4582. @click.stop="openScore(w)"
  4583. :class="{
  4584. rightW:
  4585. w.userid == userid ||
  4586. tType == 1 ||
  4587. tType == 4 ||
  4588. w.ateacher == userid
  4589. }"
  4590. >
  4591. {{ JSON.parse(w.score).wScore }}分
  4592. </div>
  4593. <div
  4594. class="answerScore"
  4595. @click.stop="openScore(w)"
  4596. v-else-if="
  4597. courseDetail.userid == userid &&
  4598. courseDetail.state != 5 &&
  4599. chapInfoList[courseType].chapterInfo[0]
  4600. .taskJson[taskCount].eList &&
  4601. chapInfoList[courseType].chapterInfo[0]
  4602. .taskJson[taskCount].eList.length
  4603. "
  4604. :class="{
  4605. rightW:
  4606. w.userid == userid ||
  4607. tType == 1 ||
  4608. tType == 4 ||
  4609. w.ateacher == userid
  4610. }"
  4611. >
  4612. 评分
  4613. </div>
  4614. <!-- <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"> -->
  4615. <div
  4616. v-else-if="
  4617. (courseDetail.userid == userid ||
  4618. (courseDetail.course_teacher &&
  4619. courseDetail.course_teacher.indexOf(userid) !=
  4620. -1) ||
  4621. (w.userid == userid && sIsOpen)) &&
  4622. courseDetail.state == 5 &&
  4623. ((chapInfoList[courseType].chapterInfo[0]
  4624. .taskJson[taskCount].eList &&
  4625. chapInfoList[courseType].chapterInfo[0]
  4626. .taskJson[taskCount].eList.length) ||
  4627. (tool.eList && tool.eList.length))
  4628. "
  4629. >
  4630. <el-popover
  4631. placement="top"
  4632. width="318"
  4633. :disabled="AIloading[toolIndex][wIndex].loading"
  4634. trigger="hover"
  4635. >
  4636. <markScore
  4637. :loading="AIloading[toolIndex][wIndex].loading"
  4638. :markScoreVisible="markScoreVisible"
  4639. :ref="`markSco${toolIndex}${wIndex}`"
  4640. @updateLoading="updateLoading"
  4641. @updateDocSco="updateDocSco"
  4642. @refreshOther="refreshOther"
  4643. @markScoreDig="markScoreDig"
  4644. :tool="tool"
  4645. :wIndex="wIndex"
  4646. :scoCon="w"
  4647. :toolIndex="toolIndex"
  4648. :key="refreshKey"
  4649. :stage="courseType"
  4650. :task="taskCount"
  4651. :scoTit="
  4652. chapInfoList[courseType].chapterInfo[0]
  4653. .taskJson[taskCount].eList
  4654. "
  4655. >
  4656. </markScore>
  4657. <div
  4658. class="answerScore"
  4659. @click="
  4660. markScoreDig2(
  4661. w.sName,
  4662. worksStudent,
  4663. w.userid,
  4664. toolIndex,
  4665. chapInfoList[courseType].chapterInfo[0]
  4666. .taskJson[taskCount].eList,
  4667. AIloading[toolIndex][wIndex].loading,
  4668. tool
  4669. )
  4670. "
  4671. slot="reference"
  4672. :class="{
  4673. rightW:
  4674. w.userid == userid ||
  4675. tType == 1 ||
  4676. tType == 4 ||
  4677. w.ateacher == userid
  4678. }"
  4679. >
  4680. <span v-if="AIloading[toolIndex][wIndex].sco">
  4681. {{
  4682. AIloading[toolIndex][wIndex].loading
  4683. ? "评分中"
  4684. : AIloading[toolIndex][wIndex].sco + "分"
  4685. }}
  4686. </span>
  4687. <span v-else>
  4688. {{
  4689. AIloading[toolIndex][wIndex].loading
  4690. ? "评分中"
  4691. : "评分"
  4692. }}
  4693. </span>
  4694. </div>
  4695. </el-popover>
  4696. </div>
  4697. <img
  4698. class="deleteImg"
  4699. src="../../assets/deleteworks.png"
  4700. v-if="
  4701. w.userid == userid || tType == 1 || tType == 4
  4702. "
  4703. @click.stop="deleteWorks(w.wid)"
  4704. alt
  4705. />
  4706. </div>
  4707. <div class="comment" style="min-width: 200px">
  4708. <div class="worksName">
  4709. <div>{{ w.sName }}</div>
  4710. </div>
  4711. <div class="commentList">
  4712. <div class="commentList">
  4713. <div
  4714. class="commentImg"
  4715. @click="
  4716. isLikes(
  4717. w.wid,
  4718. userid,
  4719. 1,
  4720. null,
  4721. w.isLikes,
  4722. w.sName
  4723. )
  4724. "
  4725. >
  4726. <img
  4727. :src="w.isLikes == true ? likes : noLikes"
  4728. alt=""
  4729. />
  4730. </div>
  4731. <div>{{ w.likesCount }}</div>
  4732. </div>
  4733. <div class="commentList" style="margin-right: 15px">
  4734. <div
  4735. class="commentImg"
  4736. @click="commentOther(w, toolIndex, wIndex)"
  4737. >
  4738. <img
  4739. src="../../assets/icon/comment/comment.png"
  4740. alt=""
  4741. />
  4742. </div>
  4743. <div>{{ w.commentCount }}</div>
  4744. </div>
  4745. </div>
  4746. </div>
  4747. </div>
  4748. </div>
  4749. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4750. 未提交
  4751. </div>
  4752. <div
  4753. class="noWorksS"
  4754. v-if="noWorksS && noWorksS[toolIndex].length"
  4755. >
  4756. <div
  4757. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4758. :key="sIndex"
  4759. class="noWorksName"
  4760. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4761. >
  4762. <el-tooltip
  4763. effect="dark"
  4764. :content="s.student"
  4765. placement="top"
  4766. >
  4767. <span>{{ s.student }}</span>
  4768. </el-tooltip>
  4769. </div>
  4770. </div>
  4771. </div>
  4772. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4773. <div
  4774. style="display: flex;justify-content: space-between;align-items: center;"
  4775. >
  4776. <div
  4777. class="zuoyeYulan"
  4778. v-if="
  4779. worksStudent.length &&
  4780. worksStudent[toolIndex].length > 0
  4781. "
  4782. >
  4783. <span class="worksTitle">作业预览</span>
  4784. <div
  4785. class="corOpen"
  4786. @click="contract(toolIndex)"
  4787. v-if="
  4788. isCloseList[toolIndex].isCloseBoolean &&
  4789. isCloseList[toolIndex].isClose == 0
  4790. "
  4791. >
  4792. 折叠
  4793. </div>
  4794. <div
  4795. class="corOpen"
  4796. @click="contract(toolIndex)"
  4797. v-if="isCloseList[toolIndex].isClose == 1"
  4798. >
  4799. 展开
  4800. </div>
  4801. </div>
  4802. <div
  4803. style="display: flex;"
  4804. v-if="
  4805. (courseDetail.userid == userid ||
  4806. (courseDetail.course_teacher &&
  4807. courseDetail.course_teacher.indexOf(userid) !=
  4808. -1)) &&
  4809. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4810. taskCount
  4811. ].eList &&
  4812. chapInfoList[courseType].chapterInfo[0].taskJson[
  4813. taskCount
  4814. ].eList.length) ||
  4815. (tool.eList && tool.eList.length)) &&
  4816. courseDetail.state == 5
  4817. "
  4818. >
  4819. <!-- <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 "> -->
  4820. <div
  4821. style="margin-right:10px"
  4822. class="ScoreBtn"
  4823. @click="
  4824. resetLoopEva(
  4825. worksStudent[toolIndex],
  4826. chapInfoList[courseType].chapterInfo[0].taskJson[
  4827. taskCount
  4828. ].eList,
  4829. courseType,
  4830. taskCount,
  4831. toolIndex,
  4832. tool.toolDetail,
  4833. worksStudent
  4834. )
  4835. "
  4836. >
  4837. 一键重置
  4838. </div>
  4839. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4840. <img
  4841. src="../../assets/icon/newIcons/rootImg.png"
  4842. alt=""
  4843. />
  4844. AI评分
  4845. </div>
  4846. <div
  4847. class="ScoreBtn"
  4848. v-else-if="!loopLoading[toolIndex].loading"
  4849. @click="
  4850. loopEva(
  4851. worksStudent[toolIndex],
  4852. chapInfoList[courseType].chapterInfo[0].taskJson[
  4853. taskCount
  4854. ].eList,
  4855. courseType,
  4856. taskCount,
  4857. toolIndex,
  4858. tool.toolDetail,
  4859. chapInfoList[courseType].chapterInfo[0].taskJson[
  4860. taskCount
  4861. ].taskDetail,
  4862. tool
  4863. )
  4864. "
  4865. >
  4866. <img
  4867. src="../../assets/icon/newIcons/rootImg.png"
  4868. alt=""
  4869. />
  4870. AI评分
  4871. </div>
  4872. <div class="ScoreBtn" v-else>
  4873. <img
  4874. src="../../assets/icon/newIcons/rootImg.png"
  4875. alt=""
  4876. />
  4877. 正在评分
  4878. </div>
  4879. </div>
  4880. </div>
  4881. <div
  4882. :id="'tool-' + toolIndex"
  4883. :style="{
  4884. height:
  4885. isCloseList[toolIndex].isClose == 1
  4886. ? retrnToolHeight('tool-' + toolIndex)
  4887. : 'auto',
  4888. overflow:
  4889. isCloseList[toolIndex].isClose == 1
  4890. ? 'hidden'
  4891. : 'unset'
  4892. }"
  4893. class="worksDetailBox"
  4894. v-if="
  4895. worksStudent.length &&
  4896. worksStudent[toolIndex].length > 0
  4897. "
  4898. >
  4899. <div
  4900. class="works"
  4901. style="
  4902. width: 200px;
  4903. height: 140px;
  4904. margin: 10px 10px 10px 0;
  4905. border-radius: 15px;
  4906. box-shadow: 0 0 6px 1px #dfdada;
  4907. "
  4908. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4909. :key="wIndex"
  4910. :class="w.type == 1 ? 'isTypeOne' : ''"
  4911. >
  4912. <div class="workImg" v-if="w.type == 0">
  4913. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4914. <img
  4915. :src="w.works"
  4916. @click="previewImg(w.works, w)"
  4917. alt
  4918. />
  4919. <div
  4920. class="answerScore"
  4921. v-if="w.score"
  4922. @click.stop="openScore(w)"
  4923. :class="{
  4924. rightW:
  4925. w.userid == userid ||
  4926. tType == 1 ||
  4927. tType == 4 ||
  4928. w.ateacher == userid
  4929. }"
  4930. >
  4931. {{ JSON.parse(w.score).wScore }}分
  4932. </div>
  4933. <div
  4934. class="answerScore"
  4935. @click.stop="openScore(w)"
  4936. v-else-if="
  4937. courseDetail.userid == userid &&
  4938. courseDetail.state != 5 &&
  4939. chapInfoList[courseType].chapterInfo[0]
  4940. .taskJson[taskCount].eList &&
  4941. chapInfoList[courseType].chapterInfo[0]
  4942. .taskJson[taskCount].eList.length
  4943. "
  4944. :class="{
  4945. rightW:
  4946. w.userid == userid ||
  4947. tType == 1 ||
  4948. tType == 4 ||
  4949. w.ateacher == userid
  4950. }"
  4951. >
  4952. 评分
  4953. </div>
  4954. <!-- <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"> -->
  4955. <div
  4956. v-else-if="
  4957. (courseDetail.userid == userid ||
  4958. (courseDetail.course_teacher &&
  4959. courseDetail.course_teacher.indexOf(userid) !=
  4960. -1) ||
  4961. (w.userid == userid && sIsOpen)) &&
  4962. courseDetail.state == 5 &&
  4963. ((chapInfoList[courseType].chapterInfo[0]
  4964. .taskJson[taskCount].eList &&
  4965. chapInfoList[courseType].chapterInfo[0]
  4966. .taskJson[taskCount].eList.length) ||
  4967. (tool.eList && tool.eList.length))
  4968. "
  4969. >
  4970. <el-popover
  4971. placement="top"
  4972. width="318"
  4973. :disabled="AIloading[toolIndex][wIndex].loading"
  4974. trigger="hover"
  4975. >
  4976. <markScore
  4977. :loading="AIloading[toolIndex][wIndex].loading"
  4978. :markScoreVisible="markScoreVisible"
  4979. :ref="`markSco${toolIndex}${wIndex}`"
  4980. @updateLoading="updateLoading"
  4981. @updateDocSco="updateDocSco"
  4982. @refreshOther="refreshOther"
  4983. @markScoreDig="markScoreDig"
  4984. :tool="tool"
  4985. :wIndex="wIndex"
  4986. :scoCon="w"
  4987. :toolIndex="toolIndex"
  4988. :key="refreshKey"
  4989. :stage="courseType"
  4990. :task="taskCount"
  4991. :scoTit="
  4992. chapInfoList[courseType].chapterInfo[0]
  4993. .taskJson[taskCount].eList
  4994. "
  4995. >
  4996. </markScore>
  4997. <div
  4998. class="answerScore"
  4999. @click="
  5000. markScoreDig2(
  5001. w.sName,
  5002. worksStudent,
  5003. w.userid,
  5004. toolIndex,
  5005. chapInfoList[courseType].chapterInfo[0]
  5006. .taskJson[taskCount].eList,
  5007. AIloading[toolIndex][wIndex].loading,
  5008. tool
  5009. )
  5010. "
  5011. slot="reference"
  5012. :class="{
  5013. rightW:
  5014. w.userid == userid ||
  5015. tType == 1 ||
  5016. tType == 4 ||
  5017. w.ateacher == userid
  5018. }"
  5019. >
  5020. <span v-if="AIloading[toolIndex][wIndex].sco">
  5021. {{
  5022. AIloading[toolIndex][wIndex].loading
  5023. ? "评分中"
  5024. : AIloading[toolIndex][wIndex].sco + "分"
  5025. }}
  5026. </span>
  5027. <span v-else>
  5028. {{
  5029. AIloading[toolIndex][wIndex].loading
  5030. ? "评分中"
  5031. : "评分"
  5032. }}
  5033. </span>
  5034. </div>
  5035. </el-popover>
  5036. </div>
  5037. <img
  5038. class="deleteImg"
  5039. src="../../assets/deleteworks.png"
  5040. v-if="
  5041. w.userid == userid || tType == 1 || tType == 4
  5042. "
  5043. @click.stop="deleteWorks(w.wid)"
  5044. alt
  5045. />
  5046. </div>
  5047. <div
  5048. class="workImg"
  5049. style="cursor: pointer"
  5050. v-if="w.type == 1"
  5051. >
  5052. <img :src="word" @click="openFile(w.works)" alt />
  5053. <!-- @click="openFile(w.works)" -->
  5054. <div
  5055. class="answerScore"
  5056. v-if="w.score"
  5057. @click.stop="openScore(w)"
  5058. :class="{
  5059. rightW:
  5060. w.userid == userid ||
  5061. tType == 1 ||
  5062. tType == 4 ||
  5063. w.ateacher == userid
  5064. }"
  5065. >
  5066. {{ JSON.parse(w.score).wScore }}分
  5067. </div>
  5068. <div
  5069. class="answerScore"
  5070. @click.stop="openScore(w)"
  5071. v-else-if="
  5072. courseDetail.userid == userid &&
  5073. courseDetail.state != 5 &&
  5074. chapInfoList[courseType].chapterInfo[0]
  5075. .taskJson[taskCount].eList &&
  5076. chapInfoList[courseType].chapterInfo[0]
  5077. .taskJson[taskCount].eList.length
  5078. "
  5079. :class="{
  5080. rightW:
  5081. w.userid == userid ||
  5082. tType == 1 ||
  5083. tType == 4 ||
  5084. w.ateacher == userid
  5085. }"
  5086. >
  5087. 评分
  5088. </div>
  5089. <!-- <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"> -->
  5090. <div
  5091. v-else-if="
  5092. (courseDetail.userid == userid ||
  5093. (courseDetail.course_teacher &&
  5094. courseDetail.course_teacher.indexOf(userid) !=
  5095. -1) ||
  5096. (w.userid == userid && sIsOpen)) &&
  5097. courseDetail.state == 5 &&
  5098. ((chapInfoList[courseType].chapterInfo[0]
  5099. .taskJson[taskCount].eList &&
  5100. chapInfoList[courseType].chapterInfo[0]
  5101. .taskJson[taskCount].eList.length) ||
  5102. (tool.eList && tool.eList.length))
  5103. "
  5104. >
  5105. <el-popover
  5106. placement="top"
  5107. width="318"
  5108. :disabled="AIloading[toolIndex][wIndex].loading"
  5109. trigger="hover"
  5110. >
  5111. <markScore
  5112. :loading="AIloading[toolIndex][wIndex].loading"
  5113. :markScoreVisible="markScoreVisible"
  5114. :ref="`markSco${toolIndex}${wIndex}`"
  5115. @updateLoading="updateLoading"
  5116. @updateDocSco="updateDocSco"
  5117. @refreshOther="refreshOther"
  5118. @markScoreDig="markScoreDig"
  5119. :tool="tool"
  5120. :wIndex="wIndex"
  5121. :scoCon="w"
  5122. :toolIndex="toolIndex"
  5123. :key="refreshKey"
  5124. :stage="courseType"
  5125. :task="taskCount"
  5126. :scoTit="
  5127. chapInfoList[courseType].chapterInfo[0]
  5128. .taskJson[taskCount].eList
  5129. "
  5130. >
  5131. </markScore>
  5132. <div
  5133. class="answerScore"
  5134. @click="
  5135. markScoreDig2(
  5136. w.sName,
  5137. worksStudent,
  5138. w.userid,
  5139. toolIndex,
  5140. chapInfoList[courseType].chapterInfo[0]
  5141. .taskJson[taskCount].eList,
  5142. AIloading[toolIndex][wIndex].loading,
  5143. tool
  5144. )
  5145. "
  5146. slot="reference"
  5147. :class="{
  5148. rightW:
  5149. w.userid == userid ||
  5150. tType == 1 ||
  5151. tType == 4 ||
  5152. w.ateacher == userid
  5153. }"
  5154. >
  5155. <span v-if="AIloading[toolIndex][wIndex].sco">
  5156. {{
  5157. AIloading[toolIndex][wIndex].loading
  5158. ? "评分中"
  5159. : AIloading[toolIndex][wIndex].sco + "分"
  5160. }}
  5161. </span>
  5162. <span v-else>
  5163. {{
  5164. AIloading[toolIndex][wIndex].loading
  5165. ? "评分中"
  5166. : "评分"
  5167. }}
  5168. </span>
  5169. </div>
  5170. </el-popover>
  5171. </div>
  5172. <img
  5173. class="deleteImg"
  5174. src="../../assets/deleteworks.png"
  5175. v-if="
  5176. w.userid == userid || tType == 1 || tType == 4
  5177. "
  5178. @click.stop="deleteWorks(w.wid)"
  5179. alt
  5180. />
  5181. </div>
  5182. <div class="workImg" v-if="w.type == 3">
  5183. <img
  5184. style="cursor: pointer"
  5185. :src="video"
  5186. @click="openVideo(w)"
  5187. alt
  5188. />
  5189. <!-- @click="openVideo(w.works)" -->
  5190. <div
  5191. class="answerScore"
  5192. v-if="w.score"
  5193. @click.stop="openScore(w)"
  5194. :class="{
  5195. rightW:
  5196. w.userid == userid ||
  5197. tType == 1 ||
  5198. tType == 4 ||
  5199. w.ateacher == userid
  5200. }"
  5201. >
  5202. {{ JSON.parse(w.score).wScore }}分
  5203. </div>
  5204. <div
  5205. class="answerScore"
  5206. @click.stop="openScore(w)"
  5207. v-else-if="
  5208. courseDetail.userid == userid &&
  5209. courseDetail.state != 5 &&
  5210. chapInfoList[courseType].chapterInfo[0]
  5211. .taskJson[taskCount].eList &&
  5212. chapInfoList[courseType].chapterInfo[0]
  5213. .taskJson[taskCount].eList.length
  5214. "
  5215. :class="{
  5216. rightW:
  5217. w.userid == userid ||
  5218. tType == 1 ||
  5219. tType == 4 ||
  5220. w.ateacher == userid
  5221. }"
  5222. >
  5223. 评分
  5224. </div>
  5225. <!-- <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"> -->
  5226. <div
  5227. v-else-if="
  5228. (courseDetail.userid == userid ||
  5229. (courseDetail.course_teacher &&
  5230. courseDetail.course_teacher.indexOf(userid) !=
  5231. -1) ||
  5232. (w.userid == userid && sIsOpen)) &&
  5233. courseDetail.state == 5 &&
  5234. ((chapInfoList[courseType].chapterInfo[0]
  5235. .taskJson[taskCount].eList &&
  5236. chapInfoList[courseType].chapterInfo[0]
  5237. .taskJson[taskCount].eList.length) ||
  5238. (tool.eList && tool.eList.length))
  5239. "
  5240. >
  5241. <el-popover
  5242. placement="top"
  5243. width="318"
  5244. :disabled="AIloading[toolIndex][wIndex].loading"
  5245. trigger="hover"
  5246. >
  5247. <markScore
  5248. :loading="AIloading[toolIndex][wIndex].loading"
  5249. :markScoreVisible="markScoreVisible"
  5250. :ref="`markSco${toolIndex}${wIndex}`"
  5251. @updateLoading="updateLoading"
  5252. @updateDocSco="updateDocSco"
  5253. @refreshOther="refreshOther"
  5254. @markScoreDig="markScoreDig"
  5255. :tool="tool"
  5256. :wIndex="wIndex"
  5257. :scoCon="w"
  5258. :toolIndex="toolIndex"
  5259. :key="refreshKey"
  5260. :stage="courseType"
  5261. :task="taskCount"
  5262. :scoTit="
  5263. chapInfoList[courseType].chapterInfo[0]
  5264. .taskJson[taskCount].eList
  5265. "
  5266. >
  5267. </markScore>
  5268. <div
  5269. class="answerScore"
  5270. @click="
  5271. markScoreDig2(
  5272. w.sName,
  5273. worksStudent,
  5274. w.userid,
  5275. toolIndex,
  5276. chapInfoList[courseType].chapterInfo[0]
  5277. .taskJson[taskCount].eList,
  5278. AIloading[toolIndex][wIndex].loading,
  5279. tool
  5280. )
  5281. "
  5282. slot="reference"
  5283. :class="{
  5284. rightW:
  5285. w.userid == userid ||
  5286. tType == 1 ||
  5287. tType == 4 ||
  5288. w.ateacher == userid
  5289. }"
  5290. >
  5291. <span v-if="AIloading[toolIndex][wIndex].sco">
  5292. {{
  5293. AIloading[toolIndex][wIndex].loading
  5294. ? "评分中"
  5295. : AIloading[toolIndex][wIndex].sco + "分"
  5296. }}
  5297. </span>
  5298. <span v-else>
  5299. {{
  5300. AIloading[toolIndex][wIndex].loading
  5301. ? "评分中"
  5302. : "评分"
  5303. }}
  5304. </span>
  5305. </div>
  5306. </el-popover>
  5307. </div>
  5308. <img
  5309. class="deleteImg"
  5310. src="../../assets/deleteworks.png"
  5311. v-if="
  5312. w.userid == userid || tType == 1 || tType == 4
  5313. "
  5314. @click.stop="deleteWorks(w.wid)"
  5315. alt
  5316. />
  5317. </div>
  5318. <div class="comment" style="min-width: 200px">
  5319. <div class="worksName">
  5320. <div
  5321. style="cursor: pointer"
  5322. @click="
  5323. openSname(w.sName, w.wid, toolIndex, w.userid)
  5324. "
  5325. >
  5326. {{ w.sName }}
  5327. </div>
  5328. </div>
  5329. <div class="commentList">
  5330. <div class="commentList">
  5331. <div
  5332. class="commentImg"
  5333. @click="
  5334. isLikes(
  5335. w.wid,
  5336. userid,
  5337. 1,
  5338. null,
  5339. w.isLikes,
  5340. w.sName
  5341. )
  5342. "
  5343. >
  5344. <img
  5345. :src="w.isLikes == true ? likes : noLikes"
  5346. alt=""
  5347. />
  5348. </div>
  5349. <div>{{ w.likesCount }}</div>
  5350. </div>
  5351. <div class="commentList" style="margin-right: 15px">
  5352. <div
  5353. class="commentImg"
  5354. @click="commentOther(w, toolIndex, wIndex)"
  5355. >
  5356. <img
  5357. src="../../assets/icon/comment/comment.png"
  5358. alt=""
  5359. />
  5360. </div>
  5361. <div>{{ w.commentCount }}</div>
  5362. </div>
  5363. </div>
  5364. </div>
  5365. </div>
  5366. </div>
  5367. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5368. 未提交
  5369. </div>
  5370. <div
  5371. class="noWorksS"
  5372. v-if="noWorksS && noWorksS[toolIndex].length"
  5373. >
  5374. <div
  5375. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5376. :key="sIndex"
  5377. class="noWorksName"
  5378. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5379. >
  5380. <el-tooltip
  5381. effect="dark"
  5382. :content="s.student"
  5383. placement="top"
  5384. >
  5385. <span>{{ s.student }}</span>
  5386. </el-tooltip>
  5387. </div>
  5388. </div>
  5389. </div>
  5390. <div
  5391. v-if="
  5392. tType &&
  5393. ((tType == 2 && sIsOpen == true) ||
  5394. tType == 1 ||
  5395. tType == 4) &&
  5396. tool.tool.indexOf(4) != -1 &&
  5397. (tool.askJson[0].answer ||
  5398. tool.askJson[0].answer === 0) &&
  5399. checkJson[toolIndex].length
  5400. "
  5401. class="xuan_right_box"
  5402. >
  5403. <div
  5404. class="tool_right_box"
  5405. v-for="(item, index) in tool.askJson"
  5406. :key="index"
  5407. >
  5408. <div style="width: calc(100% - 30px);">
  5409. <el-tooltip
  5410. effect="light"
  5411. :content="index + 1 + '、' + item.askstitle"
  5412. placement="top"
  5413. popper-class="text_tooltip"
  5414. >
  5415. <div
  5416. style="
  5417. width: calc(100% - 130px);
  5418. display: block;
  5419. white-space: nowrap;
  5420. overflow: hidden;
  5421. text-overflow: ellipsis;
  5422. word-break: break-word;
  5423. cursor: pointer;
  5424. "
  5425. >
  5426. {{ index + 1 + "、" + item.askstitle }}
  5427. </div>
  5428. </el-tooltip>
  5429. </div>
  5430. <div class="right_box_xuan">
  5431. <span>正确率</span>
  5432. <span>{{
  5433. (checkJson[toolIndex][index].right
  5434. ? checkJson[toolIndex][index].right
  5435. : 0) + "%"
  5436. }}</span>
  5437. </div>
  5438. </div>
  5439. </div>
  5440. <div
  5441. class="xuan_right_box"
  5442. style="background: unset; padding: 0 10px"
  5443. v-if="
  5444. tType &&
  5445. ((tType == 2 && sIsOpen == true) ||
  5446. tType == 1 ||
  5447. tType == 4) &&
  5448. tool.tool.indexOf(4) != -1
  5449. "
  5450. >
  5451. <AskStatic
  5452. v-if="
  5453. worksStudent.length &&
  5454. worksStudent[toolIndex].length > 0
  5455. "
  5456. :askJSON="tool"
  5457. :checkJson="checkJson[toolIndex]"
  5458. ></AskStatic>
  5459. </div>
  5460. <div
  5461. v-if="
  5462. tType &&
  5463. ((tType == 2 && sIsOpen == true) ||
  5464. tType == 1 ||
  5465. tType == 4) &&
  5466. tool.tool.indexOf(4) != -1
  5467. "
  5468. class="worksBox"
  5469. >
  5470. <div
  5471. class="zuoyeYulan"
  5472. v-if="
  5473. worksStudent.length &&
  5474. worksStudent[toolIndex].length > 0
  5475. "
  5476. >
  5477. <div class="worksTop">
  5478. <div>作业预览</div>
  5479. <div
  5480. class="corOpen"
  5481. @click="contract(toolIndex)"
  5482. v-if="
  5483. isCloseList[toolIndex].isCloseBoolean &&
  5484. isCloseList[toolIndex].isClose == 0
  5485. "
  5486. >
  5487. 折叠
  5488. </div>
  5489. <div
  5490. class="corOpen"
  5491. @click="contract(toolIndex)"
  5492. v-if="isCloseList[toolIndex].isClose == 1"
  5493. >
  5494. 展开
  5495. </div>
  5496. </div>
  5497. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5498. </div>
  5499. <div>
  5500. <div
  5501. :id="'tool-' + toolIndex"
  5502. :style="{
  5503. height:
  5504. isCloseList[toolIndex].isClose == 1
  5505. ? retrnToolHeight('tool-' + toolIndex)
  5506. : 'auto',
  5507. overflow:
  5508. isCloseList[toolIndex].isClose == 1
  5509. ? 'hidden'
  5510. : 'unset'
  5511. }"
  5512. class="worksDetailBox"
  5513. v-if="
  5514. worksStudent.length &&
  5515. worksStudent[toolIndex].length > 0
  5516. "
  5517. >
  5518. <div
  5519. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5520. :key="wIndex"
  5521. class="isWorksName2"
  5522. @click="
  5523. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5524. "
  5525. >
  5526. {{ w.sName }}
  5527. <img
  5528. class="deleteImg deleteImg2"
  5529. src="../../assets/deleteworks.png"
  5530. v-if="
  5531. w.userid == userid || tType == 1 || tType == 4
  5532. "
  5533. @click.stop="deleteWorks(w.wid)"
  5534. alt
  5535. />
  5536. </div>
  5537. <!-- <div class="works" style="
  5538. width: 200px;
  5539. height: 140px;
  5540. border-radius: 10px;
  5541. box-shadow: 0 0 6px 1px #dfdada;
  5542. overflow: hidden;
  5543. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5544. <div class="workImg">
  5545. <img src="../../assets/icon/works/noImg.png" @click="
  5546. openTools(
  5547. 4,
  5548. toolIndex,
  5549. taskCount,
  5550. w.works,
  5551. w.sName
  5552. )
  5553. " alt />
  5554. </div>
  5555. <div class="worksName">
  5556. <div>{{ w.sName }}</div>
  5557. <div>{{ w.time }}</div>
  5558. </div>
  5559. </div> -->
  5560. </div>
  5561. </div>
  5562. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5563. 未提交
  5564. </div>
  5565. <div
  5566. class="noWorksS"
  5567. v-if="noWorksS && noWorksS[toolIndex].length"
  5568. >
  5569. <div
  5570. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5571. :key="sIndex"
  5572. class="noWorksName"
  5573. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5574. >
  5575. <el-tooltip
  5576. effect="dark"
  5577. :content="s.student"
  5578. placement="top"
  5579. >
  5580. <span>{{ s.student }}</span>
  5581. </el-tooltip>
  5582. </div>
  5583. </div>
  5584. </div>
  5585. <div
  5586. v-if="
  5587. tType &&
  5588. ((tType == 2 && sIsOpen == true) ||
  5589. tType == 1 ||
  5590. tType == 4) &&
  5591. tool.tool.indexOf(45) != -1 &&
  5592. (tool.testJson.testJson[0].answer ||
  5593. tool.testJson.testJson[0].answer === 0) &&
  5594. checkJson[toolIndex].length
  5595. "
  5596. class="xuan_right_box"
  5597. >
  5598. <div
  5599. class="tool_right_box"
  5600. v-for="(item, index) in tool.testJson.testJson"
  5601. :key="index"
  5602. >
  5603. <div class="right_box_xuan" style="margin-right: 10px">
  5604. <span>正确率</span>
  5605. <span>{{
  5606. (checkJson[toolIndex][index].right
  5607. ? checkJson[toolIndex][index].right
  5608. : 0) + "%"
  5609. }}</span>
  5610. </div>
  5611. <div style="width: calc(100% - 30px);">
  5612. <el-tooltip
  5613. effect="light"
  5614. :content="index + 1 + '、' + item.teststitle"
  5615. placement="top"
  5616. popper-class="text_tooltip"
  5617. >
  5618. <div
  5619. style="
  5620. width: calc(100% - 130px);
  5621. display: block;
  5622. white-space: nowrap;
  5623. overflow: hidden;
  5624. text-overflow: ellipsis;
  5625. word-break: break-word;
  5626. cursor: pointer;
  5627. "
  5628. >
  5629. {{ index + 1 + "、" + item.teststitle }}
  5630. </div>
  5631. </el-tooltip>
  5632. </div>
  5633. </div>
  5634. </div>
  5635. <div
  5636. class="xuan_right_box"
  5637. style="background: unset; padding: 0 10px; width: 91.5%"
  5638. v-if="
  5639. tType &&
  5640. ((tType == 2 && sIsOpen == true) ||
  5641. tType == 1 ||
  5642. tType == 4) &&
  5643. tool.tool.indexOf(45) != -1
  5644. "
  5645. >
  5646. <AskStatic2
  5647. v-if="
  5648. worksStudent.length &&
  5649. worksStudent[toolIndex].length > 0
  5650. "
  5651. :askJSON="tool"
  5652. :checkJson="checkJson[toolIndex]"
  5653. ></AskStatic2>
  5654. </div>
  5655. <div
  5656. v-if="
  5657. tType &&
  5658. ((tType == 2 && sIsOpen == true) ||
  5659. tType == 1 ||
  5660. tType == 4) &&
  5661. tool.tool.indexOf(45) != -1
  5662. "
  5663. class="worksBox"
  5664. >
  5665. <div
  5666. class="zuoyeYulan"
  5667. v-if="
  5668. worksStudent.length &&
  5669. worksStudent[toolIndex].length > 0
  5670. "
  5671. >
  5672. <div class="worksTop">
  5673. <div>作业预览</div>
  5674. <div
  5675. class="corOpen"
  5676. @click="contract(toolIndex)"
  5677. v-if="
  5678. isCloseList[toolIndex].isCloseBoolean &&
  5679. isCloseList[toolIndex].isClose == 0
  5680. "
  5681. >
  5682. 折叠
  5683. </div>
  5684. <div
  5685. class="corOpen"
  5686. @click="contract(toolIndex)"
  5687. v-if="isCloseList[toolIndex].isClose == 1"
  5688. >
  5689. 展开
  5690. </div>
  5691. </div>
  5692. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5693. </div>
  5694. <div>
  5695. <div
  5696. :id="'tool-' + toolIndex"
  5697. :style="{
  5698. height:
  5699. isCloseList[toolIndex].isClose == 1
  5700. ? retrnToolHeight('tool-' + toolIndex)
  5701. : 'auto',
  5702. overflow:
  5703. isCloseList[toolIndex].isClose == 1
  5704. ? 'hidden'
  5705. : 'unset'
  5706. }"
  5707. class="worksDetailBox"
  5708. v-if="
  5709. worksStudent.length &&
  5710. worksStudent[toolIndex].length > 0
  5711. "
  5712. >
  5713. <div
  5714. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5715. :key="wIndex"
  5716. class="isWorksName2"
  5717. @click="
  5718. openTools(
  5719. 45,
  5720. toolIndex,
  5721. taskCount,
  5722. w.works,
  5723. w.sName
  5724. )
  5725. "
  5726. >
  5727. {{ w.sName }}
  5728. <img
  5729. class="deleteImg deleteImg2"
  5730. src="../../assets/deleteworks.png"
  5731. v-if="
  5732. w.userid == userid || tType == 1 || tType == 4
  5733. "
  5734. @click.stop="deleteWorks(w.wid)"
  5735. alt
  5736. />
  5737. </div>
  5738. </div>
  5739. </div>
  5740. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5741. 未提交
  5742. </div>
  5743. <div
  5744. class="noWorksS"
  5745. v-if="noWorksS && noWorksS[toolIndex].length"
  5746. >
  5747. <div
  5748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5749. :key="sIndex"
  5750. class="noWorksName"
  5751. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  5752. >
  5753. <el-tooltip
  5754. effect="dark"
  5755. :content="s.student"
  5756. placement="top"
  5757. >
  5758. <span>{{ s.student }}</span>
  5759. </el-tooltip>
  5760. </div>
  5761. </div>
  5762. </div>
  5763. <div
  5764. v-if="
  5765. tType &&
  5766. ((tType == 2 && sIsOpen == true) ||
  5767. tType == 1 ||
  5768. tType == 4) &&
  5769. tool.tool.indexOf(69) != -1
  5770. "
  5771. class="worksBox"
  5772. >
  5773. <div
  5774. class="zuoyeYulan"
  5775. v-if="
  5776. worksStudent.length &&
  5777. worksStudent[toolIndex].length > 0
  5778. "
  5779. >
  5780. <div class="worksTop">
  5781. <div>作业预览</div>
  5782. <div
  5783. class="corOpen"
  5784. @click="contract(toolIndex)"
  5785. v-if="
  5786. isCloseList[toolIndex].isCloseBoolean &&
  5787. isCloseList[toolIndex].isClose == 0
  5788. "
  5789. >
  5790. 折叠
  5791. </div>
  5792. <div
  5793. class="corOpen"
  5794. @click="contract(toolIndex)"
  5795. v-if="isCloseList[toolIndex].isClose == 1"
  5796. >
  5797. 展开
  5798. </div>
  5799. </div>
  5800. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5801. </div>
  5802. <div>
  5803. <div
  5804. :id="'tool-' + toolIndex"
  5805. :style="{
  5806. height:
  5807. isCloseList[toolIndex].isClose == 1
  5808. ? retrnToolHeight('tool-' + toolIndex)
  5809. : 'auto',
  5810. overflow:
  5811. isCloseList[toolIndex].isClose == 1
  5812. ? 'hidden'
  5813. : 'unset'
  5814. }"
  5815. class="worksDetailBox"
  5816. v-if="
  5817. worksStudent.length &&
  5818. worksStudent[toolIndex].length > 0
  5819. "
  5820. >
  5821. <div
  5822. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5823. :key="wIndex"
  5824. class="isWorksName2"
  5825. style="width: 160px;height: 65px;line-height: 65px;"
  5826. @click="
  5827. openTools(
  5828. 69,
  5829. toolIndex,
  5830. taskCount,
  5831. w.works,
  5832. w.sName,
  5833. w.wid
  5834. )
  5835. "
  5836. >
  5837. {{ w.sName }}
  5838. <img
  5839. class="deleteImg1"
  5840. src="../../assets/evaEnglish.png"
  5841. @click.stop="openEnglishEva(w.wid, toolIndex)"
  5842. alt
  5843. v-if="
  5844. (courseDetail &&
  5845. (courseDetail.userid == userid ||
  5846. (courseDetail.course_teacher &&
  5847. courseDetail.course_teacher.indexOf(
  5848. userid
  5849. ) != -1))) ||
  5850. w.aiCode || w.teacherCode
  5851. "
  5852. />
  5853. <img
  5854. class="deleteImg deleteImg2"
  5855. src="../../assets/deleteworks.png"
  5856. v-if="
  5857. w.userid == userid || tType == 1 || tType == 4
  5858. "
  5859. @click.stop="deleteWorks(w.wid)"
  5860. alt
  5861. />
  5862. </div>
  5863. </div>
  5864. </div>
  5865. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5866. 未提交
  5867. </div>
  5868. <div
  5869. class="noWorksS"
  5870. v-if="noWorksS && noWorksS[toolIndex].length"
  5871. >
  5872. <div
  5873. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5874. :key="sIndex"
  5875. class="noWorksName"
  5876. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  5877. >
  5878. <el-tooltip
  5879. effect="dark"
  5880. :content="s.student"
  5881. placement="top"
  5882. >
  5883. <span>{{ s.student }}</span>
  5884. </el-tooltip>
  5885. </div>
  5886. </div>
  5887. </div>
  5888. <div
  5889. v-if="
  5890. tType &&
  5891. ((tType == 2 && sIsOpen == true) ||
  5892. tType == 1 ||
  5893. tType == 4) &&
  5894. tool.tool.indexOf(15) != -1
  5895. "
  5896. class="worksBox"
  5897. >
  5898. <div
  5899. class="zuoyeYulan"
  5900. v-if="
  5901. (worksStudent.length &&
  5902. worksStudent[toolIndex].length > 0) ||
  5903. (courseGroup.group && courseGroup.group.length)
  5904. "
  5905. >
  5906. <div class="worksTop">
  5907. <div>作业预览</div>
  5908. <div
  5909. class="corOpen"
  5910. @click="contract(toolIndex)"
  5911. v-if="
  5912. isCloseList[toolIndex].isCloseBoolean &&
  5913. isCloseList[toolIndex].isClose == 0
  5914. "
  5915. >
  5916. 折叠
  5917. </div>
  5918. <div
  5919. class="corOpen"
  5920. @click="contract(toolIndex)"
  5921. v-if="isCloseList[toolIndex].isClose == 1"
  5922. >
  5923. 展开
  5924. </div>
  5925. </div>
  5926. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5927. </div>
  5928. <div
  5929. class="group_workBox"
  5930. v-for="(g, gindex) in courseGroup.group"
  5931. :key="gindex"
  5932. >
  5933. <div class="group_box">
  5934. <div class="group_title">
  5935. <el-tooltip
  5936. class="item"
  5937. effect="light"
  5938. :content="g.name"
  5939. placement="top"
  5940. >
  5941. <div class="group_name">{{ g.name }}</div>
  5942. </el-tooltip>
  5943. </div>
  5944. <div
  5945. class="group_work"
  5946. v-if="
  5947. g.works &&
  5948. g.works.length &&
  5949. g.works[toolIndex].length
  5950. "
  5951. >
  5952. <div
  5953. class="works"
  5954. v-for="(w, wIndex) in g.works[toolIndex]"
  5955. :key="wIndex"
  5956. >
  5957. <div
  5958. class="workImg"
  5959. style="
  5960. border-radius: 15px;
  5961. box-shadow: 0px 0px 5px 5px #eee;
  5962. "
  5963. >
  5964. <div
  5965. class="answerBg"
  5966. style="border-radius: 15px 15px 0 0"
  5967. @click="
  5968. commentOther(w, toolIndex, wIndex, null, g.id)
  5969. "
  5970. >
  5971. <div class="answerContent">
  5972. {{ JSON.parse(w.works)[0].answer }}
  5973. </div>
  5974. <div
  5975. class="answerScore"
  5976. v-if="w.score"
  5977. @click.stop="openScore(w)"
  5978. :class="{
  5979. rightW:
  5980. w.userid == userid ||
  5981. tType == 1 ||
  5982. tType == 4
  5983. }"
  5984. >
  5985. {{ JSON.parse(w.score).wScore }}分
  5986. </div>
  5987. <div
  5988. class="answerScore"
  5989. @click.stop="openScore(w)"
  5990. v-else-if="
  5991. courseDetail.userid == userid &&
  5992. courseDetail.state != 5 &&
  5993. chapInfoList[courseType].chapterInfo[0]
  5994. .taskJson[taskCount].eList &&
  5995. chapInfoList[courseType].chapterInfo[0]
  5996. .taskJson[taskCount].eList.length
  5997. "
  5998. :class="{
  5999. rightW:
  6000. w.userid == userid ||
  6001. tType == 1 ||
  6002. tType == 4
  6003. }"
  6004. >
  6005. 评分
  6006. </div>
  6007. <!-- <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"> -->
  6008. <div
  6009. v-else-if="
  6010. (courseDetail.userid == userid ||
  6011. (courseDetail.course_teacher &&
  6012. courseDetail.course_teacher.indexOf(
  6013. userid
  6014. ) != -1) ||
  6015. (w.userid == userid && sIsOpen)) &&
  6016. courseDetail.state == 5 &&
  6017. ((chapInfoList[courseType].chapterInfo[0]
  6018. .taskJson[taskCount].eList &&
  6019. chapInfoList[courseType].chapterInfo[0]
  6020. .taskJson[taskCount].eList.length) ||
  6021. (tool.eList && tool.eList.length))
  6022. "
  6023. >
  6024. <el-popover
  6025. placement="top"
  6026. width="318"
  6027. :disabled="
  6028. AIloading[toolIndex][wIndex].loading
  6029. "
  6030. trigger="hover"
  6031. >
  6032. <markScore
  6033. :loading="
  6034. AIloading[toolIndex][wIndex].loading
  6035. "
  6036. :markScoreVisible="markScoreVisible"
  6037. :ref="`markSco${toolIndex}${wIndex}`"
  6038. @updateLoading="updateLoading"
  6039. @updateDocSco="updateDocSco"
  6040. @refreshOther="refreshOther"
  6041. @markScoreDig="markScoreDig"
  6042. :tool="tool"
  6043. :wIndex="wIndex"
  6044. :scoCon="w"
  6045. :toolIndex="toolIndex"
  6046. :key="refreshKey"
  6047. :stage="courseType"
  6048. :task="taskCount"
  6049. :scoTit="
  6050. chapInfoList[courseType].chapterInfo[0]
  6051. .taskJson[taskCount].eList
  6052. "
  6053. >
  6054. </markScore>
  6055. <div
  6056. class="answerScore"
  6057. @click.stop="
  6058. markScoreDig2(
  6059. w.sName,
  6060. worksStudent,
  6061. w.userid,
  6062. toolIndex,
  6063. chapInfoList[courseType]
  6064. .chapterInfo[0].taskJson[taskCount]
  6065. .eList,
  6066. AIloading[toolIndex][wIndex].loading,
  6067. tool
  6068. )
  6069. "
  6070. slot="reference"
  6071. :class="{
  6072. rightW:
  6073. w.userid == userid ||
  6074. tType == 1 ||
  6075. tType == 4 ||
  6076. w.ateacher == userid
  6077. }"
  6078. >
  6079. <span
  6080. v-if="AIloading[toolIndex][wIndex].sco"
  6081. >
  6082. {{
  6083. AIloading[toolIndex][wIndex].loading
  6084. ? "评分中"
  6085. : AIloading[toolIndex][wIndex].sco +
  6086. "分"
  6087. }}
  6088. </span>
  6089. <span v-else>
  6090. {{
  6091. AIloading[toolIndex][wIndex].loading
  6092. ? "评分中"
  6093. : "评分"
  6094. }}
  6095. </span>
  6096. </div>
  6097. </el-popover>
  6098. </div>
  6099. <img
  6100. class="deleteImg"
  6101. src="../../assets/deleteworks.png"
  6102. v-if="
  6103. w.userid == userid ||
  6104. tType == 1 ||
  6105. tType == 4
  6106. "
  6107. @click.stop="deleteWorks(w.wid)"
  6108. alt
  6109. />
  6110. </div>
  6111. <div class="comment">
  6112. <div class="worksName">
  6113. <div>{{ w.sName }}</div>
  6114. </div>
  6115. <div class="commentList">
  6116. <div
  6117. class="commentImg"
  6118. @click="
  6119. isLikes(
  6120. w.wid,
  6121. userid,
  6122. 1,
  6123. null,
  6124. w.isLikes,
  6125. w.sName
  6126. )
  6127. "
  6128. >
  6129. <img
  6130. :src="w.isLikes == true ? likes : noLikes"
  6131. alt=""
  6132. />
  6133. </div>
  6134. <div>{{ w.likesCount }}</div>
  6135. </div>
  6136. <div
  6137. class="commentList"
  6138. style="margin-right: 15px"
  6139. >
  6140. <div
  6141. class="commentImg"
  6142. @click="
  6143. commentOther(
  6144. w,
  6145. toolIndex,
  6146. wIndex,
  6147. null,
  6148. g.id
  6149. )
  6150. "
  6151. >
  6152. <img
  6153. src="../../assets/icon/comment/comment.png"
  6154. alt=""
  6155. />
  6156. </div>
  6157. <div>{{ w.commentCount }}</div>
  6158. </div>
  6159. </div>
  6160. </div>
  6161. </div>
  6162. </div>
  6163. <div class="group_work" v-else>暂无提交作业</div>
  6164. </div>
  6165. </div>
  6166. <div
  6167. :id="'tool-' + toolIndex"
  6168. :style="{
  6169. height:
  6170. isCloseList[toolIndex].isClose == 1
  6171. ? retrnToolHeight('tool-' + toolIndex)
  6172. : 'auto',
  6173. overflow:
  6174. isCloseList[toolIndex].isClose == 1
  6175. ? 'hidden'
  6176. : 'unset'
  6177. }"
  6178. class="worksDetailBox"
  6179. v-if="
  6180. worksStudent.length &&
  6181. worksStudent[toolIndex].length > 0
  6182. "
  6183. >
  6184. <div
  6185. class="works"
  6186. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6187. :key="wIndex"
  6188. >
  6189. <div
  6190. class="workImg"
  6191. style="
  6192. border-radius: 15px;
  6193. box-shadow: 0px 0px 5px 5px #eee;
  6194. "
  6195. >
  6196. <!-- <img
  6197. src="../../assets/icon/works/noImg.png"
  6198. @click="openTools(15, toolIndex, taskCount, w.works)"
  6199. alt=""
  6200. />-->
  6201. <div
  6202. class="answerBg"
  6203. style="border-radius: 15px 15px 0 0"
  6204. @click="commentOther(w, toolIndex, wIndex)"
  6205. >
  6206. <!-- <div>{{ w.sName }}</div> -->
  6207. <div class="answerContent">
  6208. {{ JSON.parse(w.works)[0].answer }}
  6209. </div>
  6210. <div
  6211. class="answerScore"
  6212. v-if="w.score"
  6213. @click.stop="openScore(w)"
  6214. :class="{
  6215. rightW:
  6216. w.userid == userid || tType == 1 || tType == 4
  6217. }"
  6218. >
  6219. {{ JSON.parse(w.score).wScore }}分
  6220. </div>
  6221. <div
  6222. class="answerScore"
  6223. @click.stop="openScore(w)"
  6224. v-else-if="
  6225. courseDetail.userid == userid &&
  6226. courseDetail.state != 5 &&
  6227. chapInfoList[courseType].chapterInfo[0]
  6228. .taskJson[taskCount].eList &&
  6229. chapInfoList[courseType].chapterInfo[0]
  6230. .taskJson[taskCount].eList.length
  6231. "
  6232. :class="{
  6233. rightW:
  6234. w.userid == userid || tType == 1 || tType == 4
  6235. }"
  6236. >
  6237. 评分
  6238. </div>
  6239. <!-- <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"> -->
  6240. <div
  6241. v-else-if="
  6242. (courseDetail.userid == userid ||
  6243. (courseDetail.course_teacher &&
  6244. courseDetail.course_teacher.indexOf(
  6245. userid
  6246. ) != -1) ||
  6247. (w.userid == userid && sIsOpen)) &&
  6248. courseDetail.state == 5 &&
  6249. ((chapInfoList[courseType].chapterInfo[0]
  6250. .taskJson[taskCount].eList &&
  6251. chapInfoList[courseType].chapterInfo[0]
  6252. .taskJson[taskCount].eList.length) ||
  6253. (tool.eList && tool.eList.length))
  6254. "
  6255. >
  6256. <el-popover
  6257. placement="top"
  6258. width="318"
  6259. :disabled="AIloading[toolIndex][wIndex].loading"
  6260. trigger="hover"
  6261. >
  6262. <markScore
  6263. :loading="
  6264. AIloading[toolIndex][wIndex].loading
  6265. "
  6266. :markScoreVisible="markScoreVisible"
  6267. :ref="`markSco${toolIndex}${wIndex}`"
  6268. @updateLoading="updateLoading"
  6269. @updateDocSco="updateDocSco"
  6270. @refreshOther="refreshOther"
  6271. @markScoreDig="markScoreDig"
  6272. :tool="tool"
  6273. :wIndex="wIndex"
  6274. :scoCon="w"
  6275. :toolIndex="toolIndex"
  6276. :key="refreshKey"
  6277. :stage="courseType"
  6278. :task="taskCount"
  6279. :scoTit="
  6280. chapInfoList[courseType].chapterInfo[0]
  6281. .taskJson[taskCount].eList
  6282. "
  6283. >
  6284. </markScore>
  6285. <div
  6286. class="answerScore"
  6287. @click.stop="
  6288. markScoreDig2(
  6289. w.sName,
  6290. worksStudent,
  6291. w.userid,
  6292. toolIndex,
  6293. chapInfoList[courseType].chapterInfo[0]
  6294. .taskJson[taskCount].eList,
  6295. AIloading[toolIndex][wIndex].loading,
  6296. tool
  6297. )
  6298. "
  6299. slot="reference"
  6300. :class="{
  6301. rightW:
  6302. w.userid == userid ||
  6303. tType == 1 ||
  6304. tType == 4 ||
  6305. w.ateacher == userid
  6306. }"
  6307. >
  6308. <span v-if="AIloading[toolIndex][wIndex].sco">
  6309. {{
  6310. AIloading[toolIndex][wIndex].loading
  6311. ? "评分中"
  6312. : AIloading[toolIndex][wIndex].sco +
  6313. "分"
  6314. }}
  6315. </span>
  6316. <span v-else>
  6317. {{
  6318. AIloading[toolIndex][wIndex].loading
  6319. ? "评分中"
  6320. : "评分"
  6321. }}
  6322. </span>
  6323. </div>
  6324. </el-popover>
  6325. </div>
  6326. <img
  6327. class="deleteImg"
  6328. src="../../assets/deleteworks.png"
  6329. v-if="
  6330. w.userid == userid || tType == 1 || tType == 4
  6331. "
  6332. @click.stop="deleteWorks(w.wid)"
  6333. alt
  6334. />
  6335. </div>
  6336. <div class="comment">
  6337. <div class="worksName">
  6338. <div>{{ w.sName }}</div>
  6339. </div>
  6340. <div class="commentList">
  6341. <div
  6342. class="commentImg"
  6343. @click="
  6344. isLikes(
  6345. w.wid,
  6346. userid,
  6347. 1,
  6348. null,
  6349. w.isLikes,
  6350. w.sName
  6351. )
  6352. "
  6353. >
  6354. <img
  6355. :src="w.isLikes == true ? likes : noLikes"
  6356. alt=""
  6357. />
  6358. </div>
  6359. <div>{{ w.likesCount }}</div>
  6360. </div>
  6361. <div class="commentList" style="margin-right: 15px">
  6362. <div
  6363. class="commentImg"
  6364. @click="commentOther(w, toolIndex, wIndex)"
  6365. >
  6366. <img
  6367. src="../../assets/icon/comment/comment.png"
  6368. alt=""
  6369. />
  6370. </div>
  6371. <div>{{ w.commentCount }}</div>
  6372. </div>
  6373. </div>
  6374. </div>
  6375. </div>
  6376. </div>
  6377. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6378. 未提交
  6379. </div>
  6380. <div
  6381. class="noWorksS"
  6382. v-if="noWorksS && noWorksS[toolIndex].length"
  6383. >
  6384. <div
  6385. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6386. :key="sIndex"
  6387. class="noWorksName"
  6388. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6389. >
  6390. <el-tooltip
  6391. effect="dark"
  6392. :content="s.student"
  6393. placement="top"
  6394. >
  6395. <span>{{ s.student }}</span>
  6396. </el-tooltip>
  6397. </div>
  6398. </div>
  6399. </div>
  6400. <div
  6401. v-if="
  6402. tType &&
  6403. ((tType == 2 && sIsOpen == true) ||
  6404. tType == 1 ||
  6405. tType == 4) &&
  6406. tool.tool.indexOf(1) != -1
  6407. "
  6408. class="worksBox"
  6409. >
  6410. <div
  6411. class="zuoyeYulan"
  6412. style="display: flex;justify-content: space-between;align-items: center;"
  6413. v-if="
  6414. (worksStudent.length &&
  6415. worksStudent[toolIndex].length > 0) ||
  6416. (courseGroup.group && courseGroup.group.length)
  6417. "
  6418. >
  6419. <div class="worksTop">
  6420. <div>作业预览</div>
  6421. <div
  6422. class="corOpen"
  6423. @click="contract(toolIndex)"
  6424. v-if="
  6425. isCloseList[toolIndex].isCloseBoolean &&
  6426. isCloseList[toolIndex].isClose == 0
  6427. "
  6428. >
  6429. 折叠
  6430. </div>
  6431. <div
  6432. class="corOpen"
  6433. @click="contract(toolIndex)"
  6434. v-if="isCloseList[toolIndex].isClose == 1"
  6435. >
  6436. 展开
  6437. </div>
  6438. </div>
  6439. <div
  6440. style="display: flex;"
  6441. v-if="
  6442. (courseDetail.userid == userid ||
  6443. (courseDetail.course_teacher &&
  6444. courseDetail.course_teacher.indexOf(userid) !=
  6445. -1)) &&
  6446. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6447. taskCount
  6448. ].eList &&
  6449. chapInfoList[courseType].chapterInfo[0].taskJson[
  6450. taskCount
  6451. ].eList.length) ||
  6452. (tool.eList && tool.eList.length)) &&
  6453. courseDetail.state == 5
  6454. "
  6455. >
  6456. <div
  6457. style="margin-right:10px"
  6458. class="ScoreBtn"
  6459. @click="
  6460. resetLoopEva(
  6461. worksStudent[toolIndex],
  6462. chapInfoList[courseType].chapterInfo[0].taskJson[
  6463. taskCount
  6464. ].eList,
  6465. courseType,
  6466. taskCount,
  6467. toolIndex,
  6468. tool.toolDetail,
  6469. worksStudent
  6470. )
  6471. "
  6472. >
  6473. 一键重置
  6474. </div>
  6475. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6476. <img
  6477. src="../../assets/icon/newIcons/rootImg.png"
  6478. alt=""
  6479. />
  6480. AI评分
  6481. </div>
  6482. <div
  6483. class="ScoreBtn"
  6484. v-else-if="!loopLoading[toolIndex].loading"
  6485. @click="
  6486. loopEva(
  6487. worksStudent[toolIndex],
  6488. chapInfoList[courseType].chapterInfo[0].taskJson[
  6489. taskCount
  6490. ].eList,
  6491. courseType,
  6492. taskCount,
  6493. toolIndex,
  6494. tool.toolDetail,
  6495. chapInfoList[courseType].chapterInfo[0].taskJson[
  6496. taskCount
  6497. ].taskDetail,
  6498. tool
  6499. )
  6500. "
  6501. >
  6502. <img
  6503. src="../../assets/icon/newIcons/rootImg.png"
  6504. alt=""
  6505. />
  6506. AI评分
  6507. </div>
  6508. <div class="ScoreBtn" v-else>
  6509. <img
  6510. src="../../assets/icon/newIcons/rootImg.png"
  6511. alt=""
  6512. />
  6513. 正在评分
  6514. </div>
  6515. </div>
  6516. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6517. </div>
  6518. <div
  6519. class="group_workBox"
  6520. v-for="(g, gindex) in courseGroup.group"
  6521. :key="gindex"
  6522. >
  6523. <div class="group_box">
  6524. <div class="group_title">
  6525. <el-tooltip
  6526. class="item"
  6527. effect="light"
  6528. :content="g.name"
  6529. placement="top"
  6530. >
  6531. <div class="group_name">{{ g.name }}</div>
  6532. </el-tooltip>
  6533. </div>
  6534. <div
  6535. class="group_work"
  6536. v-if="
  6537. g.works &&
  6538. g.works.length &&
  6539. g.works[toolIndex].length
  6540. "
  6541. >
  6542. <div
  6543. class="works"
  6544. style="
  6545. width: 200px;
  6546. height: 140px;
  6547. margin: 10px 10px 10px 0;
  6548. border-radius: 15px;
  6549. box-shadow: 0 0 6px 1px #dfdada;
  6550. "
  6551. v-for="(w, wIndex) in g.works[toolIndex]"
  6552. :key="wIndex"
  6553. :class="w.type == 1 ? 'isTypeOne' : ''"
  6554. >
  6555. <div class="workImg">
  6556. <img
  6557. :src="w.works"
  6558. @click="previewImg(w.works, w)"
  6559. alt
  6560. />
  6561. <div
  6562. class="answerScore"
  6563. v-if="w.score"
  6564. @click.stop="openScore(w)"
  6565. :class="{
  6566. rightW:
  6567. w.userid == userid ||
  6568. tType == 1 ||
  6569. tType == 4
  6570. }"
  6571. >
  6572. {{ JSON.parse(w.score).wScore }}分
  6573. </div>
  6574. <div
  6575. class="answerScore"
  6576. @click.stop="openScore(w)"
  6577. v-else-if="courseDetail.userid == userid"
  6578. :class="{
  6579. rightW:
  6580. w.userid == userid ||
  6581. tType == 1 ||
  6582. tType == 4
  6583. }"
  6584. >
  6585. 评分
  6586. </div>
  6587. <img
  6588. class="deleteImg"
  6589. src="../../assets/deleteworks.png"
  6590. v-if="
  6591. w.userid == userid || tType == 1 || tType == 4
  6592. "
  6593. @click.stop="deleteWorks(w.wid)"
  6594. alt
  6595. />
  6596. </div>
  6597. <div class="comment" style="min-width: 200px">
  6598. <div class="worksName">
  6599. <div>{{ w.sName }}</div>
  6600. </div>
  6601. <div class="commentList">
  6602. <div class="commentList">
  6603. <div
  6604. class="commentImg"
  6605. @click="
  6606. isLikes(
  6607. w.wid,
  6608. userid,
  6609. 1,
  6610. null,
  6611. w.isLikes,
  6612. w.sName
  6613. )
  6614. "
  6615. >
  6616. <img
  6617. :src="w.isLikes == true ? likes : noLikes"
  6618. alt=""
  6619. />
  6620. </div>
  6621. <div>{{ w.likesCount }}</div>
  6622. </div>
  6623. <div
  6624. class="commentList"
  6625. style="margin-right: 15px"
  6626. >
  6627. <div
  6628. class="commentImg"
  6629. @click="
  6630. commentOther(
  6631. w,
  6632. toolIndex,
  6633. wIndex,
  6634. null,
  6635. g.id
  6636. )
  6637. "
  6638. >
  6639. <img
  6640. src="../../assets/icon/comment/comment.png"
  6641. alt=""
  6642. />
  6643. </div>
  6644. <div>{{ w.commentCount }}</div>
  6645. </div>
  6646. </div>
  6647. </div>
  6648. </div>
  6649. </div>
  6650. <div class="group_work" v-else>暂无提交作业</div>
  6651. </div>
  6652. </div>
  6653. <div
  6654. :id="'tool-' + toolIndex"
  6655. :style="{
  6656. height:
  6657. isCloseList[toolIndex].isClose == 1
  6658. ? retrnToolHeight('tool-' + toolIndex)
  6659. : 'auto',
  6660. overflow:
  6661. isCloseList[toolIndex].isClose == 1
  6662. ? 'hidden'
  6663. : 'unset'
  6664. }"
  6665. class="worksDetailBox"
  6666. v-if="
  6667. worksStudent.length &&
  6668. worksStudent[toolIndex].length > 0
  6669. "
  6670. >
  6671. <div
  6672. class="works"
  6673. style="
  6674. width: 200px;
  6675. height: 140px;
  6676. margin: 10px 10px 10px 0;
  6677. border-radius: 15px;
  6678. box-shadow: 0 0 6px 1px #dfdada;
  6679. "
  6680. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6681. :key="wIndex"
  6682. >
  6683. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6684. <div class="workImg">
  6685. <img
  6686. :src="w.works"
  6687. @click="previewImg(w.works, w)"
  6688. alt
  6689. />
  6690. <div
  6691. class="answerScore"
  6692. v-if="w.score"
  6693. @click.stop="openScore(w)"
  6694. :class="{
  6695. rightW:
  6696. w.userid == userid || tType == 1 || tType == 4
  6697. }"
  6698. >
  6699. {{ JSON.parse(w.score).wScore }}分
  6700. </div>
  6701. <div
  6702. class="answerScore"
  6703. @click.stop="openScore(w)"
  6704. v-else-if="
  6705. courseDetail.userid == userid &&
  6706. courseDetail.state != 5 &&
  6707. chapInfoList[courseType].chapterInfo[0]
  6708. .taskJson[taskCount].eList &&
  6709. chapInfoList[courseType].chapterInfo[0]
  6710. .taskJson[taskCount].eList.length
  6711. "
  6712. :class="{
  6713. rightW:
  6714. w.userid == userid || tType == 1 || tType == 4
  6715. }"
  6716. >
  6717. 评分
  6718. </div>
  6719. <div
  6720. v-else-if="
  6721. (courseDetail.userid == userid ||
  6722. (courseDetail.course_teacher &&
  6723. courseDetail.course_teacher.indexOf(userid) !=
  6724. -1) ||
  6725. (courseDetail.course_teacher &&
  6726. courseDetail.course_teacher.indexOf(userid) !=
  6727. -1) ||
  6728. (courseDetail.course_teacher &&
  6729. courseDetail.course_teacher.indexOf(userid) !=
  6730. -1) ||
  6731. (w.userid == userid && sIsOpen)) &&
  6732. courseDetail.state == 5 &&
  6733. ((chapInfoList[courseType].chapterInfo[0]
  6734. .taskJson[taskCount].eList &&
  6735. chapInfoList[courseType].chapterInfo[0]
  6736. .taskJson[taskCount].eList.length) ||
  6737. (tool.eList && tool.eList.length))
  6738. "
  6739. >
  6740. <el-popover
  6741. placement="top"
  6742. width="318"
  6743. :disabled="AIloading[toolIndex][wIndex].loading"
  6744. trigger="hover"
  6745. >
  6746. <markScore
  6747. :loading="AIloading[toolIndex][wIndex].loading"
  6748. :markScoreVisible="markScoreVisible"
  6749. :ref="`markSco${toolIndex}${wIndex}`"
  6750. @updateLoading="updateLoading"
  6751. @updateDocSco="updateDocSco"
  6752. @refreshOther="refreshOther"
  6753. @markScoreDig="markScoreDig"
  6754. :tool="tool"
  6755. :wIndex="wIndex"
  6756. :scoCon="w"
  6757. :toolIndex="toolIndex"
  6758. :key="refreshKey"
  6759. :stage="courseType"
  6760. :task="taskCount"
  6761. :scoTit="
  6762. chapInfoList[courseType].chapterInfo[0]
  6763. .taskJson[taskCount].eList
  6764. "
  6765. >
  6766. </markScore>
  6767. <div
  6768. class="answerScore"
  6769. @click="
  6770. markScoreDig2(
  6771. w.sName,
  6772. worksStudent,
  6773. w.userid,
  6774. toolIndex,
  6775. chapInfoList[courseType].chapterInfo[0]
  6776. .taskJson[taskCount].eList,
  6777. AIloading[toolIndex][wIndex].loading,
  6778. tool
  6779. )
  6780. "
  6781. slot="reference"
  6782. :class="{
  6783. rightW:
  6784. w.userid == userid ||
  6785. tType == 1 ||
  6786. tType == 4 ||
  6787. w.ateacher == userid
  6788. }"
  6789. >
  6790. <span v-if="AIloading[toolIndex][wIndex].sco">
  6791. {{
  6792. AIloading[toolIndex][wIndex].loading
  6793. ? "评分中"
  6794. : AIloading[toolIndex][wIndex].sco + "分"
  6795. }}
  6796. </span>
  6797. <span v-else>
  6798. {{
  6799. AIloading[toolIndex][wIndex].loading
  6800. ? "评分中"
  6801. : "评分"
  6802. }}
  6803. </span>
  6804. </div>
  6805. </el-popover>
  6806. </div>
  6807. <img
  6808. class="deleteImg"
  6809. src="../../assets/deleteworks.png"
  6810. v-if="
  6811. w.userid == userid || tType == 1 || tType == 4
  6812. "
  6813. @click.stop="deleteWorks(w.wid)"
  6814. alt
  6815. />
  6816. </div>
  6817. <div class="comment" style="min-width: 200px">
  6818. <div class="worksName">
  6819. <div>{{ w.sName }}</div>
  6820. </div>
  6821. <div class="commentList">
  6822. <div class="commentList">
  6823. <div
  6824. class="commentImg"
  6825. @click="
  6826. isLikes(
  6827. w.wid,
  6828. userid,
  6829. 1,
  6830. null,
  6831. w.isLikes,
  6832. w.sName
  6833. )
  6834. "
  6835. >
  6836. <img
  6837. :src="w.isLikes == true ? likes : noLikes"
  6838. alt=""
  6839. />
  6840. </div>
  6841. <div>{{ w.likesCount }}</div>
  6842. </div>
  6843. <div class="commentList" style="margin-right: 15px">
  6844. <div
  6845. class="commentImg"
  6846. @click="commentOther(w, toolIndex, wIndex)"
  6847. >
  6848. <img
  6849. src="../../assets/icon/comment/comment.png"
  6850. alt=""
  6851. />
  6852. </div>
  6853. <div>{{ w.commentCount }}</div>
  6854. </div>
  6855. </div>
  6856. </div>
  6857. </div>
  6858. </div>
  6859. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6860. 未提交
  6861. </div>
  6862. <div
  6863. class="noWorksS"
  6864. v-if="noWorksS && noWorksS[toolIndex].length"
  6865. >
  6866. <div
  6867. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6868. :key="sIndex"
  6869. class="noWorksName"
  6870. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6871. >
  6872. <el-tooltip
  6873. effect="dark"
  6874. :content="s.student"
  6875. placement="top"
  6876. >
  6877. <span>{{ s.student }}</span>
  6878. </el-tooltip>
  6879. </div>
  6880. </div>
  6881. </div>
  6882. <div
  6883. v-if="
  6884. tType &&
  6885. ((tType == 2 && sIsOpen == true) ||
  6886. tType == 1 ||
  6887. tType == 4) &&
  6888. tool.tool.indexOf(3) != -1
  6889. "
  6890. class="worksBox"
  6891. >
  6892. <div
  6893. class="zuoyeYulan"
  6894. style="display: flex;justify-content: space-between;align-items: center;"
  6895. v-if="
  6896. (worksStudent.length &&
  6897. worksStudent[toolIndex].length > 0) ||
  6898. (courseGroup.group && courseGroup.group.length)
  6899. "
  6900. >
  6901. <div class="worksTop">
  6902. <div>作业预览</div>
  6903. <div
  6904. class="corOpen"
  6905. @click="contract(toolIndex)"
  6906. v-if="
  6907. isCloseList[toolIndex].isCloseBoolean &&
  6908. isCloseList[toolIndex].isClose == 0
  6909. "
  6910. >
  6911. 折叠
  6912. </div>
  6913. <div
  6914. class="corOpen"
  6915. @click="contract(toolIndex)"
  6916. v-if="isCloseList[toolIndex].isClose == 1"
  6917. >
  6918. 展开
  6919. </div>
  6920. </div>
  6921. <div
  6922. style="display: flex;"
  6923. v-if="
  6924. (courseDetail.userid == userid ||
  6925. (courseDetail.course_teacher &&
  6926. courseDetail.course_teacher.indexOf(userid) !=
  6927. -1)) &&
  6928. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6929. taskCount
  6930. ].eList &&
  6931. chapInfoList[courseType].chapterInfo[0].taskJson[
  6932. taskCount
  6933. ].eList.length) ||
  6934. (tool.eList && tool.eList.length)) &&
  6935. courseDetail.state == 5
  6936. "
  6937. >
  6938. <div
  6939. style="margin-right:10px"
  6940. class="ScoreBtn"
  6941. @click="
  6942. resetLoopEva(
  6943. worksStudent[toolIndex],
  6944. chapInfoList[courseType].chapterInfo[0].taskJson[
  6945. taskCount
  6946. ].eList,
  6947. courseType,
  6948. taskCount,
  6949. toolIndex,
  6950. tool.toolDetail,
  6951. worksStudent
  6952. )
  6953. "
  6954. >
  6955. 一键重置
  6956. </div>
  6957. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6958. <img
  6959. src="../../assets/icon/newIcons/rootImg.png"
  6960. alt=""
  6961. />
  6962. AI评分
  6963. </div>
  6964. <div
  6965. class="ScoreBtn"
  6966. v-else-if="!loopLoading[toolIndex].loading"
  6967. @click="
  6968. loopEva(
  6969. worksStudent[toolIndex],
  6970. chapInfoList[courseType].chapterInfo[0].taskJson[
  6971. taskCount
  6972. ].eList,
  6973. courseType,
  6974. taskCount,
  6975. toolIndex,
  6976. tool.toolDetail,
  6977. chapInfoList[courseType].chapterInfo[0].taskJson[
  6978. taskCount
  6979. ].taskDetail,
  6980. tool
  6981. )
  6982. "
  6983. >
  6984. <img
  6985. src="../../assets/icon/newIcons/rootImg.png"
  6986. alt=""
  6987. />
  6988. AI评分
  6989. </div>
  6990. <div class="ScoreBtn" v-else>
  6991. <img
  6992. src="../../assets/icon/newIcons/rootImg.png"
  6993. alt=""
  6994. />
  6995. 正在评分
  6996. </div>
  6997. </div>
  6998. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6999. </div>
  7000. <div
  7001. class="group_workBox"
  7002. v-for="(g, gindex) in courseGroup.group"
  7003. :key="gindex"
  7004. >
  7005. <div class="group_box">
  7006. <div class="group_title">
  7007. <el-tooltip
  7008. class="item"
  7009. effect="light"
  7010. :content="g.name"
  7011. placement="top"
  7012. >
  7013. <div class="group_name">{{ g.name }}</div>
  7014. </el-tooltip>
  7015. </div>
  7016. <div
  7017. class="group_work"
  7018. v-if="
  7019. g.works &&
  7020. g.works.length &&
  7021. g.works[toolIndex].length
  7022. "
  7023. >
  7024. <div
  7025. class="works"
  7026. style="
  7027. width: 200px;
  7028. height: 140px;
  7029. margin: 10px 10px 10px 0;
  7030. border-radius: 15px;
  7031. box-shadow: 0 0 6px 1px #dfdada;
  7032. "
  7033. v-for="(w, wIndex) in g.works[toolIndex]"
  7034. :key="wIndex"
  7035. :class="w.type == 1 ? 'isTypeOne' : ''"
  7036. >
  7037. <div class="workImg">
  7038. <img
  7039. :src="w.works"
  7040. @click="previewImg(w.works, w)"
  7041. alt
  7042. />
  7043. <div
  7044. class="answerScore"
  7045. v-if="w.score"
  7046. @click.stop="openScore(w)"
  7047. :class="{
  7048. rightW:
  7049. w.userid == userid ||
  7050. tType == 1 ||
  7051. tType == 4
  7052. }"
  7053. >
  7054. {{ JSON.parse(w.score).wScore }}分
  7055. </div>
  7056. <div
  7057. class="answerScore"
  7058. @click.stop="openScore(w)"
  7059. v-else-if="courseDetail.userid == userid"
  7060. :class="{
  7061. rightW:
  7062. w.userid == userid ||
  7063. tType == 1 ||
  7064. tType == 4
  7065. }"
  7066. >
  7067. 评分
  7068. </div>
  7069. <img
  7070. class="deleteImg"
  7071. src="../../assets/deleteworks.png"
  7072. v-if="
  7073. w.userid == userid || tType == 1 || tType == 4
  7074. "
  7075. @click.stop="deleteWorks(w.wid)"
  7076. alt
  7077. />
  7078. </div>
  7079. <div class="comment" style="min-width: 200px">
  7080. <div class="worksName">
  7081. <div>{{ w.sName }}</div>
  7082. </div>
  7083. <div class="commentList">
  7084. <div class="commentList">
  7085. <div
  7086. class="commentImg"
  7087. @click="
  7088. isLikes(
  7089. w.wid,
  7090. userid,
  7091. 1,
  7092. null,
  7093. w.isLikes,
  7094. w.sName
  7095. )
  7096. "
  7097. >
  7098. <img
  7099. :src="w.isLikes == true ? likes : noLikes"
  7100. alt=""
  7101. />
  7102. </div>
  7103. <div>{{ w.likesCount }}</div>
  7104. </div>
  7105. <div
  7106. class="commentList"
  7107. style="margin-right: 15px"
  7108. >
  7109. <div
  7110. class="commentImg"
  7111. @click="
  7112. commentOther(
  7113. w,
  7114. toolIndex,
  7115. wIndex,
  7116. null,
  7117. g.id
  7118. )
  7119. "
  7120. >
  7121. <img
  7122. src="../../assets/icon/comment/comment.png"
  7123. alt=""
  7124. />
  7125. </div>
  7126. <div>{{ w.commentCount }}</div>
  7127. </div>
  7128. </div>
  7129. </div>
  7130. </div>
  7131. </div>
  7132. <div class="group_work" v-else>暂无提交作业</div>
  7133. </div>
  7134. </div>
  7135. <div
  7136. :id="'tool-' + toolIndex"
  7137. :style="{
  7138. height:
  7139. isCloseList[toolIndex].isClose == 1
  7140. ? retrnToolHeight('tool-' + toolIndex)
  7141. : 'auto',
  7142. overflow:
  7143. isCloseList[toolIndex].isClose == 1
  7144. ? 'hidden'
  7145. : 'unset'
  7146. }"
  7147. class="worksDetailBox"
  7148. v-if="
  7149. worksStudent.length &&
  7150. worksStudent[toolIndex].length > 0
  7151. "
  7152. >
  7153. <div
  7154. class="works"
  7155. style="
  7156. width: 200px;
  7157. height: 140px;
  7158. margin: 10px 10px 10px 0;
  7159. border-radius: 15px;
  7160. box-shadow: 0 0 6px 1px #dfdada;
  7161. "
  7162. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7163. :key="wIndex"
  7164. >
  7165. <!-- @click="previewImg(w.works)" -->
  7166. <div class="workImg">
  7167. <img
  7168. :src="w.works"
  7169. @click="previewImg(w.works, w)"
  7170. alt
  7171. />
  7172. <div
  7173. class="answerScore"
  7174. v-if="w.score"
  7175. @click.stop="openScore(w)"
  7176. :class="{
  7177. rightW:
  7178. w.userid == userid || tType == 1 || tType == 4
  7179. }"
  7180. >
  7181. {{ JSON.parse(w.score).wScore }}分
  7182. </div>
  7183. <div
  7184. class="answerScore"
  7185. @click.stop="openScore(w)"
  7186. v-else-if="
  7187. courseDetail.userid == userid &&
  7188. courseDetail.state != 5 &&
  7189. chapInfoList[courseType].chapterInfo[0]
  7190. .taskJson[taskCount].eList &&
  7191. chapInfoList[courseType].chapterInfo[0]
  7192. .taskJson[taskCount].eList.length
  7193. "
  7194. :class="{
  7195. rightW:
  7196. w.userid == userid || tType == 1 || tType == 4
  7197. }"
  7198. >
  7199. 评分
  7200. </div>
  7201. <!-- <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"> -->
  7202. <div
  7203. v-else-if="
  7204. (courseDetail.userid == userid ||
  7205. (courseDetail.course_teacher &&
  7206. courseDetail.course_teacher.indexOf(userid) !=
  7207. -1) ||
  7208. (w.userid == userid && sIsOpen)) &&
  7209. courseDetail.state == 5 &&
  7210. ((chapInfoList[courseType].chapterInfo[0]
  7211. .taskJson[taskCount].eList &&
  7212. chapInfoList[courseType].chapterInfo[0]
  7213. .taskJson[taskCount].eList.length) ||
  7214. (tool.eList && tool.eList.length))
  7215. "
  7216. >
  7217. <el-popover
  7218. placement="top"
  7219. width="318"
  7220. :disabled="AIloading[toolIndex][wIndex].loading"
  7221. trigger="hover"
  7222. >
  7223. <markScore
  7224. :loading="AIloading[toolIndex][wIndex].loading"
  7225. :markScoreVisible="markScoreVisible"
  7226. :ref="`markSco${toolIndex}${wIndex}`"
  7227. @updateLoading="updateLoading"
  7228. @updateDocSco="updateDocSco"
  7229. @refreshOther="refreshOther"
  7230. @markScoreDig="markScoreDig"
  7231. :tool="tool"
  7232. :wIndex="wIndex"
  7233. :scoCon="w"
  7234. :toolIndex="toolIndex"
  7235. :key="refreshKey"
  7236. :stage="courseType"
  7237. :task="taskCount"
  7238. :scoTit="
  7239. chapInfoList[courseType].chapterInfo[0]
  7240. .taskJson[taskCount].eList
  7241. "
  7242. >
  7243. </markScore>
  7244. <div
  7245. class="answerScore"
  7246. @click="
  7247. markScoreDig2(
  7248. w.sName,
  7249. worksStudent,
  7250. w.userid,
  7251. toolIndex,
  7252. chapInfoList[courseType].chapterInfo[0]
  7253. .taskJson[taskCount].eList,
  7254. AIloading[toolIndex][wIndex].loading,
  7255. tool
  7256. )
  7257. "
  7258. slot="reference"
  7259. :class="{
  7260. rightW:
  7261. w.userid == userid ||
  7262. tType == 1 ||
  7263. tType == 4 ||
  7264. w.ateacher == userid
  7265. }"
  7266. >
  7267. <span v-if="AIloading[toolIndex][wIndex].sco">
  7268. {{
  7269. AIloading[toolIndex][wIndex].loading
  7270. ? "评分中"
  7271. : AIloading[toolIndex][wIndex].sco + "分"
  7272. }}
  7273. </span>
  7274. <span v-else>
  7275. {{
  7276. AIloading[toolIndex][wIndex].loading
  7277. ? "评分中"
  7278. : "评分"
  7279. }}
  7280. </span>
  7281. </div>
  7282. </el-popover>
  7283. </div>
  7284. <img
  7285. class="deleteImg"
  7286. src="../../assets/deleteworks.png"
  7287. v-if="
  7288. w.userid == userid || tType == 1 || tType == 4
  7289. "
  7290. @click.stop="deleteWorks(w.wid)"
  7291. alt
  7292. />
  7293. </div>
  7294. <div class="comment" style="min-width: 200px">
  7295. <div class="worksName">
  7296. <div>{{ w.sName }}</div>
  7297. </div>
  7298. <div class="commentList">
  7299. <div class="commentList">
  7300. <div
  7301. class="commentImg"
  7302. @click="
  7303. isLikes(
  7304. w.wid,
  7305. userid,
  7306. 1,
  7307. null,
  7308. w.isLikes,
  7309. w.sName
  7310. )
  7311. "
  7312. >
  7313. <img
  7314. :src="w.isLikes == true ? likes : noLikes"
  7315. alt=""
  7316. />
  7317. </div>
  7318. <div>{{ w.likesCount }}</div>
  7319. </div>
  7320. <div class="commentList" style="margin-right: 15px">
  7321. <div
  7322. class="commentImg"
  7323. @click="commentOther(w, toolIndex, wIndex)"
  7324. >
  7325. <img
  7326. src="../../assets/icon/comment/comment.png"
  7327. alt=""
  7328. />
  7329. </div>
  7330. <div>{{ w.commentCount }}</div>
  7331. </div>
  7332. </div>
  7333. </div>
  7334. </div>
  7335. </div>
  7336. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7337. 未提交
  7338. </div>
  7339. <div
  7340. class="noWorksS"
  7341. v-if="noWorksS && noWorksS[toolIndex].length"
  7342. >
  7343. <div
  7344. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7345. :key="sIndex"
  7346. class="noWorksName"
  7347. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7348. >
  7349. <el-tooltip
  7350. effect="dark"
  7351. :content="s.student"
  7352. placement="top"
  7353. >
  7354. <span>{{ s.student }}</span>
  7355. </el-tooltip>
  7356. </div>
  7357. </div>
  7358. </div>
  7359. <div
  7360. v-if="
  7361. tType &&
  7362. ((tType == 2 && sIsOpen == true) ||
  7363. tType == 1 ||
  7364. tType == 4) &&
  7365. tool.tool.indexOf(6) != -1
  7366. "
  7367. class="worksBox"
  7368. >
  7369. <div
  7370. class="zuoyeYulan"
  7371. v-if="
  7372. (worksStudent.length &&
  7373. worksStudent[toolIndex].length > 0) ||
  7374. (courseGroup.group && courseGroup.group.length)
  7375. "
  7376. >
  7377. <div class="worksTop">
  7378. <div>作业预览</div>
  7379. <div
  7380. class="corOpen"
  7381. @click="contract(toolIndex)"
  7382. v-if="
  7383. isCloseList[toolIndex].isCloseBoolean &&
  7384. isCloseList[toolIndex].isClose == 0
  7385. "
  7386. >
  7387. 折叠
  7388. </div>
  7389. <div
  7390. class="corOpen"
  7391. @click="contract(toolIndex)"
  7392. v-if="isCloseList[toolIndex].isClose == 1"
  7393. >
  7394. 展开
  7395. </div>
  7396. </div>
  7397. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7398. </div>
  7399. <div
  7400. class="group_workBox"
  7401. v-for="(g, gindex) in courseGroup.group"
  7402. :key="gindex"
  7403. >
  7404. <div class="group_box">
  7405. <div class="group_title">
  7406. <el-tooltip
  7407. class="item"
  7408. effect="light"
  7409. :content="g.name"
  7410. placement="top"
  7411. >
  7412. <div class="group_name">{{ g.name }}</div>
  7413. </el-tooltip>
  7414. </div>
  7415. <div
  7416. class="group_work"
  7417. v-if="
  7418. g.works &&
  7419. g.works.length &&
  7420. g.works[toolIndex].length
  7421. "
  7422. >
  7423. <div
  7424. class="works"
  7425. style="
  7426. width: 200px;
  7427. height: 140px;
  7428. margin: 10px 10px 10px 0;
  7429. border-radius: 15px;
  7430. box-shadow: 0 0 6px 1px #dfdada;
  7431. "
  7432. v-for="(w, wIndex) in g.works[toolIndex]"
  7433. :key="wIndex"
  7434. :class="w.type == 1 ? 'isTypeOne' : ''"
  7435. >
  7436. <div class="workImg">
  7437. <img
  7438. :src="w.works"
  7439. @click="previewImg(w.works, w)"
  7440. alt
  7441. />
  7442. <div
  7443. class="answerScore"
  7444. v-if="w.score"
  7445. @click.stop="openScore(w)"
  7446. :class="{
  7447. rightW:
  7448. w.userid == userid ||
  7449. tType == 1 ||
  7450. tType == 4
  7451. }"
  7452. >
  7453. {{ JSON.parse(w.score).wScore }}分
  7454. </div>
  7455. <div
  7456. class="answerScore"
  7457. @click.stop="openScore(w)"
  7458. v-else-if="courseDetail.userid == userid"
  7459. :class="{
  7460. rightW:
  7461. w.userid == userid ||
  7462. tType == 1 ||
  7463. tType == 4
  7464. }"
  7465. >
  7466. 评分
  7467. </div>
  7468. <img
  7469. class="deleteImg"
  7470. src="../../assets/deleteworks.png"
  7471. v-if="
  7472. w.userid == userid || tType == 1 || tType == 4
  7473. "
  7474. @click.stop="deleteWorks(w.wid)"
  7475. alt
  7476. />
  7477. </div>
  7478. <div class="comment" style="min-width: 200px">
  7479. <div class="worksName">
  7480. <div>{{ w.sName }}</div>
  7481. </div>
  7482. <div class="commentList">
  7483. <div class="commentList">
  7484. <div
  7485. class="commentImg"
  7486. @click="
  7487. isLikes(
  7488. w.wid,
  7489. userid,
  7490. 1,
  7491. null,
  7492. w.isLikes,
  7493. w.sName
  7494. )
  7495. "
  7496. >
  7497. <img
  7498. :src="w.isLikes == true ? likes : noLikes"
  7499. alt=""
  7500. />
  7501. </div>
  7502. <div>{{ w.likesCount }}</div>
  7503. </div>
  7504. <div
  7505. class="commentList"
  7506. style="margin-right: 15px"
  7507. >
  7508. <div
  7509. class="commentImg"
  7510. @click="
  7511. commentOther(
  7512. w,
  7513. toolIndex,
  7514. wIndex,
  7515. null,
  7516. g.id
  7517. )
  7518. "
  7519. >
  7520. <img
  7521. src="../../assets/icon/comment/comment.png"
  7522. alt=""
  7523. />
  7524. </div>
  7525. <div>{{ w.commentCount }}</div>
  7526. </div>
  7527. </div>
  7528. </div>
  7529. </div>
  7530. </div>
  7531. <div class="group_work" v-else>暂无提交作业</div>
  7532. </div>
  7533. </div>
  7534. <div
  7535. :id="'tool-' + toolIndex"
  7536. :style="{
  7537. height:
  7538. isCloseList[toolIndex].isClose == 1
  7539. ? retrnToolHeight('tool-' + toolIndex)
  7540. : 'auto',
  7541. overflow:
  7542. isCloseList[toolIndex].isClose == 1
  7543. ? 'hidden'
  7544. : 'unset'
  7545. }"
  7546. class="worksDetailBox"
  7547. v-if="
  7548. worksStudent.length &&
  7549. worksStudent[toolIndex].length > 0
  7550. "
  7551. >
  7552. <div
  7553. class="works"
  7554. style="
  7555. width: 200px;
  7556. height: 140px;
  7557. margin: 10px 10px 10px 0;
  7558. border-radius: 15px;
  7559. box-shadow: 0 0 6px 1px #dfdada;
  7560. "
  7561. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7562. :key="wIndex"
  7563. >
  7564. <!-- @click="previewImg(w.works)" -->
  7565. <div class="workImg">
  7566. <img
  7567. :src="w.works"
  7568. @click="previewImg(w.works, w)"
  7569. alt
  7570. />
  7571. <div
  7572. class="answerScore"
  7573. v-if="w.score"
  7574. @click.stop="openScore(w)"
  7575. :class="{
  7576. rightW:
  7577. w.userid == userid || tType == 1 || tType == 4
  7578. }"
  7579. >
  7580. {{ JSON.parse(w.score).wScore }}分
  7581. </div>
  7582. <div
  7583. class="answerScore"
  7584. @click.stop="openScore(w)"
  7585. v-else-if="courseDetail.userid == userid"
  7586. :class="{
  7587. rightW:
  7588. w.userid == userid || tType == 1 || tType == 4
  7589. }"
  7590. >
  7591. 评分
  7592. </div>
  7593. <img
  7594. class="deleteImg"
  7595. src="../../assets/deleteworks.png"
  7596. v-if="
  7597. w.userid == userid || tType == 1 || tType == 4
  7598. "
  7599. @click.stop="deleteWorks(w.wid)"
  7600. alt
  7601. />
  7602. </div>
  7603. <div class="comment" style="min-width: 200px">
  7604. <div class="worksName">
  7605. <div>{{ w.sName }}</div>
  7606. </div>
  7607. <div class="commentList">
  7608. <div class="commentList">
  7609. <div
  7610. class="commentImg"
  7611. @click="
  7612. isLikes(
  7613. w.wid,
  7614. userid,
  7615. 1,
  7616. null,
  7617. w.isLikes,
  7618. w.sName
  7619. )
  7620. "
  7621. >
  7622. <img
  7623. :src="w.isLikes == true ? likes : noLikes"
  7624. alt=""
  7625. />
  7626. </div>
  7627. <div>{{ w.likesCount }}</div>
  7628. </div>
  7629. <div class="commentList" style="margin-right: 15px">
  7630. <div
  7631. class="commentImg"
  7632. @click="commentOther(w, toolIndex, wIndex)"
  7633. >
  7634. <img
  7635. src="../../assets/icon/comment/comment.png"
  7636. alt=""
  7637. />
  7638. </div>
  7639. <div>{{ w.commentCount }}</div>
  7640. </div>
  7641. </div>
  7642. </div>
  7643. </div>
  7644. </div>
  7645. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7646. 未提交
  7647. </div>
  7648. <div
  7649. class="noWorksS"
  7650. v-if="noWorksS && noWorksS[toolIndex].length"
  7651. >
  7652. <div
  7653. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7654. :key="sIndex"
  7655. class="noWorksName"
  7656. >
  7657. <el-tooltip
  7658. effect="dark"
  7659. :content="s.student"
  7660. placement="top"
  7661. >
  7662. <span>{{ s.student }}</span>
  7663. </el-tooltip>
  7664. </div>
  7665. </div>
  7666. </div>
  7667. <div
  7668. v-if="
  7669. tType &&
  7670. ((tType == 2 && sIsOpen == true) ||
  7671. tType == 1 ||
  7672. tType == 4) &&
  7673. tool.tool.indexOf(7) != -1
  7674. "
  7675. class="worksBox"
  7676. >
  7677. <div
  7678. class="zuoyeYulan"
  7679. style="display: flex;justify-content: space-between;align-items: center;"
  7680. v-if="
  7681. (worksStudent.length &&
  7682. worksStudent[toolIndex].length > 0) ||
  7683. (courseGroup.group && courseGroup.group.length)
  7684. "
  7685. >
  7686. <div class="worksTop">
  7687. <div>作业预览</div>
  7688. <div
  7689. class="corOpen"
  7690. @click="contract(toolIndex)"
  7691. v-if="
  7692. isCloseList[toolIndex].isCloseBoolean &&
  7693. isCloseList[toolIndex].isClose == 0
  7694. "
  7695. >
  7696. 折叠
  7697. </div>
  7698. <div
  7699. class="corOpen"
  7700. @click="contract(toolIndex)"
  7701. v-if="isCloseList[toolIndex].isClose == 1"
  7702. >
  7703. 展开
  7704. </div>
  7705. </div>
  7706. <div
  7707. style="display: flex;"
  7708. v-if="
  7709. (courseDetail.userid == userid ||
  7710. (courseDetail.course_teacher &&
  7711. courseDetail.course_teacher.indexOf(userid) !=
  7712. -1)) &&
  7713. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7714. taskCount
  7715. ].eList &&
  7716. chapInfoList[courseType].chapterInfo[0].taskJson[
  7717. taskCount
  7718. ].eList.length) ||
  7719. (tool.eList && tool.eList.length)) &&
  7720. courseDetail.state == 5
  7721. "
  7722. >
  7723. <div
  7724. style="margin-right:10px"
  7725. class="ScoreBtn"
  7726. @click="
  7727. resetLoopEva(
  7728. worksStudent[toolIndex],
  7729. chapInfoList[courseType].chapterInfo[0].taskJson[
  7730. taskCount
  7731. ].eList,
  7732. courseType,
  7733. taskCount,
  7734. toolIndex,
  7735. tool.toolDetail,
  7736. worksStudent
  7737. )
  7738. "
  7739. >
  7740. 一键重置
  7741. </div>
  7742. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7743. <img
  7744. src="../../assets/icon/newIcons/rootImg.png"
  7745. alt=""
  7746. />
  7747. AI评分
  7748. </div>
  7749. <div
  7750. class="ScoreBtn"
  7751. v-else-if="!loopLoading[toolIndex].loading"
  7752. @click="
  7753. loopEva(
  7754. worksStudent[toolIndex],
  7755. chapInfoList[courseType].chapterInfo[0].taskJson[
  7756. taskCount
  7757. ].eList,
  7758. courseType,
  7759. taskCount,
  7760. toolIndex,
  7761. tool.toolDetail,
  7762. chapInfoList[courseType].chapterInfo[0].taskJson[
  7763. taskCount
  7764. ].taskDetail,
  7765. tool
  7766. )
  7767. "
  7768. >
  7769. <img
  7770. src="../../assets/icon/newIcons/rootImg.png"
  7771. alt=""
  7772. />
  7773. AI评分
  7774. </div>
  7775. <div class="ScoreBtn" v-else>
  7776. <img
  7777. src="../../assets/icon/newIcons/rootImg.png"
  7778. alt=""
  7779. />
  7780. 正在评分
  7781. </div>
  7782. </div>
  7783. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7784. </div>
  7785. <div
  7786. class="group_workBox"
  7787. v-for="(g, gindex) in courseGroup.group"
  7788. :key="gindex"
  7789. >
  7790. <div class="group_box">
  7791. <div class="group_title">
  7792. <el-tooltip
  7793. class="item"
  7794. effect="light"
  7795. :content="g.name"
  7796. placement="top"
  7797. >
  7798. <div class="group_name">{{ g.name }}</div>
  7799. </el-tooltip>
  7800. </div>
  7801. <div
  7802. class="group_work"
  7803. v-if="
  7804. g.works &&
  7805. g.works.length &&
  7806. g.works[toolIndex].length
  7807. "
  7808. >
  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 g.works[toolIndex]"
  7819. :key="wIndex"
  7820. :class="w.type == 1 ? 'isTypeOne' : ''"
  7821. >
  7822. <div class="workImg">
  7823. <img
  7824. :src="w.works"
  7825. @click="previewImg(w.works, w)"
  7826. alt
  7827. />
  7828. <div
  7829. class="answerScore"
  7830. v-if="w.score"
  7831. @click.stop="openScore(w)"
  7832. :class="{
  7833. rightW:
  7834. w.userid == userid ||
  7835. tType == 1 ||
  7836. tType == 4
  7837. }"
  7838. >
  7839. {{ JSON.parse(w.score).wScore }}分
  7840. </div>
  7841. <div
  7842. class="answerScore"
  7843. @click.stop="openScore(w)"
  7844. v-else-if="courseDetail.userid == userid"
  7845. :class="{
  7846. rightW:
  7847. w.userid == userid ||
  7848. tType == 1 ||
  7849. tType == 4
  7850. }"
  7851. >
  7852. 评分
  7853. </div>
  7854. <img
  7855. class="deleteImg"
  7856. src="../../assets/deleteworks.png"
  7857. v-if="
  7858. w.userid == userid || tType == 1 || tType == 4
  7859. "
  7860. @click.stop="deleteWorks(w.wid)"
  7861. alt
  7862. />
  7863. </div>
  7864. <div class="comment" style="min-width: 200px">
  7865. <div class="worksName">
  7866. <div>{{ w.sName }}</div>
  7867. </div>
  7868. <div class="commentList">
  7869. <div class="commentList">
  7870. <div
  7871. class="commentImg"
  7872. @click="
  7873. isLikes(
  7874. w.wid,
  7875. userid,
  7876. 1,
  7877. null,
  7878. w.isLikes,
  7879. w.sName
  7880. )
  7881. "
  7882. >
  7883. <img
  7884. :src="w.isLikes == true ? likes : noLikes"
  7885. alt=""
  7886. />
  7887. </div>
  7888. <div>{{ w.likesCount }}</div>
  7889. </div>
  7890. <div
  7891. class="commentList"
  7892. style="margin-right: 15px"
  7893. >
  7894. <div
  7895. class="commentImg"
  7896. @click="
  7897. commentOther(
  7898. w,
  7899. toolIndex,
  7900. wIndex,
  7901. null,
  7902. g.id
  7903. )
  7904. "
  7905. >
  7906. <img
  7907. src="../../assets/icon/comment/comment.png"
  7908. alt=""
  7909. />
  7910. </div>
  7911. <div>{{ w.commentCount }}</div>
  7912. </div>
  7913. </div>
  7914. </div>
  7915. </div>
  7916. </div>
  7917. <div class="group_work" v-else>暂无提交作业</div>
  7918. </div>
  7919. </div>
  7920. <div
  7921. :id="'tool-' + toolIndex"
  7922. :style="{
  7923. height:
  7924. isCloseList[toolIndex].isClose == 1
  7925. ? retrnToolHeight('tool-' + toolIndex)
  7926. : 'auto',
  7927. overflow:
  7928. isCloseList[toolIndex].isClose == 1
  7929. ? 'hidden'
  7930. : 'unset'
  7931. }"
  7932. class="worksDetailBox"
  7933. v-if="
  7934. worksStudent.length &&
  7935. worksStudent[toolIndex].length > 0
  7936. "
  7937. >
  7938. <div
  7939. class="works"
  7940. style="
  7941. width: 200px;
  7942. height: 140px;
  7943. margin: 10px 10px 10px 0;
  7944. border-radius: 15px;
  7945. box-shadow: 0 0 6px 1px #dfdada;
  7946. "
  7947. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7948. :key="wIndex"
  7949. >
  7950. <!-- @click="previewImg(w.works)" -->
  7951. <div class="workImg">
  7952. <img
  7953. :src="w.works"
  7954. @click="previewImg(w.works, w)"
  7955. alt
  7956. />
  7957. <div
  7958. class="answerScore"
  7959. v-if="w.score"
  7960. @click.stop="openScore(w)"
  7961. :class="{
  7962. rightW:
  7963. w.userid == userid || tType == 1 || tType == 4
  7964. }"
  7965. >
  7966. {{ JSON.parse(w.score).wScore }}分
  7967. </div>
  7968. <div
  7969. class="answerScore"
  7970. @click.stop="openScore(w)"
  7971. v-else-if="
  7972. courseDetail.userid == userid &&
  7973. courseDetail.state != 5 &&
  7974. chapInfoList[courseType].chapterInfo[0]
  7975. .taskJson[taskCount].eList &&
  7976. chapInfoList[courseType].chapterInfo[0]
  7977. .taskJson[taskCount].eList.length
  7978. "
  7979. :class="{
  7980. rightW:
  7981. w.userid == userid || tType == 1 || tType == 4
  7982. }"
  7983. >
  7984. 评分
  7985. </div>
  7986. <!-- <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"> -->
  7987. <div
  7988. v-else-if="
  7989. (courseDetail.userid == userid ||
  7990. (courseDetail.course_teacher &&
  7991. courseDetail.course_teacher.indexOf(userid) !=
  7992. -1) ||
  7993. (w.userid == userid && sIsOpen)) &&
  7994. courseDetail.state == 5 &&
  7995. ((chapInfoList[courseType].chapterInfo[0]
  7996. .taskJson[taskCount].eList &&
  7997. chapInfoList[courseType].chapterInfo[0]
  7998. .taskJson[taskCount].eList.length) ||
  7999. (tool.eList && tool.eList.length))
  8000. "
  8001. >
  8002. <el-popover
  8003. placement="top"
  8004. width="318"
  8005. :disabled="AIloading[toolIndex][wIndex].loading"
  8006. trigger="hover"
  8007. >
  8008. <markScore
  8009. :loading="AIloading[toolIndex][wIndex].loading"
  8010. :markScoreVisible="markScoreVisible"
  8011. :ref="`markSco${toolIndex}${wIndex}`"
  8012. @updateLoading="updateLoading"
  8013. @updateDocSco="updateDocSco"
  8014. @refreshOther="refreshOther"
  8015. @markScoreDig="markScoreDig"
  8016. :tool="tool"
  8017. :wIndex="wIndex"
  8018. :scoCon="w"
  8019. :toolIndex="toolIndex"
  8020. :key="refreshKey"
  8021. :stage="courseType"
  8022. :task="taskCount"
  8023. :scoTit="
  8024. chapInfoList[courseType].chapterInfo[0]
  8025. .taskJson[taskCount].eList
  8026. "
  8027. >
  8028. </markScore>
  8029. <div
  8030. class="answerScore"
  8031. @click="
  8032. markScoreDig2(
  8033. w.sName,
  8034. worksStudent,
  8035. w.userid,
  8036. toolIndex,
  8037. chapInfoList[courseType].chapterInfo[0]
  8038. .taskJson[taskCount].eList,
  8039. AIloading[toolIndex][wIndex].loading,
  8040. tool
  8041. )
  8042. "
  8043. slot="reference"
  8044. :class="{
  8045. rightW:
  8046. w.userid == userid ||
  8047. tType == 1 ||
  8048. tType == 4 ||
  8049. w.ateacher == userid
  8050. }"
  8051. >
  8052. <span v-if="AIloading[toolIndex][wIndex].sco">
  8053. {{
  8054. AIloading[toolIndex][wIndex].loading
  8055. ? "评分中"
  8056. : AIloading[toolIndex][wIndex].sco + "分"
  8057. }}
  8058. </span>
  8059. <span v-else>
  8060. {{
  8061. AIloading[toolIndex][wIndex].loading
  8062. ? "评分中"
  8063. : "评分"
  8064. }}
  8065. </span>
  8066. </div>
  8067. </el-popover>
  8068. </div>
  8069. <img
  8070. class="deleteImg"
  8071. src="../../assets/deleteworks.png"
  8072. v-if="
  8073. w.userid == userid || tType == 1 || tType == 4
  8074. "
  8075. @click.stop="deleteWorks(w.wid)"
  8076. alt
  8077. />
  8078. </div>
  8079. <div class="comment" style="min-width: 200px">
  8080. <div class="worksName">
  8081. <div>{{ w.sName }}</div>
  8082. </div>
  8083. <div class="commentList">
  8084. <div class="commentList">
  8085. <div
  8086. class="commentImg"
  8087. @click="
  8088. isLikes(
  8089. w.wid,
  8090. userid,
  8091. 1,
  8092. null,
  8093. w.isLikes,
  8094. w.sName
  8095. )
  8096. "
  8097. >
  8098. <img
  8099. :src="w.isLikes == true ? likes : noLikes"
  8100. alt=""
  8101. />
  8102. </div>
  8103. <div>{{ w.likesCount }}</div>
  8104. </div>
  8105. <div class="commentList" style="margin-right: 15px">
  8106. <div
  8107. class="commentImg"
  8108. @click="commentOther(w, toolIndex, wIndex)"
  8109. >
  8110. <img
  8111. src="../../assets/icon/comment/comment.png"
  8112. alt=""
  8113. />
  8114. </div>
  8115. <div>{{ w.commentCount }}</div>
  8116. </div>
  8117. </div>
  8118. </div>
  8119. </div>
  8120. </div>
  8121. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8122. 未提交
  8123. </div>
  8124. <div
  8125. class="noWorksS"
  8126. v-if="noWorksS && noWorksS[toolIndex].length"
  8127. >
  8128. <div
  8129. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8130. :key="sIndex"
  8131. class="noWorksName"
  8132. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8133. >
  8134. <el-tooltip
  8135. effect="dark"
  8136. :content="s.student"
  8137. placement="top"
  8138. >
  8139. <span>{{ s.student }}</span>
  8140. </el-tooltip>
  8141. </div>
  8142. </div>
  8143. </div>
  8144. <div
  8145. v-if="
  8146. tType &&
  8147. ((tType == 2 && sIsOpen == true) ||
  8148. tType == 1 ||
  8149. tType == 4) &&
  8150. tool.tool.indexOf(26) != -1
  8151. "
  8152. class="worksBox"
  8153. >
  8154. <div
  8155. class="zuoyeYulan"
  8156. v-if="
  8157. worksStudent.length &&
  8158. worksStudent[toolIndex].length > 0
  8159. "
  8160. >
  8161. <div class="worksTop">
  8162. <div>作业预览</div>
  8163. <div
  8164. class="corOpen"
  8165. @click="contract(toolIndex)"
  8166. v-if="
  8167. isCloseList[toolIndex].isCloseBoolean &&
  8168. isCloseList[toolIndex].isClose == 0
  8169. "
  8170. >
  8171. 折叠
  8172. </div>
  8173. <div
  8174. class="corOpen"
  8175. @click="contract(toolIndex)"
  8176. v-if="isCloseList[toolIndex].isClose == 1"
  8177. >
  8178. 展开
  8179. </div>
  8180. </div>
  8181. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8182. </div>
  8183. <div
  8184. :id="'tool-' + toolIndex"
  8185. :style="{
  8186. height:
  8187. isCloseList[toolIndex].isClose == 1
  8188. ? retrnToolHeight('tool-' + toolIndex)
  8189. : 'auto',
  8190. overflow:
  8191. isCloseList[toolIndex].isClose == 1
  8192. ? 'hidden'
  8193. : 'unset'
  8194. }"
  8195. class="worksDetailBox"
  8196. v-if="
  8197. worksStudent.length &&
  8198. worksStudent[toolIndex].length > 0
  8199. "
  8200. >
  8201. <div
  8202. class="works"
  8203. style="width: 240px; height: 140px; overflow: hidden"
  8204. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8205. :key="wIndex"
  8206. :class="w.type == 1 ? 'isTypeOne' : ''"
  8207. >
  8208. <div class="workImg" v-if="w.type == 0">
  8209. <img
  8210. :src="w.works"
  8211. @click="previewImg(w.works, w)"
  8212. alt
  8213. />
  8214. <img
  8215. class="deleteImg"
  8216. src="../../assets/deleteworks.png"
  8217. v-if="
  8218. w.userid == userid || tType == 1 || tType == 4
  8219. "
  8220. @click.stop="deleteWorks(w.wid)"
  8221. alt
  8222. />
  8223. </div>
  8224. <div class="workImg" v-if="w.type == 1">
  8225. <img :src="word" @click="openFile(w.works)" alt />
  8226. <img
  8227. class="deleteImg"
  8228. src="../../assets/deleteworks.png"
  8229. v-if="
  8230. w.userid == userid || tType == 1 || tType == 4
  8231. "
  8232. @click.stop="deleteWorks(w.wid)"
  8233. alt
  8234. />
  8235. </div>
  8236. <div class="worksName">
  8237. <div>{{ w.sName }}</div>
  8238. </div>
  8239. </div>
  8240. </div>
  8241. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8242. 未提交
  8243. </div>
  8244. <div
  8245. class="noWorksS"
  8246. v-if="noWorksS && noWorksS[toolIndex].length"
  8247. >
  8248. <div
  8249. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8250. :key="sIndex"
  8251. class="noWorksName"
  8252. >
  8253. <el-tooltip
  8254. effect="dark"
  8255. :content="s.student"
  8256. placement="top"
  8257. >
  8258. <span>{{ s.student }}</span>
  8259. </el-tooltip>
  8260. </div>
  8261. </div>
  8262. </div>
  8263. <div
  8264. v-if="
  8265. tType &&
  8266. ((tType == 2 && sIsOpen == true) ||
  8267. tType == 1 ||
  8268. tType == 4) &&
  8269. tool.tool.indexOf(40) != -1
  8270. "
  8271. class="worksBox"
  8272. >
  8273. <div
  8274. class="zuoyeYulan"
  8275. v-if="
  8276. worksStudent.length &&
  8277. worksStudent[toolIndex].length > 0
  8278. "
  8279. >
  8280. <div class="worksTop">
  8281. <div>作业预览</div>
  8282. <div
  8283. class="corOpen"
  8284. @click="contract(toolIndex)"
  8285. v-if="
  8286. isCloseList[toolIndex].isCloseBoolean &&
  8287. isCloseList[toolIndex].isClose == 0
  8288. "
  8289. >
  8290. 折叠
  8291. </div>
  8292. <div
  8293. class="corOpen"
  8294. @click="contract(toolIndex)"
  8295. v-if="isCloseList[toolIndex].isClose == 1"
  8296. >
  8297. 展开
  8298. </div>
  8299. </div>
  8300. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8301. </div>
  8302. <div
  8303. :id="'tool-' + toolIndex"
  8304. :style="{
  8305. height:
  8306. isCloseList[toolIndex].isClose == 1
  8307. ? retrnToolHeight('tool-' + toolIndex)
  8308. : 'auto',
  8309. overflow:
  8310. isCloseList[toolIndex].isClose == 1
  8311. ? 'hidden'
  8312. : 'unset'
  8313. }"
  8314. class="worksDetailBox"
  8315. v-if="
  8316. worksStudent.length &&
  8317. worksStudent[toolIndex].length > 0
  8318. "
  8319. >
  8320. <div
  8321. class="works"
  8322. style="
  8323. width: 200px;
  8324. height: 140px;
  8325. margin: 10px 10px 10px 0;
  8326. border-radius: 15px;
  8327. box-shadow: 0 0 6px 1px #dfdada;
  8328. "
  8329. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8330. :key="wIndex"
  8331. :class="w.type == 1 ? 'isTypeOne' : ''"
  8332. >
  8333. <div class="workImg">
  8334. <img
  8335. src="../../assets/icon/works/noImg.png"
  8336. @click="openPj(w.works, toolIndex)"
  8337. alt
  8338. />
  8339. <img
  8340. class="deleteImg"
  8341. src="../../assets/deleteworks.png"
  8342. v-if="
  8343. w.userid == userid || tType == 1 || tType == 4
  8344. "
  8345. @click.stop="deleteWorks(w.wid)"
  8346. alt
  8347. />
  8348. </div>
  8349. <div class="comment" style="min-width: 200px">
  8350. <div class="worksName">
  8351. <div>{{ w.sName }}</div>
  8352. </div>
  8353. <div class="commentList">
  8354. <div class="commentList">
  8355. <div
  8356. class="commentImg"
  8357. @click="
  8358. isLikes(
  8359. w.wid,
  8360. userid,
  8361. 1,
  8362. null,
  8363. w.isLikes,
  8364. w.sName
  8365. )
  8366. "
  8367. >
  8368. <img
  8369. :src="w.isLikes == true ? likes : noLikes"
  8370. alt=""
  8371. />
  8372. </div>
  8373. <div>{{ w.likesCount }}</div>
  8374. </div>
  8375. <div class="commentList" style="margin-right: 15px">
  8376. <div
  8377. class="commentImg"
  8378. @click="commentOther(w, toolIndex, wIndex)"
  8379. >
  8380. <img
  8381. src="../../assets/icon/comment/comment.png"
  8382. alt=""
  8383. />
  8384. </div>
  8385. <div>{{ w.commentCount }}</div>
  8386. </div>
  8387. </div>
  8388. </div>
  8389. </div>
  8390. </div>
  8391. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8392. 未提交
  8393. </div>
  8394. <div
  8395. class="noWorksS"
  8396. v-if="noWorksS && noWorksS[toolIndex].length"
  8397. >
  8398. <div
  8399. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8400. :key="sIndex"
  8401. class="noWorksName"
  8402. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8403. >
  8404. <el-tooltip
  8405. effect="dark"
  8406. :content="s.student"
  8407. placement="top"
  8408. >
  8409. <span>{{ s.student }}</span>
  8410. </el-tooltip>
  8411. </div>
  8412. </div>
  8413. </div>
  8414. <div
  8415. v-if="
  8416. tType &&
  8417. tType == 2 &&
  8418. !sIsOpen &&
  8419. tool.tool.indexOf(40) != -1
  8420. "
  8421. class="worksBox"
  8422. >
  8423. <div
  8424. class="zuoyeYulan"
  8425. v-if="workStudent[toolIndex].length > 0"
  8426. >
  8427. <span class="worksTitle">作业预览</span>
  8428. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8429. </div>
  8430. <div
  8431. class="worksDetailBox"
  8432. v-if="workStudent[toolIndex].length > 0"
  8433. >
  8434. <div
  8435. class="works"
  8436. style="
  8437. width: 200px;
  8438. height: 140px;
  8439. margin: 10px 10px 10px 0;
  8440. "
  8441. v-for="(w, wIndex) in workStudent[toolIndex]"
  8442. :key="wIndex"
  8443. >
  8444. <div class="workImg">
  8445. <img
  8446. src="../../assets/icon/works/noImg.png"
  8447. @click="openPj(w.works, toolIndex)"
  8448. alt
  8449. />
  8450. <img
  8451. class="deleteImg"
  8452. src="../../assets/deleteworks.png"
  8453. v-if="
  8454. w.userid == userid || tType == 1 || tType == 4
  8455. "
  8456. @click.stop="deleteWorks(w.wid)"
  8457. alt
  8458. />
  8459. </div>
  8460. <div class="worksName">
  8461. <div>{{ w.sName }}</div>
  8462. </div>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. <div
  8467. v-if="
  8468. tType &&
  8469. ((tType == 2 && sIsOpen == true) ||
  8470. tType == 1 ||
  8471. tType == 4) &&
  8472. tool.tool.indexOf(41) != -1
  8473. "
  8474. >
  8475. <AnswerData2
  8476. v-if="
  8477. worksStudent.length &&
  8478. worksStudent[toolIndex].length > 0
  8479. "
  8480. :problemJson="tool.selectJson.answer"
  8481. :people="worksStudent[toolIndex]"
  8482. ></AnswerData2>
  8483. </div>
  8484. <div
  8485. v-if="
  8486. tType &&
  8487. ((tType == 2 && sIsOpen == true) ||
  8488. tType == 1 ||
  8489. tType == 4) &&
  8490. tool.tool.indexOf(41) != -1
  8491. "
  8492. class="worksBox"
  8493. >
  8494. <div
  8495. class="zuoyeYulan"
  8496. v-if="
  8497. worksStudent.length &&
  8498. worksStudent[toolIndex].length > 0
  8499. "
  8500. >
  8501. <div class="worksTop">
  8502. <div>作业预览</div>
  8503. <div
  8504. class="corOpen"
  8505. @click="contract(toolIndex)"
  8506. v-if="
  8507. isCloseList[toolIndex].isCloseBoolean &&
  8508. isCloseList[toolIndex].isClose == 0
  8509. "
  8510. >
  8511. 折叠
  8512. </div>
  8513. <div
  8514. class="corOpen"
  8515. @click="contract(toolIndex)"
  8516. v-if="isCloseList[toolIndex].isClose == 1"
  8517. >
  8518. 展开
  8519. </div>
  8520. </div>
  8521. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8522. </div>
  8523. <div
  8524. :id="'tool-' + toolIndex"
  8525. :style="{
  8526. height:
  8527. isCloseList[toolIndex].isClose == 1
  8528. ? retrnToolHeight('tool-' + toolIndex)
  8529. : 'auto',
  8530. overflow:
  8531. isCloseList[toolIndex].isClose == 1
  8532. ? 'hidden'
  8533. : 'unset'
  8534. }"
  8535. class="worksDetailBox"
  8536. v-if="
  8537. worksStudent.length &&
  8538. worksStudent[toolIndex].length > 0
  8539. "
  8540. >
  8541. <div
  8542. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8543. :key="wIndex"
  8544. class="isWorksName2"
  8545. @click="openXz(w, toolIndex)"
  8546. >
  8547. {{ w.sName }}
  8548. <img
  8549. class="deleteImg deleteImg2"
  8550. src="../../assets/deleteworks.png"
  8551. v-if="w.userid == userid || tType == 1 || tType == 4"
  8552. @click.stop="deleteWorks(w.wid)"
  8553. alt
  8554. />
  8555. </div>
  8556. <!-- <div
  8557. class="works"
  8558. style="
  8559. width: 200px;
  8560. height: 140px;
  8561. margin: 10px 10px 10px 0;
  8562. border-radius: 15px;
  8563. box-shadow: 0 0 6px 1px #dfdada;
  8564. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8565. :class="w.type == 5 ? 'isTypeOne' : ''">
  8566. <div class="workImg">
  8567. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8568. </div>
  8569. <div class="worksName">
  8570. <div>{{ w.sName }}</div>
  8571. </div>
  8572. </div> -->
  8573. </div>
  8574. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8575. 未提交
  8576. </div>
  8577. <div
  8578. class="noWorksS"
  8579. v-if="noWorksS && noWorksS[toolIndex].length"
  8580. >
  8581. <div
  8582. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8583. :key="sIndex"
  8584. class="noWorksName"
  8585. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8586. >
  8587. <el-tooltip
  8588. effect="dark"
  8589. :content="s.student"
  8590. placement="top"
  8591. >
  8592. <span>{{ s.student }}</span>
  8593. </el-tooltip>
  8594. </div>
  8595. </div>
  8596. </div>
  8597. <div
  8598. v-if="
  8599. tType &&
  8600. tType == 2 &&
  8601. !sIsOpen &&
  8602. tool.tool.indexOf(41) != -1
  8603. "
  8604. class="worksBox"
  8605. >
  8606. <div
  8607. class="zuoyeYulan"
  8608. v-if="workStudent[toolIndex].length > 0"
  8609. >
  8610. <span class="worksTitle">作业预览</span>
  8611. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8612. </div>
  8613. <div
  8614. class="worksDetailBox"
  8615. v-if="workStudent[toolIndex].length > 0"
  8616. >
  8617. <div
  8618. class="works"
  8619. style="
  8620. width: 200px;
  8621. height: 140px;
  8622. margin: 10px 10px 10px 0;
  8623. "
  8624. v-for="(w, wIndex) in workStudent[toolIndex]"
  8625. :key="wIndex"
  8626. >
  8627. <div class="workImg">
  8628. <img
  8629. src="../../assets/icon/works/noImg.png"
  8630. @click="openXz(w, toolIndex)"
  8631. alt
  8632. />
  8633. <img
  8634. class="deleteImg"
  8635. src="../../assets/deleteworks.png"
  8636. v-if="
  8637. w.userid == userid || tType == 1 || tType == 4
  8638. "
  8639. @click.stop="deleteWorks(w.wid)"
  8640. alt
  8641. />
  8642. </div>
  8643. <div class="worksName">
  8644. <div>{{ w.sName }}</div>
  8645. </div>
  8646. </div>
  8647. </div>
  8648. </div>
  8649. <div v-if="false" class="xuan_right_box">
  8650. <div
  8651. class="tool_right_box"
  8652. v-for="(item, index) in tool.sentenceList"
  8653. :key="index"
  8654. >
  8655. <div>
  8656. <span
  8657. style="word-break: break-all; white-space: normal"
  8658. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8659. >
  8660. </div>
  8661. <div class="right_box_xuan">
  8662. <span>正确率</span>
  8663. <span>{{
  8664. (checkJson[toolIndex][index].right
  8665. ? checkJson[toolIndex][index].right
  8666. : 0) + "%"
  8667. }}</span>
  8668. </div>
  8669. <div class="right_box_xuan">
  8670. <span>答对人数</span>
  8671. <span>{{
  8672. checkJson[toolIndex][index].rightPerson.length
  8673. }}</span>
  8674. </div>
  8675. </div>
  8676. </div>
  8677. <div
  8678. v-if="
  8679. tType &&
  8680. ((tType == 2 && sIsOpen == true) ||
  8681. tType == 1 ||
  8682. tType == 4) &&
  8683. tool.tool.indexOf(47) != -1
  8684. "
  8685. >
  8686. <AnswerData
  8687. v-if="
  8688. checkJson[toolIndex].length &&
  8689. (tool.sentenceList || tool.sentenceList.length > 0)
  8690. "
  8691. :people="checkJson[toolIndex]"
  8692. ></AnswerData>
  8693. </div>
  8694. <div
  8695. v-if="
  8696. tType &&
  8697. tType == 2 &&
  8698. !sIsOpen &&
  8699. tool.tool.indexOf(47) != -1
  8700. "
  8701. class="worksBox"
  8702. >
  8703. <div
  8704. class="zuoyeYulan"
  8705. v-if="workStudent[toolIndex].length > 0"
  8706. >
  8707. <span class="worksTitle">作业预览</span>
  8708. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8709. </div>
  8710. <div
  8711. class="worksDetailBox"
  8712. v-if="workStudent[toolIndex].length > 0"
  8713. >
  8714. <div
  8715. class="works"
  8716. style="
  8717. width: 200px;
  8718. height: 140px;
  8719. margin: 10px 10px 10px 0;
  8720. "
  8721. v-for="(w, wIndex) in workStudent[toolIndex]"
  8722. :key="wIndex"
  8723. >
  8724. <!-- @click="openXz(w, toolIndex)" -->
  8725. <div class="workImg" @click="openSen(w, toolIndex)">
  8726. <img src="../../assets/icon/works/noImg.png" alt />
  8727. <img
  8728. class="deleteImg"
  8729. src="../../assets/deleteworks.png"
  8730. v-if="
  8731. w.userid == userid || tType == 1 || tType == 4
  8732. "
  8733. @click.stop="deleteWorks(w.wid)"
  8734. alt
  8735. />
  8736. </div>
  8737. <div class="worksName">
  8738. <div>
  8739. {{ w.sName }}
  8740. </div>
  8741. </div>
  8742. </div>
  8743. </div>
  8744. </div>
  8745. <div
  8746. v-if="
  8747. tType &&
  8748. ((tType == 2 && sIsOpen == true) ||
  8749. tType == 1 ||
  8750. tType == 4) &&
  8751. tool.tool.indexOf(47) != -1
  8752. "
  8753. class="worksBox"
  8754. >
  8755. <div
  8756. class="zuoyeYulan"
  8757. v-if="
  8758. worksStudent.length &&
  8759. worksStudent[toolIndex].length > 0
  8760. "
  8761. >
  8762. <div class="worksTop">
  8763. <div>作业预览</div>
  8764. <div
  8765. class="corOpen"
  8766. @click="contract(toolIndex)"
  8767. v-if="
  8768. isCloseList[toolIndex].isCloseBoolean &&
  8769. isCloseList[toolIndex].isClose == 0
  8770. "
  8771. >
  8772. 折叠
  8773. </div>
  8774. <div
  8775. class="corOpen"
  8776. @click="contract(toolIndex)"
  8777. v-if="isCloseList[toolIndex].isClose == 1"
  8778. >
  8779. 展开
  8780. </div>
  8781. </div>
  8782. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8783. </div>
  8784. <div
  8785. :id="'tool-' + toolIndex"
  8786. :style="{
  8787. height:
  8788. isCloseList[toolIndex].isClose == 1
  8789. ? retrnToolHeight('tool-' + toolIndex)
  8790. : 'auto',
  8791. overflow:
  8792. isCloseList[toolIndex].isClose == 1
  8793. ? 'hidden'
  8794. : 'unset'
  8795. }"
  8796. class="worksDetailBox"
  8797. v-if="
  8798. worksStudent.length &&
  8799. worksStudent[toolIndex].length > 0
  8800. "
  8801. >
  8802. <!-- @click="openXz(w, toolIndex)" -->
  8803. <div
  8804. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8805. :key="wIndex"
  8806. class="isWorksName2"
  8807. @click="openSen(w, toolIndex)"
  8808. >
  8809. {{ w.sName }}
  8810. <img
  8811. class="deleteImg deleteImg2"
  8812. src="../../assets/deleteworks.png"
  8813. v-if="w.userid == userid || tType == 1 || tType == 4"
  8814. @click.stop="deleteWorks(w.wid)"
  8815. alt
  8816. />
  8817. </div>
  8818. </div>
  8819. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8820. 未提交
  8821. </div>
  8822. <div
  8823. class="noWorksS"
  8824. v-if="noWorksS && noWorksS[toolIndex].length"
  8825. >
  8826. <div
  8827. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8828. :key="sIndex"
  8829. class="noWorksName"
  8830. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8831. >
  8832. <el-tooltip
  8833. effect="dark"
  8834. :content="s.student"
  8835. placement="top"
  8836. >
  8837. <span>{{ s.student }}</span>
  8838. </el-tooltip>
  8839. </div>
  8840. </div>
  8841. </div>
  8842. <div
  8843. v-if="
  8844. tType &&
  8845. ((tType == 2 && sIsOpen == true) ||
  8846. tType == 1 ||
  8847. tType == 4) &&
  8848. tool.tool.indexOf(48) != -1
  8849. "
  8850. class="worksBox"
  8851. >
  8852. <div
  8853. class="zuoyeYulan"
  8854. style="display: flex;justify-content: space-between;align-items: center;"
  8855. v-if="
  8856. worksStudent.length &&
  8857. worksStudent[toolIndex].length > 0
  8858. "
  8859. >
  8860. <div class="worksTop">
  8861. <div>作业预览</div>
  8862. <div
  8863. class="corOpen"
  8864. @click="contract(toolIndex)"
  8865. v-if="
  8866. isCloseList[toolIndex].isCloseBoolean &&
  8867. isCloseList[toolIndex].isClose == 0
  8868. "
  8869. >
  8870. 折叠
  8871. </div>
  8872. <div
  8873. class="corOpen"
  8874. @click="contract(toolIndex)"
  8875. v-if="isCloseList[toolIndex].isClose == 1"
  8876. >
  8877. 展开
  8878. </div>
  8879. </div>
  8880. <div
  8881. style="display: flex;"
  8882. v-if="
  8883. (courseDetail.userid == userid ||
  8884. (courseDetail.course_teacher &&
  8885. courseDetail.course_teacher.indexOf(userid) !=
  8886. -1)) &&
  8887. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8888. taskCount
  8889. ].eList &&
  8890. chapInfoList[courseType].chapterInfo[0].taskJson[
  8891. taskCount
  8892. ].eList.length) ||
  8893. (tool.eList && tool.eList.length)) &&
  8894. courseDetail.state == 5
  8895. "
  8896. >
  8897. <div
  8898. style="margin-right:10px"
  8899. class="ScoreBtn"
  8900. @click="
  8901. resetLoopEva(
  8902. worksStudent[toolIndex],
  8903. chapInfoList[courseType].chapterInfo[0].taskJson[
  8904. taskCount
  8905. ].eList,
  8906. courseType,
  8907. taskCount,
  8908. toolIndex,
  8909. tool.toolDetail,
  8910. worksStudent
  8911. )
  8912. "
  8913. >
  8914. 一键重置
  8915. </div>
  8916. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8917. <img
  8918. src="../../assets/icon/newIcons/rootImg.png"
  8919. alt=""
  8920. />
  8921. AI评分
  8922. </div>
  8923. <div
  8924. class="ScoreBtn"
  8925. v-else-if="!loopLoading[toolIndex].loading"
  8926. @click="
  8927. loopEva(
  8928. worksStudent[toolIndex],
  8929. chapInfoList[courseType].chapterInfo[0].taskJson[
  8930. taskCount
  8931. ].eList,
  8932. courseType,
  8933. taskCount,
  8934. toolIndex,
  8935. tool.toolDetail,
  8936. chapInfoList[courseType].chapterInfo[0].taskJson[
  8937. taskCount
  8938. ].taskDetail,
  8939. tool
  8940. )
  8941. "
  8942. >
  8943. <img
  8944. src="../../assets/icon/newIcons/rootImg.png"
  8945. alt=""
  8946. />
  8947. AI评分
  8948. </div>
  8949. <div class="ScoreBtn" v-else>
  8950. <img
  8951. src="../../assets/icon/newIcons/rootImg.png"
  8952. alt=""
  8953. />
  8954. 正在评分
  8955. </div>
  8956. </div>
  8957. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8958. </div>
  8959. <div
  8960. :id="'tool-' + toolIndex"
  8961. :style="{
  8962. height:
  8963. isCloseList[toolIndex].isClose == 1
  8964. ? retrnToolHeight('tool-' + toolIndex)
  8965. : 'auto',
  8966. overflow:
  8967. isCloseList[toolIndex].isClose == 1
  8968. ? 'hidden'
  8969. : 'unset'
  8970. }"
  8971. class="worksDetailBox"
  8972. v-if="
  8973. worksStudent.length &&
  8974. worksStudent[toolIndex].length > 0
  8975. "
  8976. >
  8977. <div
  8978. class="works"
  8979. style="
  8980. width: 200px;
  8981. height: 140px;
  8982. margin: 10px 10px 10px 0;
  8983. border-radius: 15px;
  8984. box-shadow: 0 0 6px 1px #dfdada;
  8985. "
  8986. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8987. :key="wIndex"
  8988. :class="w.type == 1 ? 'isTypeOne' : ''"
  8989. >
  8990. <div class="workImg">
  8991. <img :src="word" @click="openTable(w)" alt />
  8992. <!-- @click="openFile(w.works)" -->
  8993. <div
  8994. class="answerScore"
  8995. v-if="w.score"
  8996. @click.stop="openScore(w)"
  8997. :class="{
  8998. rightW:
  8999. w.userid == userid ||
  9000. tType == 1 ||
  9001. tType == 4 ||
  9002. w.ateacher == userid
  9003. }"
  9004. >
  9005. {{ JSON.parse(w.score).wScore }}分
  9006. </div>
  9007. <div
  9008. class="answerScore"
  9009. @click.stop="openScore(w)"
  9010. v-else-if="
  9011. courseDetail.userid == userid &&
  9012. courseDetail.state != 5 &&
  9013. chapInfoList[courseType].chapterInfo[0]
  9014. .taskJson[taskCount].eList &&
  9015. chapInfoList[courseType].chapterInfo[0]
  9016. .taskJson[taskCount].eList.length
  9017. "
  9018. :class="{
  9019. rightW:
  9020. w.userid == userid ||
  9021. tType == 1 ||
  9022. tType == 4 ||
  9023. w.ateacher == userid
  9024. }"
  9025. >
  9026. 评分
  9027. </div>
  9028. <!-- <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"> -->
  9029. <div
  9030. v-else-if="
  9031. (courseDetail.userid == userid ||
  9032. (courseDetail.course_teacher &&
  9033. courseDetail.course_teacher.indexOf(userid) !=
  9034. -1) ||
  9035. (w.userid == userid && sIsOpen)) &&
  9036. courseDetail.state == 5 &&
  9037. ((chapInfoList[courseType].chapterInfo[0]
  9038. .taskJson[taskCount].eList &&
  9039. chapInfoList[courseType].chapterInfo[0]
  9040. .taskJson[taskCount].eList.length) ||
  9041. (tool.eList && tool.eList.length))
  9042. "
  9043. >
  9044. <el-popover
  9045. placement="top"
  9046. width="318"
  9047. :disabled="AIloading[toolIndex][wIndex].loading"
  9048. trigger="hover"
  9049. >
  9050. <markScore
  9051. :loading="AIloading[toolIndex][wIndex].loading"
  9052. :markScoreVisible="markScoreVisible"
  9053. :ref="`markSco${toolIndex}${wIndex}`"
  9054. @updateLoading="updateLoading"
  9055. @updateDocSco="updateDocSco"
  9056. @refreshOther="refreshOther"
  9057. @markScoreDig="markScoreDig"
  9058. :tool="tool"
  9059. :wIndex="wIndex"
  9060. :scoCon="w"
  9061. :toolIndex="toolIndex"
  9062. :key="refreshKey"
  9063. :stage="courseType"
  9064. :task="taskCount"
  9065. :scoTit="
  9066. chapInfoList[courseType].chapterInfo[0]
  9067. .taskJson[taskCount].eList
  9068. "
  9069. >
  9070. </markScore>
  9071. <div
  9072. class="answerScore"
  9073. @click="
  9074. markScoreDig2(
  9075. w.sName,
  9076. worksStudent,
  9077. w.userid,
  9078. toolIndex,
  9079. chapInfoList[courseType].chapterInfo[0]
  9080. .taskJson[taskCount].eList,
  9081. AIloading[toolIndex][wIndex].loading,
  9082. tool
  9083. )
  9084. "
  9085. slot="reference"
  9086. :class="{
  9087. rightW:
  9088. w.userid == userid ||
  9089. tType == 1 ||
  9090. tType == 4 ||
  9091. w.ateacher == userid
  9092. }"
  9093. >
  9094. <span v-if="AIloading[toolIndex][wIndex].sco">
  9095. {{
  9096. AIloading[toolIndex][wIndex].loading
  9097. ? "评分中"
  9098. : AIloading[toolIndex][wIndex].sco + "分"
  9099. }}
  9100. </span>
  9101. <span v-else>
  9102. {{
  9103. AIloading[toolIndex][wIndex].loading
  9104. ? "评分中"
  9105. : "评分"
  9106. }}
  9107. </span>
  9108. </div>
  9109. </el-popover>
  9110. </div>
  9111. <img
  9112. class="deleteImg"
  9113. src="../../assets/deleteworks.png"
  9114. v-if="
  9115. w.userid == userid || tType == 1 || tType == 4
  9116. "
  9117. @click.stop="deleteWorks(w.wid)"
  9118. alt
  9119. />
  9120. </div>
  9121. <div class="comment" style="min-width: 200px">
  9122. <div class="worksName">
  9123. <div>{{ w.sName }}</div>
  9124. </div>
  9125. <div class="commentList">
  9126. <div class="commentList">
  9127. <div
  9128. class="commentImg"
  9129. @click="
  9130. isLikes(
  9131. w.wid,
  9132. userid,
  9133. 1,
  9134. null,
  9135. w.isLikes,
  9136. w.sName
  9137. )
  9138. "
  9139. >
  9140. <img
  9141. :src="w.isLikes == true ? likes : noLikes"
  9142. alt=""
  9143. />
  9144. </div>
  9145. <div>{{ w.likesCount }}</div>
  9146. </div>
  9147. <div class="commentList" style="margin-right: 15px">
  9148. <div
  9149. class="commentImg"
  9150. @click="commentOther(w, toolIndex, wIndex)"
  9151. >
  9152. <img
  9153. src="../../assets/icon/comment/comment.png"
  9154. alt=""
  9155. />
  9156. </div>
  9157. <div>{{ w.commentCount }}</div>
  9158. </div>
  9159. </div>
  9160. </div>
  9161. </div>
  9162. </div>
  9163. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9164. 未提交
  9165. </div>
  9166. <div
  9167. class="noWorksS"
  9168. v-if="noWorksS && noWorksS[toolIndex].length"
  9169. >
  9170. <div
  9171. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9172. :key="sIndex"
  9173. class="noWorksName"
  9174. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9175. >
  9176. <el-tooltip
  9177. effect="dark"
  9178. :content="s.student"
  9179. placement="top"
  9180. >
  9181. <span>{{ s.student }}</span>
  9182. </el-tooltip>
  9183. </div>
  9184. </div>
  9185. </div>
  9186. <div
  9187. v-if="
  9188. tType &&
  9189. tType == 2 &&
  9190. !sIsOpen &&
  9191. tool.tool.indexOf(48) != -1
  9192. "
  9193. class="worksBox"
  9194. >
  9195. <div
  9196. class="zuoyeYulan"
  9197. v-if="workStudent[toolIndex].length > 0"
  9198. >
  9199. <span class="worksTitle">作业预览</span>
  9200. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9201. </div>
  9202. <div
  9203. class="worksDetailBox"
  9204. v-if="workStudent[toolIndex].length > 0"
  9205. >
  9206. <div
  9207. class="works"
  9208. style="
  9209. width: 200px;
  9210. height: 140px;
  9211. margin: 10px 10px 10px 0;
  9212. box-shadow: 0 0 6px 1px #dfdada;
  9213. "
  9214. v-for="(w, wIndex) in workStudent[toolIndex]"
  9215. :key="wIndex"
  9216. >
  9217. <div class="workImg">
  9218. <img :src="word" @click="openTable(w)" alt />
  9219. <div
  9220. class="answerScore"
  9221. v-if="w.score"
  9222. @click.stop="openScore(w)"
  9223. :class="{
  9224. rightW:
  9225. w.userid == userid || tType == 1 || tType == 4
  9226. }"
  9227. >
  9228. {{ JSON.parse(w.score).wScore }}分
  9229. </div>
  9230. <div
  9231. class="answerScore"
  9232. @click.stop="openScore(w)"
  9233. v-else-if="courseDetail.userid == userid"
  9234. :class="{
  9235. rightW:
  9236. w.userid == userid || tType == 1 || tType == 4
  9237. }"
  9238. >
  9239. 评分
  9240. </div>
  9241. <div
  9242. class="stuLookScore"
  9243. v-if="
  9244. w.userid == userid ||
  9245. (tType == 1 &&
  9246. courseDetail.state == 5 &&
  9247. ((chapInfoList[courseType].chapterInfo[0]
  9248. .taskJson[taskCount].eList &&
  9249. chapInfoList[courseType].chapterInfo[0]
  9250. .taskJson[taskCount].eList.length) ||
  9251. (tool.eList && tool.eList.length)))
  9252. "
  9253. >
  9254. <el-popover
  9255. placement="top"
  9256. width="318"
  9257. trigger="hover"
  9258. >
  9259. <markScore
  9260. :loading="AIloading[toolIndex][wIndex].loading"
  9261. :markScoreVisible="markScoreVisible"
  9262. :ref="`markSco${toolIndex}${wIndex}`"
  9263. @updateLoading="updateLoading"
  9264. @updateDocSco="updateDocSco"
  9265. @refreshOther="refreshOther"
  9266. @markScoreDig="markScoreDig"
  9267. :tool="tool"
  9268. :wIndex="wIndex"
  9269. :scoCon="w"
  9270. :toolIndex="toolIndex"
  9271. :key="refreshKey"
  9272. :stage="courseType"
  9273. :task="taskCount"
  9274. :scoTit="
  9275. chapInfoList[courseType].chapterInfo[0]
  9276. .taskJson[taskCount].eList
  9277. "
  9278. >
  9279. </markScore>
  9280. <div
  9281. @click="
  9282. markScoreDig2(
  9283. w.sName,
  9284. worksStudent,
  9285. w.userid,
  9286. toolIndex,
  9287. chapInfoList[courseType].chapterInfo[0]
  9288. .taskJson[taskCount].eList,
  9289. AIloading[toolIndex][wIndex].loading,
  9290. tool
  9291. )
  9292. "
  9293. slot="reference"
  9294. >
  9295. <span v-if="AIloading[toolIndex][wIndex].sco">
  9296. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9297. </span>
  9298. <span v-else>
  9299. 评分
  9300. </span>
  9301. </div>
  9302. </el-popover>
  9303. </div>
  9304. <img
  9305. class="deleteImg"
  9306. src="../../assets/deleteworks.png"
  9307. v-if="
  9308. w.userid == userid || tType == 1 || tType == 4
  9309. "
  9310. @click.stop="deleteWorks(w.wid)"
  9311. alt
  9312. />
  9313. </div>
  9314. <div class="worksName">
  9315. <div>{{ w.sName }}</div>
  9316. </div>
  9317. </div>
  9318. </div>
  9319. </div>
  9320. <div
  9321. v-if="
  9322. tType &&
  9323. ((tType == 2 && sIsOpen == true) ||
  9324. tType == 1 ||
  9325. tType == 4) &&
  9326. tool.tool.indexOf(52) != -1
  9327. "
  9328. class="worksBox"
  9329. >
  9330. <div
  9331. class="zuoyeYulan"
  9332. style="display: flex;justify-content: space-between;align-items: center;"
  9333. v-if="
  9334. worksStudent.length &&
  9335. worksStudent[toolIndex].length > 0
  9336. "
  9337. >
  9338. <div class="worksTop">
  9339. <div>作业预览</div>
  9340. <div
  9341. class="corOpen"
  9342. @click="contract(toolIndex)"
  9343. v-if="
  9344. isCloseList[toolIndex].isCloseBoolean &&
  9345. isCloseList[toolIndex].isClose == 0
  9346. "
  9347. >
  9348. 折叠
  9349. </div>
  9350. <div
  9351. class="corOpen"
  9352. @click="contract(toolIndex)"
  9353. v-if="isCloseList[toolIndex].isClose == 1"
  9354. >
  9355. 展开
  9356. </div>
  9357. </div>
  9358. <div
  9359. style="display: flex;"
  9360. v-if="
  9361. (courseDetail.userid == userid ||
  9362. (courseDetail.course_teacher &&
  9363. courseDetail.course_teacher.indexOf(userid) !=
  9364. -1)) &&
  9365. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9366. taskCount
  9367. ].eList &&
  9368. chapInfoList[courseType].chapterInfo[0].taskJson[
  9369. taskCount
  9370. ].eList.length) ||
  9371. (tool.eList && tool.eList.length)) &&
  9372. courseDetail.state == 5
  9373. "
  9374. >
  9375. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5"> -->
  9376. <div
  9377. @click="
  9378. resetLoopEva(
  9379. worksStudent[toolIndex],
  9380. chapInfoList[courseType].chapterInfo[0].taskJson[
  9381. taskCount
  9382. ].eList,
  9383. courseType,
  9384. taskCount,
  9385. toolIndex,
  9386. tool.toolDetail,
  9387. tool
  9388. )
  9389. "
  9390. style="margin-right:10px"
  9391. class="ScoreBtn"
  9392. >
  9393. 一键重置
  9394. </div>
  9395. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9396. <img
  9397. src="../../assets/icon/newIcons/rootImg.png"
  9398. alt=""
  9399. />
  9400. AI评分
  9401. </div>
  9402. <div
  9403. class="ScoreBtn"
  9404. v-else-if="!loopLoading[toolIndex].loading"
  9405. @click="
  9406. loopEva(
  9407. worksStudent[toolIndex],
  9408. chapInfoList[courseType].chapterInfo[0].taskJson[
  9409. taskCount
  9410. ].eList,
  9411. courseType,
  9412. taskCount,
  9413. toolIndex,
  9414. tool.toolDetail,
  9415. chapInfoList[courseType].chapterInfo[0].taskJson[
  9416. taskCount
  9417. ].taskDetail,
  9418. tool
  9419. )
  9420. "
  9421. >
  9422. <img
  9423. src="../../assets/icon/newIcons/rootImg.png"
  9424. alt=""
  9425. />
  9426. AI评分
  9427. </div>
  9428. <div class="ScoreBtn" v-else>
  9429. <img
  9430. src="../../assets/icon/newIcons/rootImg.png"
  9431. alt=""
  9432. />
  9433. 正在评分
  9434. </div>
  9435. </div>
  9436. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9437. </div>
  9438. <div
  9439. :id="'tool-' + toolIndex"
  9440. :style="{
  9441. height:
  9442. isCloseList[toolIndex].isClose == 1
  9443. ? retrnToolHeight('tool-' + toolIndex)
  9444. : 'auto',
  9445. overflow:
  9446. isCloseList[toolIndex].isClose == 1
  9447. ? 'hidden'
  9448. : 'unset'
  9449. }"
  9450. class="worksDetailBox"
  9451. v-if="
  9452. worksStudent.length &&
  9453. worksStudent[toolIndex].length > 0
  9454. "
  9455. >
  9456. <div
  9457. class="works"
  9458. style="
  9459. width: 200px;
  9460. height: 140px;
  9461. margin: 10px 10px 10px 0;
  9462. border-radius: 15px;
  9463. box-shadow: 0 0 6px 1px #dfdada;
  9464. "
  9465. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9466. :key="wIndex"
  9467. :class="w.type == 1 ? 'isTypeOne' : ''"
  9468. >
  9469. <div class="workImg">
  9470. <img :src="word" @click="openWord(w)" alt />
  9471. <!-- @click="openFile(w.works)" -->
  9472. <div
  9473. class="answerScore"
  9474. v-if="w.score"
  9475. @click.stop="openScore(w)"
  9476. :class="{
  9477. rightW:
  9478. w.userid == userid ||
  9479. tType == 1 ||
  9480. tType == 4 ||
  9481. w.ateacher == userid
  9482. }"
  9483. >
  9484. {{ JSON.parse(w.score).wScore }}分
  9485. </div>
  9486. <div
  9487. class="answerScore"
  9488. @click.stop="openScore(w)"
  9489. v-else-if="
  9490. courseDetail.userid == userid &&
  9491. courseDetail.state != 5 &&
  9492. chapInfoList[courseType].chapterInfo[0]
  9493. .taskJson[taskCount].eList &&
  9494. chapInfoList[courseType].chapterInfo[0]
  9495. .taskJson[taskCount].eList.length
  9496. "
  9497. :class="{
  9498. rightW:
  9499. w.userid == userid ||
  9500. tType == 1 ||
  9501. tType == 4 ||
  9502. w.ateacher == userid
  9503. }"
  9504. >
  9505. 评分
  9506. </div>
  9507. <!-- <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"> -->
  9508. <div
  9509. v-else-if="
  9510. (courseDetail.userid == userid ||
  9511. (courseDetail.course_teacher &&
  9512. courseDetail.course_teacher.indexOf(userid) !=
  9513. -1) ||
  9514. (w.userid == userid && sIsOpen)) &&
  9515. courseDetail.state == 5 &&
  9516. ((chapInfoList[courseType].chapterInfo[0]
  9517. .taskJson[taskCount].eList &&
  9518. chapInfoList[courseType].chapterInfo[0]
  9519. .taskJson[taskCount].eList.length) ||
  9520. (tool.eList && tool.eList.length))
  9521. "
  9522. >
  9523. <!-- <div
  9524. class="answerScore"
  9525. @click="markScoreDig(w.userid,toolIndex)"
  9526. :class="{
  9527. rightW:
  9528. w.userid == userid ||
  9529. tType == 1 ||
  9530. tType == 4 ||
  9531. w.ateacher == userid,
  9532. }"
  9533. >
  9534. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9535. </div> -->
  9536. <!-- @show="handleShow(toolIndex,wIndex)"
  9537. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9538. <el-popover
  9539. placement="top"
  9540. width="318"
  9541. :disabled="AIloading[toolIndex][wIndex].loading"
  9542. trigger="hover"
  9543. >
  9544. <markScore
  9545. :loading="AIloading[toolIndex][wIndex].loading"
  9546. :markScoreVisible="markScoreVisible"
  9547. :ref="`markSco${toolIndex}${wIndex}`"
  9548. @updateLoading="updateLoading"
  9549. @updateDocSco="updateDocSco"
  9550. @refreshOther="refreshOther"
  9551. @markScoreDig="markScoreDig"
  9552. :tool="tool"
  9553. :wIndex="wIndex"
  9554. :scoCon="w"
  9555. :toolIndex="toolIndex"
  9556. :key="refreshKey"
  9557. :stage="courseType"
  9558. :task="taskCount"
  9559. :scoTit="
  9560. chapInfoList[courseType].chapterInfo[0]
  9561. .taskJson[taskCount].eList
  9562. "
  9563. >
  9564. </markScore>
  9565. <div
  9566. class="answerScore"
  9567. @click="
  9568. markScoreDig2(
  9569. w.sName,
  9570. worksStudent,
  9571. w.userid,
  9572. toolIndex,
  9573. chapInfoList[courseType].chapterInfo[0]
  9574. .taskJson[taskCount].eList,
  9575. AIloading[toolIndex][wIndex].loading,
  9576. tool
  9577. )
  9578. "
  9579. slot="reference"
  9580. :class="{
  9581. rightW:
  9582. w.userid == userid ||
  9583. tType == 1 ||
  9584. tType == 4 ||
  9585. w.ateacher == userid
  9586. }"
  9587. >
  9588. <span v-if="AIloading[toolIndex][wIndex].sco">
  9589. {{
  9590. AIloading[toolIndex][wIndex].loading
  9591. ? "评分中"
  9592. : AIloading[toolIndex][wIndex].sco + "分"
  9593. }}
  9594. </span>
  9595. <span v-else>
  9596. {{
  9597. AIloading[toolIndex][wIndex].loading
  9598. ? "评分中"
  9599. : "评分"
  9600. }}
  9601. </span>
  9602. </div>
  9603. </el-popover>
  9604. </div>
  9605. <img
  9606. class="deleteImg"
  9607. src="../../assets/deleteworks.png"
  9608. v-if="
  9609. w.userid == userid || tType == 1 || tType == 4
  9610. "
  9611. @click.stop="deleteWorks(w.wid)"
  9612. alt
  9613. />
  9614. </div>
  9615. <div class="comment" style="min-width: 200px">
  9616. <div class="worksName">
  9617. <div>{{ w.sName }}</div>
  9618. </div>
  9619. <div class="commentList">
  9620. <div class="commentList">
  9621. <div
  9622. class="commentImg"
  9623. @click="
  9624. isLikes(
  9625. w.wid,
  9626. userid,
  9627. 1,
  9628. null,
  9629. w.isLikes,
  9630. w.sName
  9631. )
  9632. "
  9633. >
  9634. <img
  9635. :src="w.isLikes == true ? likes : noLikes"
  9636. alt=""
  9637. />
  9638. </div>
  9639. <div>{{ w.likesCount }}</div>
  9640. </div>
  9641. <div class="commentList" style="margin-right: 15px">
  9642. <div
  9643. class="commentImg"
  9644. @click="commentOther(w, toolIndex, wIndex)"
  9645. >
  9646. <img
  9647. src="../../assets/icon/comment/comment.png"
  9648. alt=""
  9649. />
  9650. </div>
  9651. <div>{{ w.commentCount }}</div>
  9652. </div>
  9653. </div>
  9654. </div>
  9655. </div>
  9656. </div>
  9657. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9658. 未提交
  9659. </div>
  9660. <div
  9661. class="noWorksS"
  9662. v-if="noWorksS && noWorksS[toolIndex].length"
  9663. >
  9664. <div
  9665. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9666. :key="sIndex"
  9667. class="noWorksName"
  9668. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9669. >
  9670. <el-tooltip
  9671. effect="dark"
  9672. :content="s.student"
  9673. placement="top"
  9674. >
  9675. <span>{{ s.student }}</span>
  9676. </el-tooltip>
  9677. </div>
  9678. </div>
  9679. </div>
  9680. <div
  9681. v-if="
  9682. tType &&
  9683. tType == 2 &&
  9684. !sIsOpen &&
  9685. tool.tool.indexOf(52) != -1
  9686. "
  9687. class="worksBox"
  9688. >
  9689. <div
  9690. class="zuoyeYulan"
  9691. v-if="workStudent[toolIndex].length > 0"
  9692. >
  9693. <span class="worksTitle">作业预览</span>
  9694. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9695. </div>
  9696. <div
  9697. class="worksDetailBox"
  9698. v-if="workStudent[toolIndex].length > 0"
  9699. >
  9700. <div
  9701. class="works"
  9702. style="
  9703. width: 200px;
  9704. height: 140px;
  9705. margin: 10px 10px 10px 0;
  9706. box-shadow: 0 0 6px 1px #dfdada;
  9707. "
  9708. v-for="(w, wIndex) in workStudent[toolIndex]"
  9709. :key="wIndex"
  9710. >
  9711. <div class="workImg">
  9712. <img :src="word" @click="openWord(w)" alt />
  9713. <div
  9714. class="answerScore"
  9715. v-if="w.score"
  9716. @click.stop="openScore(w)"
  9717. :class="{
  9718. rightW:
  9719. w.userid == userid || tType == 1 || tType == 4
  9720. }"
  9721. >
  9722. {{ JSON.parse(w.score).wScore }}分
  9723. </div>
  9724. <div
  9725. class="answerScore"
  9726. @click.stop="openScore(w)"
  9727. v-else-if="courseDetail.userid == userid"
  9728. :class="{
  9729. rightW:
  9730. w.userid == userid || tType == 1 || tType == 4
  9731. }"
  9732. >
  9733. 评分
  9734. </div>
  9735. <div
  9736. class="stuLookScore"
  9737. v-if="
  9738. w.userid == userid ||
  9739. (tType == 1 &&
  9740. courseDetail.state == 5 &&
  9741. ((chapInfoList[courseType].chapterInfo[0]
  9742. .taskJson[taskCount].eList &&
  9743. chapInfoList[courseType].chapterInfo[0]
  9744. .taskJson[taskCount].eList.length) ||
  9745. (tool.eList && tool.eList.length)))
  9746. "
  9747. >
  9748. <el-popover
  9749. placement="top"
  9750. width="318"
  9751. trigger="hover"
  9752. >
  9753. <markScore
  9754. :loading="AIloading[toolIndex][wIndex].loading"
  9755. :markScoreVisible="markScoreVisible"
  9756. :ref="`markSco${toolIndex}${wIndex}`"
  9757. @updateLoading="updateLoading"
  9758. @updateDocSco="updateDocSco"
  9759. @refreshOther="refreshOther"
  9760. @markScoreDig="markScoreDig"
  9761. :tool="tool"
  9762. :wIndex="wIndex"
  9763. :scoCon="w"
  9764. :toolIndex="toolIndex"
  9765. :key="refreshKey"
  9766. :stage="courseType"
  9767. :task="taskCount"
  9768. :scoTit="
  9769. chapInfoList[courseType].chapterInfo[0]
  9770. .taskJson[taskCount].eList
  9771. "
  9772. >
  9773. </markScore>
  9774. <div
  9775. @click="
  9776. markScoreDig2(
  9777. w.sName,
  9778. worksStudent,
  9779. w.userid,
  9780. toolIndex,
  9781. chapInfoList[courseType].chapterInfo[0]
  9782. .taskJson[taskCount].eList,
  9783. AIloading[toolIndex][wIndex].loading,
  9784. tool
  9785. )
  9786. "
  9787. slot="reference"
  9788. >
  9789. <span v-if="AIloading[toolIndex][wIndex].sco">
  9790. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9791. </span>
  9792. <span v-else>
  9793. 评分
  9794. </span>
  9795. </div>
  9796. </el-popover>
  9797. </div>
  9798. <img
  9799. class="deleteImg"
  9800. src="../../assets/deleteworks.png"
  9801. v-if="
  9802. w.userid == userid || tType == 1 || tType == 4
  9803. "
  9804. @click.stop="deleteWorks(w.wid)"
  9805. alt
  9806. />
  9807. </div>
  9808. <div class="worksName">
  9809. <div>{{ w.sName }}</div>
  9810. </div>
  9811. </div>
  9812. </div>
  9813. </div>
  9814. <div
  9815. v-if="tool.tool.indexOf(49) != -1"
  9816. class="xuan_right_box"
  9817. style="margin: 0 15px 0 25px; width: 93%"
  9818. >
  9819. <div
  9820. v-if="courseDetail.userid == userid"
  9821. style="
  9822. display: flex;
  9823. justify-content: flex-end;
  9824. margin-right: 10px;
  9825. "
  9826. >
  9827. <el-button
  9828. type="primary"
  9829. size="small"
  9830. @click="addTools(49, toolIndex, taskCount)"
  9831. >分组设置</el-button
  9832. >
  9833. </div>
  9834. <div
  9835. v-if="groupStudentUid[toolIndex]"
  9836. class="group_staic_box"
  9837. >
  9838. <div
  9839. v-for="(gp, gd) in tool.groupJson.group"
  9840. :key="gd"
  9841. class="group_staic"
  9842. >
  9843. <span> {{ gp.name }}</span>
  9844. <span>
  9845. 目前人数{{
  9846. groupStudentUid[toolIndex][gd].length
  9847. }}人</span
  9848. >
  9849. </div>
  9850. </div>
  9851. </div>
  9852. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  9853. <div
  9854. class="zuoyeYulan"
  9855. v-if="
  9856. worksStudent.length &&
  9857. worksStudent[toolIndex].length > 0
  9858. "
  9859. >
  9860. <span class="worksTitle">作业预览</span>
  9861. </div>
  9862. <div>
  9863. <div
  9864. class="group_workBox"
  9865. v-for="(g, gindex) in tool.groupJson.group"
  9866. :key="gindex"
  9867. >
  9868. <div
  9869. class="group_box"
  9870. v-if="
  9871. groupStudentUid[toolIndex] &&
  9872. worksStudent[toolIndex] &&
  9873. (worksStudent[toolIndex][gindex].length ||
  9874. groupStudentUid[toolIndex][gindex].indexOf(
  9875. userid
  9876. ) != -1)
  9877. "
  9878. >
  9879. <div class="group_title">
  9880. <el-tooltip
  9881. class="item"
  9882. effect="light"
  9883. :content="g.name"
  9884. placement="top"
  9885. >
  9886. <div class="group_name">{{ g.name }}</div>
  9887. </el-tooltip>
  9888. <el-button
  9889. type="primary"
  9890. v-if="
  9891. groupStudentUid[toolIndex][gindex].indexOf(
  9892. userid
  9893. ) != -1
  9894. "
  9895. @click="groupUpload(toolIndex, taskCount, gindex)"
  9896. >上传作业</el-button
  9897. >
  9898. </div>
  9899. <div class="group_work">
  9900. <div
  9901. class="works"
  9902. style="
  9903. width: 200px;
  9904. height: 140px;
  9905. margin: 10px 10px 10px 0;
  9906. border-radius: 15px;
  9907. box-shadow: 0 0 6px 1px #dfdada;
  9908. "
  9909. v-for="(w, wIndex) in worksStudent[toolIndex][
  9910. gindex
  9911. ]"
  9912. :key="wIndex"
  9913. :class="w.type == 1 ? 'isTypeOne' : ''"
  9914. >
  9915. <div class="workImg" v-if="w.type == 0">
  9916. <img
  9917. :src="w.works"
  9918. @click="previewImg(w.works, w)"
  9919. alt
  9920. />
  9921. <div
  9922. class="answerScore"
  9923. v-if="w.score"
  9924. @click.stop="openScore(w)"
  9925. :class="{
  9926. rightW:
  9927. w.userid == userid ||
  9928. tType == 1 ||
  9929. tType == 4 ||
  9930. w.ateacher == userid
  9931. }"
  9932. >
  9933. {{ JSON.parse(w.score).wScore }}分
  9934. </div>
  9935. <div
  9936. class="answerScore"
  9937. @click.stop="openScore(w)"
  9938. v-else-if="courseDetail.userid == userid"
  9939. :class="{
  9940. rightW:
  9941. w.userid == userid ||
  9942. tType == 1 ||
  9943. tType == 4 ||
  9944. w.ateacher == userid
  9945. }"
  9946. >
  9947. 评分
  9948. </div>
  9949. <img
  9950. class="deleteImg"
  9951. src="../../assets/deleteworks.png"
  9952. v-if="
  9953. w.userid == userid ||
  9954. tType == 1 ||
  9955. tType == 4
  9956. "
  9957. @click.stop="deleteWorks(w.wid)"
  9958. alt
  9959. />
  9960. </div>
  9961. <div class="workImg" v-if="w.type == 1">
  9962. <img
  9963. :src="word"
  9964. @click="openFile(w.works)"
  9965. alt
  9966. />
  9967. <!-- @click="openFile(w.works)" -->
  9968. <div
  9969. class="answerScore"
  9970. v-if="w.score"
  9971. @click.stop="openScore(w)"
  9972. :class="{
  9973. rightW:
  9974. w.userid == userid ||
  9975. tType == 1 ||
  9976. tType == 4 ||
  9977. w.ateacher == userid
  9978. }"
  9979. >
  9980. {{ JSON.parse(w.score).wScore }}分
  9981. </div>
  9982. <div
  9983. class="answerScore"
  9984. @click.stop="openScore(w)"
  9985. v-else-if="courseDetail.userid == userid"
  9986. :class="{
  9987. rightW:
  9988. w.userid == userid ||
  9989. tType == 1 ||
  9990. tType == 4 ||
  9991. w.ateacher == userid
  9992. }"
  9993. >
  9994. 评分
  9995. </div>
  9996. <img
  9997. class="deleteImg"
  9998. src="../../assets/deleteworks.png"
  9999. v-if="
  10000. w.userid == userid ||
  10001. tType == 1 ||
  10002. tType == 4
  10003. "
  10004. @click.stop="deleteWorks(w.wid)"
  10005. alt
  10006. />
  10007. </div>
  10008. <div class="workImg" v-if="w.type == 3">
  10009. <img
  10010. style="cursor: pointer"
  10011. :src="video"
  10012. @click="openVideo(w)"
  10013. alt
  10014. />
  10015. <!-- @click="openVideo(w.works)" -->
  10016. <div
  10017. class="answerScore"
  10018. v-if="w.score"
  10019. @click.stop="openScore(w)"
  10020. :class="{
  10021. rightW:
  10022. w.userid == userid ||
  10023. tType == 1 ||
  10024. tType == 4 ||
  10025. w.ateacher == userid
  10026. }"
  10027. >
  10028. {{ JSON.parse(w.score).wScore }}分
  10029. </div>
  10030. <div
  10031. class="answerScore"
  10032. @click.stop="openScore(w)"
  10033. v-else-if="courseDetail.userid == userid"
  10034. :class="{
  10035. rightW:
  10036. w.userid == userid ||
  10037. tType == 1 ||
  10038. tType == 4 ||
  10039. w.ateacher == userid
  10040. }"
  10041. >
  10042. 评分
  10043. </div>
  10044. <img
  10045. class="deleteImg"
  10046. src="../../assets/deleteworks.png"
  10047. v-if="
  10048. w.userid == userid ||
  10049. tType == 1 ||
  10050. tType == 4
  10051. "
  10052. @click.stop="deleteWorks(w.wid)"
  10053. alt
  10054. />
  10055. </div>
  10056. <div class="workImg" v-if="w.type == 12">
  10057. <img
  10058. style="cursor: pointer"
  10059. :src="word2"
  10060. @click="downloadFile(w.works)"
  10061. alt
  10062. />
  10063. <!-- @click="openVideo(w.works)" -->
  10064. <div
  10065. class="answerScore"
  10066. v-if="w.score"
  10067. @click.stop="openScore(w)"
  10068. :class="{
  10069. rightW:
  10070. w.userid == userid ||
  10071. tType == 1 ||
  10072. tType == 4 ||
  10073. w.ateacher == userid
  10074. }"
  10075. >
  10076. {{ JSON.parse(w.score).wScore }}分
  10077. </div>
  10078. <div
  10079. class="answerScore"
  10080. @click.stop="openScore(w)"
  10081. v-else-if="courseDetail.userid == userid"
  10082. :class="{
  10083. rightW:
  10084. w.userid == userid ||
  10085. tType == 1 ||
  10086. tType == 4 ||
  10087. w.ateacher == userid
  10088. }"
  10089. >
  10090. 评分
  10091. </div>
  10092. <img
  10093. class="deleteImg"
  10094. src="../../assets/deleteworks.png"
  10095. v-if="
  10096. w.userid == userid ||
  10097. tType == 1 ||
  10098. tType == 4
  10099. "
  10100. @click.stop="deleteWorks(w.wid)"
  10101. alt
  10102. />
  10103. </div>
  10104. <div class="comment" style="min-width: 200px">
  10105. <div class="worksName">
  10106. <div>{{ w.sName }}</div>
  10107. </div>
  10108. <div class="commentList">
  10109. <div class="commentList">
  10110. <div
  10111. class="commentImg"
  10112. @click="
  10113. isLikes(
  10114. w.wid,
  10115. userid,
  10116. 1,
  10117. null,
  10118. w.isLikes,
  10119. w.sName
  10120. )
  10121. "
  10122. >
  10123. <img
  10124. :src="
  10125. w.isLikes == true ? likes : noLikes
  10126. "
  10127. alt=""
  10128. />
  10129. </div>
  10130. <div>{{ w.likesCount }}</div>
  10131. </div>
  10132. <div
  10133. class="commentList"
  10134. style="margin-right: 15px"
  10135. >
  10136. <div
  10137. class="commentImg"
  10138. @click="
  10139. commentOther(
  10140. w,
  10141. toolIndex,
  10142. wIndex,
  10143. gindex
  10144. )
  10145. "
  10146. >
  10147. <img
  10148. src="../../assets/icon/comment/comment.png"
  10149. alt=""
  10150. />
  10151. </div>
  10152. <div>{{ w.commentCount }}</div>
  10153. </div>
  10154. </div>
  10155. </div>
  10156. </div>
  10157. </div>
  10158. </div>
  10159. </div>
  10160. </div>
  10161. </div>
  10162. <div
  10163. style="width:92%;margin: 0 0 0 40px;"
  10164. v-if="
  10165. courseDetail.state == 5 && tool.eList && tool.eList.length
  10166. "
  10167. >
  10168. <evaTable :eList="tool.eList"></evaTable>
  10169. </div>
  10170. </div>
  10171. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10172. 上传文件
  10173. <input
  10174. type="file"
  10175. accept="image/png, image/gif, image/jpeg"
  10176. style="display: none"
  10177. @change="beforeUpload1($event, 2, index)"
  10178. />
  10179. </div>-->
  10180. </div>
  10181. </div>
  10182. <!-- <div
  10183. class="vedioBox"
  10184. style="margin-top: 10px"
  10185. v-if="
  10186. courseDetail.userid == userid ||
  10187. (courseDetail.course_teacher &&
  10188. courseDetail.course_teacher.indexOf(userid) != -1)
  10189. "
  10190. :style="{
  10191. borderRadius:
  10192. !(
  10193. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10194. .toolChoose[0].tool &&
  10195. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10196. .toolChoose[0].tool.length > 0
  10197. ) &&
  10198. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10199. .taskDetail == '' &&
  10200. vChapterData[taskCount].length == 0 &&
  10201. fileC[taskCount].length == 0
  10202. ? '0 0 20px 20px'
  10203. : '20px',
  10204. }"
  10205. >
  10206. <div
  10207. class="queTop"
  10208. @click="isClose = !isClose"
  10209. style="
  10210. padding: 15px 0 15px 37px;
  10211. justify-content: space-between;
  10212. "
  10213. >
  10214. <div class="queTopTitle">新增工具</div>
  10215. <div class="queTopRight">
  10216. <div class="queTopClose" v-if="isClose == 0">
  10217. 展开
  10218. <div class="closeImg">
  10219. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10220. </div>
  10221. </div>
  10222. <div class="queTopClose" v-if="isClose == 1">
  10223. 折叠
  10224. <div class="openImg">
  10225. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10226. </div>
  10227. </div>
  10228. <el-button
  10229. style="margin: 0 30px 0 auto"
  10230. type="primary"
  10231. size="small"
  10232. v-if="isClose == 1 && checktoolArray.length > 0"
  10233. @click.stop="addToolChoose"
  10234. >确定</el-button
  10235. >
  10236. </div>
  10237. </div>
  10238. <div
  10239. class="tool_work_box"
  10240. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10241. >
  10242. <div class="tool_box">
  10243. <div class="tool_type_box">
  10244. <div class="chooseWho">
  10245. <div
  10246. :class="toolType == 0 ? 'isChooseActive' : ''"
  10247. @click="(toolType = 0), $forceUpdate()"
  10248. >
  10249. 互动类
  10250. </div>
  10251. <div
  10252. :class="toolType == 1 ? 'isChooseActive' : ''"
  10253. @click="(toolType = 1), $forceUpdate()"
  10254. >
  10255. 思维类
  10256. </div>
  10257. <div
  10258. :class="toolType == 2 ? 'isChooseActive' : ''"
  10259. @click="(toolType = 2), $forceUpdate()"
  10260. >
  10261. 测评类
  10262. </div>
  10263. <div
  10264. :class="toolType == 3 ? 'isChooseActive' : ''"
  10265. @click="(toolType = 3), $forceUpdate()"
  10266. >
  10267. 编程类
  10268. </div>
  10269. <div
  10270. :class="toolType == 5 ? 'isChooseActive' : ''"
  10271. @click="(toolType = 5), $forceUpdate()"
  10272. >
  10273. 学科类
  10274. </div>
  10275. </div>
  10276. </div>
  10277. <div>
  10278. <div class="toolSort" v-if="toolType == 0">
  10279. <div class="tool">
  10280. <div class="whiteBIcon" @click="addTools2(10)">
  10281. <img
  10282. src="../../assets/icon/thirdToolList/time.png"
  10283. alt
  10284. />
  10285. <div style="margin: 5px 0">倒计时</div>
  10286. </div>
  10287. <div class="check" @click="addTools2(10)">
  10288. <img
  10289. src="../../assets/icon/checkNo.png"
  10290. alt
  10291. v-if="checktoolArray.indexOf(10) == -1"
  10292. />
  10293. <div class="checkDiv" v-else>
  10294. <img src="../../assets/icon/checkedIs.png" alt /><span
  10295. >已选择</span
  10296. >
  10297. </div>
  10298. </div>
  10299. </div>
  10300. <div class="tool">
  10301. <div class="whiteBIcon" @click="addTools2(65)">
  10302. <img
  10303. src="../../assets/icon/firstToolList/pickPeople.png"
  10304. alt
  10305. />
  10306. <div style="margin: 5px 0">挑人</div>
  10307. </div>
  10308. <div class="check" @click="addTools2(65)">
  10309. <img
  10310. src="../../assets/icon/checkNo.png"
  10311. alt
  10312. v-if="checktoolArray.indexOf(65) == -1"
  10313. />
  10314. <div class="checkDiv" v-else>
  10315. <img src="../../assets/icon/checkedIs.png" alt /><span
  10316. >已选择</span
  10317. >
  10318. </div>
  10319. </div>
  10320. </div>
  10321. </div>
  10322. <div class="toolSort" v-if="toolType == 1">
  10323. <div class="tool">
  10324. <div class="whiteBIcon" @click="addTools2(7)">
  10325. <img
  10326. src="../../assets/icon/secondToolList/mindNetwork.png"
  10327. alt
  10328. />
  10329. <div style="margin: 5px 0">思维网格</div>
  10330. </div>
  10331. <div class="check" @click="addTools2(7)">
  10332. <img
  10333. src="../../assets/icon/checkNo.png"
  10334. alt
  10335. v-if="checktoolArray.indexOf(7) == -1"
  10336. />
  10337. <div class="checkDiv" v-else>
  10338. <img src="../../assets/icon/checkedIs.png" alt /><span
  10339. >已选择</span
  10340. >
  10341. </div>
  10342. </div>
  10343. </div>
  10344. <div class="tool">
  10345. <div class="whiteBIcon" @click="addTools2(1)">
  10346. <img
  10347. src="../../assets/icon/secondToolList/whiteBoard.png"
  10348. alt
  10349. />
  10350. <div style="margin: 5px 0">电子白板</div>
  10351. </div>
  10352. <div class="check" @click="addTools2(1)">
  10353. <img
  10354. src="../../assets/icon/checkNo.png"
  10355. alt
  10356. v-if="checktoolArray.indexOf(1) == -1"
  10357. />
  10358. <div class="checkDiv" v-else>
  10359. <img src="../../assets/icon/checkedIs.png" alt /><span
  10360. >已选择</span
  10361. >
  10362. </div>
  10363. </div>
  10364. </div>
  10365. <div class="tool">
  10366. <div class="whiteBIcon" @click="addTools2(52)">
  10367. <img
  10368. src="../../assets/icon/fourthToolList/text.png"
  10369. alt
  10370. />
  10371. <div style="margin: 5px 0">文档</div>
  10372. </div>
  10373. <div class="check" @click="addTools2(52)">
  10374. <img
  10375. src="../../assets/icon/checkNo.png"
  10376. alt
  10377. v-if="checktoolArray.indexOf(52) == -1"
  10378. />
  10379. <div class="checkDiv" v-else>
  10380. <img src="../../assets/icon/checkedIs.png" alt /><span
  10381. >已选择</span
  10382. >
  10383. </div>
  10384. </div>
  10385. </div>
  10386. <div class="tool">
  10387. <div class="whiteBIcon" @click="addTools2(3)">
  10388. <img
  10389. src="../../assets/icon/secondToolList/mindMapping.png"
  10390. alt
  10391. />
  10392. <div style="margin: 5px 0">思维导图</div>
  10393. </div>
  10394. <div class="check" @click="addTools2(3)">
  10395. <img
  10396. src="../../assets/icon/checkNo.png"
  10397. alt
  10398. v-if="checktoolArray.indexOf(3) == -1"
  10399. />
  10400. <div class="checkDiv" v-else>
  10401. <img src="../../assets/icon/checkedIs.png" alt /><span
  10402. >已选择</span
  10403. >
  10404. </div>
  10405. </div>
  10406. </div>
  10407. <div class="tool">
  10408. <div class="whiteBIcon" @click="addTools2(48)">
  10409. <img
  10410. src="../../assets/icon/fourthToolList/table.png"
  10411. alt
  10412. />
  10413. <div style="margin: 5px 0">表格</div>
  10414. </div>
  10415. <div class="check" @click="addTools2(48)">
  10416. <img
  10417. src="../../assets/icon/checkNo.png"
  10418. alt
  10419. v-if="checktoolArray.indexOf(48) == -1"
  10420. />
  10421. <div class="checkDiv" v-else>
  10422. <img src="../../assets/icon/checkedIs.png" alt /><span
  10423. >已选择</span
  10424. >
  10425. </div>
  10426. </div>
  10427. </div>
  10428. </div>
  10429. <div class="toolSort" v-if="toolType == 6">
  10430. <div v-show="tooC == 49">
  10431. <img
  10432. @click="addTools(tooC, toolIndex, taskCount)"
  10433. src="../../assets/icon/fourthToolList/group.png"
  10434. alt
  10435. />
  10436. <div style="margin: 5px 0">学生分组</div>
  10437. </div>
  10438. </div>
  10439. <div class="toolSort" v-if="toolType == 2">
  10440. <div class="tool">
  10441. <div class="whiteBIcon" @click="addTools2(16)">
  10442. <img
  10443. src="../../assets/icon/thirdToolList/work.png"
  10444. alt
  10445. />
  10446. <div style="margin: 5px 0">作业提交</div>
  10447. </div>
  10448. <div class="check" @click="addTools2(16)">
  10449. <img
  10450. src="../../assets/icon/checkNo.png"
  10451. alt
  10452. v-if="checktoolArray.indexOf(16) == -1"
  10453. />
  10454. <div class="checkDiv" v-else>
  10455. <img src="../../assets/icon/checkedIs.png" alt /><span
  10456. >已选择</span
  10457. >
  10458. </div>
  10459. </div>
  10460. </div>
  10461. <div class="tool">
  10462. <div class="whiteBIcon" @click="addTools2(50)">
  10463. <img
  10464. src="../../assets/icon/thirdToolList/plwork.png"
  10465. alt
  10466. />
  10467. <div style="margin: 5px 0">批量上传</div>
  10468. </div>
  10469. <div class="check" @click="addTools2(50)">
  10470. <img
  10471. src="../../assets/icon/checkNo.png"
  10472. alt
  10473. v-if="checktoolArray.indexOf(50) == -1"
  10474. />
  10475. <div class="checkDiv" v-else>
  10476. <img src="../../assets/icon/checkedIs.png" alt /><span
  10477. >已选择</span
  10478. >
  10479. </div>
  10480. </div>
  10481. </div>
  10482. </div>
  10483. <div class="toolSort" v-if="toolType == 3">
  10484. <div class="tool">
  10485. <div class="whiteBIcon" @click="addTools2(18)">
  10486. <img
  10487. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10488. alt
  10489. />
  10490. <div style="margin: 5px 0">训练平台</div>
  10491. </div>
  10492. <div class="check" @click="addTools2(18)">
  10493. <img
  10494. src="../../assets/icon/checkNo.png"
  10495. alt
  10496. v-if="checktoolArray.indexOf(18) == -1"
  10497. />
  10498. <div class="checkDiv" v-else>
  10499. <img src="../../assets/icon/checkedIs.png" alt /><span
  10500. >已选择</span
  10501. >
  10502. </div>
  10503. </div>
  10504. </div>
  10505. <div class="tool">
  10506. <div class="whiteBIcon" @click="addTools2(21)">
  10507. <img
  10508. src="../../assets/icon/fourthToolList/program.png"
  10509. alt
  10510. />
  10511. <div style="margin: 5px 0">AIoT Blockly</div>
  10512. </div>
  10513. <div class="check" @click="addTools2(21)">
  10514. <img
  10515. src="../../assets/icon/checkNo.png"
  10516. alt
  10517. v-if="checktoolArray.indexOf(21) == -1"
  10518. />
  10519. <div class="checkDiv" v-else>
  10520. <img src="../../assets/icon/checkedIs.png" alt /><span
  10521. >已选择</span
  10522. >
  10523. </div>
  10524. </div>
  10525. </div>
  10526. <div class="tool">
  10527. <div class="whiteBIcon" @click="addTools2(23)">
  10528. <img
  10529. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10530. alt
  10531. />
  10532. <div style="margin: 5px 0">AI Python</div>
  10533. </div>
  10534. <div class="check" @click="addTools2(23)">
  10535. <img
  10536. src="../../assets/icon/checkNo.png"
  10537. alt
  10538. v-if="checktoolArray.indexOf(23) == -1"
  10539. />
  10540. <div class="checkDiv" v-else>
  10541. <img src="../../assets/icon/checkedIs.png" alt /><span
  10542. >已选择</span
  10543. >
  10544. </div>
  10545. </div>
  10546. </div>
  10547. <div class="tool">
  10548. <div class="whiteBIcon" @click="addTools2(24)">
  10549. <img
  10550. src="../../assets/icon/fourthToolList/AIprogram.png"
  10551. alt
  10552. />
  10553. <div style="margin: 5px 0">AI Blockly</div>
  10554. </div>
  10555. <div class="check" @click="addTools2(24)">
  10556. <img
  10557. src="../../assets/icon/checkNo.png"
  10558. alt
  10559. v-if="checktoolArray.indexOf(24) == -1"
  10560. />
  10561. <div class="checkDiv" v-else>
  10562. <img src="../../assets/icon/checkedIs.png" alt /><span
  10563. >已选择</span
  10564. >
  10565. </div>
  10566. </div>
  10567. </div>
  10568. <div class="tool">
  10569. <div class="whiteBIcon" @click="addTools2(32)">
  10570. <img
  10571. src="../../assets/icon/thirdToolList/code.png"
  10572. alt
  10573. />
  10574. <div style="margin: 5px 0">源码编辑</div>
  10575. </div>
  10576. <div class="check" @click="addTools2(32)">
  10577. <img
  10578. src="../../assets/icon/checkNo.png"
  10579. alt
  10580. v-if="checktoolArray.indexOf(32) == -1"
  10581. />
  10582. <div class="checkDiv" v-else>
  10583. <img src="../../assets/icon/checkedIs.png" alt /><span
  10584. >已选择</span
  10585. >
  10586. </div>
  10587. </div>
  10588. </div>
  10589. <div class="tool">
  10590. <div class="whiteBIcon" @click="addTools2(57)">
  10591. <img
  10592. src="../../assets/icon/fourthToolList/cocopi.png"
  10593. alt
  10594. />
  10595. <div style="margin: 5px 0">CocoPi</div>
  10596. </div>
  10597. <div class="check" @click="addTools2(57)">
  10598. <img
  10599. src="../../assets/icon/checkNo.png"
  10600. alt
  10601. v-if="checktoolArray.indexOf(57) == -1"
  10602. />
  10603. <div class="checkDiv" v-else>
  10604. <img src="../../assets/icon/checkedIs.png" alt /><span
  10605. >已选择</span
  10606. >
  10607. </div>
  10608. </div>
  10609. </div>
  10610. <div class="tool">
  10611. <div class="whiteBIcon" @click="addTools2(63)">
  10612. <img
  10613. src="../../assets/icon/fourthToolList/Wood.png"
  10614. alt
  10615. />
  10616. <div style="margin: 5px 0">海龟编程</div>
  10617. </div>
  10618. <div class="check" @click="addTools2(63)">
  10619. <img
  10620. src="../../assets/icon/checkNo.png"
  10621. alt
  10622. v-if="checktoolArray.indexOf(63) == -1"
  10623. />
  10624. <div class="checkDiv" v-else>
  10625. <img src="../../assets/icon/checkedIs.png" alt /><span
  10626. >已选择</span
  10627. >
  10628. </div>
  10629. </div>
  10630. </div>
  10631. </div>
  10632. <div class="toolSort" v-if="toolType == 5">
  10633. <div class="tool">
  10634. <div class="whiteBIcon" @click="addTools2(28)">
  10635. <img
  10636. src="../../assets/icon/secondToolList/translation.png"
  10637. alt
  10638. />
  10639. <div style="margin: 5px 0">翻译</div>
  10640. </div>
  10641. <div class="check" @click="addTools2(28)">
  10642. <img
  10643. src="../../assets/icon/checkNo.png"
  10644. alt
  10645. v-if="checktoolArray.indexOf(28) == -1"
  10646. />
  10647. <div class="checkDiv" v-else>
  10648. <img src="../../assets/icon/checkedIs.png" alt /><span
  10649. >已选择</span
  10650. >
  10651. </div>
  10652. </div>
  10653. </div>
  10654. <div class="tool">
  10655. <div class="whiteBIcon" @click="addTools2(31)">
  10656. <img
  10657. src="../../assets/icon/secondToolList/networkPanel.png"
  10658. alt
  10659. />
  10660. <div style="margin: 5px 0">数字画板</div>
  10661. </div>
  10662. <div class="check" @click="addTools2(31)">
  10663. <img
  10664. src="../../assets/icon/checkNo.png"
  10665. alt
  10666. v-if="checktoolArray.indexOf(31) == -1"
  10667. />
  10668. <div class="checkDiv" v-else>
  10669. <img src="../../assets/icon/checkedIs.png" alt /><span
  10670. >已选择</span
  10671. >
  10672. </div>
  10673. </div>
  10674. </div>
  10675. <div class="tool">
  10676. <div class="whiteBIcon" @click="addTools2(39)">
  10677. <img
  10678. src="../../assets/icon/secondToolList/GeoGebra.png"
  10679. alt
  10680. />
  10681. <div style="margin: 5px 0">GeoGebra</div>
  10682. </div>
  10683. <div class="check" @click="addTools2(39)">
  10684. <img
  10685. src="../../assets/icon/checkNo.png"
  10686. alt
  10687. v-if="checktoolArray.indexOf(39) == -1"
  10688. />
  10689. <div class="checkDiv" v-else>
  10690. <img src="../../assets/icon/checkedIs.png" alt /><span
  10691. >已选择</span
  10692. >
  10693. </div>
  10694. </div>
  10695. </div>
  10696. <div class="tool">
  10697. <div class="whiteBIcon" @click="addTools2(66)">
  10698. <img
  10699. src="../../assets/icon/secondToolList/formulaEdi.png"
  10700. alt
  10701. />
  10702. <div style="margin: 5px 0">公式编辑</div>
  10703. </div>
  10704. <div class="check" @click="addTools2(66)">
  10705. <img
  10706. src="../../assets/icon/checkNo.png"
  10707. alt
  10708. v-if="checktoolArray.indexOf(66) == -1"
  10709. />
  10710. <div class="checkDiv" v-else>
  10711. <img src="../../assets/icon/checkedIs.png" alt /><span
  10712. >已选择</span
  10713. >
  10714. </div>
  10715. </div>
  10716. </div>
  10717. <div class="tool">
  10718. <div class="whiteBIcon" @click="addTools2(67)">
  10719. <img
  10720. src="../../assets/icon/secondToolList/molStr.png"
  10721. alt
  10722. />
  10723. <div style="margin: 5px 0">分子结构</div>
  10724. </div>
  10725. <div class="check" @click="addTools2(67)">
  10726. <img
  10727. src="../../assets/icon/checkNo.png"
  10728. alt
  10729. v-if="checktoolArray.indexOf(67) == -1"
  10730. />
  10731. <div class="checkDiv" v-else>
  10732. <img src="../../assets/icon/checkedIs.png" alt /><span
  10733. >已选择</span
  10734. >
  10735. </div>
  10736. </div>
  10737. </div>
  10738. <div class="tool">
  10739. <div class="whiteBIcon" @click="addTools2(68)">
  10740. <img
  10741. src="../../assets/icon/secondToolList/timeAxis.png"
  10742. alt
  10743. />
  10744. <div style="margin: 5px 0">时间轴</div>
  10745. </div>
  10746. <div class="check" @click="addTools2(68)">
  10747. <img
  10748. src="../../assets/icon/checkNo.png"
  10749. alt
  10750. v-if="checktoolArray.indexOf(68) == -1"
  10751. />
  10752. <div class="checkDiv" v-else>
  10753. <img src="../../assets/icon/checkedIs.png" alt /><span
  10754. >已选择</span
  10755. >
  10756. </div>
  10757. </div>
  10758. </div>
  10759. </div>
  10760. <div class="toolSort" v-if="toolType == 7">
  10761. <div class="tool">
  10762. <div class="whiteBIcon" @click="addTools2(40)">
  10763. <img
  10764. src="../../assets/icon/secondToolList/eval.png"
  10765. alt
  10766. />
  10767. <div style="margin: 5px 0">个人评价</div>
  10768. </div>
  10769. <div class="check" @click="addTools2(40)">
  10770. <img
  10771. src="../../assets/icon/checkNo.png"
  10772. alt
  10773. v-if="checktoolArray.indexOf(40) == -1"
  10774. />
  10775. <div class="checkDiv" v-else>
  10776. <img src="../../assets/icon/checkedIs.png" alt /><span
  10777. >已选择</span
  10778. >
  10779. </div>
  10780. </div>
  10781. </div>
  10782. </div>
  10783. <div class="toolSort" v-if="toolType == 4">
  10784. <div class="tool">
  10785. <div class="whiteBIcon" @click="addTools2(26)">
  10786. <img
  10787. src="../../assets/icon/thirdToolList/courseDesign.png"
  10788. alt
  10789. />
  10790. <div style="margin: 5px 0">课程设计</div>
  10791. </div>
  10792. <div class="check" @click="addTools2(26)">
  10793. <img
  10794. src="../../assets/icon/checkNo.png"
  10795. alt
  10796. v-if="checktoolArray.indexOf(26) == -1"
  10797. />
  10798. <div class="checkDiv" v-else>
  10799. <img src="../../assets/icon/checkedIs.png" alt /><span
  10800. >已选择</span
  10801. >
  10802. </div>
  10803. </div>
  10804. </div>
  10805. <div class="tool">
  10806. <div class="whiteBIcon" @click="addTools2(25)">
  10807. <img
  10808. src="../../assets/icon/thirdToolList/evalua.png"
  10809. alt
  10810. />
  10811. <div style="margin: 5px 0">目标管理</div>
  10812. </div>
  10813. <div class="check" @click="addTools2(25)">
  10814. <img
  10815. src="../../assets/icon/checkNo.png"
  10816. alt
  10817. v-if="checktoolArray.indexOf(25) == -1"
  10818. />
  10819. <div class="checkDiv" v-else>
  10820. <img src="../../assets/icon/checkedIs.png" alt /><span
  10821. >已选择</span
  10822. >
  10823. </div>
  10824. </div>
  10825. </div>
  10826. </div>
  10827. </div>
  10828. </div>
  10829. </div>
  10830. </div> -->
  10831. <div
  10832. class="vedioBox"
  10833. style="margin-top: 10px; border-radius: 20px"
  10834. v-if="
  10835. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10836. .eList &&
  10837. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10838. .eList.length &&
  10839. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10840. .eList.length > 0 &&
  10841. tType != 2
  10842. "
  10843. >
  10844. <div
  10845. class="queTop"
  10846. style="
  10847. font-size: 20px;
  10848. padding: 15px 0 15px 37px;
  10849. font-weight: bold;
  10850. "
  10851. >
  10852. <!-- <div class="question" style="width: 30px">
  10853. <img src="../assets/icon/toolIcon.png" alt />
  10854. </div>
  10855. <div class="queTitle">
  10856. <div>工具</div>
  10857. </div>-->
  10858. 评一评
  10859. </div>
  10860. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10861. <div
  10862. class="elist_input"
  10863. :style="{
  10864. marginLeft: '20px',
  10865. width: evalua
  10866. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  10867. taskCount
  10868. ].isEvaFold2
  10869. ? '45%'
  10870. : 'calc(100% - 180px)'
  10871. : 'calc(100% - 20px)'
  10872. }"
  10873. >
  10874. <el-table
  10875. :data="
  10876. chapInfoList[courseType].chapterInfo[0].taskJson[
  10877. taskCount
  10878. ].eList
  10879. "
  10880. :header-cell-style="{ background: '#F0F4FA' }"
  10881. :row-class-name="tableRowClassName"
  10882. border
  10883. stripe
  10884. style="width: 100%"
  10885. >
  10886. <el-table-column
  10887. :width="courseDetail.state == 5 ? '230' : '150'"
  10888. label="目标"
  10889. align="center"
  10890. >
  10891. <template slot-scope="scope">
  10892. <div
  10893. style="display:flex;justify-content: center;align-items: center;"
  10894. >
  10895. <img
  10896. class="blueRootCss"
  10897. v-if="
  10898. scope.row.isai == 1 ||
  10899. (!scope.row.isai && courseDetail.state == 5)
  10900. "
  10901. src="../../assets/icon/newIcons/blueRoot.png"
  10902. alt=""
  10903. />
  10904. <div v-if="courseDetail.state == 5">
  10905. {{ scope.row.target ? scope.row.target : "-" }}
  10906. </div>
  10907. <div v-else>
  10908. {{
  10909. scope.row.target
  10910. ? scope.row.target[scope.row.target.length - 1]
  10911. : "-"
  10912. }}
  10913. </div>
  10914. </div>
  10915. </template></el-table-column
  10916. >
  10917. <el-table-column
  10918. label="评价维度"
  10919. align="center"
  10920. v-if="courseDetail.state != 5"
  10921. >
  10922. <template slot-scope="scope"
  10923. ><div>{{ scope.row.value }}</div></template
  10924. >
  10925. </el-table-column>
  10926. <el-table-column
  10927. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  10928. align="center"
  10929. >
  10930. <template slot-scope="scope"
  10931. ><div>
  10932. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10933. </div></template
  10934. >
  10935. </el-table-column>
  10936. <el-table-column
  10937. label="细则"
  10938. align="center"
  10939. v-if="courseDetail.state == 5"
  10940. >
  10941. <template slot-scope="scope"
  10942. ><div
  10943. style="display:flex;justify-content: space-around;margin:auto"
  10944. v-if="scope.row.rule"
  10945. >
  10946. <el-popover
  10947. placement="top"
  10948. width="350"
  10949. trigger="hover"
  10950. >
  10951. <div
  10952. v-html="scope.row.rule"
  10953. style="white-space:pre-wrap"
  10954. ></div>
  10955. <div
  10956. slot="reference"
  10957. style="color:#4383FF;cursor: pointer;"
  10958. >
  10959. 查看
  10960. </div>
  10961. </el-popover>
  10962. </div>
  10963. <div v-else>-</div>
  10964. </template>
  10965. </el-table-column>
  10966. </el-table>
  10967. <!-- <div
  10968. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10969. .chapterInfo[0].taskJson[taskCount].eList"
  10970. :key="eIndex"
  10971. class="elist_input_box"
  10972. >
  10973. <div style="width: 95%">
  10974. <div
  10975. style="
  10976. display: flex;
  10977. flex-direction: row;
  10978. flex-wrap: nowrap;
  10979. align-items: center;
  10980. "
  10981. >
  10982. <div style="max-width: calc(100% - 285px)">
  10983. <span>{{ eItem.value }}</span>
  10984. </div>
  10985. <div
  10986. style="
  10987. padding-left: 25px;
  10988. display: flex;
  10989. flex-direction: row;
  10990. align-items: center;
  10991. "
  10992. >
  10993. <el-rate
  10994. v-model="eItem.score"
  10995. :colors="colors"
  10996. disabled
  10997. ></el-rate>
  10998. </div>
  10999. </div>
  11000. <div class="elist_inptu_text" style="padding-left: 10px">
  11001. <span v-if="eItem.detail != ''">{{
  11002. eItem.detail
  11003. }}</span>
  11004. <span v-else style="color: #b2b1b3; font-size: 14px"
  11005. >暂无描述...</span
  11006. >
  11007. </div>
  11008. </div>
  11009. </div> -->
  11010. </div>
  11011. <div
  11012. v-if="evalua"
  11013. style="
  11014. border: 1px solid #e5e5e5;
  11015. max-width: 650px;
  11016. width: 100%;
  11017. margin-top: 20px;
  11018. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11019. "
  11020. :style="{
  11021. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  11022. taskCount
  11023. ].isEvaFold2
  11024. ? '100%'
  11025. : '116px'
  11026. }"
  11027. >
  11028. <div class="e_add_top">
  11029. <div class="e_add_title" style="width: 100%">
  11030. <!-- <span>目标管理名称</span> -->
  11031. <span
  11032. v-if="
  11033. chapInfoList[courseType].chapterInfo[0].taskJson[
  11034. taskCount
  11035. ].isEvaFold2
  11036. "
  11037. >{{ eTitle }}</span
  11038. >
  11039. <img
  11040. v-if="
  11041. chapInfoList[courseType].chapterInfo[0].taskJson[
  11042. taskCount
  11043. ].isEvaFold2
  11044. "
  11045. src="../../assets/line.png"
  11046. class="cru_line"
  11047. style="
  11048. width: 125px;
  11049. height: 20px;
  11050. bottom: -10px;
  11051. left: 5px;
  11052. "
  11053. />
  11054. <!-- <el-input
  11055. v-model="eTitle"
  11056. placeholder="请输入名称"
  11057. @change="setMindData"
  11058. ></el-input>-->
  11059. <div
  11060. v-show="
  11061. chapInfoList[courseType].chapterInfo[0].taskJson[
  11062. taskCount
  11063. ].isEvaFold2
  11064. "
  11065. class="show_taskD show"
  11066. style="margin:0 0 0 auto"
  11067. @click="foldEva()"
  11068. >
  11069. <img
  11070. src="../../assets/icon/newIcon/icon-slide.png"
  11071. />收起目标
  11072. </div>
  11073. <div
  11074. v-show="
  11075. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11076. taskCount
  11077. ].isEvaFold2
  11078. "
  11079. style="margin:0 0 0 auto"
  11080. class="show_taskD"
  11081. @click="foldEva()"
  11082. >
  11083. <img
  11084. src="../../assets/icon/newIcon/icon-slide.png"
  11085. />展开目标
  11086. </div>
  11087. </div>
  11088. </div>
  11089. <div
  11090. class="e_add_content"
  11091. v-if="
  11092. chapInfoList[courseType].chapterInfo[0].taskJson[
  11093. taskCount
  11094. ].isEvaFold2
  11095. "
  11096. >
  11097. <div class="e_add_list_pbox">
  11098. <div class="e_add_list_pbox_title">
  11099. <!-- <span class="type_title">切换模式</span> -->
  11100. <div class="type_content">
  11101. <span
  11102. :class="{ active: typeMode == 1 }"
  11103. @click="typeMode = 1"
  11104. >目标树</span
  11105. >
  11106. <span
  11107. :class="{ active: typeMode == 2 }"
  11108. @click="typeMode = 2"
  11109. >目标罗盘</span
  11110. >
  11111. <!-- <span
  11112. :class="{ active: typeMode == 3 }"
  11113. @click="typeMode = 3"
  11114. >目标看板</span
  11115. > -->
  11116. </div>
  11117. </div>
  11118. <div
  11119. class="e_add_list_pbox_content"
  11120. style="min-height: 200px;"
  11121. >
  11122. <Mind
  11123. :showBar="false"
  11124. :mindData="data"
  11125. style="width: 100%"
  11126. v-show="typeMode == 1"
  11127. ></Mind>
  11128. <Sunburst
  11129. :Josn="eJson"
  11130. :num="eJSONNum"
  11131. style="width: 100%"
  11132. v-if="typeMode == 2"
  11133. ></Sunburst>
  11134. <SeeBoard
  11135. :Josn="eJson"
  11136. :num="eJSONNum"
  11137. :ename="eTitle"
  11138. style="width: 100%"
  11139. v-if="typeMode == 3"
  11140. >
  11141. </SeeBoard>
  11142. </div>
  11143. </div>
  11144. </div>
  11145. </div>
  11146. </div>
  11147. </div>
  11148. <!-- <div
  11149. class="project_box"
  11150. style="margin-top: 15px; padding-bottom: 30px"
  11151. >
  11152. <div
  11153. style="
  11154. display: flex;
  11155. flex-wrap: nowrap;
  11156. flex-direction: column;
  11157. position: relative;
  11158. "
  11159. >
  11160. <div class="queTop">
  11161. <div class="question">
  11162. <img src="../../assets/icon/homeWork.png" alt="" />
  11163. </div>
  11164. <div class="queTitle">
  11165. <div>作业提交<span>(提交图文视频等)</span></div>
  11166. <div>:任务:{{ task.task }}</div>
  11167. </div>
  11168. </div>
  11169. <div class="ediBottom">
  11170. <div
  11171. class="addEditor"
  11172. style="margin-top: 23px"
  11173. @click="openAddWork"
  11174. v-if="!isNoHomeWork"
  11175. >
  11176. 选择文件
  11177. </div>
  11178. <div
  11179. class="addEditor"
  11180. style="margin-top: 23px"
  11181. @click="openAddWork"
  11182. v-else
  11183. >
  11184. 已提交
  11185. </div>
  11186. </div>
  11187. </div>
  11188. </div>-->
  11189. </div>
  11190. </div>
  11191. <el-dialog
  11192. title="作业提交"
  11193. :visible.sync="dialogVisible"
  11194. :append-to-body="true"
  11195. width="500px"
  11196. :before-close="handleClose"
  11197. class="dialog_change"
  11198. >
  11199. <div class="marginT">
  11200. <div>上传文件</div>
  11201. <div
  11202. class="chapter_add"
  11203. @click="addImg($event)"
  11204. v-if="studyJuri[0].cover.length == 0"
  11205. >
  11206. <div class="up_photo">
  11207. <img src="../../assets/icon/uploadImg.png" alt />
  11208. </div>
  11209. <!-- <input
  11210. type="file"
  11211. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11212. style="display: none"
  11213. @change="beforeUpload1($event, 1)"
  11214. /> -->
  11215. <input
  11216. type="file"
  11217. accept="*"
  11218. style="display: none"
  11219. @change="beforeUpload1($event, 1)"
  11220. />
  11221. <!-- <input
  11222. type="file"
  11223. accept="image/*"
  11224. capture="camera"
  11225. style="display: none"
  11226. @change="beforeUpload1($event, 1)"
  11227. /> -->
  11228. </div>
  11229. <div
  11230. class="chapter_add"
  11231. style="
  11232. display: flex;
  11233. width: 100%;
  11234. flex-direction: row;
  11235. flex-wrap: wrap;
  11236. justify-content: flex-start;
  11237. padding: 15px 0;
  11238. "
  11239. v-if="studyJuri[0].cover.length > 0"
  11240. >
  11241. <div class="upCover">
  11242. <img
  11243. :src="studyJuri[0].cover[0].url"
  11244. alt
  11245. v-if="fileType == 0"
  11246. />
  11247. <img :src="word" alt v-else-if="fileType == 1" />
  11248. <img :src="video" alt v-else-if="fileType == 2" />
  11249. <img :src="word2" alt v-else-if="fileType == 3" />
  11250. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11251. <div class="deleteWord" @click="clean(1)">
  11252. <img src="../../assets/icon/deleteWorks.png" alt />
  11253. </div>
  11254. </div>
  11255. </div>
  11256. </div>
  11257. <div
  11258. class="upload_send"
  11259. @click="addCourseWorksCopy(taskCount)"
  11260. v-if="!proVisible"
  11261. >
  11262. 提交
  11263. </div>
  11264. </el-dialog>
  11265. </div>
  11266. </div>
  11267. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11268. <classRoomHelper
  11269. v-if="!['2'].includes(tType)"
  11270. @studentFreePreview="studentFreePreview"
  11271. @OpenJobPreview="OpenJobPreview"
  11272. :videoStart="videoStart"
  11273. :IsFollow="IsFollow"
  11274. :sIsOpen="sIsOpen"
  11275. :IsLookOpen="IsLookOpen"
  11276. :splitScreenData="splitScreenData"
  11277. @splitScreenBehavior="splitScreenBehavior"
  11278. @startRecording="startRecording"
  11279. @stopRecording="stopRecording"
  11280. :fileList="vChapterData[taskCount]"
  11281. :worksStudent="worksStudent"
  11282. :courseType="parseInt(courseType)"
  11283. :taskCount="taskCount"
  11284. :tcid="tcid"
  11285. :navList="navList"
  11286. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11287. ref="classRoomHelperRef"
  11288. :courseDetail="courseDetail"
  11289. :tType="tType"
  11290. @setWidth="setClassRoomHelperWidth"
  11291. @refresh="refreshCourse"
  11292. @goStep="nextOrpreSteps"
  11293. @authority="juriVisible = true"
  11294. @review="setPz"
  11295. @backPage="
  11296. goTo(
  11297. '/courseDetail?userid=' +
  11298. userid +
  11299. '&oid=' +
  11300. oid +
  11301. '&org=' +
  11302. org +
  11303. '&cid=' +
  11304. classId +
  11305. '&courseId=' +
  11306. id +
  11307. '&tType=' +
  11308. tType +
  11309. '&screenType=' +
  11310. screenType
  11311. )
  11312. "
  11313. ></classRoomHelper>
  11314. <div
  11315. class="pButton"
  11316. @click="(pzDialog = true), selectPz()"
  11317. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11318. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11319. >
  11320. <!-- 批 -->
  11321. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11322. </div>
  11323. <div
  11324. v-if="pzDialog == true"
  11325. class="newDialogCss"
  11326. :style="`right:${commentRight}`"
  11327. >
  11328. <div class="pzTop2">
  11329. <!-- <div>评论</div>
  11330. <div @click="pzDialog = false">
  11331. <img src="../../assets/close1.png" alt="" />
  11332. </div> -->
  11333. <div class="checkbox">
  11334. <!-- <div class="check" style="font-size: 25px; position: unset">
  11335. 评论
  11336. </div> -->
  11337. <div class="cb-tabList">
  11338. <div
  11339. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11340. @click="commentTagShow = 0"
  11341. >
  11342. 评论
  11343. </div>
  11344. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11345. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11346. <div
  11347. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11348. @click="commentTagShow = 2"
  11349. >
  11350. 总评
  11351. </div>
  11352. </div>
  11353. <el-select
  11354. v-model="pzStype"
  11355. @change="selectPz"
  11356. class="selectBox"
  11357. v-show="commentTagShow == 0"
  11358. >
  11359. <el-option label="时间降序" :value="1"></el-option>
  11360. <el-option label="时间升序" :value="2"></el-option>
  11361. <el-option label="我的评课" :value="3"></el-option>
  11362. </el-select>
  11363. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11364. </div>
  11365. </div>
  11366. <div
  11367. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11368. v-if="commentTagShow == 0"
  11369. >
  11370. <div class="pzListBox" v-if="pzList && pzList.length">
  11371. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11372. <div class="pzNavTop">
  11373. <div>评</div>
  11374. <div>
  11375. {{
  11376. pz.username && pz.username.length > 5
  11377. ? pz.username.substring(0, 5) + "..."
  11378. : pz.username
  11379. }}的评论
  11380. </div>
  11381. <div
  11382. class="pzDelete"
  11383. v-if="pz.userid == userid"
  11384. @click="deletePz(pz.id)"
  11385. >
  11386. 删除
  11387. </div>
  11388. </div>
  11389. <div
  11390. @click="checkImg(getImgList(pz.content))"
  11391. class="pzContent cont"
  11392. v-html="pz.content"
  11393. v-if="pz.type == '1'"
  11394. ></div>
  11395. <div class="pzContent" v-if="pz.type == '2'">
  11396. <audio :src="pz.content" controls="controls" ref="audio">
  11397. Your browser does not support the audio element.
  11398. </audio>
  11399. </div>
  11400. <div class="pzContent" v-if="pz.type == '3'">
  11401. <img
  11402. :src="pz.content"
  11403. style="width: 90%; margin: 0 auto; display: block"
  11404. @click="previewImg(pz.content)"
  11405. />
  11406. </div>
  11407. <div class="timeAndReply">
  11408. <div class="time">
  11409. {{ pz.time }}
  11410. </div>
  11411. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11412. </div>
  11413. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11414. <div
  11415. v-for="(h, hIndex) in pz.hfList"
  11416. :key="hIndex"
  11417. class="hfItem"
  11418. >
  11419. <div class="whoReplyWho">
  11420. <div class="hfName">{{ h.username }}</div>
  11421. <div class="hfImg">
  11422. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11423. </div>
  11424. <div class="hfName">{{ pz.username }}</div>
  11425. </div>
  11426. <div class="hfContent" v-html="h.content"></div>
  11427. <div class="hfBottom">
  11428. <div class="hfTime">{{ h.time }}</div>
  11429. <div
  11430. class="deleteHfItem"
  11431. @click="deleteReply(h.id)"
  11432. v-if="userid == h.userid"
  11433. >
  11434. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11435. </div>
  11436. </div>
  11437. </div>
  11438. </div>
  11439. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11440. <div class="replyInput">
  11441. <el-input v-model="reply[pzIndex]"></el-input>
  11442. </div>
  11443. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11444. </div> -->
  11445. </div>
  11446. </div>
  11447. <div class="noPz" v-else>
  11448. <img src="../../assets/icon/noPz.png" alt="" />
  11449. </div>
  11450. <div class="addPzButton">
  11451. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11452. 添加评论
  11453. </div>
  11454. <!-- <div class="img1">
  11455. <div @click="(addPzDialog = true), (pzType = 2)">
  11456. <img src="../../assets/audio.png" /><span>音频</span>
  11457. </div>
  11458. </div> -->
  11459. </div>
  11460. </div>
  11461. <div class="scoreList" v-if="commentTagShow == 1">
  11462. <scoreItem
  11463. v-for="item in scoreList.datalist"
  11464. @refresh="getScoreList"
  11465. :data="item"
  11466. :isScore="
  11467. scoreList.isScoreList.filter(
  11468. i => i.userid == item.userid && i.courseid == item.courseId
  11469. )
  11470. "
  11471. :key="item.courseId"
  11472. />
  11473. </div>
  11474. <div
  11475. class="scoreList"
  11476. v-if="commentTagShow == 2"
  11477. style="position: relative"
  11478. >
  11479. <scoreZong
  11480. :courseid="id"
  11481. :userid="userid"
  11482. @insertMemorandum="insertMemorandum"
  11483. ></scoreZong>
  11484. </div>
  11485. </div>
  11486. <div
  11487. v-if="toolDialogVisible == true"
  11488. class="toolMask"
  11489. @click="toolDialogVisible = false"
  11490. ></div>
  11491. <div v-if="toolDialogVisible == true" class="addToolCss">
  11492. <div class="toolTop">
  11493. <div style="font-weight: bold">新增工具</div>
  11494. <div @click="toolDialogVisible = false">
  11495. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11496. </div>
  11497. </div>
  11498. <div class="tool_box">
  11499. <div class="tool_type_box">
  11500. <div class="chooseWho">
  11501. <div
  11502. :class="toolType == 0 ? 'isChooseActive' : ''"
  11503. @click="(toolType = 0), $forceUpdate()"
  11504. >
  11505. 互动类
  11506. </div>
  11507. <div
  11508. :class="toolType == 1 ? 'isChooseActive' : ''"
  11509. @click="(toolType = 1), $forceUpdate()"
  11510. >
  11511. 思维类
  11512. </div>
  11513. <div
  11514. :class="toolType == 2 ? 'isChooseActive' : ''"
  11515. @click="(toolType = 2), $forceUpdate()"
  11516. >
  11517. 测评类
  11518. </div>
  11519. <div
  11520. :class="toolType == 3 ? 'isChooseActive' : ''"
  11521. @click="(toolType = 3), $forceUpdate()"
  11522. >
  11523. 编程类
  11524. </div>
  11525. <div
  11526. :class="toolType == 5 ? 'isChooseActive' : ''"
  11527. @click="(toolType = 5), $forceUpdate()"
  11528. >
  11529. 学科类
  11530. </div>
  11531. </div>
  11532. </div>
  11533. <div>
  11534. <div class="toolSort" v-if="toolType == 0">
  11535. <div
  11536. class="tool"
  11537. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11538. @click="addTools2(10)"
  11539. >
  11540. <div class="whiteBIcon">
  11541. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11542. <div style="margin: 5px 0">倒计时</div>
  11543. </div>
  11544. <div class="check">
  11545. <div
  11546. v-if="checktoolArray.indexOf(10) == -1"
  11547. class="noChoose"
  11548. ></div>
  11549. <div v-else class="isChoose"></div>
  11550. </div>
  11551. </div>
  11552. <div
  11553. class="tool"
  11554. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11555. @click="addTools2(65)"
  11556. >
  11557. <div class="whiteBIcon">
  11558. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11559. <div style="margin: 5px 0">挑人</div>
  11560. </div>
  11561. <div class="check">
  11562. <div
  11563. v-if="checktoolArray.indexOf(65) == -1"
  11564. class="noChoose"
  11565. ></div>
  11566. <div v-else class="isChoose"></div>
  11567. </div>
  11568. </div>
  11569. </div>
  11570. <div class="toolSort" v-if="toolType == 1">
  11571. <div
  11572. class="tool"
  11573. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11574. @click="addTools2(7)"
  11575. >
  11576. <div class="whiteBIcon">
  11577. <img
  11578. src="../../assets/icon/secondToolList/mindNetwork.png"
  11579. alt
  11580. />
  11581. <div style="margin: 5px 0">思维网格</div>
  11582. </div>
  11583. <div class="check">
  11584. <div
  11585. v-if="checktoolArray.indexOf(7) == -1"
  11586. class="noChoose"
  11587. ></div>
  11588. <div v-else class="isChoose"></div>
  11589. </div>
  11590. </div>
  11591. <div
  11592. class="tool"
  11593. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11594. @click="addTools2(1)"
  11595. >
  11596. <div class="whiteBIcon">
  11597. <img
  11598. src="../../assets/icon/secondToolList/whiteBoard.png"
  11599. alt
  11600. />
  11601. <div style="margin: 5px 0">电子白板</div>
  11602. </div>
  11603. <div class="check">
  11604. <div
  11605. v-if="checktoolArray.indexOf(1) == -1"
  11606. class="noChoose"
  11607. ></div>
  11608. <div v-else class="isChoose"></div>
  11609. </div>
  11610. </div>
  11611. <div
  11612. class="tool"
  11613. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11614. @click="addTools2(52)"
  11615. >
  11616. <div class="whiteBIcon">
  11617. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11618. <div style="margin: 5px 0">文档</div>
  11619. </div>
  11620. <div class="check">
  11621. <div
  11622. v-if="checktoolArray.indexOf(52) == -1"
  11623. class="noChoose"
  11624. ></div>
  11625. <div v-else class="isChoose"></div>
  11626. </div>
  11627. </div>
  11628. <div
  11629. class="tool"
  11630. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11631. @click="addTools2(3)"
  11632. >
  11633. <div class="whiteBIcon">
  11634. <img
  11635. src="../../assets/icon/secondToolList/mindMapping.png"
  11636. alt
  11637. />
  11638. <div style="margin: 5px 0">思维导图</div>
  11639. </div>
  11640. <div class="check">
  11641. <div
  11642. v-if="checktoolArray.indexOf(3) == -1"
  11643. class="noChoose"
  11644. ></div>
  11645. <div v-else class="isChoose"></div>
  11646. </div>
  11647. </div>
  11648. <div
  11649. class="tool"
  11650. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11651. @click="addTools2(48)"
  11652. >
  11653. <div class="whiteBIcon">
  11654. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11655. <div style="margin: 5px 0">表格</div>
  11656. </div>
  11657. <div class="check">
  11658. <div
  11659. v-if="checktoolArray.indexOf(48) == -1"
  11660. class="noChoose"
  11661. ></div>
  11662. <div v-else class="isChoose"></div>
  11663. </div>
  11664. </div>
  11665. </div>
  11666. <div class="toolSort" v-if="toolType == 6">
  11667. <div v-show="tooC == 49">
  11668. <img
  11669. @click="addTools(tooC, toolIndex, taskCount)"
  11670. src="../../assets/icon/fourthToolList/group.png"
  11671. alt
  11672. />
  11673. <div style="margin: 5px 0">学生分组</div>
  11674. </div>
  11675. </div>
  11676. <div class="toolSort" v-if="toolType == 2">
  11677. <div
  11678. class="tool"
  11679. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11680. @click="addTools2(16)"
  11681. >
  11682. <div class="whiteBIcon">
  11683. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11684. <div style="margin: 5px 0">作业提交</div>
  11685. </div>
  11686. <div class="check">
  11687. <div
  11688. v-if="checktoolArray.indexOf(16) == -1"
  11689. class="noChoose"
  11690. ></div>
  11691. <div v-else class="isChoose"></div>
  11692. </div>
  11693. </div>
  11694. <div
  11695. class="tool"
  11696. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11697. @click="addTools2(50)"
  11698. >
  11699. <div class="whiteBIcon">
  11700. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11701. <div style="margin: 5px 0">批量上传</div>
  11702. </div>
  11703. <div class="check">
  11704. <div
  11705. v-if="checktoolArray.indexOf(50) == -1"
  11706. class="noChoose"
  11707. ></div>
  11708. <div v-else class="isChoose"></div>
  11709. </div>
  11710. </div>
  11711. </div>
  11712. <div class="toolSort" v-if="toolType == 3">
  11713. <div
  11714. class="tool"
  11715. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11716. @click="addTools2(18)"
  11717. >
  11718. <div class="whiteBIcon">
  11719. <img
  11720. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11721. alt
  11722. />
  11723. <div style="margin: 5px 0">训练平台</div>
  11724. </div>
  11725. <div class="check">
  11726. <div
  11727. v-if="checktoolArray.indexOf(18) == -1"
  11728. class="noChoose"
  11729. ></div>
  11730. <div v-else class="isChoose"></div>
  11731. </div>
  11732. </div>
  11733. <div
  11734. class="tool"
  11735. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11736. @click="addTools2(21)"
  11737. >
  11738. <div class="whiteBIcon">
  11739. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11740. <div style="margin: 5px 0">AIoT Blockly</div>
  11741. </div>
  11742. <div class="check">
  11743. <div
  11744. v-if="checktoolArray.indexOf(21) == -1"
  11745. class="noChoose"
  11746. ></div>
  11747. <div v-else class="isChoose"></div>
  11748. </div>
  11749. </div>
  11750. <div
  11751. class="tool"
  11752. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11753. @click="addTools2(23)"
  11754. >
  11755. <div class="whiteBIcon">
  11756. <img
  11757. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11758. alt
  11759. />
  11760. <div style="margin: 5px 0">AI Python</div>
  11761. </div>
  11762. <div class="check">
  11763. <div
  11764. v-if="checktoolArray.indexOf(23) == -1"
  11765. class="noChoose"
  11766. ></div>
  11767. <div v-else class="isChoose"></div>
  11768. </div>
  11769. </div>
  11770. <div
  11771. class="tool"
  11772. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11773. @click="addTools2(24)"
  11774. >
  11775. <div class="whiteBIcon">
  11776. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11777. <div style="margin: 5px 0">AI Blockly</div>
  11778. </div>
  11779. <div class="check">
  11780. <div
  11781. v-if="checktoolArray.indexOf(24) == -1"
  11782. class="noChoose"
  11783. ></div>
  11784. <div v-else class="isChoose"></div>
  11785. </div>
  11786. </div>
  11787. <div
  11788. class="tool"
  11789. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11790. @click="addTools2(32)"
  11791. >
  11792. <div class="whiteBIcon">
  11793. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11794. <div style="margin: 5px 0">源码编辑</div>
  11795. </div>
  11796. <div class="check">
  11797. <div
  11798. v-if="checktoolArray.indexOf(32) == -1"
  11799. class="noChoose"
  11800. ></div>
  11801. <div v-else class="isChoose"></div>
  11802. </div>
  11803. </div>
  11804. <div
  11805. class="tool"
  11806. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11807. @click="addTools2(57)"
  11808. >
  11809. <div class="whiteBIcon">
  11810. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11811. <div style="margin: 5px 0">CocoPi</div>
  11812. </div>
  11813. <div class="check">
  11814. <div
  11815. v-if="checktoolArray.indexOf(57) == -1"
  11816. class="noChoose"
  11817. ></div>
  11818. <div v-else class="isChoose"></div>
  11819. </div>
  11820. </div>
  11821. <div
  11822. class="tool"
  11823. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11824. @click="addTools2(63)"
  11825. >
  11826. <div class="whiteBIcon">
  11827. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11828. <div style="margin: 5px 0">海龟编程</div>
  11829. </div>
  11830. <div class="check">
  11831. <div
  11832. v-if="checktoolArray.indexOf(63) == -1"
  11833. class="noChoose"
  11834. ></div>
  11835. <div v-else class="isChoose"></div>
  11836. </div>
  11837. </div>
  11838. <div
  11839. class="tool"
  11840. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11841. @click="addTools2(71)"
  11842. >
  11843. <div class="whiteBIcon">
  11844. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11845. <div style="margin: 5px 0">AI智能体</div>
  11846. </div>
  11847. <div class="check">
  11848. <div
  11849. v-if="checktoolArray.indexOf(71) == -1"
  11850. class="noChoose"
  11851. ></div>
  11852. <div v-else class="isChoose"></div>
  11853. </div>
  11854. </div>
  11855. </div>
  11856. <div class="toolSort" v-if="toolType == 7">
  11857. <div
  11858. class="tool"
  11859. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11860. @click="addTools2(40)"
  11861. >
  11862. <div class="whiteBIcon">
  11863. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11864. <div style="margin: 5px 0">个人评价</div>
  11865. </div>
  11866. <div class="check">
  11867. <div
  11868. v-if="checktoolArray.indexOf(40) == -1"
  11869. class="noChoose"
  11870. ></div>
  11871. <div v-else class="isChoose"></div>
  11872. </div>
  11873. </div>
  11874. </div>
  11875. <div class="toolSort" v-if="toolType == 5">
  11876. <div
  11877. class="tool"
  11878. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11879. @click="addTools2(28)"
  11880. >
  11881. <div class="whiteBIcon">
  11882. <img
  11883. src="../../assets/icon/secondToolList/translation.png"
  11884. alt
  11885. />
  11886. <div style="margin: 5px 0">翻译</div>
  11887. </div>
  11888. <div class="check">
  11889. <div
  11890. v-if="checktoolArray.indexOf(28) == -1"
  11891. class="noChoose"
  11892. ></div>
  11893. <div v-else class="isChoose"></div>
  11894. </div>
  11895. </div>
  11896. <div
  11897. class="tool"
  11898. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11899. @click="addTools2(31)"
  11900. >
  11901. <div class="whiteBIcon">
  11902. <img
  11903. src="../../assets/icon/secondToolList/networkPanel.png"
  11904. alt
  11905. />
  11906. <div style="margin: 5px 0">数字画板</div>
  11907. </div>
  11908. <div class="check">
  11909. <div
  11910. v-if="checktoolArray.indexOf(31) == -1"
  11911. class="noChoose"
  11912. ></div>
  11913. <div v-else class="isChoose"></div>
  11914. </div>
  11915. </div>
  11916. <div
  11917. class="tool"
  11918. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11919. @click="addTools2(39)"
  11920. >
  11921. <div class="whiteBIcon">
  11922. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11923. <div style="margin: 5px 0">GeoGebra</div>
  11924. </div>
  11925. <div class="check">
  11926. <div
  11927. v-if="checktoolArray.indexOf(39) == -1"
  11928. class="noChoose"
  11929. ></div>
  11930. <div v-else class="isChoose"></div>
  11931. </div>
  11932. </div>
  11933. <div
  11934. class="tool"
  11935. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11936. @click="addTools2(66)"
  11937. >
  11938. <div class="whiteBIcon">
  11939. <img
  11940. src="../../assets/icon/secondToolList/formulaEdi.png"
  11941. alt
  11942. />
  11943. <div style="margin: 5px 0">公式编辑</div>
  11944. </div>
  11945. <div class="check">
  11946. <div
  11947. v-if="checktoolArray.indexOf(66) == -1"
  11948. class="noChoose"
  11949. ></div>
  11950. <div v-else class="isChoose"></div>
  11951. </div>
  11952. </div>
  11953. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11954. <div class="whiteBIcon" @click="addTools2(67)">
  11955. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11956. <div style="margin: 5px 0">分子结构</div>
  11957. </div>
  11958. <div class="check" @click="addTools2(67)">
  11959. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11960. <div v-else class="isChoose"></div>
  11961. </div>
  11962. </div> -->
  11963. <div
  11964. class="tool"
  11965. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11966. @click="addTools2(68)"
  11967. >
  11968. <div class="whiteBIcon">
  11969. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11970. <div style="margin: 5px 0">时间轴</div>
  11971. </div>
  11972. <div class="check">
  11973. <div
  11974. v-if="checktoolArray.indexOf(68) == -1"
  11975. class="noChoose"
  11976. ></div>
  11977. <div v-else class="isChoose"></div>
  11978. </div>
  11979. </div>
  11980. <!-- <div
  11981. class="tool"
  11982. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11983. @click="addTools2(69)"
  11984. >
  11985. <div class="whiteBIcon">
  11986. <img src="../../assets/icon/secondToolList/english.png" alt />
  11987. <div style="margin: 5px 0">英语写作</div>
  11988. </div>
  11989. <div class="check">
  11990. <div
  11991. v-if="checktoolArray.indexOf(69) == -1"
  11992. class="noChoose"
  11993. ></div>
  11994. <div v-else class="isChoose"></div>
  11995. </div>
  11996. </div> -->
  11997. </div>
  11998. <div class="toolSort" v-if="toolType == 4">
  11999. <div
  12000. class="tool"
  12001. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12002. @click="addTools2(26)"
  12003. >
  12004. <div class="whiteBIcon">
  12005. <img
  12006. src="../../assets/icon/thirdToolList/courseDesign.png"
  12007. alt
  12008. />
  12009. <div style="margin: 5px 0">课程设计</div>
  12010. </div>
  12011. <div class="check">
  12012. <div
  12013. v-if="checktoolArray.indexOf(26) == -1"
  12014. class="noChoose"
  12015. ></div>
  12016. <div v-else class="isChoose"></div>
  12017. </div>
  12018. </div>
  12019. <div
  12020. class="tool"
  12021. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12022. @click="addTools2(25)"
  12023. >
  12024. <div class="whiteBIcon">
  12025. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12026. <div style="margin: 5px 0">目标管理</div>
  12027. </div>
  12028. <div class="check">
  12029. <div
  12030. v-if="checktoolArray.indexOf(25) == -1"
  12031. class="noChoose"
  12032. ></div>
  12033. <div v-else class="isChoose"></div>
  12034. </div>
  12035. </div>
  12036. </div>
  12037. </div>
  12038. </div>
  12039. <span
  12040. slot="footer"
  12041. class="dialog-footer"
  12042. style="display: block; text-align: center; padding: 0 0 10px 0"
  12043. >
  12044. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12045. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12046. </span>
  12047. </div>
  12048. <div
  12049. v-if="replyDialogVisible == true"
  12050. class="addDialogCss"
  12051. v-el-drag-dialog
  12052. >
  12053. <div class="pzTop">
  12054. <div class="teacherPz">
  12055. <div class="teacherPzImg">
  12056. <img src="../../assets/icon/teacherPz.png" alt="" />
  12057. </div>
  12058. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12059. </div>
  12060. <div @click="replyDialogVisible = false">
  12061. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12062. </div>
  12063. </div>
  12064. <div class="addPzBox">
  12065. <!-- <div class="addPzCheck">
  12066. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12067. >文本</span
  12068. >
  12069. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12070. >音频</span
  12071. >
  12072. </div> -->
  12073. <div style="height: calc(100% - 50px)">
  12074. <editor-bar
  12075. class="binfo_input pzConText"
  12076. style="width: 100% !important; margin: 0 auto"
  12077. placeholder="请输入回复描述"
  12078. v-model="reply"
  12079. @change="change"
  12080. ></editor-bar>
  12081. </div>
  12082. <div class="addTextCss" @click="addHf">确定</div>
  12083. </div>
  12084. </div>
  12085. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12086. <div class="pzTop">
  12087. <div class="teacherPz">
  12088. <div class="teacherPzImg">
  12089. <img src="../../assets/icon/teacherPz.png" alt="" />
  12090. </div>
  12091. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12092. </div>
  12093. <div @click="addPzDialog = false">
  12094. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12095. </div>
  12096. </div>
  12097. <div class="addPzBox">
  12098. <div class="addPzCheck">
  12099. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12100. >文本</span
  12101. >
  12102. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12103. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12104. >音频</span
  12105. >
  12106. </div>
  12107. <div style="height: calc(100% - 95px)">
  12108. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12109. v-if="pzType == 1"></textarea> -->
  12110. <editor-bar
  12111. class="binfo_input pzConText"
  12112. style="width: 100% !important"
  12113. placeholder="请输入任务描述"
  12114. v-model="pzConText"
  12115. @change="change"
  12116. v-if="pzType == 1"
  12117. ></editor-bar>
  12118. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12119. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12120. <div @click="addImg($event)">
  12121. <el-button type="primary">上传图片</el-button>
  12122. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12123. @change="beforeUpload1($event, 4)" />
  12124. </div>
  12125. </div> -->
  12126. </div>
  12127. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12128. 确定
  12129. </div>
  12130. </div>
  12131. </div>
  12132. <div v-if="proVisible" class="mask">
  12133. <div class="progressBox">
  12134. <!-- <div id="closePro" class="closeCss">
  12135. <img src="../../assets/icon/close.png" alt />
  12136. </div> -->
  12137. <div class="lbox">
  12138. <img src="../../assets/loading.gif" />上传中,请稍后
  12139. </div>
  12140. <div style="margin-bottom: 10px">
  12141. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12142. </div>
  12143. <el-progress
  12144. :text-inside="true"
  12145. :stroke-width="20"
  12146. :percentage="progress"
  12147. style="width: 80%"
  12148. ></el-progress>
  12149. </div>
  12150. </div>
  12151. <div v-if="proVisible2" class="mask">
  12152. <div class="progressBox">
  12153. <div class="lbox">
  12154. <img src="../../assets/loading.gif" />上传中,请稍后
  12155. </div>
  12156. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12157. </div>
  12158. </div>
  12159. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12160. <img width="100%" :src="dialogImageUrl" alt />
  12161. </el-dialog>
  12162. <el-dialog
  12163. :title="noteName != '' ? noteName : '查看问卷'"
  12164. :visible.sync="dialogVisible5"
  12165. :append-to-body="true"
  12166. width="1000px"
  12167. :before-close="handleClose"
  12168. class="dialog_diy dialog_diy3"
  12169. >
  12170. <div>
  12171. <div
  12172. class="a_add_title"
  12173. style="
  12174. display: flex;
  12175. flex-direction: row;
  12176. align-items: center;
  12177. justify-content: center;
  12178. "
  12179. >
  12180. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12181. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12182. </div>
  12183. <div class="a_addBox">
  12184. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12185. 题目内容
  12186. </div>
  12187. <div
  12188. class="a_add_box"
  12189. v-for="(item1, index1) in askJson.askCount"
  12190. :key="index1"
  12191. >
  12192. <div class="a_add_head">
  12193. <div style="display: flex">
  12194. <span class="askIndex"> {{ index1 + 1 }}</span>
  12195. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12196. </div>
  12197. <img
  12198. v-if="askJson.askJson[index1].img"
  12199. :src="askJson.askJson[index1].img"
  12200. style="height: 300px; margin-top: 10px; max-width: 100%"
  12201. />
  12202. </div>
  12203. <div class="a_add_body">
  12204. <div class="a_add_input">
  12205. <el-radio-group
  12206. v-model="radio[index1]"
  12207. v-if="
  12208. askJson.askJson[index1].type == '1' ||
  12209. !askJson.askJson[index1].type
  12210. "
  12211. >
  12212. <el-radio
  12213. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12214. .checkList"
  12215. :key="checkIndex"
  12216. :label="checkIndex"
  12217. :disabled="isAnswer"
  12218. class="redioStyle"
  12219. ><span v-html="item2"></span
  12220. ></el-radio>
  12221. </el-radio-group>
  12222. <el-checkbox-group
  12223. v-model="radio[index1]"
  12224. v-if="askJson.askJson[index1].type == '2'"
  12225. >
  12226. <el-checkbox
  12227. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12228. .checkList"
  12229. :key="checkIndex1"
  12230. :label="checkIndex1"
  12231. :disabled="isAnswer"
  12232. class="redioStyle"
  12233. ><span v-html="item2"></span>
  12234. </el-checkbox>
  12235. </el-checkbox-group>
  12236. </div>
  12237. </div>
  12238. </div>
  12239. </div>
  12240. </div>
  12241. <span slot="footer" class="dialog-footer">
  12242. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12243. >取 消</el-button
  12244. >
  12245. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12246. >确 定</el-button
  12247. >
  12248. </span>
  12249. </el-dialog>
  12250. <el-dialog
  12251. :title="noteName != '' ? noteName : '查看问卷'"
  12252. :visible.sync="dialogVisible5Teacher"
  12253. :append-to-body="true"
  12254. width="1000px"
  12255. :before-close="handleClose"
  12256. class="dialog_diy dialog_diy3"
  12257. >
  12258. <div>
  12259. <div class="w_name">
  12260. 学生姓名:<span>{{ sStudent.student }}</span>
  12261. </div>
  12262. <div
  12263. class="a_add_title"
  12264. style="
  12265. display: flex;
  12266. flex-direction: row;
  12267. align-items: center;
  12268. justify-content: center;
  12269. "
  12270. >
  12271. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12272. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12273. </div>
  12274. <div class="a_addBox">
  12275. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12276. 题目内容
  12277. </div>
  12278. <div
  12279. class="a_add_box"
  12280. v-for="(item1, index1) in askJson.askCount"
  12281. :key="index1"
  12282. >
  12283. <div class="a_add_head">
  12284. <div style="display: flex">
  12285. <span class="askIndex">{{ index1 + 1 }}</span>
  12286. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12287. </div>
  12288. <img
  12289. v-if="askJson.askJson[index1].img"
  12290. :src="askJson.askJson[index1].img"
  12291. style="height: 300px; margin-top: 10px; max-width: 100%"
  12292. />
  12293. </div>
  12294. <div class="a_add_body">
  12295. <div class="a_add_input">
  12296. <el-radio-group
  12297. v-model="radio[index1]"
  12298. v-if="
  12299. askJson.askJson[index1].type == '1' ||
  12300. !askJson.askJson[index1].type
  12301. "
  12302. >
  12303. <el-radio
  12304. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12305. .checkList"
  12306. :key="checkIndex"
  12307. :label="checkIndex"
  12308. :disabled="isAnswer"
  12309. class="redioStyle"
  12310. ><span v-html="item2"></span
  12311. ></el-radio>
  12312. </el-radio-group>
  12313. <el-checkbox-group
  12314. v-model="radio[index1]"
  12315. v-if="askJson.askJson[index1].type == '2'"
  12316. >
  12317. <el-checkbox
  12318. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12319. .checkList"
  12320. :key="checkIndex1"
  12321. :label="checkIndex1"
  12322. :disabled="isAnswer"
  12323. class="redioStyle"
  12324. ><span v-html="item2"></span>
  12325. </el-checkbox>
  12326. </el-checkbox-group>
  12327. </div>
  12328. </div>
  12329. </div>
  12330. </div>
  12331. </div>
  12332. <span slot="footer" class="dialog-footer">
  12333. <el-button
  12334. @click="dialogVisible5Teacher = false"
  12335. v-show="noteName == ''"
  12336. >取 消</el-button
  12337. >
  12338. <el-button
  12339. type="primary"
  12340. @click="addStudentAskTeacher"
  12341. v-show="noteName == ''"
  12342. >确 定</el-button
  12343. >
  12344. </span>
  12345. </el-dialog>
  12346. <el-dialog
  12347. :title="noteName != '' ? noteName : '查看选择题'"
  12348. :visible.sync="dialogVisibleChoice"
  12349. :append-to-body="true"
  12350. width="1000px"
  12351. :before-close="handleClose"
  12352. class="dialog_diy dialog_diy3"
  12353. >
  12354. <div>
  12355. <!-- <div class="a_add_title" style="
  12356. display: flex;
  12357. flex-direction: row;
  12358. align-items: center;
  12359. justify-content: center;
  12360. ">
  12361. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12362. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12363. </div> -->
  12364. <div class="a_addBox">
  12365. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12366. 题目内容
  12367. </div>
  12368. <div
  12369. class="a_add_box"
  12370. v-for="(item1, index1) in testJson.testCount"
  12371. :key="index1"
  12372. >
  12373. <div class="a_add_head">
  12374. <div style="display: flex">
  12375. <span class="askIndex">{{ index1 + 1 }}</span>
  12376. <div
  12377. v-if="testJson.testJson[index1].type == '1'"
  12378. style="margin-right: 5px; min-width: 70px"
  12379. >
  12380. (单选题)
  12381. </div>
  12382. <div
  12383. v-if="testJson.testJson[index1].type == '2'"
  12384. style="margin-right: 5px; min-width: 70px"
  12385. >
  12386. (多选题)
  12387. </div>
  12388. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12389. </div>
  12390. <img
  12391. v-if="testJson.testJson[index1].img"
  12392. :src="testJson.testJson[index1].img"
  12393. style="height: 300px; margin-top: 10px; max-width: 100%"
  12394. />
  12395. </div>
  12396. <div
  12397. class="timuImgBox"
  12398. v-if="
  12399. testJson.testJson[index1].timuList &&
  12400. testJson.testJson[index1].timuList.length
  12401. "
  12402. >
  12403. <div
  12404. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12405. :key="tIndex"
  12406. class="timuImg"
  12407. @click.stop="previewImg(timg.src)"
  12408. >
  12409. <img :src="timg.src" alt="" />
  12410. </div>
  12411. </div>
  12412. <div class="a_add_body">
  12413. <div class="a_add_input">
  12414. <el-radio-group
  12415. v-model="radio[index1]"
  12416. v-if="testJson.testJson[index1].type == '1'"
  12417. >
  12418. <div class="radioBox">
  12419. <el-radio
  12420. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12421. .checkList"
  12422. :key="checkIndex"
  12423. :label="checkIndex"
  12424. :disabled="isAnswer"
  12425. class="redioStyle"
  12426. >
  12427. <div
  12428. style="margin-right: 10px"
  12429. v-if="item2 && item2.imgType && item2.imgType == 1"
  12430. >
  12431. <div class="inImg" @click.stop="previewImg(item2.src)">
  12432. <img :src="item2.src" alt="" />
  12433. </div>
  12434. </div>
  12435. <span v-else v-html="item2"></span>
  12436. </el-radio>
  12437. </div>
  12438. </el-radio-group>
  12439. <el-checkbox-group
  12440. v-model="radio[index1]"
  12441. v-if="testJson.testJson[index1].type == '2'"
  12442. >
  12443. <div class="radioBox">
  12444. <el-checkbox
  12445. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12446. .checkList"
  12447. :key="checkIndex"
  12448. :label="checkIndex"
  12449. :disabled="isAnswer"
  12450. class="redioStyle"
  12451. >
  12452. <div
  12453. style="margin-right: 10px"
  12454. v-if="item2 && item2.imgType && item2.imgType == 1"
  12455. >
  12456. <div class="inImg" @click.stop="previewImg(item2.src)">
  12457. <img :src="item2.src" alt="" />
  12458. </div>
  12459. </div>
  12460. <span v-else v-html="item2"></span>
  12461. </el-checkbox>
  12462. </div>
  12463. </el-checkbox-group>
  12464. </div>
  12465. </div>
  12466. </div>
  12467. </div>
  12468. </div>
  12469. <span slot="footer" class="dialog-footer">
  12470. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12471. >取 消</el-button
  12472. >
  12473. <el-button
  12474. type="primary"
  12475. @click="addStudentTest"
  12476. v-show="noteName == ''"
  12477. >确 定</el-button
  12478. >
  12479. </span>
  12480. </el-dialog>
  12481. <el-dialog
  12482. :title="noteName != '' ? noteName : '查看选择题'"
  12483. :visible.sync="dialogVisibleChoiceTeacher"
  12484. :append-to-body="true"
  12485. width="1000px"
  12486. :before-close="handleClose"
  12487. class="dialog_diy dialog_diy3"
  12488. >
  12489. <div>
  12490. <div class="w_name">
  12491. 学生姓名:<span>{{ sStudent.student }}</span>
  12492. </div>
  12493. <div class="a_addBox">
  12494. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12495. 题目内容
  12496. </div>
  12497. <div
  12498. class="a_add_box"
  12499. v-for="(item1, index1) in testJson.testCount"
  12500. :key="index1"
  12501. >
  12502. <div class="a_add_head">
  12503. <div style="display: flex">
  12504. <span class="askIndex">{{ index1 + 1 }}</span>
  12505. <div
  12506. v-if="testJson.testJson[index1].type == '1'"
  12507. style="margin-right: 5px; min-width: 70px"
  12508. >
  12509. (单选题)
  12510. </div>
  12511. <div
  12512. v-if="testJson.testJson[index1].type == '2'"
  12513. style="margin-right: 5px; min-width: 70px"
  12514. >
  12515. (多选题)
  12516. </div>
  12517. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12518. </div>
  12519. <img
  12520. v-if="testJson.testJson[index1].img"
  12521. :src="testJson.testJson[index1].img"
  12522. style="height: 300px; margin-top: 10px; max-width: 100%"
  12523. />
  12524. </div>
  12525. <div
  12526. class="timuImgBox"
  12527. v-if="
  12528. testJson.testJson[index1].timuList &&
  12529. testJson.testJson[index1].timuList.length
  12530. "
  12531. >
  12532. <div
  12533. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12534. :key="tIndex"
  12535. class="timuImg"
  12536. @click.stop="previewImg(timg.src)"
  12537. >
  12538. <img :src="timg.src" alt="" />
  12539. </div>
  12540. </div>
  12541. <div class="a_add_body">
  12542. <div class="a_add_input">
  12543. <el-radio-group
  12544. v-model="radio[index1]"
  12545. v-if="testJson.testJson[index1].type == '1'"
  12546. >
  12547. <div class="radioBox">
  12548. <el-radio
  12549. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12550. .checkList"
  12551. :key="checkIndex"
  12552. :label="checkIndex"
  12553. :disabled="isAnswer"
  12554. class="redioStyle"
  12555. >
  12556. <div
  12557. style="margin-right: 10px"
  12558. v-if="item2 && item2.imgType && item2.imgType == 1"
  12559. >
  12560. <div class="inImg" @click.stop="previewImg(item2.src)">
  12561. <img :src="item2.src" alt="" />
  12562. </div>
  12563. </div>
  12564. <span v-else v-html="item2"></span>
  12565. </el-radio>
  12566. </div>
  12567. </el-radio-group>
  12568. <el-checkbox-group
  12569. v-model="radio[index1]"
  12570. v-if="testJson.testJson[index1].type == '2'"
  12571. >
  12572. <div class="radioBox">
  12573. <el-checkbox
  12574. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12575. .checkList"
  12576. :key="checkIndex"
  12577. :label="checkIndex"
  12578. :disabled="isAnswer"
  12579. class="redioStyle"
  12580. >
  12581. <div
  12582. style="margin-right: 10px"
  12583. v-if="item2 && item2.imgType && item2.imgType == 1"
  12584. >
  12585. <div class="inImg" @click.stop="previewImg(item2.src)">
  12586. <img :src="item2.src" alt="" />
  12587. </div>
  12588. </div>
  12589. <span v-else v-html="item2"></span>
  12590. </el-checkbox>
  12591. </div>
  12592. </el-checkbox-group>
  12593. </div>
  12594. </div>
  12595. </div>
  12596. </div>
  12597. </div>
  12598. <span slot="footer" class="dialog-footer">
  12599. <el-button
  12600. @click="dialogVisibleChoiceTeacher = false"
  12601. v-show="noteName == ''"
  12602. >取 消</el-button
  12603. >
  12604. <el-button
  12605. type="primary"
  12606. @click="addStudentTestTeacher"
  12607. v-show="noteName == ''"
  12608. >确 定</el-button
  12609. >
  12610. </span>
  12611. </el-dialog>
  12612. <el-dialog
  12613. title="查看富文本"
  12614. :visible.sync="dialogVisible1"
  12615. :append-to-body="true"
  12616. width="500px"
  12617. :before-close="handleClose"
  12618. class="dialog_diy textCss"
  12619. >
  12620. <el-form style="font-size: 20px">
  12621. <el-form-item label="文本标题" class="textTitle">
  12622. <div style="font-size: 20px">{{ text.name }}</div>
  12623. </el-form-item>
  12624. <div>富文本内容</div>
  12625. <div
  12626. v-html="text.url"
  12627. style="font-size: 18px; padding: 40px 0 0 0"
  12628. ></div>
  12629. </el-form>
  12630. <span slot="footer" class="dialog-footer">
  12631. <el-button type="primary" @click="dialogVisible1 = false"
  12632. >确定</el-button
  12633. >
  12634. </span>
  12635. </el-dialog>
  12636. <el-dialog
  12637. title="文件预览"
  12638. :visible.sync="dialogVisible3"
  12639. width="50%"
  12640. :before-close="handleClose"
  12641. class="dialog_diy"
  12642. :class="{ fullStyle: full }"
  12643. >
  12644. <div slot="title" class="header-title">
  12645. <div style="color: #fff">文件预览</div>
  12646. <div style="position: absolute; top: 19px; right: 50px">
  12647. <img
  12648. src="../../assets/full.png"
  12649. style="height: 16px; cursor: pointer"
  12650. alt=""
  12651. @click="fullTools"
  12652. />
  12653. </div>
  12654. </div>
  12655. <pdf
  12656. v-if="showPDF"
  12657. :pdfUrl="pptImgUrl"
  12658. style="width: 100%; height: 520px; overflow: auto"
  12659. :class="{ fullStyle: full }"
  12660. ></pdf>
  12661. <iframe
  12662. v-else
  12663. :src="pptImgUrl"
  12664. frameborder="0"
  12665. width="100%"
  12666. height="600"
  12667. :class="{ fullStyle: full }"
  12668. ></iframe>
  12669. </el-dialog>
  12670. <el-dialog
  12671. title="文件预览"
  12672. :visible.sync="dialogVisible6"
  12673. width="50%"
  12674. :before-close="handleClose"
  12675. class="dialog_diy"
  12676. >
  12677. <iframe
  12678. :src="pptImgUrl1"
  12679. frameborder="0"
  12680. width="100%"
  12681. height="600"
  12682. ></iframe>
  12683. </el-dialog>
  12684. <el-dialog
  12685. title="提示"
  12686. :visible.sync="dialogVisible4"
  12687. :append-to-body="true"
  12688. width="800px"
  12689. :before-close="handleClose"
  12690. class="dialog_diy notice"
  12691. >
  12692. <div>此功能暂未开放!</div>
  12693. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12694. </el-dialog>
  12695. <el-dialog
  12696. title="问答"
  12697. :visible.sync="answerDialogVisible"
  12698. :append-to-body="true"
  12699. width="800px"
  12700. :before-close="handleClose"
  12701. class="dialog_diy"
  12702. >
  12703. <div>
  12704. <div
  12705. style="
  12706. display: flex;
  12707. flex-wrap: nowrap;
  12708. flex-direction: column;
  12709. position: relative;
  12710. "
  12711. >
  12712. <div class="queTop" style="padding: 20px 0 20px 0">
  12713. <div class="question">
  12714. <img src="../../assets/icon/question.png" alt />
  12715. </div>
  12716. <div class="queTitle">
  12717. <div style="width: 90px; min-width: 90px">提问:</div>
  12718. <div>{{ answerQ }}</div>
  12719. </div>
  12720. </div>
  12721. <div class="ediBottom">
  12722. <textarea
  12723. rows="6"
  12724. class="binfo_input"
  12725. cols
  12726. style="width: 95%; height: 120px"
  12727. v-model="questionAnswer"
  12728. ></textarea>
  12729. </div>
  12730. </div>
  12731. </div>
  12732. <div slot="footer">
  12733. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12734. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12735. </div>
  12736. </el-dialog>
  12737. <el-dialog
  12738. title="问答"
  12739. :visible.sync="answerDialogVisibleTeacher"
  12740. :append-to-body="true"
  12741. width="800px"
  12742. :before-close="handleClose"
  12743. class="dialog_diy"
  12744. >
  12745. <div>
  12746. <div class="w_name">
  12747. 学生姓名:<span>{{ sStudent.student }}</span>
  12748. </div>
  12749. <div
  12750. style="
  12751. display: flex;
  12752. flex-wrap: nowrap;
  12753. flex-direction: column;
  12754. position: relative;
  12755. "
  12756. >
  12757. <div class="queTop" style="padding: 20px 0 20px 0">
  12758. <div class="question">
  12759. <img src="../../assets/icon/question.png" alt />
  12760. </div>
  12761. <div class="queTitle">
  12762. <div style="width: 90px; min-width: 90px">提问:</div>
  12763. <div>{{ answerQ }}</div>
  12764. </div>
  12765. </div>
  12766. <div class="ediBottom">
  12767. <textarea
  12768. rows="6"
  12769. class="binfo_input"
  12770. cols
  12771. style="width: 95%; height: 120px"
  12772. v-model="questionAnswer"
  12773. ></textarea>
  12774. </div>
  12775. </div>
  12776. </div>
  12777. <div slot="footer">
  12778. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12779. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12780. </div>
  12781. </el-dialog>
  12782. <el-dialog
  12783. title="倒计时"
  12784. :visible.sync="timeDialogVisible"
  12785. :append-to-body="true"
  12786. width="800px"
  12787. :before-close="handleClose"
  12788. class="dialog_diy"
  12789. >
  12790. <div>
  12791. <div style="margin-bottom: 20px; color: #999">
  12792. 提示:点击“+”或“-”修改倒计时时长。
  12793. </div>
  12794. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12795. </div>
  12796. <div slot="footer">
  12797. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12798. </div>
  12799. </el-dialog>
  12800. <el-dialog
  12801. title="权限设置"
  12802. :visible.sync="juriVisible"
  12803. :append-to-body="true"
  12804. width="400px"
  12805. :before-close="handleClose"
  12806. class="dialog_diy"
  12807. >
  12808. <div>
  12809. <div class="open_box">
  12810. <div class="switch_box">
  12811. <span>允许学生查看所有作业</span>
  12812. <el-switch
  12813. v-model="sIsOpen"
  12814. active-text=""
  12815. class="switchCss"
  12816. @change="updateSLook"
  12817. ></el-switch>
  12818. </div>
  12819. <div
  12820. class="switch_box"
  12821. v-if="
  12822. courseDetail.userid == userid ||
  12823. (courseDetail.course_teacher &&
  12824. courseDetail.course_teacher.indexOf(userid) != -1)
  12825. "
  12826. >
  12827. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12828. <span>禁止学生查看阶段</span>
  12829. <el-switch
  12830. v-model="IsLookOpen"
  12831. active-text=""
  12832. class="switchCss"
  12833. @change="updateLookOpen"
  12834. ></el-switch>
  12835. </div>
  12836. <div class="switch_box" v-if="courseDetail.userid == userid">
  12837. <span>开启跟随模式</span>
  12838. <el-switch
  12839. v-model="IsFollow"
  12840. active-text=""
  12841. class="switchCss"
  12842. @change="updateFollow"
  12843. ></el-switch>
  12844. </div>
  12845. </div>
  12846. </div>
  12847. <div slot="footer">
  12848. <el-button
  12849. style="background: #409efe; color: #fff"
  12850. @click="juriVisible = false"
  12851. >关 闭</el-button
  12852. >
  12853. </div>
  12854. </el-dialog>
  12855. <el-dialog
  12856. title="查看视频"
  12857. :visible.sync="videoVisible"
  12858. :append-to-body="true"
  12859. width="1000px"
  12860. :before-close="handleClose"
  12861. class="dialog_diy1"
  12862. >
  12863. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12864. <video-player
  12865. class="video-player vjs-custom-skin"
  12866. :playsinline="true"
  12867. :options="videoDetail"
  12868. @play="onPlayerPlay($event)"
  12869. style="width: 100%; height: 100%"
  12870. ></video-player>
  12871. </div>
  12872. <div slot="footer">
  12873. <el-button
  12874. style="background: #409efe; color: #fff"
  12875. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12876. >
  12877. 关 闭</el-button
  12878. >
  12879. </div>
  12880. </el-dialog>
  12881. <el-dialog
  12882. title="查看详情"
  12883. :visible.sync="commentDialogVisible"
  12884. :append-to-body="true"
  12885. width="800px"
  12886. :before-close="handleClose"
  12887. class="dialog_diy"
  12888. >
  12889. <div class="commentTop">
  12890. <div class="studentDetail">
  12891. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12892. <div class="nameAndTime">
  12893. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12894. <div>{{ commentDetail.time }}</div>
  12895. </div>
  12896. <div
  12897. class="returnBtn"
  12898. style="margin-left: auto; width: 80px"
  12899. v-if="
  12900. commentDetail.works &&
  12901. commentDetail.type == 0 &&
  12902. (tType == 1 || tType == 4)
  12903. "
  12904. @click="
  12905. showPicturePaint(
  12906. commentDetail.img ? commentDetail.img : commentDetail.works
  12907. )
  12908. "
  12909. >
  12910. 教师批注
  12911. </div>
  12912. </div>
  12913. <div
  12914. class="worksAnswer"
  12915. v-if="commentDetail.works && commentDetail.type == 2"
  12916. >
  12917. {{ JSON.parse(commentDetail.works)[0].answer }}
  12918. </div>
  12919. <div
  12920. class="worksAnswer"
  12921. v-if="commentDetail.works && commentDetail.type == 1"
  12922. >
  12923. <img
  12924. src="../../assets/teacherWork.png"
  12925. v-if="commentDetail.ateacher"
  12926. class="w_teachert"
  12927. />
  12928. <pdf
  12929. v-if="showPDF"
  12930. :pdfUrl="pptImgUrl"
  12931. style="width: 100%; height: 520px; overflow: auto"
  12932. :class="{ fullStyle: full }"
  12933. ></pdf>
  12934. <iframe
  12935. v-else
  12936. :src="pptImgUrl"
  12937. frameborder="0"
  12938. width="100%"
  12939. height="600"
  12940. :class="{ fullStyle: full }"
  12941. ></iframe>
  12942. </div>
  12943. <div
  12944. class="worksAnswer"
  12945. v-if="commentDetail.works && commentDetail.type == 0"
  12946. >
  12947. <img
  12948. src="../../assets/teacherWork.png"
  12949. v-if="commentDetail.ateacher"
  12950. class="w_teachert"
  12951. style="right: 105px"
  12952. />
  12953. <img
  12954. :src="commentDetail.works"
  12955. alt=""
  12956. @click="previewImg(commentDetail.works)"
  12957. />
  12958. </div>
  12959. <div
  12960. class="worksAnswer"
  12961. v-if="commentDetail.works && commentDetail.type == 3"
  12962. >
  12963. <img
  12964. src="../../assets/teacherWork.png"
  12965. v-if="commentDetail.ateacher"
  12966. class="w_teachert"
  12967. />
  12968. <video-player
  12969. class="video-player vjs-custom-skin"
  12970. :playsinline="true"
  12971. :options="videoDetail"
  12972. @play="onPlayerPlay($event)"
  12973. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12974. ></video-player>
  12975. </div>
  12976. <div
  12977. class="worksAnswer"
  12978. v-if="commentDetail.works && commentDetail.type == 10"
  12979. >
  12980. <div class="cont" v-html="commentDetail.works.text"></div>
  12981. </div>
  12982. <div v-if="commentDetail.works && commentDetail.type == 12">
  12983. <!-- class="worksAnswer codeFileBox" -->
  12984. <!-- @click="downloadFile(commentDetail.works)" -->
  12985. <!-- <img src="../../assets/icon/codeFile.png" />
  12986. <div>点击下载文件</div> -->
  12987. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  12988. </div>
  12989. <div
  12990. class="worksAnswer codeFileBox"
  12991. v-if="commentDetail.works && commentDetail.type == 15"
  12992. @click="
  12993. openCocoPi(
  12994. 57,
  12995. commentIndexJson.toolIndex,
  12996. commentDetail.userid,
  12997. commentDetail.sName
  12998. )
  12999. "
  13000. >
  13001. <img src="../../assets/icon/codeFile.png" />
  13002. <div>点击打开CocoPi</div>
  13003. </div>
  13004. <div
  13005. class="worksAnswer"
  13006. v-if="commentDetail.works && commentDetail.type == 13"
  13007. >
  13008. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13009. </div>
  13010. <div
  13011. class="worksAnswer"
  13012. v-if="commentDetail.works && commentDetail.type == 4"
  13013. >
  13014. <div class="evalCss">
  13015. <div class="nav">请选择星星进行评分</div>
  13016. <div class="middleBox" v-if="eScore.eStar">
  13017. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13018. <div class="nameAndrate">
  13019. <div>{{ e.value }}</div>
  13020. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13021. </div>
  13022. <div v-if="e.detail">{{ e.detail }}</div>
  13023. </div>
  13024. <div class="bz">
  13025. <textarea
  13026. disabled
  13027. rows="4"
  13028. class="pj"
  13029. style="
  13030. padding: 10px 5px;
  13031. width: 70%;
  13032. background: #f7f6f9;
  13033. font-size: 14px;
  13034. text-indent: 10px;
  13035. color: #000;
  13036. "
  13037. cols
  13038. v-model="eScore.eBzText"
  13039. placeholder="请输入评价内容..."
  13040. ></textarea>
  13041. </div>
  13042. </div>
  13043. </div>
  13044. </div>
  13045. <div class="comment">
  13046. <div class="commentList">
  13047. <div class="commentImg">
  13048. <img
  13049. @click="
  13050. isLikes(
  13051. commentDetail.wid,
  13052. userid,
  13053. 1,
  13054. null,
  13055. commentDetail.isLikes,
  13056. commentDetail.sName
  13057. )
  13058. "
  13059. :src="commentDetail.isLikes == true ? likes : noLikes"
  13060. alt=""
  13061. />
  13062. </div>
  13063. <div>{{ commentDetail.likesCount }}</div>
  13064. </div>
  13065. <div class="commentList">
  13066. <div class="commentImg">
  13067. <img src="../../assets/icon/comment/comment.png" alt="" />
  13068. </div>
  13069. <div>{{ commentDetail.commentCount }}</div>
  13070. </div>
  13071. </div>
  13072. <div class="drawPBox" v-if="commentDetail.img">
  13073. <span>教师批注</span>
  13074. <img
  13075. :src="commentDetail.img"
  13076. alt=""
  13077. @click="previewImg(commentDetail.img)"
  13078. />
  13079. <span
  13080. class="deleteImg"
  13081. v-if="tType == 1 || tType == 4"
  13082. @click.stop="deletePicturePaint(commentDetail.wid)"
  13083. style="
  13084. font-size: 14px;
  13085. width: auto !important;
  13086. color: #b4b4b4;
  13087. top: unset;
  13088. bottom: 0;
  13089. border: none;
  13090. padding: 0;
  13091. height: auto !important;
  13092. margin: 0;
  13093. "
  13094. >删除</span
  13095. >
  13096. </div>
  13097. </div>
  13098. <div class="commentBox">
  13099. <div class="pl">评论:</div>
  13100. <div style="max-height: 200px; overflow: auto">
  13101. <div
  13102. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13103. style="padding: 10px 0 0 0"
  13104. >
  13105. <div
  13106. class="studentDetail"
  13107. style="padding-top: 10px"
  13108. v-for="(co, coIndex) in commentDetail.commentJson"
  13109. :key="coIndex"
  13110. >
  13111. <div class="tx" style="min-width: 50px">
  13112. <img src="../../assets/avatar.png" alt="" />
  13113. </div>
  13114. <div class="plPerson">
  13115. <div class="plName">
  13116. <div>{{ co.commentPeople }}</div>
  13117. <div style="margin-left: 5px">
  13118. {{ co.commentTime }}
  13119. </div>
  13120. <div
  13121. class="deleteComment"
  13122. v-if="userid == co.userid"
  13123. @click="deleteComment(co.wid)"
  13124. >
  13125. 删除
  13126. </div>
  13127. </div>
  13128. <div class="plContent">{{ co.commentText }}</div>
  13129. </div>
  13130. </div>
  13131. </div>
  13132. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13133. </div>
  13134. </div>
  13135. <div style="margin-top: 10px">
  13136. <div class="displayBox">
  13137. <div
  13138. style="
  13139. color: #556db4;
  13140. font-size: 14px;
  13141. font-weight: bold;
  13142. padding-bottom: 10px;
  13143. "
  13144. >
  13145. 评价
  13146. </div>
  13147. <div class="easy_comment" v-if="false">
  13148. <div
  13149. v-for="(p, pIndex) in PlTextList"
  13150. :key="pIndex"
  13151. @click="fastText(p, 1)"
  13152. >
  13153. {{ p }}
  13154. </div>
  13155. </div>
  13156. </div>
  13157. <div>
  13158. <textarea
  13159. rows="3"
  13160. class="pj"
  13161. style="padding: 10px 5px"
  13162. cols
  13163. v-model="commentText"
  13164. placeholder="请输入评论"
  13165. ></textarea>
  13166. </div>
  13167. </div>
  13168. <div slot="footer">
  13169. <el-button
  13170. @click="
  13171. (commentDialogVisible = false),
  13172. (commentIndexJson = {}),
  13173. videoDetail.sources && videoDetail.sources[0]
  13174. ? (videoDetail.sources[0].src = '')
  13175. : ''
  13176. "
  13177. >取 消</el-button
  13178. >
  13179. <el-button
  13180. type="primary"
  13181. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13182. >确 定</el-button
  13183. >
  13184. </div>
  13185. </el-dialog>
  13186. <el-dialog
  13187. :visible.sync="fullDialogVisible"
  13188. :append-to-body="true"
  13189. width="100%"
  13190. :before-close="handleClose"
  13191. :show-close="false"
  13192. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13193. >
  13194. <div slot="title" class="header-title">
  13195. <div style="color: #fff">查看文档</div>
  13196. <div
  13197. @click="
  13198. () => {
  13199. (fullDialogVisible = false),
  13200. changeSplitScreenBehavior({ code: 99 });
  13201. }
  13202. "
  13203. style="
  13204. cursor: pointer;
  13205. position: absolute;
  13206. top: 20px;
  13207. right: 20px;
  13208. color: #fff;
  13209. "
  13210. >
  13211. 退出全屏
  13212. </div>
  13213. </div>
  13214. <div style="height: 100%;position: relative;">
  13215. <el-button
  13216. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13217. size="medium"
  13218. type="primary"
  13219. @click="
  13220. () => {
  13221. (fullDialogVisible = false),
  13222. changeSplitScreenBehavior({ code: 99 });
  13223. }
  13224. "
  13225. style="
  13226. cursor: pointer;
  13227. position: absolute;
  13228. top: 10px;
  13229. right: 20px;
  13230. color: #fff;
  13231. "
  13232. >
  13233. 退出全屏
  13234. </el-button>
  13235. <div
  13236. class="wheel"
  13237. v-if="
  13238. fulltype == 2 &&
  13239. fullUrl.indexOf(
  13240. 'https://view.officeapps.live.com/op/view.aspx?src='
  13241. ) != -1
  13242. "
  13243. style="width: 100%;height:100%; margin: 0 auto"
  13244. >
  13245. <iframe
  13246. style="width: 100%; height: 100%; border: none"
  13247. :src="fullUrl"
  13248. ></iframe>
  13249. </div>
  13250. <iframe
  13251. v-else-if="fulltype == 2"
  13252. style="width: 100%; height: 100%; border: none"
  13253. :src="fullUrl"
  13254. security="restricted"
  13255. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13256. ></iframe>
  13257. <pdf
  13258. v-else-if="fulltype == 3"
  13259. :pdfUrl="fullUrl"
  13260. style="width: 100%; height: 100%; overflow: auto"
  13261. ></pdf>
  13262. <div
  13263. class="wheel"
  13264. v-if="fulltype == 1"
  13265. style="
  13266. box-shadow: 0 0 6px 1px #f2f2f2;
  13267. height:100%;
  13268. width: 100%;
  13269. background: #f1f1f1;
  13270. "
  13271. >
  13272. <div class="title" style="width: 100%; box-sizing: border-box">
  13273. 查看文档
  13274. </div>
  13275. <el-form class="textBox" style="height: 90%">
  13276. <el-form-item class="textTitle">
  13277. <div style="font-size: 22px">
  13278. {{ fullUrl.name }}
  13279. </div>
  13280. </el-form-item>
  13281. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13282. <div
  13283. v-html="fullUrl.url"
  13284. class="textContent"
  13285. style="height: auto"
  13286. ></div>
  13287. </el-form>
  13288. </div>
  13289. </div>
  13290. <!-- <div slot="footer">
  13291. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13292. </div> -->
  13293. </el-dialog>
  13294. <el-dialog
  13295. title="个人评价"
  13296. :visible.sync="studentEvalDialogVisible"
  13297. :append-to-body="true"
  13298. width="800px"
  13299. :before-close="handleClose"
  13300. class="dialog_diy"
  13301. >
  13302. <div class="evalCss">
  13303. <div class="nav">请选择星星进行评分</div>
  13304. <div class="middleBox" v-if="eScore.eStar">
  13305. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13306. <div class="nameAndrate">
  13307. <div>{{ e.value }}</div>
  13308. <el-rate
  13309. v-model="eScore.eStar[eIndex]"
  13310. :disabled="isStar"
  13311. ></el-rate>
  13312. </div>
  13313. <div v-if="e.detail">{{ e.detail }}</div>
  13314. </div>
  13315. <div class="easy_comment" v-if="false">
  13316. <div
  13317. v-for="(p, pIndex) in PlTextList"
  13318. :key="pIndex"
  13319. @click="fastText(p, 2)"
  13320. >
  13321. {{ p }}
  13322. </div>
  13323. </div>
  13324. <div class="bz">
  13325. <textarea
  13326. :disabled="isStar"
  13327. rows="4"
  13328. class="pj"
  13329. style="
  13330. padding: 10px 5px;
  13331. width: 70%;
  13332. background: #f7f6f9;
  13333. font-size: 14px;
  13334. text-indent: 10px;
  13335. "
  13336. cols
  13337. v-model="eScore.eBzText"
  13338. placeholder="请输入评价内容..."
  13339. ></textarea>
  13340. </div>
  13341. </div>
  13342. </div>
  13343. <div slot="footer">
  13344. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13345. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13346. >确 定</el-button
  13347. >
  13348. </div>
  13349. </el-dialog>
  13350. <el-dialog
  13351. title="个人评价"
  13352. :visible.sync="studentEvalDialogVisibleTeacher"
  13353. :append-to-body="true"
  13354. width="800px"
  13355. :before-close="handleClose"
  13356. class="dialog_diy"
  13357. >
  13358. <div class="w_name">
  13359. 学生姓名:<span>{{ sStudent.student }}</span>
  13360. </div>
  13361. <div class="evalCss">
  13362. <div class="nav">请选择星星进行评分</div>
  13363. <div class="middleBox" v-if="eScore.eStar">
  13364. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13365. <div class="nameAndrate">
  13366. <div>{{ e.value }}</div>
  13367. <el-rate
  13368. v-model="eScore.eStar[eIndex]"
  13369. :disabled="isStar"
  13370. ></el-rate>
  13371. </div>
  13372. <div v-if="e.detail">{{ e.detail }}</div>
  13373. </div>
  13374. <div class="easy_comment" v-if="false">
  13375. <div
  13376. v-for="(p, pIndex) in PlTextList"
  13377. :key="pIndex"
  13378. @click="fastText(p, 2)"
  13379. >
  13380. {{ p }}
  13381. </div>
  13382. </div>
  13383. <div class="bz">
  13384. <textarea
  13385. :disabled="isStar"
  13386. rows="4"
  13387. class="pj"
  13388. style="
  13389. padding: 10px 5px;
  13390. width: 70%;
  13391. background: #f7f6f9;
  13392. font-size: 14px;
  13393. text-indent: 10px;
  13394. "
  13395. cols
  13396. v-model="eScore.eBzText"
  13397. placeholder="请输入评价内容..."
  13398. ></textarea>
  13399. </div>
  13400. </div>
  13401. </div>
  13402. <div slot="footer">
  13403. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13404. >取 消</el-button
  13405. >
  13406. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13407. >确 定</el-button
  13408. >
  13409. </div>
  13410. </el-dialog>
  13411. <el-dialog
  13412. title="选择匹配"
  13413. :visible.sync="dialogVisibleSelect"
  13414. :append-to-body="true"
  13415. width="90%"
  13416. :before-close="handleClose"
  13417. class="dialog_diy dialog_diy3"
  13418. >
  13419. <div v-if="selectJson">
  13420. <div class="select_box2">
  13421. <div class="select_box2_title">
  13422. <div>选择匹配</div>
  13423. <div>请选择对应的答案进行答题!</div>
  13424. </div>
  13425. <div class="select_box2_box">
  13426. <div class="select_box2_img">
  13427. <img
  13428. :src="selectJson.url"
  13429. @click="previewImg(selectJson.url)"
  13430. alt=""
  13431. />
  13432. </div>
  13433. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13434. <div style="padding-top: 15px">
  13435. <div class="select_answer_title" v-if="isSelect">
  13436. {{ selectAnswer.stu }}
  13437. </div>
  13438. <div class="select_answer_title" v-else>
  13439. 根据题目选择对应答案
  13440. </div>
  13441. <div
  13442. class="select_box2_answer_box"
  13443. v-for="(item2, checkIndex) in selectJson.select"
  13444. :key="checkIndex"
  13445. >
  13446. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13447. <el-select
  13448. :disabled="isSelect"
  13449. v-model="selectAnswer.answer[checkIndex]"
  13450. placeholder="请选择正确答案"
  13451. >
  13452. <el-option
  13453. v-for="(e, eIndex) in selectJson.select"
  13454. :key="eIndex"
  13455. :label="e"
  13456. :value="eIndex"
  13457. >
  13458. </el-option>
  13459. </el-select>
  13460. </div>
  13461. </div>
  13462. <div
  13463. class="rightAnswerCss"
  13464. v-if="isSelect && (tType == 1 || tType == 4)"
  13465. >
  13466. <div
  13467. v-for="(a, aIndex) in selectJson.answer"
  13468. :key="aIndex"
  13469. class="rightAnswer"
  13470. >
  13471. <div
  13472. v-if="selectAnswer.answer[aIndex] === a"
  13473. style="color: #767de1"
  13474. >
  13475. 回答正确
  13476. </div>
  13477. <div v-else>回答错误</div>
  13478. <div
  13479. style="margin-left: 10px"
  13480. v-if="selectAnswer.answer[aIndex] !== a"
  13481. >
  13482. 正确答案:
  13483. </div>
  13484. <div
  13485. :class="
  13486. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13487. "
  13488. >
  13489. {{ selectJson.select[a] }}
  13490. </div>
  13491. </div>
  13492. </div>
  13493. </div>
  13494. <div class="upAnswerCss">
  13495. <el-button
  13496. type="primary"
  13497. @click="addSelectAnswer"
  13498. v-if="!isSelect"
  13499. >提交答案</el-button
  13500. >
  13501. </div>
  13502. </div>
  13503. </div>
  13504. </div>
  13505. </el-dialog>
  13506. <el-dialog
  13507. title="选择匹配"
  13508. :visible.sync="dialogVisibleSelectTeacher"
  13509. :append-to-body="true"
  13510. width="90%"
  13511. :before-close="handleClose"
  13512. class="dialog_diy dialog_diy3"
  13513. >
  13514. <div v-if="selectJson">
  13515. <div class="w_name">
  13516. 学生姓名:<span>{{ sStudent.student }}</span>
  13517. </div>
  13518. <div class="select_box2">
  13519. <div class="select_box2_title">
  13520. <div>选择匹配</div>
  13521. <div>请选择对应的答案进行答题!</div>
  13522. </div>
  13523. <div class="select_box2_box">
  13524. <div class="select_box2_img">
  13525. <img
  13526. :src="selectJson.url"
  13527. @click="previewImg(selectJson.url)"
  13528. alt=""
  13529. />
  13530. </div>
  13531. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13532. <div style="padding-top: 15px">
  13533. <div class="select_answer_title" v-if="isSelect">
  13534. {{ selectAnswer.stu }}
  13535. </div>
  13536. <div class="select_answer_title" v-else>
  13537. 根据题目选择对应答案
  13538. </div>
  13539. <div
  13540. class="select_box2_answer_box"
  13541. v-for="(item2, checkIndex) in selectJson.select"
  13542. :key="checkIndex"
  13543. >
  13544. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13545. <el-select
  13546. :disabled="isSelect"
  13547. v-model="selectAnswer.answer[checkIndex]"
  13548. placeholder="请选择正确答案"
  13549. >
  13550. <el-option
  13551. v-for="(e, eIndex) in selectJson.select"
  13552. :key="eIndex"
  13553. :label="e"
  13554. :value="eIndex"
  13555. >
  13556. </el-option>
  13557. </el-select>
  13558. </div>
  13559. </div>
  13560. <div
  13561. class="rightAnswerCss"
  13562. v-if="isSelect && (tType == 1 || tType == 4)"
  13563. >
  13564. <div
  13565. v-for="(a, aIndex) in selectJson.answer"
  13566. :key="aIndex"
  13567. class="rightAnswer"
  13568. >
  13569. <div
  13570. v-if="selectAnswer.answer[aIndex] === a"
  13571. style="color: #767de1"
  13572. >
  13573. 回答正确
  13574. </div>
  13575. <div v-else>回答错误</div>
  13576. <div
  13577. style="margin-left: 10px"
  13578. v-if="selectAnswer.answer[aIndex] !== a"
  13579. >
  13580. 正确答案:
  13581. </div>
  13582. <div
  13583. :class="
  13584. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13585. "
  13586. >
  13587. {{ selectJson.select[a] }}
  13588. </div>
  13589. </div>
  13590. </div>
  13591. </div>
  13592. <div class="upAnswerCss">
  13593. <el-button
  13594. type="primary"
  13595. @click="addSelectAnswerTeacher"
  13596. v-if="!isSelect"
  13597. >提交答案</el-button
  13598. >
  13599. </div>
  13600. </div>
  13601. </div>
  13602. </div>
  13603. </el-dialog>
  13604. <el-dialog
  13605. title="教师评分"
  13606. :visible.sync="dialogVisibleScore"
  13607. :append-to-body="true"
  13608. width="800px"
  13609. :before-close="handleClose"
  13610. class="dialog_diy"
  13611. >
  13612. <div>
  13613. <div class="studentDetail">
  13614. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13615. <div class="nameAndTime">
  13616. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13617. <div>{{ commentDetail.time }}</div>
  13618. </div>
  13619. </div>
  13620. <div
  13621. class="worksAnswer"
  13622. v-if="commentDetail.works && commentDetail.type == 2"
  13623. >
  13624. {{ JSON.parse(commentDetail.works)[0].answer }}
  13625. </div>
  13626. <div
  13627. class="worksAnswer"
  13628. v-if="commentDetail.works && commentDetail.type == 1"
  13629. >
  13630. <pdf
  13631. v-if="showPDF"
  13632. :pdfUrl="pptImgUrl"
  13633. style="width: 100%; height: 520px; overflow: auto"
  13634. :class="{ fullStyle: full }"
  13635. ></pdf>
  13636. <iframe
  13637. v-else
  13638. :src="pptImgUrl"
  13639. frameborder="0"
  13640. width="100%"
  13641. height="600"
  13642. :class="{ fullStyle: full }"
  13643. ></iframe>
  13644. </div>
  13645. <div
  13646. class="worksAnswer"
  13647. v-if="commentDetail.works && commentDetail.type == 0"
  13648. >
  13649. <img
  13650. :src="commentDetail.works"
  13651. alt=""
  13652. @click="previewImg(commentDetail.works)"
  13653. />
  13654. </div>
  13655. <div
  13656. class="worksAnswer"
  13657. v-if="commentDetail.works && commentDetail.type == 3"
  13658. >
  13659. <video-player
  13660. class="video-player vjs-custom-skin"
  13661. :playsinline="true"
  13662. :options="videoDetail"
  13663. @play="onPlayerPlay($event)"
  13664. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13665. ></video-player>
  13666. </div>
  13667. <div
  13668. class="worksAnswer codeFileBox"
  13669. v-if="commentDetail.works && commentDetail.type == 12"
  13670. @click="downloadFile(commentDetail.works)"
  13671. >
  13672. <img src="../../assets/icon/codeFile.png" />
  13673. <div>点击下载文件</div>
  13674. </div>
  13675. <div
  13676. class="worksAnswer codeFileBox"
  13677. v-if="commentDetail.works && commentDetail.type == 15"
  13678. @click="
  13679. openCocoPi(
  13680. 57,
  13681. commentIndexJson.toolIndex,
  13682. commentDetail.userid,
  13683. commentDetail.sName
  13684. )
  13685. "
  13686. >
  13687. <img src="../../assets/icon/codeFile.png" />
  13688. <div>点击打开CocoPi</div>
  13689. </div>
  13690. <div
  13691. class="worksAnswer"
  13692. v-if="commentDetail.works && commentDetail.type == 13"
  13693. >
  13694. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13695. </div>
  13696. <div class="scoreBox">
  13697. <span class="t">请输入分数</span>
  13698. <el-input-number
  13699. :disabled="courseDetail.userid != userid"
  13700. v-model="wScore"
  13701. :controls="false"
  13702. :min="0"
  13703. :max="100"
  13704. ></el-input-number>
  13705. </div>
  13706. <div class="scoreDetailBox">
  13707. <span class="t">评分评论</span>
  13708. <el-input
  13709. type="textarea"
  13710. :rows="5"
  13711. :disabled="courseDetail.userid != userid"
  13712. resize="none"
  13713. v-model="scoreDetail"
  13714. placeholder="请输入对学生的评价"
  13715. >
  13716. </el-input>
  13717. </div>
  13718. </div>
  13719. <span slot="footer" class="dialog-footer">
  13720. <el-button
  13721. @click="
  13722. (dialogVisibleScore = false),
  13723. (commentIndexJson = {}),
  13724. videoDetail.sources && videoDetail.sources[0]
  13725. ? (videoDetail.sources[0].src = '')
  13726. : ''
  13727. "
  13728. >取 消</el-button
  13729. >
  13730. <el-button
  13731. type="primary"
  13732. v-if="courseDetail.userid == userid"
  13733. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  13734. >确 定
  13735. </el-button>
  13736. </span>
  13737. </el-dialog>
  13738. <el-dialog
  13739. title="排序"
  13740. :visible.sync="dialogVisibleSentence"
  13741. :append-to-body="true"
  13742. width="1000px"
  13743. :before-close="handleClose"
  13744. class="dialog_diy dialog_diy3"
  13745. >
  13746. <div>
  13747. <div class="sentenBox">
  13748. <div
  13749. v-for="(st, stIndex) in sentenceList"
  13750. :key="stIndex"
  13751. style="padding-bottom: 20px"
  13752. >
  13753. <div
  13754. style="padding: 15px 0 10px 20px"
  13755. class="sentenceTitle"
  13756. :index="stIndex + 1"
  13757. >
  13758. 题目{{ stIndex + 1 }}:请选择正确顺序
  13759. </div>
  13760. <div class="cardList" v-if="st.chooseSenList">
  13761. <div class="cardBox">
  13762. <div
  13763. v-for="(r, rIndex) in st.chooseSenList"
  13764. :key="rIndex"
  13765. @click="returnCard(r, stIndex, rIndex)"
  13766. >
  13767. <el-tooltip
  13768. class="item"
  13769. effect="light"
  13770. :content="r"
  13771. placement="top"
  13772. v-if="r != '' && r != undefined"
  13773. >
  13774. <div
  13775. :class="{
  13776. isCard: r,
  13777. isChooseCard: r == '' || r == undefined
  13778. }"
  13779. >
  13780. <div>{{ r }}</div>
  13781. </div>
  13782. </el-tooltip>
  13783. <div
  13784. :class="{
  13785. isCard: r,
  13786. isChooseCard: r == '' || r == undefined
  13787. }"
  13788. v-else
  13789. >
  13790. <div>{{ r }}</div>
  13791. </div>
  13792. </div>
  13793. </div>
  13794. </div>
  13795. <div class="cardList" v-if="st.addChangeSen">
  13796. <div class="cardBox">
  13797. <div
  13798. v-for="(s, sIndex) in st.addChangeSen"
  13799. :key="sIndex"
  13800. @click="setRightAnswer(s, stIndex, sIndex)"
  13801. >
  13802. <el-tooltip
  13803. class="item"
  13804. effect="light"
  13805. :content="s"
  13806. placement="top"
  13807. v-if="s != '' && s != undefined"
  13808. >
  13809. <div
  13810. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13811. >
  13812. <div>{{ s }}</div>
  13813. </div>
  13814. </el-tooltip>
  13815. <div
  13816. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13817. v-else
  13818. >
  13819. <div>{{ s }}</div>
  13820. </div>
  13821. </div>
  13822. </div>
  13823. </div>
  13824. </div>
  13825. </div>
  13826. </div>
  13827. <span slot="footer" class="dialog-footer">
  13828. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13829. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13830. </span>
  13831. </el-dialog>
  13832. <el-dialog
  13833. title="排序"
  13834. :visible.sync="dialogVisibleSentenceTeacher"
  13835. :append-to-body="true"
  13836. width="1000px"
  13837. :before-close="handleClose"
  13838. class="dialog_diy dialog_diy3"
  13839. >
  13840. <div>
  13841. <div class="w_name">
  13842. 学生姓名:<span>{{ sStudent.student }}</span>
  13843. </div>
  13844. <div class="sentenBox">
  13845. <div
  13846. v-for="(st, stIndex) in sentenceList"
  13847. :key="stIndex"
  13848. style="padding-bottom: 20px"
  13849. >
  13850. <div
  13851. style="padding: 15px 0 10px 20px"
  13852. class="sentenceTitle"
  13853. :index="stIndex + 1"
  13854. >
  13855. 题目{{ stIndex + 1 }}:请选择正确顺序
  13856. </div>
  13857. <div class="cardList" v-if="st.chooseSenList">
  13858. <div class="cardBox">
  13859. <div
  13860. v-for="(r, rIndex) in st.chooseSenList"
  13861. :key="rIndex"
  13862. @click="returnCard(r, stIndex, rIndex)"
  13863. >
  13864. <el-tooltip
  13865. class="item"
  13866. effect="light"
  13867. :content="r"
  13868. placement="top"
  13869. v-if="r != '' && r != undefined"
  13870. >
  13871. <div
  13872. :class="{
  13873. isCard: r,
  13874. isChooseCard: r == '' || r == undefined
  13875. }"
  13876. >
  13877. <div>{{ r }}</div>
  13878. </div>
  13879. </el-tooltip>
  13880. <div
  13881. :class="{
  13882. isCard: r,
  13883. isChooseCard: r == '' || r == undefined
  13884. }"
  13885. v-else
  13886. >
  13887. <div>{{ r }}</div>
  13888. </div>
  13889. </div>
  13890. </div>
  13891. </div>
  13892. <div class="cardList" v-if="st.addChangeSen">
  13893. <div class="cardBox">
  13894. <div
  13895. v-for="(s, sIndex) in st.addChangeSen"
  13896. :key="sIndex"
  13897. @click="setRightAnswer(s, stIndex, sIndex)"
  13898. >
  13899. <el-tooltip
  13900. class="item"
  13901. effect="light"
  13902. :content="s"
  13903. placement="top"
  13904. v-if="s != '' && s != undefined"
  13905. >
  13906. <div
  13907. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13908. >
  13909. <div>{{ s }}</div>
  13910. </div>
  13911. </el-tooltip>
  13912. <div
  13913. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13914. v-else
  13915. >
  13916. <div>{{ s }}</div>
  13917. </div>
  13918. </div>
  13919. </div>
  13920. </div>
  13921. </div>
  13922. </div>
  13923. </div>
  13924. <span slot="footer" class="dialog-footer">
  13925. <el-button @click="dialogVisibleSentenceTeacher = false"
  13926. >取 消</el-button
  13927. >
  13928. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13929. </span>
  13930. </el-dialog>
  13931. <el-dialog
  13932. title="排序"
  13933. :visible.sync="dialogVisibleSentence1"
  13934. :append-to-body="true"
  13935. width="1000px"
  13936. :before-close="handleClose"
  13937. class="dialog_diy dialog_diy3"
  13938. >
  13939. <div>
  13940. <div class="sentenBox">
  13941. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13942. {{ sentenceList1.stuName }}的作业
  13943. </div>
  13944. <div
  13945. v-for="(st, stIndex) in sentenceList1"
  13946. :key="stIndex"
  13947. style="padding-bottom: 20px"
  13948. >
  13949. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13950. 第{{ stIndex + 1 }}题
  13951. </div>
  13952. <div class="isWrong">
  13953. <div class="cardList1" v-if="st.chooseSenList">
  13954. <div class="cardBox">
  13955. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13956. <el-tooltip
  13957. class="item"
  13958. effect="light"
  13959. :content="s"
  13960. placement="top"
  13961. >
  13962. <div class="isCard">
  13963. <div>{{ s }}</div>
  13964. </div>
  13965. </el-tooltip>
  13966. </div>
  13967. </div>
  13968. <div class="cardAnswerBox">
  13969. 组成句子:{{ st.chooseSenList.join(" ") }}
  13970. </div>
  13971. </div>
  13972. <div v-if="tType == 2" class="isTj">
  13973. <div class="isTjImg">
  13974. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13975. </div>
  13976. <div>已提交</div>
  13977. </div>
  13978. <div
  13979. class="answerRight isTj"
  13980. v-if="
  13981. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13982. (tType == 1 || tType == 4)
  13983. "
  13984. >
  13985. <div class="isTjImg">
  13986. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13987. </div>
  13988. <div>回答正确</div>
  13989. </div>
  13990. <div
  13991. class="answerRight isTj"
  13992. v-if="
  13993. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13994. (tType == 1 || tType == 4)
  13995. "
  13996. >
  13997. <div class="isTjImg">
  13998. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13999. </div>
  14000. <div>回答错误</div>
  14001. </div>
  14002. </div>
  14003. <div
  14004. v-if="
  14005. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14006. (tType == 1 || tType == 4)
  14007. "
  14008. >
  14009. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14010. <div
  14011. class="cardList"
  14012. v-if="st.rightAnswer"
  14013. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14014. >
  14015. <div class="cardBox">
  14016. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14017. <el-tooltip
  14018. class="item"
  14019. effect="light"
  14020. :content="r"
  14021. placement="top"
  14022. >
  14023. <div class="isCard1">
  14024. <div>{{ r }}</div>
  14025. </div>
  14026. </el-tooltip>
  14027. </div>
  14028. </div>
  14029. <div class="cardAnswerBox">
  14030. 组成句子:{{ st.rightAnswer.join(" ") }}
  14031. </div>
  14032. </div>
  14033. </div>
  14034. </div>
  14035. </div>
  14036. </div>
  14037. <span slot="footer" class="dialog-footer">
  14038. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14039. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14040. >确 定</el-button
  14041. >
  14042. </span>
  14043. </el-dialog>
  14044. <el-dialog
  14045. title="教师提交作业"
  14046. :visible.sync="dialogVisibleWorks"
  14047. :append-to-body="true"
  14048. width="500px"
  14049. :before-close="handleClose"
  14050. class="dialog_change"
  14051. >
  14052. <div class="marginT">
  14053. <div class="w_name">
  14054. 学生姓名:<span>{{ sStudent.student }}</span>
  14055. </div>
  14056. <div>上传文件</div>
  14057. <div
  14058. class="chapter_add"
  14059. @click="addImg($event)"
  14060. v-if="studyJuri[0].cover.length == 0"
  14061. >
  14062. <div class="up_photo">
  14063. <img src="../../assets/uploadImg2.png" alt />
  14064. </div>
  14065. <!-- <input
  14066. type="file"
  14067. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14068. style="display: none"
  14069. @change="beforeUpload1($event, 1)"
  14070. /> -->
  14071. <input
  14072. type="file"
  14073. accept="*"
  14074. style="display: none"
  14075. @change="beforeUpload1($event, 1)"
  14076. />
  14077. </div>
  14078. <!-- capture="camera" -->
  14079. <div
  14080. class="chapter_add"
  14081. style="
  14082. display: flex;
  14083. width: 100%;
  14084. flex-direction: row;
  14085. flex-wrap: wrap;
  14086. justify-content: flex-start;
  14087. padding: 15px 0;
  14088. "
  14089. v-if="studyJuri[0].cover.length > 0"
  14090. >
  14091. <div class="upCover">
  14092. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14093. <img :src="word" alt v-else-if="fileType == 1" />
  14094. <img :src="video" alt v-else-if="fileType == 2" />
  14095. <img :src="word2" alt v-else-if="fileType == 3" />
  14096. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14097. <div class="deleteWord" @click="clean(1)">
  14098. <img src="../../assets/icon/deleteWorks.png" alt />
  14099. </div>
  14100. </div>
  14101. </div>
  14102. </div>
  14103. <div
  14104. class="upload_send"
  14105. @click="addCourseWorksTeacher(taskCount)"
  14106. v-if="!proVisible"
  14107. >
  14108. 提交
  14109. </div>
  14110. </el-dialog>
  14111. <ImgDraw
  14112. :drawShow="drawShow"
  14113. @closeDraw="closeDraw"
  14114. @addImgDraw="addImgDraw"
  14115. :bg="bg"
  14116. ></ImgDraw>
  14117. <el-dialog
  14118. title="表格"
  14119. :visible.sync="dialogVisibleTable"
  14120. :append-to-body="true"
  14121. width="95%"
  14122. :before-close="handleClose"
  14123. class="dialog_diy"
  14124. >
  14125. <el-form>
  14126. <div
  14127. style="
  14128. display: flex;
  14129. align-items: center;
  14130. justify-content: space-between;
  14131. "
  14132. >
  14133. <span>表格内容</span>
  14134. <el-button type="primary" size="small" @click="returnTableText"
  14135. >还原模板</el-button
  14136. >
  14137. </div>
  14138. <Table
  14139. v-model="tableJson.text"
  14140. @change="change"
  14141. v-if="dialogVisibleTable"
  14142. ></Table>
  14143. </el-form>
  14144. <span slot="footer" class="dialog-footer">
  14145. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14146. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14147. </span>
  14148. </el-dialog>
  14149. <el-dialog
  14150. title="表格"
  14151. :visible.sync="dialogVisibleTableTeacher"
  14152. :append-to-body="true"
  14153. width="95%"
  14154. :before-close="handleClose"
  14155. class="dialog_diy"
  14156. >
  14157. <el-form>
  14158. <div class="w_name">
  14159. 学生姓名:<span>{{ sStudent.student }}</span>
  14160. </div>
  14161. <div>表格内容</div>
  14162. <Table
  14163. v-model="tableJson.text"
  14164. @change="change"
  14165. v-if="dialogVisibleTableTeacher"
  14166. ></Table>
  14167. </el-form>
  14168. <span slot="footer" class="dialog-footer">
  14169. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14170. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14171. </span>
  14172. </el-dialog>
  14173. <el-dialog
  14174. title="文档"
  14175. :visible.sync="dialogVisibleWord"
  14176. :append-to-body="true"
  14177. width="95%"
  14178. :before-close="handleClose"
  14179. class="dialog_diy"
  14180. >
  14181. <el-form>
  14182. <div
  14183. style="
  14184. display: flex;
  14185. align-items: center;
  14186. justify-content: space-between;
  14187. "
  14188. >
  14189. <span>文档内容</span>
  14190. <el-button type="primary" size="small" @click="returnWordText"
  14191. >还原模板</el-button
  14192. >
  14193. </div>
  14194. <editor-bar
  14195. v-model="wordJson.text"
  14196. v-if="dialogVisibleWord"
  14197. ></editor-bar>
  14198. </el-form>
  14199. <span slot="footer" class="dialog-footer">
  14200. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14201. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14202. </span>
  14203. </el-dialog>
  14204. <el-dialog
  14205. title="文档"
  14206. :visible.sync="dialogVisibleWordTeacher"
  14207. :append-to-body="true"
  14208. width="95%"
  14209. :before-close="handleClose"
  14210. class="dialog_diy"
  14211. >
  14212. <el-form>
  14213. <div class="w_name">
  14214. 学生姓名:<span>{{ sStudent.student }}</span>
  14215. </div>
  14216. <div>文档内容</div>
  14217. <editor-bar
  14218. v-model="wordJson.text"
  14219. v-if="dialogVisibleWordTeacher"
  14220. ></editor-bar>
  14221. </el-form>
  14222. <span slot="footer" class="dialog-footer">
  14223. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14224. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14225. </span>
  14226. </el-dialog>
  14227. <el-dialog
  14228. title="表格"
  14229. :visible.sync="dialogVisibleTable2"
  14230. :append-to-body="true"
  14231. width="95%"
  14232. :before-close="handleClose"
  14233. class="dialog_diy"
  14234. >
  14235. <el-form>
  14236. <div class="cont" v-html="tableJson.text"></div>
  14237. </el-form>
  14238. <span slot="footer" class="dialog-footer">
  14239. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14240. </span>
  14241. </el-dialog>
  14242. <el-dialog
  14243. title="文档"
  14244. :visible.sync="dialogVisibleTable3"
  14245. :append-to-body="true"
  14246. width="95%"
  14247. :before-close="handleClose"
  14248. class="dialog_diy"
  14249. >
  14250. <el-form>
  14251. <div class="cont" v-html="tableJson.text"></div>
  14252. </el-form>
  14253. <span slot="footer" class="dialog-footer">
  14254. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14255. </span>
  14256. </el-dialog>
  14257. <el-dialog
  14258. title="分组设置"
  14259. :visible.sync="dialogVisibleGroup"
  14260. :append-to-body="true"
  14261. width="95%"
  14262. :before-close="handleClose"
  14263. class="dialog_diy"
  14264. >
  14265. <div v-if="dialogVisibleGroup">
  14266. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14267. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14268. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14269. </div>
  14270. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14271. @click="lockChair">
  14272. 锁定位置
  14273. </div>
  14274. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14275. 解锁位置
  14276. </div> -->
  14277. <div class="group_switch">
  14278. <span>开放选座</span>
  14279. <el-switch
  14280. v-model="islock"
  14281. active-text=""
  14282. class="switchCss"
  14283. @change="lockChair"
  14284. ></el-switch>
  14285. </div>
  14286. <div
  14287. type="primary"
  14288. @click="updateGroup"
  14289. class="returnBtn"
  14290. style="background-color: #225bc7"
  14291. >
  14292. 分组设置
  14293. </div>
  14294. </div>
  14295. <div>
  14296. <div
  14297. class="g_d_box"
  14298. v-if="groupJson.group && groupStudent[toolindex]"
  14299. >
  14300. <div
  14301. class="g_d_group"
  14302. v-for="(g, gindex) in groupJson.group"
  14303. :key="gindex"
  14304. >
  14305. <div class="g_d_group_chair">
  14306. <div v-if="groupJson.number > 1">
  14307. <span
  14308. :class="{
  14309. isChair:
  14310. groupStudent[toolindex][gindex] &&
  14311. groupStudent[toolindex][gindex][0],
  14312. updateChair:
  14313. courseDetail.userid == userid &&
  14314. groupStudent[toolindex][gindex] &&
  14315. groupStudent[toolindex][gindex][0] &&
  14316. groupJson.islock == 2
  14317. }"
  14318. ><span
  14319. class="updateChairBtn"
  14320. @click="
  14321. updateGroupChair(
  14322. groupStudent[toolindex][gindex] &&
  14323. groupStudent[toolindex][gindex][0]
  14324. )
  14325. "
  14326. >修改</span
  14327. ></span
  14328. ><span>{{
  14329. groupStudent[toolindex][gindex] &&
  14330. groupStudent[toolindex][gindex][0]
  14331. ? groupStudent[toolindex][gindex] &&
  14332. groupStudent[toolindex][gindex][0].name
  14333. : "空位置"
  14334. }}</span>
  14335. </div>
  14336. <div v-if="groupJson.number > 4">
  14337. <span
  14338. :class="{
  14339. isChair:
  14340. groupStudent[toolindex][gindex] &&
  14341. groupStudent[toolindex][gindex][4],
  14342. updateChair:
  14343. courseDetail.userid == userid &&
  14344. groupStudent[toolindex][gindex] &&
  14345. groupStudent[toolindex][gindex][4] &&
  14346. groupJson.islock == 2
  14347. }"
  14348. ><span
  14349. class="updateChairBtn"
  14350. @click="
  14351. updateGroupChair(
  14352. groupStudent[toolindex][gindex] &&
  14353. groupStudent[toolindex][gindex][4]
  14354. )
  14355. "
  14356. >修改</span
  14357. ></span
  14358. ><span>{{
  14359. groupStudent[toolindex][gindex] &&
  14360. groupStudent[toolindex][gindex][4]
  14361. ? groupStudent[toolindex][gindex] &&
  14362. groupStudent[toolindex][gindex][4].name
  14363. : "空位置"
  14364. }}</span>
  14365. </div>
  14366. <div v-if="groupJson.number > 8">
  14367. <span
  14368. :class="{
  14369. isChair:
  14370. groupStudent[toolindex][gindex] &&
  14371. groupStudent[toolindex][gindex][8],
  14372. updateChair:
  14373. courseDetail.userid == userid &&
  14374. groupStudent[toolindex][gindex] &&
  14375. groupStudent[toolindex][gindex][8] &&
  14376. groupJson.islock == 2
  14377. }"
  14378. ><span
  14379. class="updateChairBtn"
  14380. @click="
  14381. updateGroupChair(
  14382. groupStudent[toolindex][gindex] &&
  14383. groupStudent[toolindex][gindex][8]
  14384. )
  14385. "
  14386. >修改</span
  14387. ></span
  14388. ><span>{{
  14389. groupStudent[toolindex][gindex] &&
  14390. groupStudent[toolindex][gindex][8]
  14391. ? groupStudent[toolindex][gindex] &&
  14392. groupStudent[toolindex][gindex][8].name
  14393. : "空位置"
  14394. }}</span>
  14395. </div>
  14396. </div>
  14397. <div class="g_d_group_tableBox">
  14398. <div class="g_d_group_chair2">
  14399. <div v-if="groupJson.number > 2">
  14400. <span
  14401. :class="{
  14402. isChair:
  14403. groupStudent[toolindex][gindex] &&
  14404. groupStudent[toolindex][gindex][2],
  14405. updateChair:
  14406. courseDetail.userid == userid &&
  14407. groupStudent[toolindex][gindex] &&
  14408. groupStudent[toolindex][gindex][2] &&
  14409. groupJson.islock == 2
  14410. }"
  14411. ><span
  14412. class="updateChairBtn"
  14413. @click="
  14414. updateGroupChair(
  14415. groupStudent[toolindex][gindex] &&
  14416. groupStudent[toolindex][gindex][2]
  14417. )
  14418. "
  14419. >修改</span
  14420. ></span
  14421. ><span>{{
  14422. groupStudent[toolindex][gindex] &&
  14423. groupStudent[toolindex][gindex][2]
  14424. ? groupStudent[toolindex][gindex] &&
  14425. groupStudent[toolindex][gindex][2].name
  14426. : "空位置"
  14427. }}</span>
  14428. </div>
  14429. <div v-if="groupJson.number > 6">
  14430. <span
  14431. :class="{
  14432. isChair:
  14433. groupStudent[toolindex][gindex] &&
  14434. groupStudent[toolindex][gindex][6],
  14435. updateChair:
  14436. courseDetail.userid == userid &&
  14437. groupStudent[toolindex][gindex] &&
  14438. groupStudent[toolindex][gindex][6] &&
  14439. groupJson.islock == 2
  14440. }"
  14441. ><span
  14442. class="updateChairBtn"
  14443. @click="
  14444. updateGroupChair(
  14445. groupStudent[toolindex][gindex] &&
  14446. groupStudent[toolindex][gindex][6]
  14447. )
  14448. "
  14449. >修改</span
  14450. ></span
  14451. ><span>{{
  14452. groupStudent[toolindex][gindex] &&
  14453. groupStudent[toolindex][gindex][6]
  14454. ? groupStudent[toolindex][gindex] &&
  14455. groupStudent[toolindex][gindex][6].name
  14456. : "空位置"
  14457. }}</span>
  14458. </div>
  14459. </div>
  14460. <div class="g_d_group_table">
  14461. <div>
  14462. {{ g.name }}
  14463. </div>
  14464. <div>
  14465. <div
  14466. v-if="
  14467. courseDetail.userid == userid && groupJson.islock == 2
  14468. "
  14469. @click="deleteGroupChair(gindex)"
  14470. >
  14471. 移除组员
  14472. </div>
  14473. <div
  14474. @click="selectGroup(gindex)"
  14475. v-else-if="
  14476. groupStudentUid[toolindex] &&
  14477. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  14478. -1
  14479. "
  14480. >
  14481. 加入分组
  14482. </div>
  14483. <div
  14484. @click="
  14485. exitGroup(
  14486. groupStudent[toolindex][gindex] &&
  14487. groupStudent[toolindex][gindex][
  14488. groupStudentUid[toolindex][gindex].indexOf(userid)
  14489. ].id
  14490. )
  14491. "
  14492. v-else-if="
  14493. groupStudentUid[toolindex] &&
  14494. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  14495. -1
  14496. "
  14497. >
  14498. 退出分组
  14499. </div>
  14500. </div>
  14501. </div>
  14502. <div class="g_d_group_chair2">
  14503. <div v-if="groupJson.number > 3">
  14504. <span
  14505. :class="{
  14506. isChair:
  14507. groupStudent[toolindex][gindex] &&
  14508. groupStudent[toolindex][gindex][3],
  14509. updateChair:
  14510. courseDetail.userid == userid &&
  14511. groupStudent[toolindex][gindex] &&
  14512. groupStudent[toolindex][gindex][3] &&
  14513. groupJson.islock == 2
  14514. }"
  14515. ><span
  14516. class="updateChairBtn"
  14517. @click="
  14518. updateGroupChair(
  14519. groupStudent[toolindex][gindex] &&
  14520. groupStudent[toolindex][gindex][3]
  14521. )
  14522. "
  14523. >修改</span
  14524. ></span
  14525. ><span>{{
  14526. groupStudent[toolindex][gindex] &&
  14527. groupStudent[toolindex][gindex][3]
  14528. ? groupStudent[toolindex][gindex] &&
  14529. groupStudent[toolindex][gindex][3].name
  14530. : "空位置"
  14531. }}</span>
  14532. </div>
  14533. <div v-if="groupJson.number > 7">
  14534. <span
  14535. :class="{
  14536. isChair:
  14537. groupStudent[toolindex][gindex] &&
  14538. groupStudent[toolindex][gindex][7],
  14539. updateChair:
  14540. courseDetail.userid == userid &&
  14541. groupStudent[toolindex][gindex] &&
  14542. groupStudent[toolindex][gindex][7] &&
  14543. groupJson.islock == 2
  14544. }"
  14545. ><span
  14546. class="updateChairBtn"
  14547. @click="
  14548. updateGroupChair(
  14549. groupStudent[toolindex][gindex] &&
  14550. groupStudent[toolindex][gindex][7]
  14551. )
  14552. "
  14553. >修改</span
  14554. ></span
  14555. ><span>{{
  14556. groupStudent[toolindex][gindex] &&
  14557. groupStudent[toolindex][gindex][7]
  14558. ? groupStudent[toolindex][gindex] &&
  14559. groupStudent[toolindex][gindex][7].name
  14560. : "空位置"
  14561. }}</span>
  14562. </div>
  14563. </div>
  14564. </div>
  14565. <div class="g_d_group_chair">
  14566. <div v-if="groupJson.number > 1">
  14567. <span
  14568. :class="{
  14569. isChair:
  14570. groupStudent[toolindex][gindex] &&
  14571. groupStudent[toolindex][gindex][1],
  14572. updateChair:
  14573. courseDetail.userid == userid &&
  14574. groupStudent[toolindex][gindex] &&
  14575. groupStudent[toolindex][gindex][1] &&
  14576. groupJson.islock == 2
  14577. }"
  14578. ><span
  14579. class="updateChairBtn"
  14580. @click="
  14581. updateGroupChair(
  14582. groupStudent[toolindex][gindex] &&
  14583. groupStudent[toolindex][gindex][1]
  14584. )
  14585. "
  14586. >修改</span
  14587. ></span
  14588. ><span>{{
  14589. groupStudent[toolindex][gindex] &&
  14590. groupStudent[toolindex][gindex][1]
  14591. ? groupStudent[toolindex][gindex] &&
  14592. groupStudent[toolindex][gindex][1].name
  14593. : "空位置"
  14594. }}</span>
  14595. </div>
  14596. <div v-if="groupJson.number > 5">
  14597. <span
  14598. :class="{
  14599. isChair:
  14600. groupStudent[toolindex][gindex] &&
  14601. groupStudent[toolindex][gindex][5],
  14602. updateChair:
  14603. courseDetail.userid == userid &&
  14604. groupStudent[toolindex][gindex] &&
  14605. groupStudent[toolindex][gindex][5] &&
  14606. groupJson.islock == 2
  14607. }"
  14608. ><span
  14609. class="updateChairBtn"
  14610. @click="
  14611. updateGroupChair(
  14612. groupStudent[toolindex][gindex] &&
  14613. groupStudent[toolindex][gindex][5]
  14614. )
  14615. "
  14616. >修改</span
  14617. ></span
  14618. ><span>{{
  14619. groupStudent[toolindex][gindex] &&
  14620. groupStudent[toolindex][gindex][5]
  14621. ? groupStudent[toolindex][gindex] &&
  14622. groupStudent[toolindex][gindex][5].name
  14623. : "空位置"
  14624. }}</span>
  14625. </div>
  14626. <div v-if="groupJson.number > 9">
  14627. <span
  14628. :class="{
  14629. isChair:
  14630. groupStudent[toolindex][gindex] &&
  14631. groupStudent[toolindex][gindex][9],
  14632. updateChair:
  14633. courseDetail.userid == userid &&
  14634. groupStudent[toolindex][gindex] &&
  14635. groupStudent[toolindex][gindex][9] &&
  14636. groupJson.islock == 2
  14637. }"
  14638. ><span
  14639. class="updateChairBtn"
  14640. @click="
  14641. updateGroupChair(
  14642. groupStudent[toolindex][gindex] &&
  14643. groupStudent[toolindex][gindex][9]
  14644. )
  14645. "
  14646. >修改</span
  14647. ></span
  14648. ><span>{{
  14649. groupStudent[toolindex][gindex] &&
  14650. groupStudent[toolindex][gindex][9]
  14651. ? groupStudent[toolindex][gindex] &&
  14652. groupStudent[toolindex][gindex][9].name
  14653. : "空位置"
  14654. }}</span>
  14655. </div>
  14656. </div>
  14657. </div>
  14658. </div>
  14659. </div>
  14660. </div>
  14661. <span slot="footer" class="dialog-footer">
  14662. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14663. </span>
  14664. </el-dialog>
  14665. <el-dialog
  14666. title="分组设置"
  14667. :visible.sync="dialogVisibleGroup2"
  14668. :append-to-body="true"
  14669. width="650px"
  14670. :before-close="handleClose"
  14671. class="dialog_diy"
  14672. >
  14673. <div class="groupBox">
  14674. <div v-if="groupJson2.group" class="groupContent">
  14675. <div class="groupTitle">请设置小组数量及名称</div>
  14676. <div
  14677. v-for="(item, index) in groupJson2.group"
  14678. :key="index"
  14679. class="groupName"
  14680. >
  14681. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14682. <el-input
  14683. v-model="item.name"
  14684. placeholder="请输入名称..."
  14685. style="width: 250px"
  14686. ></el-input>
  14687. <!-- <div class="groupBtn">
  14688. <el-button type="primary" size="small" @click="addGroup(index)">
  14689. 添加</el-button>
  14690. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14691. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14692. </div> -->
  14693. </div>
  14694. </div>
  14695. <div class="groupContent">
  14696. <div class="groupTitle">请设置每组人数</div>
  14697. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14698. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14699. <el-input
  14700. v-model="groupJson2.number"
  14701. style="width: 150px"
  14702. placeholder="请输入2-10的数字"
  14703. @change="numberPan"
  14704. ></el-input>
  14705. </div>
  14706. </div>
  14707. <span slot="footer" class="dialog-footer">
  14708. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14709. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14710. </span>
  14711. </el-dialog>
  14712. <el-dialog
  14713. title="作业提交"
  14714. :visible.sync="dialogVisibleGroupWork"
  14715. :append-to-body="true"
  14716. width="500px"
  14717. :before-close="handleClose"
  14718. class="dialog_change"
  14719. >
  14720. <div class="marginT">
  14721. <div>上传文件</div>
  14722. <div
  14723. class="chapter_add"
  14724. @click="addImg($event)"
  14725. v-if="studyJuri[0].cover.length == 0"
  14726. >
  14727. <div class="up_photo">
  14728. <img src="../../assets/icon/uploadImg.png" alt />
  14729. </div>
  14730. <!-- <input
  14731. type="file"
  14732. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14733. style="display: none"
  14734. @change="beforeUpload1($event, 1)"
  14735. /> -->
  14736. <input
  14737. type="file"
  14738. accept="*"
  14739. style="display: none"
  14740. @change="beforeUpload1($event, 1)"
  14741. />
  14742. </div>
  14743. <!-- capture="camera" -->
  14744. <div
  14745. class="chapter_add"
  14746. style="
  14747. display: flex;
  14748. width: 100%;
  14749. flex-direction: row;
  14750. flex-wrap: wrap;
  14751. justify-content: flex-start;
  14752. padding: 15px 0;
  14753. "
  14754. v-if="studyJuri[0].cover.length > 0"
  14755. >
  14756. <div class="upCover">
  14757. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14758. <img :src="word" alt v-else-if="fileType == 1" />
  14759. <img :src="video" alt v-else-if="fileType == 2" />
  14760. <img :src="word2" alt v-else-if="fileType == 3" />
  14761. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14762. <div class="deleteWord" @click="clean(1)">
  14763. <img src="../../assets/icon/deleteWorks.png" alt />
  14764. </div>
  14765. </div>
  14766. </div>
  14767. </div>
  14768. <div
  14769. class="upload_send"
  14770. @click="addCourseWorks2(taskCount)"
  14771. v-if="!proVisible"
  14772. >
  14773. 提交
  14774. </div>
  14775. </el-dialog>
  14776. <el-dialog
  14777. title="修改分组"
  14778. :visible.sync="dialogVisibleUpdateGroup"
  14779. :append-to-body="true"
  14780. width="350px"
  14781. :before-close="handleClose"
  14782. class="dialog_diy"
  14783. >
  14784. <div>
  14785. <h2>
  14786. {{ this.updateGroupUser.name }}
  14787. </h2>
  14788. <div style="color: rgb(171 171 171); margin-top: 10px">
  14789. 请选择要进入的分组
  14790. </div>
  14791. <el-radio-group v-model="checkChair">
  14792. <el-radio
  14793. style="display: block; margin-top: 20px"
  14794. v-for="(item, index) in updateGroupArray"
  14795. :label="item.label"
  14796. :key="index"
  14797. >{{ item.name }}</el-radio
  14798. >
  14799. </el-radio-group>
  14800. </div>
  14801. <span slot="footer" class="dialog-footer">
  14802. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14803. <el-button type="primary" @click="updateChair">确定</el-button>
  14804. </span>
  14805. </el-dialog>
  14806. <el-dialog
  14807. title="移除组员"
  14808. :visible.sync="dialogVisibleDeleteGroup"
  14809. :append-to-body="true"
  14810. width="350px"
  14811. :before-close="handleClose"
  14812. class="dialog_diy"
  14813. >
  14814. <div>
  14815. <h2>
  14816. {{ this.deleteGroupArray.name }}
  14817. </h2>
  14818. <div style="color: rgb(171 171 171); margin-top: 10px">
  14819. 请选择要删除的组员
  14820. </div>
  14821. <el-checkbox-group v-model="checkDeleteGroup">
  14822. <el-checkbox
  14823. style="display: flex; margin-top: 20px"
  14824. v-for="(item, index) in deleteGroupUser"
  14825. :label="item.userid"
  14826. :key="index"
  14827. >{{ item.name }}</el-checkbox
  14828. >
  14829. </el-checkbox-group>
  14830. </div>
  14831. <span slot="footer" class="dialog-footer">
  14832. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14833. <el-button type="primary" @click="deleteChair">确定</el-button>
  14834. </span>
  14835. </el-dialog>
  14836. <el-dialog
  14837. title="批量上传"
  14838. :visible.sync="dialogVisiblePl"
  14839. :append-to-body="true"
  14840. width="700px"
  14841. :before-close="handleClose"
  14842. class="dialog_change"
  14843. >
  14844. <div class="marginT">
  14845. <div class="plworkBox">
  14846. <div
  14847. class="chapter_add"
  14848. style="
  14849. display: flex;
  14850. width: 150px;
  14851. flex-direction: row;
  14852. flex-wrap: wrap;
  14853. justify-content: flex-start;
  14854. margin: 0 10px 10px 0;
  14855. "
  14856. v-for="(item, index) in plworkFile"
  14857. :key="index"
  14858. >
  14859. <div class="upCover2">
  14860. <img
  14861. :src="item.url"
  14862. alt
  14863. v-if="item.fileType == 1"
  14864. @click="previewImg(item.url)"
  14865. />
  14866. <img :src="word" alt v-else-if="item.fileType == 4" />
  14867. <img :src="video" alt v-else />
  14868. <!-- <span class="picName">{{ item.name }}</span> -->
  14869. <!-- <el-input
  14870. v-model="item.username"
  14871. placeholder="请输入学生名字"
  14872. style="margin-top: 10px"
  14873. ></el-input> -->
  14874. <div
  14875. class="pl_select_box"
  14876. @click="
  14877. getUpdateMore(true, checkUpload(), item.username, index)
  14878. "
  14879. >
  14880. {{ getSName(item.username) }}
  14881. </div>
  14882. <!-- <el-select
  14883. style="margin-top: 10px"
  14884. v-model="item.username"
  14885. filterable
  14886. allow-create
  14887. placeholder="请选择学生"
  14888. >
  14889. <el-option
  14890. v-for="item1 in checkUpload()"
  14891. :key="item1.userid"
  14892. :label="item1.name ? item1.name : item1.username"
  14893. :value="item1.userid"
  14894. >
  14895. </el-option>
  14896. </el-select> -->
  14897. <div class="deleteWord" @click="clean2(index)">
  14898. <img src="../../assets/icon/deleteWorks.png" alt />
  14899. </div>
  14900. </div>
  14901. </div>
  14902. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14903. <div class="up_photo2">
  14904. <img src="../../assets/icon/plwork.png" alt />
  14905. <span>点击上传文件</span>
  14906. </div>
  14907. <input
  14908. type="file"
  14909. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14910. multiple="multiple"
  14911. style="display: none"
  14912. @change="beforeUpload3($event, 6)"
  14913. />
  14914. </div>
  14915. </div>
  14916. </div>
  14917. <!-- capture="camera" -->
  14918. <div
  14919. class="upload_send"
  14920. @click="addCourseWorksPl(taskCount)"
  14921. v-if="!proVisible2"
  14922. >
  14923. 提交
  14924. </div>
  14925. </el-dialog>
  14926. <el-dialog
  14927. title="修改名称"
  14928. :visible.sync="dialogVisibleSname"
  14929. width="500px"
  14930. :before-close="handleClose"
  14931. class="dialog_diy"
  14932. center
  14933. >
  14934. <div
  14935. style="
  14936. text-align: center;
  14937. display: flex;
  14938. align-items: center;
  14939. justify-content: center;
  14940. "
  14941. >
  14942. <span class="tian1">名称</span>
  14943. <div
  14944. class="pl_select_box"
  14945. style="margin-left: 10px; width: 200px"
  14946. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14947. >
  14948. {{ getSName(worksSName) }}
  14949. </div>
  14950. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14951. placeholder="请选择学生">
  14952. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14953. :value="item.userid">
  14954. </el-option>
  14955. </el-select> -->
  14956. <!-- <el-input
  14957. v-model="worksSName"
  14958. style="width: 250px; margin: 15px 0px"
  14959. ></el-input> -->
  14960. </div>
  14961. <span slot="footer" class="dialog-footer">
  14962. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  14963. <el-button type="primary" @click="updateName">确 定</el-button>
  14964. </span>
  14965. </el-dialog>
  14966. <el-dialog
  14967. title="英语写作"
  14968. :visible.sync="engDialogVisible"
  14969. :append-to-body="true"
  14970. width="800px"
  14971. :before-close="handleClose"
  14972. class="dialog_diy"
  14973. >
  14974. <onlineWrite
  14975. v-if="engDialogVisible"
  14976. :englishList="englishList"
  14977. :myAnswerList1="myAnswerList1"
  14978. ref="engJson"
  14979. ></onlineWrite>
  14980. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14981. <el-button @click="engDialogVisible = false">取 消</el-button>
  14982. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  14983. </span>
  14984. </el-dialog>
  14985. <el-dialog
  14986. title="英语写作"
  14987. :visible.sync="engUpdateDialogVisible"
  14988. :append-to-body="true"
  14989. width="800px"
  14990. :before-close="handleClose"
  14991. class="dialog_diy fullStyle"
  14992. >
  14993. <div class="engUpBox">
  14994. <div class="engUpTop">
  14995. <div class="engTitle">
  14996. <div>作文题目:</div>
  14997. <div>{{ englishList1.engTitle }}</div>
  14998. </div>
  14999. <div class="engText">
  15000. <div>作文内容:</div>
  15001. <div
  15002. class="cont"
  15003. v-html="englishList1.englishText"
  15004. style="white-space: pre-line;"
  15005. @click="checkImg(getImgList(englishList1.englishText))"
  15006. ></div>
  15007. </div>
  15008. </div>
  15009. <div
  15010. class="correctBox"
  15011. :style="{ height: `calc(100% - ${topHeight}px)` }"
  15012. >
  15013. <div class="oldBox">
  15014. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15015. <div class="oldText">
  15016. <div class="detailBox">
  15017. <div class="oldDetail">
  15018. <div>标题:</div>
  15019. <div>{{ oldEnglishJson.engTitle }}</div>
  15020. </div>
  15021. <div class="oldDetail1">
  15022. <div>正文:</div>
  15023. <div
  15024. v-html="oldEnglishJson.engText"
  15025. style="white-space: pre-line;"
  15026. ></div>
  15027. </div>
  15028. <div
  15029. class="oldDetail"
  15030. v-if="
  15031. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  15032. "
  15033. >
  15034. <div>图片:</div>
  15035. <div class="oldImg">
  15036. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  15037. </div>
  15038. </div>
  15039. </div>
  15040. </div>
  15041. </div>
  15042. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15043. <div class="oldMes" style="background: #aacaff;">
  15044. {{ userMes[0].username }}
  15045. </div>
  15046. <div class="oldText">
  15047. <div class="detailBox" style="position: relative;">
  15048. <div class="oldDetail">
  15049. <div>标题:</div>
  15050. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15051. <div v-else v-html="newEnglishList.engTitle"></div>
  15052. </div>
  15053. <div class="oldDetail">
  15054. <div>正文:</div>
  15055. <el-input
  15056. v-if="greyType"
  15057. type="textarea"
  15058. :rows="10"
  15059. resize="none"
  15060. v-model="newEnglishList.engText"
  15061. @input="gx"
  15062. />
  15063. <correctText
  15064. :newText="newEnglishList.engText"
  15065. :oldData="oldEnglishJson.engText"
  15066. />
  15067. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15068. </div>
  15069. <div style="position: absolute;bottom: -25px;">
  15070. 注:红色划线字为删除,绿色背景白色字为新添加.
  15071. </div>
  15072. <el-button
  15073. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15074. class="correctCss"
  15075. :style="{ right: greyType == false ? '0' : '80px' }"
  15076. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15077. >
  15078. <el-button
  15079. @click="aiCorrect(newEnglishList.engText, 1)"
  15080. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15081. v-if="!greyType"
  15082. >AI批注</el-button
  15083. >
  15084. <el-button
  15085. @click="addCorrect"
  15086. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15087. v-if="greyType"
  15088. >确定</el-button
  15089. >
  15090. </div>
  15091. </div>
  15092. </div>
  15093. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15094. <div
  15095. class="oldMes"
  15096. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15097. v-if="newEnglishList1.length > 0"
  15098. >
  15099. <div
  15100. v-if="isNoUserid"
  15101. class="allName"
  15102. :style="{
  15103. minWidth: `calc(100% / ${engListLength})`,
  15104. background: newEngIndex == -1 ? '#aacaff' : ''
  15105. }"
  15106. @click="setEngText(-1)"
  15107. style="background: #aacaff;"
  15108. >
  15109. {{ userMes[0].username }}
  15110. </div>
  15111. <div
  15112. v-for="(item, index) in newEnglishList1"
  15113. :key="index"
  15114. class="allName"
  15115. :style="{
  15116. minWidth: `calc(100% / ${engListLength})`,
  15117. background: index == newEngIndex ? '#aacaff' : ''
  15118. }"
  15119. @click="setEngText(index)"
  15120. >
  15121. {{ item.username }}
  15122. </div>
  15123. </div>
  15124. <div class="oldMes" style="background: #aacaff;" v-else>
  15125. {{ userMes[0].username }}
  15126. </div>
  15127. <div
  15128. class="oldText"
  15129. v-if="
  15130. newEngIndex == -1 &&
  15131. isNoUserid == true &&
  15132. newEnglishList1.length
  15133. "
  15134. >
  15135. <div class="detailBox" style="position: relative;">
  15136. <div class="oldDetail">
  15137. <div>标题:</div>
  15138. <el-input
  15139. v-if="greyType"
  15140. v-model="oldEnglishJson1.engTitle"
  15141. />
  15142. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15143. </div>
  15144. <div class="oldDetail">
  15145. <div>正文:</div>
  15146. <el-input
  15147. v-if="greyType"
  15148. type="textarea"
  15149. :rows="10"
  15150. resize="none"
  15151. v-model="oldEnglishJson1.engText"
  15152. @input="gx"
  15153. />
  15154. <correctText
  15155. v-else
  15156. :newText="oldEnglishJson1.engText"
  15157. :oldData="oldEnglishJson.engText"
  15158. />
  15159. </div>
  15160. <div style="position: absolute;bottom: -25px;">
  15161. 注:红色划线字为删除,绿色背景白色字为新添加.
  15162. </div>
  15163. <el-button
  15164. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15165. class="correctCss"
  15166. :style="{ right: greyType == false ? '0' : '80px' }"
  15167. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15168. >
  15169. <el-button
  15170. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15171. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15172. v-if="!greyType"
  15173. >AI批注</el-button
  15174. >
  15175. <el-button
  15176. @click="addCorrect"
  15177. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15178. v-if="greyType"
  15179. >确定</el-button
  15180. >
  15181. </div>
  15182. </div>
  15183. <div class="oldText" v-else-if="newEngIndex == -1">
  15184. <div class="detailBox" style="position: relative;">
  15185. <div class="oldDetail">
  15186. <div>标题:</div>
  15187. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15188. <div v-else v-html="newEnglishList.engTitle"></div>
  15189. </div>
  15190. <div class="oldDetail">
  15191. <div>正文:</div>
  15192. <el-input
  15193. v-if="greyType"
  15194. type="textarea"
  15195. :rows="10"
  15196. resize="none"
  15197. v-model="newEnglishList.engText"
  15198. @input="gx"
  15199. />
  15200. <correctText
  15201. v-else
  15202. :newText="newEnglishList.engText"
  15203. :oldData="oldEnglishJson.engText"
  15204. />
  15205. </div>
  15206. <div style="position: absolute;bottom: -25px;">
  15207. 注:红色划线字为删除,绿色背景白色字为新添加.
  15208. </div>
  15209. <el-button
  15210. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15211. class="correctCss"
  15212. :style="{ right: greyType == false ? '0' : '80px' }"
  15213. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15214. >
  15215. <el-button
  15216. @click="aiCorrect(newEnglishList.engText, 3)"
  15217. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15218. v-if="!greyType"
  15219. >AI批注</el-button
  15220. >
  15221. <el-button
  15222. @click="addCorrect"
  15223. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15224. v-if="greyType"
  15225. >确定</el-button
  15226. >
  15227. </div>
  15228. </div>
  15229. <div
  15230. class="oldText"
  15231. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15232. >
  15233. <div class="detailBox" style="position: relative;">
  15234. <div class="oldDetail">
  15235. <div>标题:</div>
  15236. <div
  15237. v-if="
  15238. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15239. "
  15240. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15241. ></div>
  15242. <div v-else>
  15243. <el-input
  15244. v-if="greyType"
  15245. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15246. />
  15247. <div
  15248. v-else
  15249. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15250. ></div>
  15251. </div>
  15252. </div>
  15253. <div class="oldDetail">
  15254. <div>正文:</div>
  15255. <correctText
  15256. v-if="
  15257. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15258. "
  15259. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15260. :oldData="oldEnglishJson.engText"
  15261. />
  15262. <div v-else>
  15263. <el-input
  15264. v-if="greyType"
  15265. type="textarea"
  15266. :rows="10"
  15267. resize="none"
  15268. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15269. @input="gx"
  15270. />
  15271. <correctText
  15272. v-else
  15273. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15274. :oldData="oldEnglishJson.engText"
  15275. />
  15276. </div>
  15277. </div>
  15278. <div style="position: absolute;bottom: -25px;">
  15279. 注:红色划线字为删除,绿色背景白色字为新添加.
  15280. </div>
  15281. <el-button
  15282. @click="
  15283. isUpdateCorrect(
  15284. newEnglishList1[newEngIndex].cWork.engText,
  15285. 4
  15286. )
  15287. "
  15288. class="correctCss"
  15289. :style="{ right: greyType == false ? '0' : '80px' }"
  15290. v-if="
  15291. !greyType &&
  15292. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15293. "
  15294. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15295. >
  15296. <el-button
  15297. @click="
  15298. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15299. "
  15300. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15301. v-if="
  15302. !greyType &&
  15303. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15304. "
  15305. >AI批注</el-button
  15306. >
  15307. <el-button
  15308. @click="addCorrect"
  15309. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15310. v-if="greyType"
  15311. >确定</el-button
  15312. >
  15313. </div>
  15314. </div>
  15315. </div>
  15316. </div>
  15317. </div>
  15318. <span slot="footer" class="dialog-footer">
  15319. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15320. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15321. </span>
  15322. </el-dialog>
  15323. <englishEva
  15324. :evaEngJson="evaEngJson"
  15325. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15326. :uid="userid"
  15327. :tType="tType"
  15328. :courseDetail="courseDetail"
  15329. ></englishEva>
  15330. <interVideo
  15331. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15332. :videoJson="videoJson"
  15333. :userid="userid"
  15334. :id="id"
  15335. :courseType="courseType"
  15336. :taskCount="taskCount"
  15337. :toolindex="toolindex"
  15338. :videoType="videoType"
  15339. ></interVideo>
  15340. <UpdateMore
  15341. :dialogVisibleMember.sync="dialogVisibleMember"
  15342. :cList="uploadStudentJuri"
  15343. :userid="userid"
  15344. :searchTN="worksSName2"
  15345. @setPlname="setPlname"
  15346. ></UpdateMore>
  15347. <!-- <wordCloud
  15348. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15349. :data="wordCloudData"
  15350. ></wordCloud> -->
  15351. <el-dialog
  15352. title="词云"
  15353. :visible.sync="dialogVisibleWordCloud"
  15354. width="30%"
  15355. class="dialog_diy"
  15356. :before-close="handleClose">
  15357. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15358. </el-dialog>
  15359. <el-dialog
  15360. title="挑人"
  15361. :visible.sync="dialogVisiblePickPeople"
  15362. width="650px"
  15363. :before-close="handleClose"
  15364. class="dialog_diy"
  15365. center
  15366. >
  15367. <div class="pick_box">
  15368. <div
  15369. class="noWorksName"
  15370. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15371. v-for="(item, index) in uploadStudentJuri"
  15372. :key="index"
  15373. @click="pickStudent(item)"
  15374. >
  15375. {{ item.name }}
  15376. </div>
  15377. </div>
  15378. </el-dialog>
  15379. <EnglishVoice
  15380. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15381. :englishVoiceJson="englishVoiceJson"
  15382. :userid="userid"
  15383. :id="id"
  15384. :courseType="courseType"
  15385. :taskCount="taskCount"
  15386. :toolindex="toolindex"
  15387. @selectSWorks="selectSWorks"
  15388. @selectStudent="selectStudent"
  15389. :englishVoiceJsonWork="englishVoiceJsonWork"
  15390. ></EnglishVoice>
  15391. <checkEnglishVoice
  15392. :englishVoiceJson="englishVoiceJson"
  15393. :userid="userid"
  15394. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15395. :commentDetail="commentDetail"
  15396. :courseDetail="courseDetail"
  15397. :wScore="wScore"
  15398. :scoreDetail="scoreDetail"
  15399. @selectSWorks="selectSWorks"
  15400. @selectStudent="selectStudent"
  15401. ></checkEnglishVoice>
  15402. <el-dialog
  15403. title="教师评分"
  15404. :visible.sync="markScoreVisible"
  15405. :append-to-body="true"
  15406. width="1000px"
  15407. :fullscreen="markfullscreen"
  15408. :before-close="markScorehandleClose"
  15409. class="markScore_diy"
  15410. >
  15411. <div slot="title">
  15412. <div class="markScore_diyTit">
  15413. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15414. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15415. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15416. </div>
  15417. </div>
  15418. </div>
  15419. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15420. <!-- @updateDocSco="updateDocSco" -->
  15421. <markDialog
  15422. :key="markScoreVisible.toString()"
  15423. :uid="markScoreUid"
  15424. :toolIndex="markScoretoolIndex"
  15425. :stage="courseType"
  15426. :task="taskCount"
  15427. :taskDetail="
  15428. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15429. "
  15430. :tool="toolListS"
  15431. :languageSetting="languageSetting"
  15432. :scoTit="markScoreTit"
  15433. :tType="tType"
  15434. :sIsOpen="sIsOpen"
  15435. :markScoreworksStudent="markScoreworksStudent"
  15436. :markScoreVisible="markScoreVisible"
  15437. ></markDialog>
  15438. </el-dialog>
  15439. <!-- 查看Txt,md等文件 -->
  15440. <el-dialog
  15441. title="文件预览"
  15442. :visible.sync="dialogVisibleTxt"
  15443. width="50%"
  15444. :before-close="handleCloseTxt"
  15445. class="dialog_diy"
  15446. :class="{ fullStyle: full }"
  15447. >
  15448. <div slot="title" class="header-title">
  15449. <div style="color: #fff">文件预览</div>
  15450. <div style="position: absolute; top: 19px; right: 50px">
  15451. <img
  15452. src="../../assets/full.png"
  15453. style="height: 16px; cursor: pointer"
  15454. alt=""
  15455. @click="fullTools"
  15456. />
  15457. </div>
  15458. </div>
  15459. <div>{{ TxtMd }}</div>
  15460. </el-dialog>
  15461. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15462. <choseWorksDetailDialog
  15463. ref="choseWorksDetailDialogRef"
  15464. :worksStudentData="worksStudent"
  15465. :noWorksSData="noWorksS"
  15466. :chapInfoListData="chapInfoList"
  15467. :courseType="courseType"
  15468. :taskCount="taskCount"
  15469. :tType="tType"
  15470. :sIsOpen="sIsOpen"
  15471. :courseDetail="courseDetail"
  15472. :groupStudent2="groupStudent"
  15473. :groupStudentUid2="groupStudentUid"
  15474. :oid="oid"
  15475. :org="org"
  15476. @getCourseDetail="getCourseDetail"
  15477. @selectSLook="selectSLook"
  15478. @selectSWorks="selectSWorks"
  15479. @selectStudent="selectStudent"
  15480. @deleteWorks="deleteWorks"
  15481. @openTools="openTools"
  15482. @openWord="openWord"
  15483. @openScore="openScore"
  15484. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15485. />
  15486. <el-dialog
  15487. :visible.sync="confirmOpenDig"
  15488. width="500px"
  15489. :modal="false"
  15490. class="confirmOpenDigCss dialog_diyCopy"
  15491. :before-close="handleClose">
  15492. <div style="display: flex;align-items: center;">
  15493. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15494. <span>“{{ courseDetail.title }}”开课啦</span>
  15495. </div>
  15496. <div style="margin: 20px 0 35px;">
  15497. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15498. <div>要认真听讲哦~</div>
  15499. </div>
  15500. <div style="text-align: center;">
  15501. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15502. </div>
  15503. </el-dialog>
  15504. </div>
  15505. </template>
  15506. <script>
  15507. import "../../common/aws-sdk-2.235.1.min.js";
  15508. // import pdf from "../components/pdf3";
  15509. import pdf from "../components/vpdf";
  15510. import AskStatic from "../components/askStatic";
  15511. import AskStatic2 from "../components/askStatic2";
  15512. import AnswerData2 from "../components/answerData2";
  15513. import AnswerData from "../components/answerData";
  15514. import EditorBar from "../tools/wangEnduit.vue";
  15515. import Table from "../tools/table.vue";
  15516. import Time from "../tools/time.vue";
  15517. import Mind from "../tools/jsmind.vue";
  15518. import Sunburst from "../tools/sunburst";
  15519. import SeeBoard from "../tools/seeBoard";
  15520. import * as imageConversion from "image-conversion";
  15521. import Audio from "../components/audio.vue";
  15522. import ImgDraw from "../tools/imgDraw/imgDraw";
  15523. import { Empty } from "element-ui";
  15524. import RecordRTC from "recordrtc";
  15525. import interVideo from "../interVideo/index.vue";
  15526. import UpdateMore from "../updateMore/updateMore.vue";
  15527. import wordCloud from "../wordCloud/index.vue";
  15528. import axios from "axios";
  15529. import JSZip from "jszip";
  15530. import FileSaver from "file-saver";
  15531. import onlineWrite from "./commpont/onlineWrite";
  15532. import englishEva from "../components/englishEva";
  15533. import * as Diff from "diff";
  15534. import EnglishVoice from "../EnglishVoice2/index.vue";
  15535. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  15536. import correctText from "../components/correctText.vue";
  15537. import scoreItem from "../scoreList/scoreItem.vue";
  15538. import scoreZong from "../scoreZong/index.vue";
  15539. import classRoomHelper from "../classRoomHelper/index.vue";
  15540. import markScore from "./commpont/markScore";
  15541. import markDialog from "./commpont/markDialog";
  15542. import evaTable from "./commpont/evaTable";
  15543. import { v4 as uuidv4 } from "uuid";
  15544. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  15545. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  15546. import choseWordCloud from '../components/choseWordCloud.vue'
  15547. var OpenCC = require("opencc-js");
  15548. let converter = OpenCC.Converter({
  15549. from: "hk",
  15550. to: "cn"
  15551. });
  15552. const getFile = url => {
  15553. return new Promise((resolve, reject) => {
  15554. var credentials = {
  15555. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15556. secretAccessKey: "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"
  15557. }; //秘钥形式的登录上传
  15558. window.AWS.config.update(credentials);
  15559. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15560. let url2 = url;
  15561. let _url2 = "";
  15562. if (
  15563. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15564. ) {
  15565. _url2 = url2.split(
  15566. "https://view.officeapps.live.com/op/view.aspx?src="
  15567. )[1];
  15568. } else {
  15569. _url2 = url2;
  15570. }
  15571. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15572. let name = decodeURIComponent(
  15573. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15574. );
  15575. var params = {
  15576. Bucket: "ccrb",
  15577. Key: name
  15578. };
  15579. s3.getObject(params, function(err, data) {
  15580. if (err) {
  15581. console.log(err, err.stack);
  15582. resolve({ data: 1 });
  15583. } else {
  15584. resolve({ data: data.Body });
  15585. console.log(data);
  15586. } // sxuccessful response
  15587. });
  15588. // axios({
  15589. // method: "get",
  15590. // url,
  15591. // responseType: "blob",
  15592. // })
  15593. // .then((data) => {
  15594. // resolve({ data: data.data });
  15595. // })
  15596. // .catch((error) => {
  15597. // resolve({ data: 1 });
  15598. // // reject(error.toString());
  15599. // });
  15600. });
  15601. };
  15602. export default {
  15603. components: {
  15604. choseWordCloud,
  15605. EditorBar,
  15606. Time,
  15607. pdf,
  15608. AskStatic,
  15609. AskStatic2,
  15610. Mind,
  15611. Sunburst,
  15612. SeeBoard,
  15613. AnswerData2,
  15614. AnswerData,
  15615. Audio,
  15616. ImgDraw,
  15617. Table,
  15618. interVideo,
  15619. UpdateMore,
  15620. wordCloud,
  15621. onlineWrite,
  15622. englishEva,
  15623. EnglishVoice,
  15624. checkEnglishVoice,
  15625. correctText,
  15626. scoreItem,
  15627. classRoomHelper,
  15628. scoreZong,
  15629. markScore,
  15630. markDialog,
  15631. evaTable,
  15632. statisticalAnalysis,
  15633. choseWorksDetailDialog
  15634. },
  15635. data() {
  15636. return {
  15637. wordCloudKey: 0,
  15638. bg: null,
  15639. drawShow: false,
  15640. dialogVisible: false,
  15641. dialogVisiblePl: false,
  15642. commentDialogVisible: false,
  15643. dialogVisibleMember: false,
  15644. dialogVisibleWordCloud: false,
  15645. videoVisible: false,
  15646. isStar: false,
  15647. studentEvalDialogVisible: false,
  15648. studentEvalDialogVisibleTeacher: false,
  15649. dialogVisibleSelect: false,
  15650. dialogVisibleSelectTeacher: false,
  15651. dialogVisibleScore: false,
  15652. dialogVisibleENScore: false,
  15653. dialogVisibleSentence: false,
  15654. dialogVisibleSentenceTeacher: false,
  15655. dialogVisibleSentence1: false,
  15656. dialogVisibleWorks: false,
  15657. dialogVisibleTable: false,
  15658. dialogVisibleTableTeacher: false,
  15659. dialogVisibleWord: false,
  15660. dialogVisibleWordTeacher: false,
  15661. dialogVisibleTable2: false,
  15662. dialogVisibleTable3: false,
  15663. dialogVisibleGroupWork: false,
  15664. dialogVisibleUpdateGroup: false,
  15665. dialogVisibleDeleteGroup: false,
  15666. dialogVisibleSname: false,
  15667. dialogVisibleVideo: false,
  15668. dialogVisiblePickPeople: false,
  15669. engDialogVisible: false,
  15670. engUpdateDialogVisible: false,
  15671. engEvaDialogVisible: false,
  15672. evaEngJson: {
  15673. teacherJson: {},
  15674. studentJson: {},
  15675. message: {}
  15676. },
  15677. isNoUserid: false,
  15678. engListLength: 0,
  15679. engWid: "",
  15680. newEnglishList: {
  15681. engTitle: "",
  15682. engText: ""
  15683. },
  15684. newEnglishList1: [],
  15685. oldEnglishJson: {},
  15686. oldEnglishJson1: {},
  15687. englishList1: {},
  15688. englishList: {},
  15689. myAnswerList1: {},
  15690. topHeight: 0,
  15691. newEngIndex: -1,
  15692. englishToolIndex: 0,
  15693. userMes: {},
  15694. englishToolIndex: 0,
  15695. worksSName: "",
  15696. classJuri: [],
  15697. uploadStudentJuri: [],
  15698. uploadCid: "",
  15699. snameWid: "",
  15700. sStudent: {},
  15701. sTool: "",
  15702. bzText: "",
  15703. commentDetail: [],
  15704. selectAnswer: [],
  15705. videoDetail: {},
  15706. selectJson: {},
  15707. englishList: {},
  15708. topHeight: 0,
  15709. eScore: { eBzText: "", eStar: [] },
  15710. id: this.$route.query.courseId,
  15711. userid: this.$route.query.userid,
  15712. classId: this.$route.query.cid,
  15713. // courseTypeLine: this.$route.query.type,
  15714. oid: this.$route.query.oid,
  15715. org: this.$route.query.org,
  15716. tType: this.$route.query.tType,
  15717. courseType: this.$route.query.type,
  15718. screenType: this.$route.query.screenType,
  15719. tcid2: this.$route.query.tcid,
  15720. tcid: "",
  15721. pptImgUrl: "",
  15722. pptImgUrl1: "",
  15723. commentText: "",
  15724. full: false,
  15725. sIsOpen: false, //允许学生查看所有作业
  15726. IsLookOpen: false, //禁止学生查看所有阶段
  15727. IsFollow: false, //开启跟随模式
  15728. pzDialog: false,
  15729. contentDialog: false,
  15730. mlDialog: false,
  15731. type: 1,
  15732. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15733. sentenceList1: [],
  15734. tableJson: [],
  15735. tableJsonO: [],
  15736. wordJson: [],
  15737. wordJsonO: [],
  15738. vedio: [],
  15739. text: [],
  15740. textList: [],
  15741. line: [],
  15742. lineList: [],
  15743. chapTools: [],
  15744. chapToolList: [],
  15745. file: [],
  15746. fileC: [],
  15747. vedioTime: [],
  15748. upToolImg: "",
  15749. preTime: 0,
  15750. rateList: {
  15751. ca: 0
  15752. },
  15753. rateParams: [],
  15754. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15755. studyJuri: [
  15756. {
  15757. content: "",
  15758. cover: [],
  15759. upVedio: [],
  15760. upFile: []
  15761. }
  15762. ],
  15763. isClose: 0,
  15764. plworkFile: [],
  15765. mr: require("../../assets/vedioPic.png"),
  15766. word: require("../../assets/icon/isWord.png"),
  15767. word2: require("../../assets/icon/word2.png"),
  15768. video: require("../../assets/icon/isVideo.png"),
  15769. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15770. likes: require("../../assets/icon/comment/likes.png"),
  15771. scoreImg: require("../../assets/score.png"),
  15772. courseDetail: {},
  15773. reply: "",
  15774. isSelect: false,
  15775. chapInfo: [],
  15776. chapInfoList: [],
  15777. taskCount: 0,
  15778. imgList: [],
  15779. noImgList: [],
  15780. pzList: [],
  15781. timeWorkList: [],
  15782. PlTextList: [
  15783. "Excellent!",
  15784. "nice!",
  15785. "很有创意!",
  15786. "还不错哦~",
  15787. "继续努力哦~"
  15788. ],
  15789. isClickNav: "",
  15790. navId: "",
  15791. playerOptions: {
  15792. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15793. autoplay: false, //如果true,浏览器准备好时开始回放。
  15794. muted: false, // 默认情况下将会消除任何音频。
  15795. loop: false, // 导致视频一结束就重新开始。
  15796. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15797. language: "zh-CN",
  15798. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15799. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15800. sources: [
  15801. {
  15802. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15803. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15804. }
  15805. ],
  15806. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15807. // poster: dataRes.imgUrl, //你的封面地址
  15808. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15809. controlBar: {
  15810. timeDivider: true, //当前时间和持续时间的分隔符
  15811. durationDisplay: true, //显示持续时间
  15812. remainingTimeDisplay: false, //是否显示剩余时间功能
  15813. fullscreenToggle: true //全屏按钮
  15814. }
  15815. },
  15816. playerOptions1: {
  15817. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15818. autoplay: false, //如果true,浏览器准备好时开始回放。
  15819. muted: false, // 默认情况下将会消除任何音频。
  15820. loop: false, // 导致视频一结束就重新开始。
  15821. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15822. language: "zh-CN",
  15823. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15824. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15825. sources: [
  15826. {
  15827. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15828. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15829. }
  15830. ],
  15831. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15832. // poster: dataRes.imgUrl, //你的封面地址
  15833. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15834. controlBar: {
  15835. timeDivider: true, //当前时间和持续时间的分隔符
  15836. durationDisplay: true, //显示持续时间
  15837. remainingTimeDisplay: false, //是否显示剩余时间功能
  15838. fullscreenToggle: true //全屏按钮
  15839. }
  15840. },
  15841. playerO: {},
  15842. noneBtnImg: false,
  15843. proVisible: false,
  15844. proVisible2: false,
  15845. progress: 0,
  15846. isFinishSize: 0,
  15847. isAllSize: 0,
  15848. questionAnswer: "",
  15849. answerQ: "", //问答标题
  15850. rateJson: [],
  15851. wbCount: 0,
  15852. wordCount: 0,
  15853. mindCount: 0,
  15854. askCount: 0,
  15855. noteCount: 0,
  15856. mindNetWorkCount: 0,
  15857. libraryCount: 0,
  15858. workCount: 0,
  15859. timeCount: 0,
  15860. answerCount: 0,
  15861. trainCount: 0,
  15862. evalCount: 0,
  15863. dialogImageUrl: "",
  15864. pictureDialog: false,
  15865. toolTypeList: [],
  15866. dialogVisible1: false,
  15867. dialogVisible2: false,
  15868. dialogVisible3: false,
  15869. dialogVisible6: false,
  15870. dialogVisible4: false,
  15871. isNoHomeWork: false,
  15872. dialogVisible5: false,
  15873. dialogVisible5Teacher: false,
  15874. dialogVisibleChoice: false,
  15875. dialogVisibleChoiceTeacher: false,
  15876. answerDialogVisible: false,
  15877. answerDialogVisibleTeacher: false,
  15878. juriVisible: false,
  15879. timeDialogVisible: false,
  15880. replyDialogVisible: false,
  15881. toolDialogVisible: false,
  15882. replyIndex: 0,
  15883. replyPid: "",
  15884. radio: [],
  15885. isAsk: false,
  15886. askJson: {
  15887. askCount: 1,
  15888. askTitle: "",
  15889. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  15890. },
  15891. testJson: {},
  15892. videoType: 0,
  15893. checkJson: [],
  15894. askList: [],
  15895. answerList: [],
  15896. navList: [],
  15897. addPzDialog: false,
  15898. pzConText: "",
  15899. worksStudent: [],
  15900. isCloseList: [],
  15901. workStudent: [],
  15902. groupStudent: [],
  15903. groupStudentUid: [],
  15904. noWorksS: [],
  15905. isWorksS: [],
  15906. noWorksStudent: [],
  15907. toolindex: 0,
  15908. toolDetailIndex: null,
  15909. groupIndex: 0,
  15910. workTypeB: false,
  15911. workTypeC: false,
  15912. isAnswer: false,
  15913. isHovered: false,
  15914. isHovered1: false,
  15915. isHovered2: false,
  15916. commentTagShow: 0,
  15917. timer: null,
  15918. timer2: null,
  15919. opertimer: null,
  15920. showType: 0,
  15921. fileType: 0,
  15922. showPDF: false,
  15923. noteName: "",
  15924. evaJuri: [],
  15925. evalua: "",
  15926. eTitle: "",
  15927. eName: "",
  15928. eJson: {},
  15929. fid: "", //一级
  15930. sid: "", //二级
  15931. tid: "", //二级
  15932. typeMode: 1,
  15933. eJSONNum: 0,
  15934. Etype: 1,
  15935. data: {
  15936. meta: {
  15937. name: "example",
  15938. author: "dd@163.com",
  15939. version: "0.2"
  15940. },
  15941. format: "node_array",
  15942. data: [{ id: "root", isroot: true, topic: "" }]
  15943. },
  15944. fullDialogVisible: false,
  15945. fulltype: "",
  15946. fullUrl: "",
  15947. commentIndexJson: {},
  15948. Stbodywidth: 0,
  15949. ispzType: 0,
  15950. pzType: 1,
  15951. wScore: 0,
  15952. scoreDetail: "",
  15953. videoStart: false,
  15954. recorder: null,
  15955. groupJson: {},
  15956. islock: false,
  15957. groupJson2: {},
  15958. dialogVisibleGroup: false,
  15959. dialogVisibleGroup2: false,
  15960. updateGroupArray: [],
  15961. updateGroupUser: {},
  15962. deleteGroupUser: [],
  15963. deleteGroupArray: {},
  15964. checkChair: "",
  15965. checkDeleteGroup: [],
  15966. inviteCode: "",
  15967. courseGroupStudent: [],
  15968. courseGroupStudentUid: [],
  15969. courseGroup: {},
  15970. isGroup: false,
  15971. toolIndex: null,
  15972. tool: {},
  15973. isWorkTool: [
  15974. 16,
  15975. 32,
  15976. 57,
  15977. 4,
  15978. 45,
  15979. 15,
  15980. 1,
  15981. 3,
  15982. 6,
  15983. 7,
  15984. 26,
  15985. 41,
  15986. 47,
  15987. 48,
  15988. 52,
  15989. 50,
  15990. 40
  15991. ], //, 40
  15992. videoJson: {},
  15993. toolType: 0,
  15994. checktoolArray: [],
  15995. vChapterData: [],
  15996. isUpdateToolDetail: false,
  15997. isUpdateToolDetail1: false,
  15998. updateToolDetailInner: "",
  15999. checkboxList: [],
  16000. plIndex: "",
  16001. worksSName2: "",
  16002. worksSid: "",
  16003. wordCloudData: [],
  16004. isPickStudent: [],
  16005. pzStype: 1,
  16006. downLoading: false,
  16007. greyType: false,
  16008. correctWord: [],
  16009. EnglishVoiceDialog: false,
  16010. englishVoiceJson: {},
  16011. englishVoiceJsonWork: [],
  16012. scoreList: {
  16013. listdata: [],
  16014. isScoreList: []
  16015. },
  16016. classRoomHelperWidth: "85px",
  16017. orgArray: [],
  16018. oidArray: [],
  16019. refreshKey: 0,
  16020. AIloading: [],
  16021. worksStudentCopy: [],
  16022. loopLoading: [],
  16023. markScoreVisible: false,
  16024. markScoretoolIndex: 0,
  16025. markScoreUid: "",
  16026. markScoreTit: {},
  16027. markfullscreen: false,
  16028. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16029. markScoreworksStudent: [],
  16030. finalMarkList: -1,
  16031. isaiNum: 0,
  16032. dialogVisibleTxt: false,
  16033. TxtMd: "",
  16034. languageSetting: 0, //0中文 1繁体 2英文
  16035. toolListS: [],
  16036. commentDetailCopy: "",
  16037. splitScreenData: {
  16038. isOpen: false,
  16039. userId: "",
  16040. uid: "",
  16041. myUid: "",
  16042. loading: false,
  16043. behavior: null
  16044. },
  16045. confirmOpenDig:false,
  16046. confirmOpenDigData:''
  16047. };
  16048. },
  16049. methods: {
  16050. getAIJ() {
  16051. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16052. let oid = res.data[0];
  16053. let org = res.data[1];
  16054. let oidArray = [];
  16055. let orgArray = [];
  16056. oid.forEach(i => oidArray.push(i.oid));
  16057. org.forEach(i => orgArray.push(i.oid));
  16058. this.orgArray = orgArray;
  16059. this.oidArray = oidArray;
  16060. });
  16061. },
  16062. // 评分弹框全屏
  16063. markFullScreenBtn() {
  16064. this.markfullscreen = !this.markfullscreen;
  16065. },
  16066. insertMemorandum(_html) {
  16067. //保存行为操作
  16068. //variable
  16069. //btn
  16070. let params = [
  16071. {
  16072. uid: this.userid,
  16073. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16074. content: _html
  16075. }
  16076. ];
  16077. console.log(params);
  16078. this.ajax
  16079. .post(
  16080. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16081. params
  16082. )
  16083. .then(res => {
  16084. if (res.data == 1) {
  16085. console.log("保存操作成功");
  16086. } else {
  16087. console.log("保存操作失败");
  16088. }
  16089. })
  16090. .catch(e => {
  16091. console.log("保存操作失败");
  16092. console.log(e);
  16093. });
  16094. },
  16095. // 获取文档id
  16096. createFileid(url) {
  16097. let _this = this;
  16098. return new Promise((resolve, reject) => {
  16099. try {
  16100. _this.ajax
  16101. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16102. url: url
  16103. })
  16104. .then(res => {
  16105. let _data = res.data.FunctionResponse;
  16106. if (_data.result && _data.result.id) {
  16107. resolve(_data.result.id);
  16108. } else {
  16109. resolve(1);
  16110. }
  16111. })
  16112. .catch(function(error) {
  16113. resolve(1);
  16114. });
  16115. } catch (e) {
  16116. resolve(1);
  16117. }
  16118. });
  16119. },
  16120. // 一键重置
  16121. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16122. let jude = false;
  16123. this.AIloading.forEach((e, index) => {
  16124. if (index == toolIndex) {
  16125. e.forEach(k => {
  16126. if (k.loading == true) jude = true;
  16127. });
  16128. }
  16129. });
  16130. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16131. this.$confirm("确认一键重置?")
  16132. .then(_ => {
  16133. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16134. })
  16135. .catch(_ => {});
  16136. },
  16137. // 一键重置
  16138. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16139. for (let index = 0; index < con.length; index++) {
  16140. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16141. }
  16142. this.$message.success("重置完成");
  16143. // this.refreshAssembly();
  16144. this.worksStudent.forEach((e, index) => {
  16145. if (toolIndex == index) {
  16146. console.log("6666");
  16147. e.forEach((i, inx) => {
  16148. let mk = `markSco${index}${inx}`;
  16149. this.$refs[mk][0].getData();
  16150. });
  16151. }
  16152. });
  16153. },
  16154. // 一键重置
  16155. allEmptySco(uid, stage, task, toolIndex) {
  16156. let params = [
  16157. {
  16158. cid: this.id,
  16159. uid: uid,
  16160. s: stage,
  16161. t: task,
  16162. tool: toolIndex ? toolIndex : ""
  16163. }
  16164. ];
  16165. return new Promise(resolve => {
  16166. this.ajax
  16167. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16168. .then(res => {
  16169. resolve(1);
  16170. })
  16171. .catch(err => {
  16172. console.error(err);
  16173. });
  16174. }).catch(error => {
  16175. console.log(error);
  16176. });
  16177. },
  16178. // AI评分循环打分
  16179. async loopEva(
  16180. con,
  16181. tit,
  16182. stage,
  16183. task,
  16184. toolIndex,
  16185. toolDetail,
  16186. taskDetail,
  16187. toolList
  16188. ) {
  16189. let jude = false;
  16190. this.AIloading.forEach((e, index) => {
  16191. if (index == toolIndex) {
  16192. e.forEach(k => {
  16193. if (k.loading == true) jude = true;
  16194. });
  16195. }
  16196. });
  16197. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16198. this.AIloading.forEach((e, index) => {
  16199. if (index == toolIndex) {
  16200. e.forEach(k => {
  16201. k.loading = true;
  16202. });
  16203. }
  16204. });
  16205. this.loopLoading[toolIndex].loading = true;
  16206. let laws = "";
  16207. let std = "";
  16208. let text = "";
  16209. if (toolList && toolList.eList && toolList.eList.length) {
  16210. for (let i = 0; i < toolList.eList.length; i++) {
  16211. if (toolList.eList[i].isai == 1) {
  16212. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16213. }
  16214. }
  16215. for (let i = 0; i < toolList.eList.length; i++) {
  16216. if (toolList.eList[i].isai == 1) {
  16217. let a = toolList.eList[i].detail;
  16218. if (isNaN(parseFloat(a)) && a) {
  16219. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16220. } else {
  16221. var result = a;
  16222. }
  16223. std += `纬度${i}:“${result}”, \n`;
  16224. }
  16225. }
  16226. for (let i = 0; i < toolList.eList.length; i++) {
  16227. if (toolList.eList[i].isai == 1) {
  16228. let a = toolList.eList[i].detail;
  16229. if (isNaN(parseFloat(a)) && a) {
  16230. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16231. } else {
  16232. var result = a;
  16233. }
  16234. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16235. }
  16236. }
  16237. } else {
  16238. let titRule = 0;
  16239. let titRule2 = 0;
  16240. tit.forEach((e, index) => {
  16241. if (!e.isai) {
  16242. e.isai = 1;
  16243. }
  16244. });
  16245. tit.forEach((e, index) => {
  16246. if (e.isai == 1) {
  16247. titRule2++;
  16248. if (e.rule) {
  16249. titRule++;
  16250. }
  16251. }
  16252. });
  16253. if (titRule != titRule2) {
  16254. this.AIloading.forEach((e, index) => {
  16255. if (index == toolIndex) {
  16256. e.forEach(k => {
  16257. k.loading = false;
  16258. });
  16259. }
  16260. });
  16261. this.loopLoading[toolIndex].loading = false;
  16262. this.$message.info("细则努力生成中,请稍候……");
  16263. return;
  16264. }
  16265. for (let i = 0; i < tit.length; i++) {
  16266. if (tit[i].isai == 1) {
  16267. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16268. }
  16269. }
  16270. for (let i = 0; i < tit.length; i++) {
  16271. if (tit[i].isai == 1) {
  16272. let a = tit[i].detail;
  16273. if (isNaN(parseFloat(a)) && a) {
  16274. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16275. } else {
  16276. var result = a;
  16277. }
  16278. std += `纬度${i}:“${result}”, \n`;
  16279. }
  16280. }
  16281. for (let i = 0; i < tit.length; i++) {
  16282. if (tit[i].isai == 1) {
  16283. let a = tit[i].detail;
  16284. if (isNaN(parseFloat(a)) && a) {
  16285. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16286. } else {
  16287. var result = a;
  16288. }
  16289. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16290. }
  16291. }
  16292. }
  16293. let forAllList = [];
  16294. // console.log('con',con)
  16295. for (let i = 0; i < con.length; i++) {
  16296. let _fileid = "";
  16297. let wok = con[i].works;
  16298. // console.log('con',con);
  16299. // console.log('con[i].type',con[i].type);
  16300. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16301. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16302. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16303. _fileid = await this.createFileid(con[i].works);
  16304. } else {
  16305. this.AIloading[toolIndex][i].loading = false;
  16306. continue;
  16307. }
  16308. }
  16309. // console.log('con[i].type',con[i])
  16310. // console.log('con[i].type',con[i].type)
  16311. if (_fileid == 1 || con[i].type == 3) {
  16312. this.AIloading[toolIndex][i].loading = false;
  16313. continue;
  16314. }
  16315. let msg = `NOTICE
  16316. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16317. Language: ${this.getLang()}
  16318. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16319. Instruction: Based on the context, follow "Format example", write content.
  16320. #目标#
  16321. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16322. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16323. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16324. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16325. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16326. #评分资料#
  16327. 评价标准:${std}
  16328. 评价细则:${laws}
  16329. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16330. 任务描述:${taskDetail}
  16331. 工具描述:${toolDetail}
  16332. #输出要求#
  16333. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16334. “评语”控制在150字左右。
  16335. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16336. #输出格式#
  16337. [${text}{'comment':'评语(150个汉字左右)'}]
  16338. `;
  16339. let mk = `markSco${toolIndex}${i}`;
  16340. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16341. msg,
  16342. con[i].userid,
  16343. stage,
  16344. task,
  16345. _fileid,
  16346. con[i].type
  16347. );
  16348. forAllList.push(mkAwit);
  16349. }
  16350. Promise.all(forAllList)
  16351. .then(values => {
  16352. console.log("values", values);
  16353. this.$message({
  16354. message: "评价成功",
  16355. type: "success"
  16356. });
  16357. // this.refreshKey++
  16358. // this.worksStudent.forEach((e,index)=>{
  16359. // if(toolIndex == index){
  16360. // e.forEach((i,inx)=>{
  16361. // let mk = `markSco${index}${inx}`
  16362. // this.$refs[mk][0].getData()
  16363. // })
  16364. // }
  16365. // })
  16366. this.AIloading[toolIndex].forEach(e => {
  16367. e.loading = false;
  16368. });
  16369. this.loopLoading[toolIndex].loading = false;
  16370. })
  16371. .catch(reason => {
  16372. console.error("reasonreasonreasonreasonreason", reason);
  16373. // 输出“失败原因”
  16374. });
  16375. },
  16376. // 获取评价细则
  16377. againEva(i, k) {
  16378. let msg = `NOTICE
  16379. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16380. Language: ${this.getLang()}
  16381. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16382. Instruction: Based on the context, follow "Format example", write content.
  16383. #Context
  16384. ##要求
  16385. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16386. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16387. ##制定标准资料
  16388. 评价维度:${
  16389. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16390. }
  16391. 维度描述:${
  16392. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16393. }
  16394. # Format example
  16395. ==
  16396. 0 星,作业内容与作业要求无关;
  16397. 1 星,没有识别问题和需求;
  16398. 2 星,问题或需求没有被清晰理解或准确识别;
  16399. 3 星,问题或需求的一部分被识别;
  16400. 4 星,问题或需求的大部分被识别;
  16401. 5 星,问题或需求都被识别。
  16402. ==
  16403. `;
  16404. let params = {
  16405. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16406. message: [
  16407. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16408. ],
  16409. session_name: uuidv4(),
  16410. userId: this.userid,
  16411. file_ids: [],
  16412. model: "gpt-4o-2024-11-20"
  16413. };
  16414. // console.log('params',params);
  16415. this.ajax
  16416. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16417. .then(response => {
  16418. let data = response.data.FunctionResponse;
  16419. // console.log("data", data);
  16420. if (data.message) {
  16421. let content = data.message;
  16422. var regex = new RegExp("==([^=]+)==");
  16423. let match = content.match(regex);
  16424. if (match) {
  16425. content = match[1].trim().replaceAll(" ", "");
  16426. // 获取匹配到的内容并去除两端空格
  16427. // console.log('contentInsideDoubleEquals', content);
  16428. if (
  16429. content.indexOf("0星") == -1 ||
  16430. content.indexOf("2星") == -1 ||
  16431. content.indexOf("3星") == -1 ||
  16432. content.indexOf("4星") == -1 ||
  16433. content.indexOf("5星") == -1
  16434. ) {
  16435. console.log("未有星级。");
  16436. this.againEva(i, k);
  16437. return;
  16438. }
  16439. // return
  16440. } else {
  16441. console.log("未找到匹配的内容。");
  16442. this.againEva(i, k);
  16443. return;
  16444. }
  16445. let elist = JSON.parse(
  16446. JSON.stringify(
  16447. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16448. )
  16449. );
  16450. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16451. elist.rule = JSON.parse(
  16452. JSON.stringify(content.replaceAll("#", ""))
  16453. );
  16454. this.$set(
  16455. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16456. k,
  16457. elist
  16458. );
  16459. this.$forceUpdate();
  16460. let params2 = [
  16461. {
  16462. cid: this.id,
  16463. chapters: JSON.stringify(this.chapInfoList),
  16464. uid: this.userid,
  16465. unitIndex: this.courseType
  16466. }
  16467. ];
  16468. this.ajax
  16469. .post(this.$store.state.api + "updateWorkNew4", params2)
  16470. .then(res => {
  16471. this.getCourseDetail(2);
  16472. this.$forceUpdate();
  16473. })
  16474. .catch(err => {
  16475. this.$message.error("网络不佳");
  16476. console.error(err);
  16477. });
  16478. // 进行进一步处理或解析outputContent
  16479. // } else {
  16480. // console.log("No match found for # Output section.");
  16481. // }
  16482. }
  16483. })
  16484. .catch(error => {
  16485. console.log(error);
  16486. });
  16487. },
  16488. // 关闭评分弹框
  16489. markScorehandleClose(done) {
  16490. // this.refreshKey++
  16491. this.worksStudent.forEach((e, index) => {
  16492. if (this.markScoretoolIndex == index) {
  16493. e.forEach((i, inx) => {
  16494. let mk = `markSco${index}${inx}`;
  16495. if (this.$refs[mk] && this.$refs[mk][0]) {
  16496. this.$refs[mk][0].getData();
  16497. }
  16498. });
  16499. }
  16500. });
  16501. done();
  16502. },
  16503. // 关闭txtMd预览弹框
  16504. handleCloseTxt(done) {
  16505. this.TxtMd = "";
  16506. done();
  16507. },
  16508. // Txt,Md作业查看
  16509. lookTxt(val) {
  16510. this.dialogVisibleTxt = true;
  16511. this.TxtMd = "";
  16512. getFile(val).then(res => {
  16513. this.TxtMd = res.data;
  16514. });
  16515. },
  16516. // 组件刷新
  16517. refreshAssembly(val) {
  16518. this.refreshKey++;
  16519. // console.log(this.refreshKey)
  16520. },
  16521. updateLoading(payload) {
  16522. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16523. },
  16524. handleShow(toolIndex, val) {
  16525. let mk = `markSco${toolIndex}${val}`;
  16526. // console.log(mk);
  16527. this.$refs[mk][0].getData();
  16528. },
  16529. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16530. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16531. // console.log('this.AIloading',this.AIloading)
  16532. let jude = false;
  16533. this.AIloading.forEach((e, index) => {
  16534. if (index == tidx) {
  16535. e.forEach(k => {
  16536. if (k.loading == true) jude = true;
  16537. });
  16538. }
  16539. });
  16540. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16541. if (val) return;
  16542. // console.log(uname,worksStudent,uid,tidx,titlist)
  16543. this.markScoreTit = titlist;
  16544. this.markScoreUid = uid;
  16545. this.toolListS = toolList;
  16546. this.markScoretoolIndex = tidx;
  16547. this.markScoreworksStudent = worksStudent;
  16548. this.markfullscreen = false;
  16549. this.markScoreVisible = true;
  16550. if (this.tType == 1) {
  16551. this.insertMemorandum(
  16552. `查看<span class="variable">${uname}</span>的作业`
  16553. );
  16554. }
  16555. },
  16556. // 点击markScore显示评分框
  16557. markScoreDig(data) {
  16558. // console.log('data',data)
  16559. let jude = false;
  16560. this.AIloading.forEach((e, index) => {
  16561. if (index == data.val2) {
  16562. e.forEach(k => {
  16563. if (k.loading == true) jude = true;
  16564. });
  16565. }
  16566. });
  16567. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16568. this.markScoreTit = data.tit;
  16569. this.markScoreUid = data.val;
  16570. this.markScoretoolIndex = data.val2;
  16571. this.markfullscreen = false;
  16572. this.markScoreVisible = true;
  16573. this.insertMemorandum(
  16574. `查看<span class="variable">${data.uname}</span>的作业`
  16575. );
  16576. },
  16577. // 刷新其他组件分数
  16578. refreshOther(v) {
  16579. // console.log('v',v)
  16580. this.AIloading[v.tid].forEach((e, i) => {
  16581. if (i == v.wid) {
  16582. e.loading = false;
  16583. }
  16584. });
  16585. // this.worksStudent.forEach((e,index)=>{
  16586. // if(toolIndex != index){
  16587. // e.forEach((i,inx)=>{
  16588. // let mk = `markSco${index}${inx}`
  16589. // this.$refs[mk][0].getData()
  16590. // })
  16591. // }
  16592. // })
  16593. },
  16594. updateDocSco(payload) {
  16595. // console.log('payload',payload)
  16596. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16597. },
  16598. gx() {
  16599. this.$forceUpdate();
  16600. },
  16601. isUpdateCorrect(t, p) {
  16602. if (this.greyType == false) {
  16603. this.isUpdateText = t;
  16604. this.greyType = true;
  16605. } else {
  16606. if (p == 1) {
  16607. this.newEnglishList.engText = this.isUpdateText;
  16608. } else if (p == 2) {
  16609. this.oldEnglishJson1.engText = this.isUpdateText;
  16610. } else if (p == 3) {
  16611. this.newEnglishList.engText = this.isUpdateText;
  16612. } else {
  16613. this.newEnglishList1[
  16614. this.newEngIndex
  16615. ].cWork.engText = this.isUpdateText;
  16616. }
  16617. this.greyType = false;
  16618. }
  16619. },
  16620. aiCorrect(t, p) {
  16621. let aiText = "";
  16622. const loading = this.$loading.service({
  16623. background: "rgba(255, 255, 255)",
  16624. target: document.querySelectorAll(".loadingText")[0]
  16625. });
  16626. let param = {
  16627. model: "gpt-3.5-turbo",
  16628. temperature: 0,
  16629. max_tokens: 2048,
  16630. top_p: 1,
  16631. frequency_penalty: 0,
  16632. presence_penalty: 0,
  16633. messages: [
  16634. {
  16635. role: "user",
  16636. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  16637. }
  16638. ],
  16639. uid: this.userid,
  16640. stream: false
  16641. };
  16642. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16643. res => {
  16644. if (
  16645. res.data.FunctionResponse &&
  16646. res.data.FunctionResponse.result &&
  16647. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16648. ) {
  16649. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16650. return;
  16651. }
  16652. aiText = res.data.FunctionResponse.choices[0].message.content;
  16653. aiText = aiText.replace(/%/g, "%25");
  16654. // let w = "";
  16655. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16656. // for(var k = 0;k<a.length;k++){
  16657. // //diffWordsWithSpace
  16658. // if(a.length > 1){
  16659. // if(a[k].added == true){
  16660. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16661. // }else if(a[k].removed == true){
  16662. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16663. // }else{
  16664. // w += '<span>' + a[k].value + '</span>';
  16665. // }
  16666. // }else{
  16667. // if(p == 1){
  16668. // w = this.newEnglishList.engText;
  16669. // }else if(p == 2){
  16670. // w = this.oldEnglishJson1.engText;
  16671. // }else if(p == 3){
  16672. // w = this.newEnglishList.engText;
  16673. // }else{
  16674. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16675. // }
  16676. // }
  16677. // }
  16678. if (p == 1) {
  16679. this.newEnglishList.engText = aiText;
  16680. } else if (p == 2) {
  16681. this.oldEnglishJson1.engText = aiText;
  16682. } else if (p == 3) {
  16683. this.newEnglishList.engText = aiText;
  16684. } else {
  16685. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16686. }
  16687. loading.close();
  16688. },
  16689. err => {
  16690. console.log(err);
  16691. loading.close();
  16692. }
  16693. );
  16694. },
  16695. addToolChoose() {
  16696. if (!this.checktoolArray.length) {
  16697. this.$message.error("请选择要添加的任务");
  16698. return;
  16699. }
  16700. if (
  16701. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16702. this.taskCount
  16703. ].toolChoose[0].tool.length
  16704. ) {
  16705. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16706. this.taskCount
  16707. ].toolChoose[0].tool = this.checktoolArray;
  16708. } else {
  16709. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16710. this.taskCount
  16711. ].toolChoose.push({
  16712. tool: this.checktoolArray,
  16713. toolDetail: "",
  16714. toolType: 0,
  16715. askCount: 1,
  16716. askTitle: "",
  16717. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16718. });
  16719. }
  16720. let params = [
  16721. {
  16722. cid: this.id,
  16723. chapters: JSON.stringify(this.chapInfoList),
  16724. uid: this.userid,
  16725. unitIndex: this.courseType
  16726. }
  16727. ];
  16728. this.ajax
  16729. .post(this.$store.state.api + "updateWorkNew4", params)
  16730. .then(res => {
  16731. this.$message({
  16732. message: "添加成功",
  16733. type: "success"
  16734. });
  16735. this.checktoolArray = [];
  16736. this.getCourseDetail(2);
  16737. this.checkBz(
  16738. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16739. this.taskCount
  16740. ].toolChoose.length - 1
  16741. );
  16742. this.toolDialogVisible = false;
  16743. this.refreshCourse();
  16744. this.$forceUpdate();
  16745. })
  16746. .catch(err => {
  16747. console.error(err);
  16748. });
  16749. },
  16750. checkBz(index) {
  16751. this.isUpdateToolDetail = false;
  16752. this.$forceUpdate();
  16753. setTimeout(() => {
  16754. document.scrollingElement.scrollTop =
  16755. document.querySelectorAll(".filebox")[index].offsetTop +
  16756. document.querySelector(".student_body").offsetTop;
  16757. }, 500);
  16758. },
  16759. updateToolDetail(i, type) {
  16760. if (
  16761. !this.isUpdateToolDetail1 &&
  16762. type == 2 &&
  16763. (this.courseDetail.userid == this.userid ||
  16764. (this.courseDetail.course_teacher &&
  16765. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  16766. ) {
  16767. this.toolDetailIndex = i;
  16768. this.isUpdateToolDetail1 = true;
  16769. setTimeout(() => {
  16770. this.updateToolDetailInner = JSON.parse(
  16771. JSON.stringify(
  16772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16773. this.taskCount
  16774. ].toolChoose[i].toolDetail
  16775. )
  16776. );
  16777. document.querySelector(".checkTextArea").focus();
  16778. }, 0);
  16779. } else if (this.isUpdateToolDetail1 && type != 2) {
  16780. // this.toolDetailIndex = i;
  16781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16782. this.taskCount
  16783. ].toolChoose[i].toolDetail = JSON.parse(
  16784. JSON.stringify(this.updateToolDetailInner)
  16785. );
  16786. let params = [
  16787. {
  16788. cid: this.id,
  16789. chapters: JSON.stringify(this.chapInfoList),
  16790. uid: this.userid,
  16791. unitIndex: this.courseType
  16792. }
  16793. ];
  16794. this.ajax
  16795. .post(this.$store.state.api + "updateWorkNew4", params)
  16796. .then(res => {
  16797. this.isUpdateToolDetail1 = false;
  16798. this.$message({
  16799. message: "修改成功",
  16800. type: "success"
  16801. });
  16802. this.toolDetailIndex = null;
  16803. this.updateToolDetailInner = "";
  16804. this.getCourseDetail(2);
  16805. this.$forceUpdate();
  16806. })
  16807. .catch(err => {
  16808. console.error(err);
  16809. });
  16810. } else if (this.isUpdateToolDetail1 && type == 2) {
  16811. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16812. this.taskCount
  16813. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16814. JSON.stringify(this.updateToolDetailInner)
  16815. );
  16816. let params = [
  16817. {
  16818. cid: this.id,
  16819. chapters: JSON.stringify(this.chapInfoList),
  16820. uid: this.userid,
  16821. unitIndex: this.courseType
  16822. }
  16823. ];
  16824. this.ajax
  16825. .post(this.$store.state.api + "updateWorkNew4", params)
  16826. .then(res => {
  16827. this.$message({
  16828. message: "修改成功",
  16829. type: "success"
  16830. });
  16831. this.toolDetailIndex = i;
  16832. this.isUpdateToolDetail1 = true;
  16833. setTimeout(() => {
  16834. this.updateToolDetailInner = JSON.parse(
  16835. JSON.stringify(
  16836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16837. this.taskCount
  16838. ].toolChoose[i].toolDetail
  16839. )
  16840. );
  16841. document.querySelector(".checkTextArea").focus();
  16842. }, 0);
  16843. this.getCourseDetail(2);
  16844. this.$forceUpdate();
  16845. })
  16846. .catch(err => {
  16847. console.error(err);
  16848. });
  16849. }
  16850. },
  16851. jumpGj(i, j, k, l) {
  16852. this.refreshAssembly();
  16853. for (var z = 0; z < this.navList.length; z++) {
  16854. for (var q = 0; q < this.navList[z].task.length; q++) {
  16855. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16856. this.navList[z].task[q].tool[w].isTool = false;
  16857. }
  16858. }
  16859. }
  16860. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  16861. .isTool;
  16862. var a = document.scrollingElement;
  16863. let target = document.querySelector(`#gj${k}`);
  16864. if (target) {
  16865. // target.scrollIntoView(true);
  16866. // setTimeout(() => {
  16867. // a.scrollTop = a.scrollTop - 150;
  16868. // }, 0);
  16869. target.scrollIntoView();
  16870. setTimeout(()=>{
  16871. let scrollBody = document.querySelector('.body_student').parentElement
  16872. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16873. }, 0);
  16874. }
  16875. this.navId = "";
  16876. let flag = this.courseType == i;
  16877. let flag2 = this.taskCount == j;
  16878. if (l) {
  16879. this.courseType = i;
  16880. // this.navId = l;
  16881. this.taskCount = j;
  16882. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16883. this.selectPz();
  16884. this.getHomeWork();
  16885. this.getCourseDetail(2);
  16886. if (flag) {
  16887. if (flag2) {
  16888. this.insertMemorandum(
  16889. `选择<span class="variable">工具${k + 1}:${
  16890. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16891. }</span>`
  16892. );
  16893. } else {
  16894. this.insertMemorandum(
  16895. `选择<span class="variable">任务${j + 1}${
  16896. this.navList[i].task[j].taskName
  16897. ? ":" + this.navList[i].task[j].taskName
  16898. : ""
  16899. }</span>→<span class="variable">工具${k + 1}:${
  16900. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16901. }</span>`
  16902. );
  16903. }
  16904. } else {
  16905. this.insertMemorandum(
  16906. `选择<span class="variable">阶段${i + 1}${
  16907. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  16908. }</span>→<span class="variable">任务${j + 1}${
  16909. this.navList[i].task[j].taskName
  16910. ? ":" + this.navList[i].task[j].taskName
  16911. : ""
  16912. }</span>→<span class="variable">工具${k + 1}:${
  16913. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16914. }</span>`
  16915. );
  16916. }
  16917. }
  16918. },
  16919. addTools2(i) {
  16920. if (i == 4) {
  16921. // this.openTools2(4);
  16922. this.$message.error("暂未开放");
  16923. return;
  16924. }
  16925. if (i == 45) {
  16926. // this.openTools2(45);
  16927. this.$message.error("暂未开放");
  16928. return;
  16929. }
  16930. if (i == 47) {
  16931. // this.openTools2(47);
  16932. this.$message.error("暂未开放");
  16933. return;
  16934. }
  16935. if (i == 49) {
  16936. // this.openTools2(49);
  16937. this.$message.error("暂未开放");
  16938. return;
  16939. }
  16940. if (i == 62) {
  16941. // this.openTools(itemTaskIndex, 62, toolIndex);
  16942. this.$message.error("暂未开放");
  16943. return;
  16944. }
  16945. if (i == 15) {
  16946. // this.openTools(itemTaskIndex, 15, toolIndex);
  16947. this.$message.error("暂未开放");
  16948. return;
  16949. }
  16950. if (i == 40) {
  16951. // this.openTools(itemTaskIndex, 40, toolIndex);
  16952. this.$message.error("暂未开放");
  16953. return;
  16954. }
  16955. if (i == 41) {
  16956. // this.openTools(itemTaskIndex, 41, toolIndex);
  16957. this.$message.error("暂未开放");
  16958. return;
  16959. }
  16960. if (i == 42) {
  16961. // this.openTools(itemTaskIndex, 42, toolIndex);
  16962. this.$message.error("暂未开放");
  16963. return;
  16964. }
  16965. if (this.checktoolArray.length > 0) {
  16966. if (this.checktoolArray.indexOf(i) != -1) {
  16967. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16968. } else {
  16969. this.checktoolArray = [];
  16970. this.checktoolArray.push(i);
  16971. }
  16972. } else {
  16973. this.checktoolArray.push(i);
  16974. }
  16975. this.$forceUpdate();
  16976. },
  16977. jump() {
  16978. window.parent.postMessage({ tools: "43" }, "*");
  16979. },
  16980. getUpdateMore(f, checkboxList, searchTN, index) {
  16981. this.dialogVisibleMember = f;
  16982. this.checkboxList = checkboxList;
  16983. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16984. this.plIndex = index;
  16985. },
  16986. setPlname(a) {
  16987. if (this.plworkFile.length) {
  16988. this.plworkFile[this.plIndex].username = a;
  16989. } else {
  16990. this.worksSName = a;
  16991. }
  16992. this.dialogVisibleMember = false;
  16993. },
  16994. previewImg(url, w) {
  16995. this.$hevueImgPreview(url);
  16996. if (w) {
  16997. this.insertMemorandum(
  16998. `查看<span class="variable">${w.sName}</span>的作业`
  16999. );
  17000. }
  17001. },
  17002. checkImg(list) {
  17003. if (!list.length) {
  17004. return;
  17005. }
  17006. this.$hevueImgPreview({
  17007. multiple: true, // 开启多图预览模式
  17008. imgList: list // 需要预览的多图数组
  17009. });
  17010. },
  17011. change(val) {
  17012. console.log(val);
  17013. },
  17014. goTo(path) {
  17015. this.$router.push(path);
  17016. },
  17017. handlePictureCardPreview(url) {
  17018. this.dialogImageUrl = url;
  17019. this.pictureDialog = true;
  17020. },
  17021. clean(type) {
  17022. if (type == 1) {
  17023. this.studyJuri[0].cover.splice(0, 1);
  17024. } else if (type == 2) {
  17025. this.studyJuri[0].upVedio.splice(0, 1);
  17026. } else {
  17027. this.studyJuri[0].upFile.splice(0, 1);
  17028. }
  17029. },
  17030. clean2(index) {
  17031. this.plworkFile.splice(index, 1);
  17032. },
  17033. handleClose(done) {
  17034. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17035. this.videoDetail.sources[0].src = "";
  17036. }
  17037. this.commentIndexJson = {};
  17038. done();
  17039. },
  17040. fullTools() {
  17041. this.full = !this.full;
  17042. },
  17043. imgChange(file, fileList, type) {
  17044. if (type == 1) {
  17045. var _tmp = this.studyJuri[0].cover;
  17046. } else if (type == 2) {
  17047. var _tmp = this.studyJuri[0].upVedio;
  17048. } else {
  17049. var _tmp = this.studyJuri[0].upFile;
  17050. }
  17051. this.noneBtnImg = _tmp.length >= 1;
  17052. },
  17053. setContent(bool) {
  17054. this.contentDialog = bool;
  17055. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17056. document.querySelector(".workd_media").style.height = "650px";
  17057. } else if (document.querySelector(".workd_media")) {
  17058. document.querySelector(".workd_media").style.height = "auto";
  17059. }
  17060. },
  17061. setContent2(bool) {
  17062. this.mlDialog = bool;
  17063. if (
  17064. bool &&
  17065. this.contentDialog &&
  17066. document.querySelector(".workd_media")
  17067. ) {
  17068. document.querySelector(".workd_media").style.height = "650px";
  17069. } else if (document.querySelector(".workd_media")) {
  17070. document.querySelector(".workd_media").style.height = "auto";
  17071. }
  17072. },
  17073. openToolAll() {
  17074. this.toolDialogVisible = true;
  17075. },
  17076. addImg(e) {
  17077. var el = e.currentTarget;
  17078. // this.$message.success('触发上传')
  17079. el.getElementsByTagName("input")[0].click();
  17080. e.target.value = "";
  17081. },
  17082. addSelectAnswer() {
  17083. let params = [
  17084. {
  17085. uid: this.userid,
  17086. cid: this.id,
  17087. stage: this.courseType,
  17088. task: this.taskCount,
  17089. tool: this.toolindex,
  17090. content: this.selectAnswer.answer,
  17091. type: 7
  17092. }
  17093. ];
  17094. this.ajax
  17095. .post(this.$store.state.api + "addCourseWorks", params)
  17096. .then(res => {
  17097. this.$message({
  17098. message: "提交成功",
  17099. type: "success"
  17100. });
  17101. this.dialogVisibleSelect = false;
  17102. // this.selectAnswer = {};
  17103. this.selectSWorks();
  17104. this.selectStudent();
  17105. })
  17106. .catch(err => {
  17107. this.$message.error("提交失败");
  17108. console.error(err);
  17109. });
  17110. },
  17111. addSelectAnswerTeacher() {
  17112. let params = [
  17113. {
  17114. uid: this.sStudent.userid,
  17115. cid: this.id,
  17116. stage: this.courseType,
  17117. task: this.taskCount,
  17118. tool: this.toolindex,
  17119. content: this.selectAnswer.answer,
  17120. type: 7
  17121. }
  17122. ];
  17123. this.ajax
  17124. .post(this.$store.state.api + "addCourseWorks", params)
  17125. .then(res => {
  17126. this.$message({
  17127. message: "提交成功",
  17128. type: "success"
  17129. });
  17130. this.dialogVisibleSelectTeacher = false;
  17131. // this.selectAnswer = {};
  17132. this.selectSWorks();
  17133. this.selectStudent();
  17134. })
  17135. .catch(err => {
  17136. this.$message.error("提交失败");
  17137. console.error(err);
  17138. });
  17139. },
  17140. addSenWorks() {
  17141. for (var i = 0; i < this.sentenceList.length; i++) {
  17142. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17143. if (
  17144. this.sentenceList[i].chooseSenList[j] == undefined ||
  17145. this.sentenceList[i].chooseSenList[j] == ""
  17146. ) {
  17147. this.$message.error("请将答案填写完整!");
  17148. return;
  17149. }
  17150. }
  17151. }
  17152. let params = [
  17153. {
  17154. uid: this.userid,
  17155. cid: this.id,
  17156. stage: this.courseType,
  17157. task: this.taskCount,
  17158. tool: this.toolindex,
  17159. content: JSON.stringify(this.sentenceList),
  17160. type: 9
  17161. }
  17162. ];
  17163. this.ajax
  17164. .post(this.$store.state.api + "addCourseWorks", params)
  17165. .then(res => {
  17166. this.$message({
  17167. message: "提交成功",
  17168. type: "success"
  17169. });
  17170. this.dialogVisibleSentence = false;
  17171. // this.selectAnswer = {};
  17172. this.selectSWorks();
  17173. this.selectStudent();
  17174. })
  17175. .catch(err => {
  17176. this.$message.error("提交失败");
  17177. console.error(err);
  17178. });
  17179. },
  17180. addSenWorksTeacher() {
  17181. for (var i = 0; i < this.sentenceList.length; i++) {
  17182. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17183. if (
  17184. this.sentenceList[i].chooseSenList[j] == undefined ||
  17185. this.sentenceList[i].chooseSenList[j] == ""
  17186. ) {
  17187. this.$message.error("请将答案填写完整!");
  17188. return;
  17189. }
  17190. }
  17191. }
  17192. let params = [
  17193. {
  17194. uid: this.sStudent.userid,
  17195. cid: this.id,
  17196. stage: this.courseType,
  17197. task: this.taskCount,
  17198. tool: this.toolindex,
  17199. content: JSON.stringify(this.sentenceList),
  17200. type: 9
  17201. }
  17202. ];
  17203. this.ajax
  17204. .post(this.$store.state.api + "addCourseWorks", params)
  17205. .then(res => {
  17206. this.$message({
  17207. message: "提交成功",
  17208. type: "success"
  17209. });
  17210. this.dialogVisibleSentenceTeacher = false;
  17211. // this.selectAnswer = {};
  17212. this.selectSWorks();
  17213. this.selectStudent();
  17214. })
  17215. .catch(err => {
  17216. this.$message.error("提交失败");
  17217. console.error(err);
  17218. });
  17219. },
  17220. returnTableText() {
  17221. this.$confirm("确定还原此模板吗?", "提示", {
  17222. confirmButtonText: "确定",
  17223. cancelButtonText: "取消",
  17224. type: "warning"
  17225. })
  17226. .then(() => {
  17227. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17228. })
  17229. .catch(() => {});
  17230. },
  17231. addTableWorks() {
  17232. let params = [
  17233. {
  17234. uid: this.userid,
  17235. cid: this.id,
  17236. stage: this.courseType,
  17237. task: this.taskCount,
  17238. tool: this.toolindex,
  17239. content: JSON.stringify(this.tableJson),
  17240. type: 10
  17241. }
  17242. ];
  17243. this.ajax
  17244. .post(this.$store.state.api + "addCourseWorks", params)
  17245. .then(res => {
  17246. this.$message({
  17247. message: "提交成功",
  17248. type: "success"
  17249. });
  17250. this.dialogVisibleTable = false;
  17251. // this.selectAnswer = {};
  17252. this.selectSWorks();
  17253. this.selectStudent();
  17254. })
  17255. .catch(err => {
  17256. this.$message.error("提交失败");
  17257. console.error(err);
  17258. });
  17259. },
  17260. tableRowClassName({ row, rowIndex }) {
  17261. if ((rowIndex + 1) % 2 === 0) {
  17262. return "even_row";
  17263. } else {
  17264. return "";
  17265. }
  17266. },
  17267. addTableWorksTeacher() {
  17268. let params = [
  17269. {
  17270. uid: this.sStudent.userid,
  17271. cid: this.id,
  17272. stage: this.courseType,
  17273. task: this.taskCount,
  17274. tool: this.toolindex,
  17275. content: JSON.stringify(this.tableJson),
  17276. type: 10
  17277. }
  17278. ];
  17279. this.ajax
  17280. .post(this.$store.state.api + "addCourseWorks", params)
  17281. .then(res => {
  17282. this.$message({
  17283. message: "提交成功",
  17284. type: "success"
  17285. });
  17286. this.dialogVisibleTableTeacher = false;
  17287. // this.selectAnswer = {};
  17288. this.selectSWorks();
  17289. this.selectStudent();
  17290. })
  17291. .catch(err => {
  17292. this.$message.error("提交失败");
  17293. console.error(err);
  17294. });
  17295. },
  17296. returnWordText() {
  17297. this.$confirm("确定还原此模板吗?", "提示", {
  17298. confirmButtonText: "确定",
  17299. cancelButtonText: "取消",
  17300. type: "warning"
  17301. })
  17302. .then(() => {
  17303. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17304. })
  17305. .catch(() => {});
  17306. },
  17307. addWordWorks() {
  17308. let params = [
  17309. {
  17310. uid: this.userid,
  17311. cid: this.id,
  17312. stage: this.courseType,
  17313. task: this.taskCount,
  17314. tool: this.toolindex,
  17315. content: JSON.stringify(this.wordJson),
  17316. type: 13,
  17317. atool: 52
  17318. }
  17319. ];
  17320. this.ajax
  17321. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17322. .then(res => {
  17323. this.$message({
  17324. message: "提交成功",
  17325. type: "success"
  17326. });
  17327. this.dialogVisibleWord = false;
  17328. // this.selectAnswer = {};
  17329. this.selectSWorks();
  17330. this.selectStudent();
  17331. })
  17332. .catch(err => {
  17333. this.$message.error("提交失败");
  17334. console.error(err);
  17335. });
  17336. },
  17337. addWordWorksTeacher() {
  17338. let params = [
  17339. {
  17340. uid: this.sStudent.userid,
  17341. cid: this.id,
  17342. stage: this.courseType,
  17343. task: this.taskCount,
  17344. tool: this.toolindex,
  17345. content: JSON.stringify(this.wordJson),
  17346. type: 13,
  17347. atool: 52
  17348. }
  17349. ];
  17350. this.ajax
  17351. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17352. .then(res => {
  17353. this.$message({
  17354. message: "提交成功",
  17355. type: "success"
  17356. });
  17357. this.dialogVisibleWordTeacher = false;
  17358. // this.selectAnswer = {};
  17359. this.selectSWorks();
  17360. this.selectStudent();
  17361. })
  17362. .catch(err => {
  17363. this.$message.error("提交失败");
  17364. console.error(err);
  17365. });
  17366. },
  17367. addCourseWorksCopy(i) {
  17368. let arr = this.workStudent[this.toolindex].filter(e => {
  17369. return (e.userid = this.userid);
  17370. });
  17371. if (arr.length > 0) {
  17372. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17373. confirmButtonText: "确定",
  17374. cancelButtonText: "取消",
  17375. type: "warning"
  17376. })
  17377. .then(() => {
  17378. this.addCourseWorks(i);
  17379. })
  17380. .catch(() => {});
  17381. } else {
  17382. this.addCourseWorks(i);
  17383. }
  17384. },
  17385. addCourseWorks(i) {
  17386. var typesql;
  17387. if (this.fileType === 0) {
  17388. typesql = 1;
  17389. } else if (this.fileType === 1) {
  17390. typesql = 4;
  17391. } else if (this.fileType === 2) {
  17392. typesql = 5;
  17393. } else if (this.fileType === 3) {
  17394. typesql = 12;
  17395. }
  17396. if (!this.studyJuri[0].cover[0].url) {
  17397. this.$message.error("请上传文件");
  17398. return;
  17399. }
  17400. let params = [
  17401. {
  17402. uid: this.userid,
  17403. cid: this.id,
  17404. stage: this.courseType,
  17405. task: i,
  17406. tool: this.toolindex,
  17407. content: this.studyJuri[0].cover[0].url,
  17408. type: typesql
  17409. }
  17410. ];
  17411. this.ajax
  17412. .post(this.$store.state.api + "addCourseWorksR1", params)
  17413. .then(res => {
  17414. this.$message({
  17415. message: "提交成功",
  17416. type: "success"
  17417. });
  17418. this.studyJuri[0].cover = [];
  17419. this.dialogVisible = false;
  17420. this.getCourseDetail(2);
  17421. })
  17422. .catch(err => {
  17423. this.$message.error("提交失败");
  17424. console.error(err);
  17425. });
  17426. },
  17427. addCourseWorksPl(i) {
  17428. let _files = this.plworkFile;
  17429. var c = 1;
  17430. for (var k = 0; k < _files.length; k++) {
  17431. if (!_files[k].username) {
  17432. c = 2;
  17433. }
  17434. }
  17435. if (c == 2) {
  17436. this.$message.error("请填写学生姓名");
  17437. return;
  17438. }
  17439. let params = [
  17440. {
  17441. ateacher: this.userid,
  17442. cid: this.id,
  17443. stage: this.courseType,
  17444. task: i,
  17445. tool: this.toolindex,
  17446. content: JSON.stringify(_files)
  17447. }
  17448. ];
  17449. this.ajax
  17450. .post(this.$store.state.api + "addCourseWorksPl", params)
  17451. .then(res => {
  17452. this.$message({
  17453. message: "提交成功",
  17454. type: "success"
  17455. });
  17456. this.plworkFile = [];
  17457. this.dialogVisiblePl = false;
  17458. this.getCourseDetail(2);
  17459. })
  17460. .catch(err => {
  17461. this.$message.error("提交失败");
  17462. console.error(err);
  17463. });
  17464. },
  17465. addCourseWorks2(i) {
  17466. var typesql;
  17467. if (this.fileType === 0) {
  17468. typesql = 0;
  17469. } else if (this.fileType === 1) {
  17470. typesql = 1;
  17471. } else if (this.fileType === 2) {
  17472. typesql = 3;
  17473. } else if (this.fileType === 3) {
  17474. typesql = 12;
  17475. }
  17476. if (!this.studyJuri[0].cover[0].url) {
  17477. this.$message.error("请上传文件");
  17478. return;
  17479. }
  17480. let params = [
  17481. {
  17482. uid: this.userid,
  17483. cid: this.id,
  17484. stage: this.courseType,
  17485. task: i,
  17486. tool: this.toolindex,
  17487. content: JSON.stringify({
  17488. type: typesql,
  17489. groupIndex: this.groupIndex,
  17490. url: this.studyJuri[0].cover[0].url
  17491. }),
  17492. type: 11,
  17493. atool: 49,
  17494. text: ""
  17495. }
  17496. ];
  17497. this.ajax
  17498. .post(this.$store.state.api + "addCourseWorks5", params)
  17499. .then(res => {
  17500. this.$message({
  17501. message: "提交成功",
  17502. type: "success"
  17503. });
  17504. this.studyJuri[0].cover = [];
  17505. this.dialogVisibleGroupWork = false;
  17506. this.getCourseDetail(2);
  17507. })
  17508. .catch(err => {
  17509. this.$message.error("提交失败");
  17510. console.error(err);
  17511. });
  17512. },
  17513. addEnglishWork() {
  17514. this.myAnList = this.$refs["engJson"].myAnswerList;
  17515. if (
  17516. !this.myAnList.engTitle ||
  17517. !this.myAnList.engText ||
  17518. this.myAnList.engTitle == "" ||
  17519. this.myAnList.engText == ""
  17520. ) {
  17521. this.$message.error("请输入作文标题和正文!");
  17522. return;
  17523. }
  17524. let params = [
  17525. {
  17526. uid: this.userid,
  17527. cid: this.id,
  17528. stage: this.courseType,
  17529. task: this.taskCount,
  17530. tool: this.englishToolIndex,
  17531. content: JSON.stringify(this.myAnList),
  17532. type: 16,
  17533. atool: 69,
  17534. text: ""
  17535. }
  17536. ];
  17537. this.ajax
  17538. .post(this.$store.state.api + "addCourseWorks5", params)
  17539. .then(res => {
  17540. this.$message({
  17541. message: "提交成功",
  17542. type: "success"
  17543. });
  17544. this.myAnList = {};
  17545. this.englishList = {};
  17546. this.englishToolIndex = 0;
  17547. this.engDialogVisible = false;
  17548. this.selectSWorks();
  17549. this.selectStudent();
  17550. })
  17551. .catch(err => {
  17552. this.$message.error("提交失败");
  17553. console.error(err);
  17554. });
  17555. },
  17556. addCourseWorksGong(i, data, tool) {
  17557. let params = [
  17558. {
  17559. uid: this.userid,
  17560. cid: this.id,
  17561. stage: this.courseType,
  17562. task: this.taskCount,
  17563. tool: i,
  17564. content: data,
  17565. type: 12,
  17566. atool: tool,
  17567. text: ""
  17568. }
  17569. ];
  17570. this.ajax
  17571. .post(this.$store.state.api + "addCourseWorks5", params)
  17572. .then(res => {
  17573. this.$message({
  17574. message: "提交成功",
  17575. type: "success"
  17576. });
  17577. this.studyJuri[0].cover = [];
  17578. this.selectSWorks();
  17579. this.selectStudent();
  17580. })
  17581. .catch(err => {
  17582. this.$message.error("提交失败");
  17583. console.error(err);
  17584. });
  17585. },
  17586. addCourseWorksGongTeacher(i, data, tool) {
  17587. let params = [
  17588. {
  17589. uid: this.sStudent.userid,
  17590. cid: this.id,
  17591. stage: this.courseType,
  17592. task: this.taskCount,
  17593. tool: i,
  17594. content: data,
  17595. type: 12,
  17596. atool: tool,
  17597. text: ""
  17598. }
  17599. ];
  17600. this.ajax
  17601. .post(this.$store.state.api + "addCourseWorks5", params)
  17602. .then(res => {
  17603. this.$message({
  17604. message: "提交成功",
  17605. type: "success"
  17606. });
  17607. this.studyJuri[0].cover = [];
  17608. this.dialogVisibleWorks = false;
  17609. this.selectSWorks();
  17610. this.selectStudent();
  17611. })
  17612. .catch(err => {
  17613. this.$message.error("提交失败");
  17614. console.error(err);
  17615. });
  17616. },
  17617. addCourseWorksGongPl(i, data, tool, type) {
  17618. let params = [
  17619. {
  17620. uid: this.sStudent.userid,
  17621. cid: this.id,
  17622. stage: this.courseType,
  17623. task: this.taskCount,
  17624. tool: i,
  17625. content: data,
  17626. type: type,
  17627. atool: tool,
  17628. text: ""
  17629. }
  17630. ];
  17631. this.ajax
  17632. .post(this.$store.state.api + "addCourseWorks5", params)
  17633. .then(res => {
  17634. this.$message({
  17635. message: "提交成功",
  17636. type: "success"
  17637. });
  17638. this.studyJuri[0].cover = [];
  17639. this.dialogVisibleWorks = false;
  17640. this.selectSWorks();
  17641. this.selectStudent();
  17642. })
  17643. .catch(err => {
  17644. this.$message.error("提交失败");
  17645. console.error(err);
  17646. });
  17647. },
  17648. addCourseWorksTeacher(i) {
  17649. var typesql;
  17650. if (this.sTool == 32) {
  17651. this.addCourseWorksGongTeacher(
  17652. this.toolindex,
  17653. this.studyJuri[0].cover[0].url,
  17654. this.sTool
  17655. );
  17656. return;
  17657. }
  17658. if (this.fileType === 0) {
  17659. typesql = 1;
  17660. } else if (this.fileType === 1) {
  17661. typesql = 4;
  17662. } else if (this.fileType === 2) {
  17663. typesql = 5;
  17664. } else if (this.fileType === 3) {
  17665. typesql = 12;
  17666. }
  17667. if (this.sTool == 50) {
  17668. this.addCourseWorksGongPl(
  17669. this.toolindex,
  17670. this.studyJuri[0].cover[0].url,
  17671. this.sTool,
  17672. typesql
  17673. );
  17674. return;
  17675. }
  17676. if (!this.studyJuri[0].cover[0].url) {
  17677. this.$message.error("请上传文件");
  17678. return;
  17679. }
  17680. let params = [
  17681. {
  17682. uid: this.sStudent.userid,
  17683. cid: this.id,
  17684. stage: this.courseType,
  17685. task: i,
  17686. tool: this.toolindex,
  17687. content: this.studyJuri[0].cover[0].url,
  17688. type: typesql,
  17689. ateacher: this.userid
  17690. }
  17691. ];
  17692. this.ajax
  17693. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17694. .then(res => {
  17695. this.$message({
  17696. message: "提交成功",
  17697. type: "success"
  17698. });
  17699. this.studyJuri[0].cover = [];
  17700. this.dialogVisibleWorks = false;
  17701. this.getCourseDetail(2);
  17702. })
  17703. .catch(err => {
  17704. this.$message.error("提交失败");
  17705. console.error(err);
  17706. });
  17707. },
  17708. selectUploadStudent(type) {
  17709. const loading = this.$loading.service({
  17710. background: "rgba(255, 255, 255, 0.7)",
  17711. target: document.body
  17712. });
  17713. let params = {
  17714. cid: this.uploadCid,
  17715. oid: this.oid,
  17716. cn: ""
  17717. };
  17718. this.ajax
  17719. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17720. .then(res => {
  17721. loading.close();
  17722. var studentK = [];
  17723. if (this.isWorksS[this.toolindex].length > 0) {
  17724. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17725. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17726. }
  17727. studentK = studentK.join(",");
  17728. }
  17729. this.uploadStudentJuri = res.data[0].filter(el => {
  17730. return studentK.indexOf(el.userid) == -1;
  17731. });
  17732. if (this.worksSName && this.worksSid) {
  17733. this.uploadStudentJuri.push({
  17734. userid: this.worksSid,
  17735. name: this.worksSName
  17736. });
  17737. }
  17738. if (type == 1) {
  17739. this.plworkFile = [];
  17740. this.dialogVisibleSname = true;
  17741. } else if (type == 2) {
  17742. this.dialogVisiblePl = true;
  17743. }
  17744. })
  17745. .catch(err => {
  17746. loading.close();
  17747. console.error(err);
  17748. });
  17749. },
  17750. selectPickStudent() {
  17751. const loading = this.$loading.service({
  17752. background: "rgba(255, 255, 255, 0.7)",
  17753. target: document.body
  17754. });
  17755. let params = {
  17756. cid: this.uploadCid,
  17757. oid: this.oid,
  17758. cn: ""
  17759. };
  17760. this.ajax
  17761. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17762. .then(res => {
  17763. loading.close();
  17764. this.uploadStudentJuri = res.data[0];
  17765. this.dialogVisiblePickPeople = true;
  17766. })
  17767. .catch(err => {
  17768. loading.close();
  17769. console.error(err);
  17770. });
  17771. },
  17772. arrayToArray(arrayo, arrayt) {
  17773. let array1 = arrayo;
  17774. let array2 = arrayt;
  17775. let commonElements = [];
  17776. for (let i = 0; i < array1.length; i++) {
  17777. for (let j = 0; j < array2.length; j++) {
  17778. if (array1[i] === array2[j]) {
  17779. commonElements.push(array1[i]);
  17780. }
  17781. }
  17782. }
  17783. return commonElements;
  17784. },
  17785. selectWorksStudent() {
  17786. let params = {
  17787. oid: this.oid,
  17788. cid: this.courseDetail.juri
  17789. };
  17790. this.ajax
  17791. .get(this.$store.state.api + "selectWorksStudent", params)
  17792. .then(res => {
  17793. var a = res.data[0];
  17794. for (var i = 0; i < this.isWorksS.length; i++) {
  17795. this.noWorksS[i] = [];
  17796. var studentK = [];
  17797. if (this.isWorksS[i].length > 0) {
  17798. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17799. studentK.push(this.isWorksS[i][z].uid);
  17800. }
  17801. studentK = studentK.join(",");
  17802. for (var j = 0; j < a.length; j++) {
  17803. if (studentK.indexOf(a[j].userid) == -1) {
  17804. if (this.tcid) {
  17805. // a[j].classid.indexOf(this.tcid) != -1
  17806. if (
  17807. this.arrayToArray(
  17808. a[j].classid.split(","),
  17809. this.tcid.split(",")
  17810. ).length
  17811. ) {
  17812. this.noWorksS[i].push({
  17813. student: a[j].name,
  17814. userid: a[j].userid
  17815. });
  17816. }
  17817. } else {
  17818. this.noWorksS[i].push({
  17819. student: a[j].name,
  17820. userid: a[j].userid
  17821. });
  17822. }
  17823. }
  17824. }
  17825. } else {
  17826. for (var k = 0; k < a.length; k++) {
  17827. if (this.tcid) {
  17828. if (
  17829. this.arrayToArray(
  17830. a[k].classid.split(","),
  17831. this.tcid.split(",")
  17832. ).length
  17833. ) {
  17834. this.noWorksS[i].push({
  17835. student: a[k].name,
  17836. userid: a[k].userid
  17837. });
  17838. }
  17839. } else {
  17840. this.noWorksS[i].push({
  17841. student: a[k].name,
  17842. userid: a[k].userid
  17843. });
  17844. }
  17845. }
  17846. }
  17847. }
  17848. this.$forceUpdate();
  17849. if (
  17850. Object.keys(this.commentDetail).length &&
  17851. Object.keys(this.commentIndexJson).length &&
  17852. !this.dialogVisibleScore &&
  17853. !this.dialogVisibleENScore
  17854. ) {
  17855. let a = 1;
  17856. let c = this.commentIndexJson;
  17857. if (
  17858. this.commentIndexJson.gindex ||
  17859. this.commentIndexJson.gindex === 0
  17860. ) {
  17861. for (
  17862. var i = 0;
  17863. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17864. i++
  17865. ) {
  17866. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17867. groupA: for (var k = 0; k < _el.length; k++) {
  17868. let el = _el[k];
  17869. if (el.wid == this.commentDetail.wid) {
  17870. a = 2;
  17871. this.commentOther(
  17872. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17873. this.commentIndexJson.toolIndex,
  17874. k,
  17875. this.commentIndexJson.gindex
  17876. );
  17877. break groupA;
  17878. }
  17879. }
  17880. }
  17881. if (a === 1) {
  17882. this.commentDetail = [];
  17883. this.commentIndexJson = {};
  17884. this.commentDialogVisible = false;
  17885. this.$message("此作业已被删除");
  17886. }
  17887. } else {
  17888. if (this.isGroup && this.commentIndexJson.gid) {
  17889. groupA: for (
  17890. var i = 0;
  17891. i < this.courseGroup.group.length;
  17892. i++
  17893. ) {
  17894. let _group = this.courseGroup.group[i];
  17895. if (_group.id == this.commentIndexJson.gid) {
  17896. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17897. for (var k = 0; k < _el2.length; k++) {
  17898. let el2 = _el2[k];
  17899. if (el2.wid == this.commentDetail.wid) {
  17900. a = 2;
  17901. this.commentOther(
  17902. _el2[k],
  17903. this.commentIndexJson.toolIndex,
  17904. k,
  17905. null,
  17906. this.commentIndexJson.gid
  17907. );
  17908. break groupA;
  17909. }
  17910. }
  17911. }
  17912. }
  17913. }
  17914. if (a == 1) {
  17915. for (
  17916. var i = 0;
  17917. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17918. i++
  17919. ) {
  17920. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  17921. i
  17922. ];
  17923. if (el.wid == this.commentDetail.wid) {
  17924. a = 2;
  17925. this.commentOther(
  17926. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17927. this.commentIndexJson.toolIndex,
  17928. i
  17929. );
  17930. break;
  17931. }
  17932. }
  17933. }
  17934. if (a === 1) {
  17935. this.commentDetail = [];
  17936. this.commentIndexJson = {};
  17937. this.commentDialogVisible = false;
  17938. this.$message("此作业已被删除");
  17939. }
  17940. }
  17941. }
  17942. })
  17943. .catch(err => {
  17944. console.error(err);
  17945. });
  17946. },
  17947. selectStudent() {
  17948. //学生查看自己作业
  17949. let params = {
  17950. uid: this.userid,
  17951. cid: this.id,
  17952. s: this.courseType,
  17953. t: this.taskCount
  17954. };
  17955. this.ajax
  17956. .get(this.$store.state.api + "selectStudentWorks", params)
  17957. .then(res => {
  17958. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17959. this.taskCount
  17960. ].toolChoose;
  17961. var b = res.data[0];
  17962. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17963. var y = [
  17964. "AVI",
  17965. "NAVI",
  17966. "MPEG",
  17967. "ASF",
  17968. "MOV",
  17969. "WMV",
  17970. "3GP",
  17971. "RM",
  17972. "RMVB",
  17973. "FLV",
  17974. "F4V",
  17975. "H.264",
  17976. "H.265",
  17977. "REAL VIDEO",
  17978. "MKV",
  17979. "WebM",
  17980. "HDDVD",
  17981. "MP4",
  17982. "MPG",
  17983. "M4V",
  17984. "MGV",
  17985. "OGV",
  17986. "QTM",
  17987. "STR",
  17988. "AMC",
  17989. "DVX",
  17990. "EVO",
  17991. "DAT",
  17992. "OGG",
  17993. "OGM"
  17994. ];
  17995. for (var i = 0; i < a.length; i++) {
  17996. this.workStudent[i] = [];
  17997. for (var j = 0; j < b.length; j++) {
  17998. if (i == b[j].tool) {
  17999. if (
  18000. (b[j].type == 1 ||
  18001. b[j].type == 4 ||
  18002. b[j].type == 5 ||
  18003. b[j].type == 6 ||
  18004. b[j].type == 12 ||
  18005. b[j].type == 7) &&
  18006. a[i].tool[0] != 15 &&
  18007. a[i].tool[0] != 4 &&
  18008. a[i].tool[0] != 45 &&
  18009. a[i].tool[0] != 50 &&
  18010. a[i].tool[0] != 32 &&
  18011. a[i].tool[0] != 57 &&
  18012. a[i].tool[0] != 52 &&
  18013. a[i].tool[0] != 69
  18014. ) {
  18015. if (
  18016. c.indexOf(
  18017. b[j].content
  18018. .split(".")
  18019. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18020. ) != -1 &&
  18021. a[i].tool[0] == 16 &&
  18022. b[j].atool != 50
  18023. ) {
  18024. this.workStudent[i].push({
  18025. works: b[j].content,
  18026. sName: b[j].name,
  18027. score: b[j].score,
  18028. img: b[j].img,
  18029. type: 1,
  18030. time: b[j].time,
  18031. userid: b[j].userid,
  18032. wid: b[j].id
  18033. });
  18034. } else if (
  18035. y.indexOf(
  18036. b[j].content
  18037. .split(".")
  18038. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18039. ) != -1 &&
  18040. a[i].tool[0] == 16 &&
  18041. b[j].atool != 50
  18042. ) {
  18043. this.workStudent[i].push({
  18044. userid: b[j].userid,
  18045. wid: b[j].id,
  18046. works: b[j].content,
  18047. sName: b[j].name,
  18048. score: b[j].score,
  18049. img: b[j].img,
  18050. type: 3,
  18051. time: b[j].time
  18052. });
  18053. } else if (b[j].type == 6 && b[j].atool != 50) {
  18054. this.workStudent[i].push({
  18055. userid: b[j].userid,
  18056. wid: b[j].id,
  18057. works: b[j].content,
  18058. sName: b[j].name,
  18059. score: b[j].score,
  18060. img: b[j].img,
  18061. type: 4,
  18062. time: b[j].time
  18063. });
  18064. } else if (b[j].type == 7 && b[j].atool != 50) {
  18065. this.workStudent[i].push({
  18066. userid: b[j].userid,
  18067. wid: b[j].id,
  18068. works: b[j].content,
  18069. sName: b[j].name,
  18070. score: b[j].score,
  18071. img: b[j].img,
  18072. type: 5,
  18073. time: b[j].time
  18074. });
  18075. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18076. this.workStudent[i].push({
  18077. works: b[j].content,
  18078. sName: b[j].name,
  18079. score: b[j].score,
  18080. img: b[j].img,
  18081. type: 12,
  18082. time: b[j].time,
  18083. userid: b[j].userid,
  18084. wid: b[j].id
  18085. });
  18086. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18087. this.workStudent[i].push({
  18088. works: b[j].content,
  18089. sName: b[j].name,
  18090. score: b[j].score,
  18091. img: b[j].img,
  18092. type: 0,
  18093. time: b[j].time,
  18094. userid: b[j].userid,
  18095. wid: b[j].id
  18096. });
  18097. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18098. this.workStudent[i].push({
  18099. works: b[j].content,
  18100. sName: b[j].name,
  18101. score: b[j].score,
  18102. img: b[j].img,
  18103. type: 0,
  18104. time: b[j].time,
  18105. userid: b[j].userid,
  18106. wid: b[j].id
  18107. });
  18108. }
  18109. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18110. this.workStudent[i].push({
  18111. works: b[j].content,
  18112. sName: b[j].name,
  18113. score: b[j].score,
  18114. img: b[j].img,
  18115. type: 2,
  18116. time: b[j].time,
  18117. userid: b[j].userid,
  18118. wid: b[j].id
  18119. });
  18120. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18121. //问卷
  18122. this.workStudent[i].push({
  18123. works: b[j].content,
  18124. sName: b[j].name,
  18125. score: b[j].score,
  18126. img: b[j].img,
  18127. type: 2,
  18128. time: b[j].time,
  18129. userid: b[j].userid,
  18130. wid: b[j].id
  18131. });
  18132. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18133. //选择题
  18134. this.workStudent[i].push({
  18135. works: b[j].content,
  18136. sName: b[j].name,
  18137. score: b[j].score,
  18138. img: b[j].img,
  18139. type: 8,
  18140. time: b[j].time,
  18141. userid: b[j].userid,
  18142. wid: b[j].id
  18143. });
  18144. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18145. //选择题
  18146. this.workStudent[i].push({
  18147. works: b[j].content,
  18148. sName: b[j].name,
  18149. score: b[j].score,
  18150. img: b[j].img,
  18151. type: 9,
  18152. time: b[j].time,
  18153. userid: b[j].userid,
  18154. wid: b[j].id
  18155. });
  18156. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18157. //选择题
  18158. this.workStudent[i].push({
  18159. works: b[j].content,
  18160. sName: b[j].name,
  18161. score: b[j].score,
  18162. img: b[j].img,
  18163. type: 10,
  18164. time: b[j].time,
  18165. userid: b[j].userid,
  18166. wid: b[j].id
  18167. });
  18168. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18169. //选择题
  18170. this.workStudent[i].push({
  18171. works: b[j].content,
  18172. sName: b[j].name,
  18173. score: b[j].score,
  18174. img: b[j].img,
  18175. type: 13,
  18176. time: b[j].time,
  18177. userid: b[j].userid,
  18178. wid: b[j].id
  18179. });
  18180. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18181. //选择题
  18182. this.workStudent[i].push({
  18183. works: b[j].content,
  18184. sName: b[j].name,
  18185. score: b[j].score,
  18186. img: b[j].img,
  18187. type: 12,
  18188. time: b[j].time,
  18189. userid: b[j].userid,
  18190. wid: b[j].id
  18191. });
  18192. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18193. //选择题
  18194. this.workStudent[i].push({
  18195. works: b[j].content,
  18196. sName: b[j].name,
  18197. score: b[j].score,
  18198. img: b[j].img,
  18199. type: 12,
  18200. time: b[j].time,
  18201. userid: b[j].userid,
  18202. wid: b[j].id
  18203. });
  18204. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18205. //选择题
  18206. this.workStudent[i].push({
  18207. works: b[j].content,
  18208. sName: b[j].name,
  18209. score: b[j].score,
  18210. img: b[j].img,
  18211. type: 15,
  18212. time: b[j].time,
  18213. userid: b[j].userid,
  18214. wid: b[j].id
  18215. });
  18216. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18217. //英语写作
  18218. this.workStudent[i].push({
  18219. works: b[j].content,
  18220. sName: b[j].name,
  18221. score: b[j].score,
  18222. img: b[j].img,
  18223. type: 16,
  18224. time: b[j].time,
  18225. userid: b[j].userid,
  18226. wid: b[j].id,
  18227. aiCode: b[j].aiCode,
  18228. teacherCode: b[j].teacherCode
  18229. });
  18230. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18231. //英语写作
  18232. this.workStudent[i].push({
  18233. works: b[j].content,
  18234. sName: b[j].name,
  18235. score: b[j].score,
  18236. img: b[j].img,
  18237. type: 17,
  18238. time: b[j].time,
  18239. userid: b[j].userid,
  18240. wid: b[j].id
  18241. });
  18242. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18243. //英语口语
  18244. this.workStudent[i].push({
  18245. works: b[j].content,
  18246. sName: b[j].name,
  18247. score: b[j].score,
  18248. img: b[j].img,
  18249. type: 14,
  18250. time: b[j].time,
  18251. userid: b[j].userid,
  18252. wid: b[j].id
  18253. });
  18254. }
  18255. }
  18256. }
  18257. }
  18258. })
  18259. .catch(err => {
  18260. console.error(err);
  18261. });
  18262. },
  18263. openVideo(w) {
  18264. this.videoDetail = {};
  18265. this.playerOptions1.sources[0].src = w.works;
  18266. this.videoDetail = this.playerOptions1;
  18267. this.videoVisible = true;
  18268. },
  18269. isLikes(wid, uid, t, c, isLikes, sName) {
  18270. if (isLikes == false) {
  18271. let params = [
  18272. {
  18273. wid: wid,
  18274. lid: uid,
  18275. t: t,
  18276. c: c
  18277. }
  18278. ];
  18279. this.ajax
  18280. .post(this.$store.state.api + "insertComment", params)
  18281. .then(res => {
  18282. this.$message({
  18283. message: "点赞成功",
  18284. type: "success"
  18285. });
  18286. this.selectSWorks();
  18287. this.selectStudent();
  18288. this.insertMemorandum(
  18289. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18290. );
  18291. })
  18292. .catch(err => {
  18293. this.$message.error("点赞失败");
  18294. console.error(err);
  18295. });
  18296. } else {
  18297. let params = {
  18298. wid: wid,
  18299. lid: uid,
  18300. type: t
  18301. };
  18302. this.ajax
  18303. .get(this.$store.state.api + "deleteComment", params)
  18304. .then(res => {
  18305. this.$message({
  18306. message: "取消点赞成功",
  18307. type: "success"
  18308. });
  18309. this.selectSWorks();
  18310. this.selectStudent();
  18311. })
  18312. .catch(err => {
  18313. console.error(err);
  18314. });
  18315. }
  18316. },
  18317. deleteComment(wid) {
  18318. this.$confirm("确定删除此评论吗?", "提示", {
  18319. confirmButtonText: "确定",
  18320. cancelButtonText: "取消",
  18321. type: "warning"
  18322. })
  18323. .then(() => {
  18324. let params = {
  18325. id: wid
  18326. };
  18327. this.ajax
  18328. .get(this.$store.state.api + "deleteComment2", params)
  18329. .then(res => {
  18330. this.$message({
  18331. message: "删除评论成功",
  18332. type: "success"
  18333. });
  18334. this.selectSWorks();
  18335. this.selectStudent();
  18336. })
  18337. .catch(err => {
  18338. console.error(err);
  18339. });
  18340. })
  18341. .catch(() => {});
  18342. },
  18343. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18344. this.commentIndexJson = {
  18345. toolIndex: toolIndex,
  18346. wIndex: wIndex,
  18347. gindex: gindex,
  18348. gid: gid
  18349. };
  18350. this.commentDialogVisible = true;
  18351. // console.log('wwwwww',w)
  18352. if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18353. return;
  18354. this.commentDetailCopy = w.works;
  18355. this.commentDetail = [];
  18356. this.commentDetail = w;
  18357. if (w.works && w.type == 1) {
  18358. // this.pptImgUrl = "";
  18359. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18360. if (
  18361. a.indexOf(
  18362. w.works
  18363. .split(".")
  18364. [w.works.split(".").length - 1].toLocaleUpperCase()
  18365. ) != -1
  18366. ) {
  18367. let _uuurl = await this.checkLink(w.works);
  18368. this.pptImgUrl =
  18369. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18370. encodeURIComponent(_uuurl);
  18371. this.showPDF = false;
  18372. } else if (
  18373. w.works
  18374. .split(".")
  18375. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18376. ) {
  18377. this.pptImgUrl = w.works;
  18378. this.showPDF = true;
  18379. }
  18380. } else if (w.works && w.type == 3) {
  18381. this.videoDetail = {};
  18382. this.playerOptions1.sources[0].src = w.works;
  18383. this.videoDetail = this.playerOptions1;
  18384. // this.videoVisible = true;
  18385. } else if (w.works && w.type == 4) {
  18386. this.eScore = JSON.parse(w.works);
  18387. this.rateJson = this.chapInfoList[
  18388. this.courseType
  18389. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18390. toolIndex
  18391. ].rateJson;
  18392. } else if (w.works && w.type == 10) {
  18393. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18394. } else if (w.works && w.type == 12) {
  18395. getFile(this.commentDetail.works).then(res => {
  18396. this.commentDetail.works = res.data;
  18397. });
  18398. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18399. } else if (w.works && w.type == 13) {
  18400. this.wordJson = this.chapInfoList[
  18401. this.courseType
  18402. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18403. toolIndex
  18404. ].wordJson;
  18405. }
  18406. },
  18407. async openScore(w, index) {
  18408. this.wScore = 0;
  18409. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18410. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18411. this.commentDetail = [];
  18412. if (w.type == 17) {
  18413. this.dialogVisibleENScore = true;
  18414. } else {
  18415. this.dialogVisibleScore = true;
  18416. }
  18417. this.commentDetail = w;
  18418. if (w.works && w.type == 1) {
  18419. this.pptImgUrl = "";
  18420. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18421. if (
  18422. a.indexOf(
  18423. w.works
  18424. .split(".")
  18425. [w.works.split(".").length - 1].toLocaleUpperCase()
  18426. ) != -1
  18427. ) {
  18428. let _uuurl = await this.checkLink(w.works);
  18429. this.pptImgUrl =
  18430. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18431. encodeURIComponent(_uuurl);
  18432. this.showPDF = false;
  18433. } else if (
  18434. w.works
  18435. .split(".")
  18436. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18437. ) {
  18438. this.pptImgUrl = w.works;
  18439. this.showPDF = true;
  18440. }
  18441. } else if (w.works && w.type == 3) {
  18442. this.videoDetail = {};
  18443. this.playerOptions1.sources[0].src = w.works;
  18444. this.videoDetail = this.playerOptions1;
  18445. } else if (w.type == 17) {
  18446. let englishVoiceJson = {};
  18447. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18448. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18449. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18450. this.taskCount
  18451. ].toolChoose[index].englishVoiceJson
  18452. : {};
  18453. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18454. }
  18455. this.insertMemorandum(
  18456. `查看<span class="variable">${w.sName}</span>的作业`
  18457. );
  18458. },
  18459. addComment(wid, uid, t, detail) {
  18460. if (this.commentText == "") {
  18461. this.$message.error("请输入评论");
  18462. return;
  18463. }
  18464. let params2 = [
  18465. {
  18466. wid: wid,
  18467. lid: uid,
  18468. t: t
  18469. }
  18470. ];
  18471. this.ajax
  18472. .post(this.$store.state.api + "getComment", params2)
  18473. .then(res => {
  18474. if (res.data[0].length > 0) {
  18475. this.$message.error("一个作业只能评论一条");
  18476. } else {
  18477. let params = [
  18478. {
  18479. wid: wid,
  18480. lid: uid,
  18481. t: t,
  18482. c: this.commentText
  18483. }
  18484. ];
  18485. this.ajax
  18486. .post(this.$store.state.api + "insertComment", params)
  18487. .then(res => {
  18488. this.$message({
  18489. message: "评论成功",
  18490. type: "success"
  18491. });
  18492. this.commentText = "";
  18493. this.selectSWorks();
  18494. this.selectStudent();
  18495. this.insertMemorandum(
  18496. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  18497. );
  18498. })
  18499. .catch(err => {
  18500. this.$message.error("评论失败");
  18501. console.error(err);
  18502. });
  18503. }
  18504. })
  18505. .catch(err => {
  18506. // this.$message.error("评论失败");
  18507. console.error(err);
  18508. });
  18509. },
  18510. scoreWork(wid, sName) {
  18511. if (this.wScore == 0) {
  18512. this.$message.error("请评分");
  18513. return;
  18514. }
  18515. let params = [
  18516. {
  18517. wid: wid,
  18518. score: JSON.stringify({
  18519. wScore: this.wScore,
  18520. detail: this.scoreDetail
  18521. })
  18522. }
  18523. ];
  18524. this.ajax
  18525. .post(this.$store.state.api + "scoreWork", params)
  18526. .then(res => {
  18527. this.$message({
  18528. message: "评分成功",
  18529. type: "success"
  18530. });
  18531. this.wScore = 0;
  18532. this.scoreDetail = "";
  18533. this.dialogVisibleScore = false;
  18534. this.selectSWorks();
  18535. this.selectStudent();
  18536. this.insertMemorandum(
  18537. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  18538. );
  18539. })
  18540. .catch(err => {
  18541. this.$message.error("评分失败");
  18542. console.error(err);
  18543. });
  18544. },
  18545. openXz(w, i) {
  18546. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18547. .taskJson[this.taskCount].toolChoose[i].selectJson
  18548. ? JSON.parse(
  18549. JSON.stringify(
  18550. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18551. this.taskCount
  18552. ].toolChoose[i].selectJson
  18553. )
  18554. )
  18555. : { url: "", select: [], answer: [] };
  18556. var a = w.works.split(",");
  18557. for (var k = 0; k < a.length; k++) {
  18558. a[k] = parseInt(a[k]);
  18559. }
  18560. this.selectAnswer = { answer: a, stu: w.sName };
  18561. this.isSelect = true;
  18562. this.dialogVisibleSelect = true;
  18563. this.insertMemorandum(
  18564. `查看<span class="variable">${w.sName}</span>的作业`
  18565. );
  18566. },
  18567. openSen(w, i) {
  18568. this.sentenceList1 = JSON.parse(w.works);
  18569. this.sentenceList1.stuName = w.sName;
  18570. this.dialogVisibleSentence1 = true;
  18571. },
  18572. openPj(w, toolindex) {
  18573. this.isStar = true;
  18574. this.eScore = JSON.parse(w);
  18575. this.rateJson = this.chapInfoList[
  18576. this.courseType
  18577. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  18578. this.studentEvalDialogVisible = true;
  18579. },
  18580. openEnglishEva(id, i) {
  18581. let params = {
  18582. wid: id
  18583. };
  18584. this.ajax
  18585. .get(this.$store.state.api + "selectEngWork", params)
  18586. .then(res => {
  18587. this.evaEngJson.message = res.data[0][0];
  18588. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18589. this.evaEngJson.teacherJson = this.chapInfoList[
  18590. this.courseType
  18591. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  18592. this.engEvaDialogVisible = true;
  18593. })
  18594. .catch(err => {
  18595. console.error(err);
  18596. });
  18597. },
  18598. deleteWorks(id) {
  18599. this.$confirm("确定删除此作业吗?", "提示", {
  18600. confirmButtonText: "确定",
  18601. cancelButtonText: "取消",
  18602. type: "warning"
  18603. })
  18604. .then(() => {
  18605. let params = [
  18606. {
  18607. id: id
  18608. }
  18609. ];
  18610. this.ajax
  18611. .post(this.$store.state.api + "deleteCourseWork", params)
  18612. .then(res => {
  18613. this.$message({
  18614. message: "删除成功",
  18615. type: "success"
  18616. });
  18617. this.selectStudent();
  18618. this.selectSWorks();
  18619. this.selectSLook();
  18620. })
  18621. .catch(err => {
  18622. this.$message.error("网络异常");
  18623. console.error(err);
  18624. });
  18625. })
  18626. .catch(() => {});
  18627. },
  18628. // deleteWorksTwo(w,stage,task) {
  18629. // // let mk = `markSco${toolIndex}${wIndex}`
  18630. // // console.log(this.$refs[mk][0].homeworkVal)
  18631. // // let wid = this.$refs[mk][0].homeworkVal.id
  18632. // // console.log('wid',wid);
  18633. // this.$confirm("确定删除此作业吗?", "提示", {
  18634. // confirmButtonText: "确定",
  18635. // cancelButtonText: "取消",
  18636. // type: "warning",
  18637. // })
  18638. // .then(() => {
  18639. // let params = [
  18640. // {
  18641. // id: w.wid,
  18642. // cid: this.id,
  18643. // uid:w.userid,
  18644. // s:stage,
  18645. // t:task
  18646. // },
  18647. // ];
  18648. // // return console.log(params)
  18649. // this.ajax
  18650. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  18651. // .then((res) => {
  18652. // this.$message({
  18653. // message: "删除成功",
  18654. // type: "success",
  18655. // });
  18656. // this.selectStudent();
  18657. // this.selectSWorks();
  18658. // this.selectSLook();
  18659. // })
  18660. // .catch((err) => {
  18661. // this.$message.error("网络异常");
  18662. // console.error(err);
  18663. // });
  18664. // })
  18665. // .catch(() => {});
  18666. // },
  18667. noIsAi() {
  18668. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18669. },
  18670. getLang() {
  18671. let lang = "";
  18672. if (this.languageSetting == 0) {
  18673. lang = "Chinese.";
  18674. } else if (this.languageSetting == 1) {
  18675. lang = "Traditional Chinese.";
  18676. } else if (this.languageSetting == 2) {
  18677. lang = "English.";
  18678. }
  18679. return lang;
  18680. },
  18681. selectSWorks(gindex) {
  18682. //教师查看全部作业
  18683. let params = {
  18684. cid: this.id,
  18685. s: this.courseType,
  18686. t: this.taskCount
  18687. };
  18688. this.ajax
  18689. .get(this.$store.state.api + "selectSWorks", params)
  18690. .then(res => {
  18691. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18692. this.taskCount
  18693. ].toolChoose;
  18694. var b = res.data[0];
  18695. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18696. var y = [
  18697. "AVI",
  18698. "NAVI",
  18699. "MPEG",
  18700. "ASF",
  18701. "MOV",
  18702. "WMV",
  18703. "3GP",
  18704. "RM",
  18705. "RMVB",
  18706. "FLV",
  18707. "F4V",
  18708. "H.264",
  18709. "H.265",
  18710. "REAL VIDEO",
  18711. "MKV",
  18712. "WebM",
  18713. "HDDVD",
  18714. "MP4",
  18715. "MPG",
  18716. "M4V",
  18717. "MGV",
  18718. "OGV",
  18719. "QTM",
  18720. "STR",
  18721. "AMC",
  18722. "DVX",
  18723. "EVO",
  18724. "DAT",
  18725. "OGG",
  18726. "OGM"
  18727. ];
  18728. var d = res.data[1];
  18729. var e = res.data[2];
  18730. var f = res.data[3];
  18731. let _worksStudent = [];
  18732. var _worksStudent2 = [];
  18733. for (var i = 0; i < a.length; i++) {
  18734. _worksStudent[i] = [];
  18735. _worksStudent2[i] = [];
  18736. if (
  18737. !this.isCloseList[i] ||
  18738. this.isCloseList[i].isClose == undefined
  18739. ) {
  18740. this.isCloseList[i] = { isClose: 0 };
  18741. }
  18742. this.groupStudent[i] = [];
  18743. this.groupStudentUid[i] = [];
  18744. if (this.isGroup) {
  18745. for (
  18746. var groupI = 0;
  18747. groupI < this.courseGroup.group.length;
  18748. groupI++
  18749. ) {
  18750. this.courseGroup.group[groupI].works[i] = [];
  18751. }
  18752. }
  18753. this.isWorksS[i] = [];
  18754. this.checkJson[i] = [];
  18755. if (a[i].tool[0] == 49) {
  18756. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18757. this.groupStudent[i][gA] = [];
  18758. this.groupStudentUid[i][gA] = [];
  18759. _worksStudent[i][gA] = [];
  18760. _worksStudent2[i][gA] = [];
  18761. this.isCloseList[i][gA] = [];
  18762. for (var g = 0; g < f.length; g++) {
  18763. if (
  18764. f[g].ttype == 2 &&
  18765. this.tcid &&
  18766. this.arrayToArray(
  18767. f[g].classid ? f[g].classid.split(",") : [],
  18768. this.tcid.split(",")
  18769. ).length == 0
  18770. ) {
  18771. continue;
  18772. }
  18773. let _classId = this.arrayToArray(
  18774. this.courseDetail.juri
  18775. ? this.courseDetail.juri.split(",")
  18776. : [],
  18777. this.classId ? this.classId.split(",") : []
  18778. );
  18779. if (
  18780. gA == f[g].group &&
  18781. f[g].tool == i &&
  18782. (this.arrayToArray(
  18783. f[g].classid ? f[g].classid.split(",") : [],
  18784. this.tcid.split(",")
  18785. ).length !== 0 ||
  18786. this.arrayToArray(
  18787. f[g].classid ? f[g].classid.split(",") : [],
  18788. _classId
  18789. ).length !== 0 ||
  18790. (!this.tcid && this.tType == "1") ||
  18791. this.courseDetail.juri === "" ||
  18792. f[g].ttype == 1)
  18793. ) {
  18794. this.groupStudent[i][gA].push(f[g]);
  18795. this.groupStudentUid[i][gA].push(f[g].userid);
  18796. }
  18797. }
  18798. }
  18799. this.$forceUpdate();
  18800. }
  18801. for (var j = 0; j < b.length; j++) {
  18802. if (
  18803. b[j].ttype == 2 &&
  18804. this.tcid &&
  18805. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18806. .length == 0
  18807. ) {
  18808. continue;
  18809. }
  18810. var likesCount = 0;
  18811. var commentCount = 0;
  18812. var isLikes = false;
  18813. var commentJson = [];
  18814. var likeJson = [];
  18815. var data = b[j];
  18816. if (i == b[j].tool) {
  18817. if (data.type == 2 && a[i].tool[0] == 4) {
  18818. // if(JSON.parse(data.content)[0].anwer){
  18819. var checkL =
  18820. JSON.parse(data.content)[0].anwer instanceof Array
  18821. ? JSON.parse(data.content)[0].anwer
  18822. : JSON.parse(data.content)[0].anwer.split(",");
  18823. for (var z = 0; z < checkL.length; z++) {
  18824. if (!this.checkJson[i][z]) {
  18825. this.checkJson[i].push({
  18826. checkCount: [],
  18827. checkPerson: [],
  18828. rightPerson: []
  18829. });
  18830. }
  18831. if (!this.checkJson[i][z].checkCount.length) {
  18832. this.checkJson[i][z].checkCount = [];
  18833. let _askItemCount = JSON.parse(data.content)[0].askJson
  18834. .askJson[z].askItem;
  18835. for (var aic = 0; aic < _askItemCount; aic++) {
  18836. this.checkJson[i][z].checkCount.push(0);
  18837. }
  18838. }
  18839. if (checkL[z] instanceof Array) {
  18840. if (
  18841. JSON.parse(data.content)[0]
  18842. .anwer.sort()
  18843. .join(",") == checkL[z].sort().join(",")
  18844. ) {
  18845. this.checkJson[i][z].rightPerson.push(data.name);
  18846. }
  18847. for (var q = 0; q < checkL[z].length; q++) {
  18848. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18849. ? this.checkJson[i][z].checkPerson[
  18850. parseInt(checkL[z][q])
  18851. ].push(data.name)
  18852. : (this.checkJson[i][z].checkPerson[
  18853. parseInt(checkL[z][q])
  18854. ] = [data.name]);
  18855. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18856. ? this.checkJson[i][z].checkCount[
  18857. parseInt(checkL[z][q])
  18858. ]++
  18859. : (this.checkJson[i][z].checkCount[
  18860. parseInt(checkL[z][q])
  18861. ] = 1);
  18862. }
  18863. } else {
  18864. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18865. this.checkJson[i][z].rightPerson.push(data.name);
  18866. }
  18867. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18868. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18869. ? this.checkJson[i][z].checkPerson[
  18870. parseInt(checkL[z])
  18871. ].push(data.name)
  18872. : (this.checkJson[i][z].checkPerson[
  18873. parseInt(checkL[z])
  18874. ] = [data.name]);
  18875. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18876. ? this.checkJson[i][z].checkCount[
  18877. parseInt(checkL[z])
  18878. ]++
  18879. : (this.checkJson[i][z].checkCount[
  18880. parseInt(checkL[z])
  18881. ] = 1);
  18882. }
  18883. }
  18884. }
  18885. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18886. var checkL = JSON.parse(data.content)[0].anwer;
  18887. for (var z = 0; z < checkL.length; z++) {
  18888. if (!this.checkJson[i][z]) {
  18889. this.checkJson[i].push({
  18890. checkCount: [],
  18891. checkPerson: [],
  18892. rightPerson: []
  18893. });
  18894. }
  18895. if (!this.checkJson[i][z].checkCount.length) {
  18896. this.checkJson[i][z].checkCount = [];
  18897. let _askItemCount = JSON.parse(data.content)[0].testJson
  18898. .testJson[z].testItem;
  18899. for (var aic = 0; aic < _askItemCount; aic++) {
  18900. this.checkJson[i][z].checkCount.push(0);
  18901. }
  18902. }
  18903. if (checkL[z] instanceof Array) {
  18904. if (
  18905. JSON.parse(data.content)[0]
  18906. .testJson.testJson[z].answer.sort()
  18907. .join(",") == checkL[z].sort().join(",")
  18908. ) {
  18909. this.checkJson[i][z].rightPerson.push(data.name);
  18910. }
  18911. for (var q = 0; q < checkL[z].length; q++) {
  18912. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18913. ? this.checkJson[i][z].checkPerson[
  18914. parseInt(checkL[z][q])
  18915. ].push(data.name)
  18916. : (this.checkJson[i][z].checkPerson[
  18917. parseInt(checkL[z][q])
  18918. ] = [data.name]);
  18919. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18920. ? this.checkJson[i][z].checkCount[
  18921. parseInt(checkL[z][q])
  18922. ]++
  18923. : (this.checkJson[i][z].checkCount[
  18924. parseInt(checkL[z][q])
  18925. ] = 1);
  18926. }
  18927. } else {
  18928. if (
  18929. JSON.parse(data.content)[0].testJson.testJson[z]
  18930. .answer == checkL[z]
  18931. ) {
  18932. this.checkJson[i][z].rightPerson.push(data.name);
  18933. }
  18934. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18935. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18936. ? this.checkJson[i][z].checkPerson[
  18937. parseInt(checkL[z])
  18938. ].push(data.name)
  18939. : (this.checkJson[i][z].checkPerson[
  18940. parseInt(checkL[z])
  18941. ] = [data.name]);
  18942. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18943. ? this.checkJson[i][z].checkCount[
  18944. parseInt(checkL[z])
  18945. ]++
  18946. : (this.checkJson[i][z].checkCount[
  18947. parseInt(checkL[z])
  18948. ] = 1);
  18949. }
  18950. }
  18951. }
  18952. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18953. var checkL = JSON.parse(data.content);
  18954. for (var z = 0; z < checkL.length; z++) {
  18955. if (!this.checkJson[i][z]) {
  18956. this.checkJson[i].push({
  18957. checkCount: [],
  18958. checkPerson: [],
  18959. rightPerson: []
  18960. });
  18961. }
  18962. this.checkJson[i][z].checkPerson.push(data.name);
  18963. if (
  18964. checkL[z].chooseSenList.toString() ==
  18965. checkL[z].rightAnswer.toString()
  18966. ) {
  18967. this.checkJson[i][z].rightPerson.push(data.name);
  18968. }
  18969. }
  18970. }
  18971. for (var k = 0; k < d.length; k++) {
  18972. //点赞
  18973. if (d[k].workId == b[j].id) {
  18974. likesCount++;
  18975. likeJson.push(d[k]);
  18976. if (d[k].likesId == this.userid) {
  18977. isLikes = true;
  18978. }
  18979. }
  18980. }
  18981. for (var l = 0; l < e.length; l++) {
  18982. //评论
  18983. if (e[l].workId == b[j].id) {
  18984. if (e[l].comment != "") {
  18985. commentCount++;
  18986. commentJson.push({
  18987. commentText: e[l].comment,
  18988. commentTime: e[l].commentTime,
  18989. commentPeople: e[l].commentPeople,
  18990. userid: e[l].userid,
  18991. wid: e[l].id
  18992. });
  18993. }
  18994. }
  18995. }
  18996. if (
  18997. (b[j].type == 1 ||
  18998. b[j].type == 4 ||
  18999. b[j].type == 5 ||
  19000. b[j].type == 6 ||
  19001. b[j].type == 12 ||
  19002. b[j].type == 7) &&
  19003. a[i].tool[0] != 15 &&
  19004. a[i].tool[0] != 4 &&
  19005. a[i].tool[0] != 45 &&
  19006. a[i].tool[0] != 50 &&
  19007. a[i].tool[0] != 32 &&
  19008. a[i].tool[0] != 57 &&
  19009. a[i].tool[0] != 52
  19010. ) {
  19011. if (
  19012. c.indexOf(
  19013. b[j].content
  19014. .split(".")
  19015. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19016. ) != -1 &&
  19017. a[i].tool[0] == 16 &&
  19018. b[j].atool != 50
  19019. ) {
  19020. let _works = {
  19021. userid: b[j].userid,
  19022. ateacher: b[j].ateacher,
  19023. wid: b[j].id,
  19024. works: b[j].content,
  19025. sName: b[j].name,
  19026. type: 1,
  19027. ttype: b[j].ttype,
  19028. time: b[j].time,
  19029. score: b[j].score,
  19030. img: b[j].img,
  19031. likesCount: likesCount,
  19032. commentCount: commentCount,
  19033. isLikes: isLikes,
  19034. commentJson: commentJson,
  19035. likeJson: likeJson
  19036. };
  19037. if (this.isGroup) {
  19038. let isGw = 1;
  19039. for (
  19040. var groupI = 0;
  19041. groupI < this.courseGroup.group.length;
  19042. groupI++
  19043. ) {
  19044. let gid = this.courseGroup.group[groupI].id;
  19045. if (
  19046. this.courseGroupStudentUid[gid].indexOf(
  19047. b[j].userid
  19048. ) != -1
  19049. ) {
  19050. isGw = 2;
  19051. this.courseGroup.group[groupI].works[i].push(_works);
  19052. break;
  19053. }
  19054. }
  19055. if (isGw == 1) {
  19056. _worksStudent[i].push(_works);
  19057. }
  19058. } else {
  19059. _worksStudent[i].push(_works);
  19060. }
  19061. _worksStudent2[i].push(_works);
  19062. this.isWorksS[i].push({
  19063. uid: b[j].userid,
  19064. sName: b[j].name
  19065. });
  19066. } else if (
  19067. y.indexOf(
  19068. b[j].content
  19069. .split(".")
  19070. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19071. ) != -1 &&
  19072. a[i].tool[0] == 16 &&
  19073. b[j].atool != 50
  19074. ) {
  19075. let _works = {
  19076. userid: b[j].userid,
  19077. ateacher: b[j].ateacher,
  19078. wid: b[j].id,
  19079. works: b[j].content,
  19080. sName: b[j].name,
  19081. type: 3,
  19082. ttype: b[j].ttype,
  19083. time: b[j].time,
  19084. score: b[j].score,
  19085. img: b[j].img,
  19086. likesCount: likesCount,
  19087. commentCount: commentCount,
  19088. isLikes: isLikes,
  19089. commentJson: commentJson,
  19090. likeJson: likeJson
  19091. };
  19092. if (this.isGroup) {
  19093. let isGw = 1;
  19094. for (
  19095. var groupI = 0;
  19096. groupI < this.courseGroup.group.length;
  19097. groupI++
  19098. ) {
  19099. let gid = this.courseGroup.group[groupI].id;
  19100. if (
  19101. this.courseGroupStudentUid[gid].indexOf(
  19102. b[j].userid
  19103. ) != -1
  19104. ) {
  19105. isGw = 2;
  19106. this.courseGroup.group[groupI].works[i].push(_works);
  19107. break;
  19108. }
  19109. }
  19110. if (isGw == 1) {
  19111. _worksStudent[i].push(_works);
  19112. }
  19113. } else {
  19114. _worksStudent[i].push(_works);
  19115. }
  19116. _worksStudent2[i].push(_works);
  19117. this.isWorksS[i].push({
  19118. uid: b[j].userid,
  19119. sName: b[j].name
  19120. });
  19121. } else if (b[j].type == 6 && b[j].atool != 50) {
  19122. let _works = {
  19123. userid: b[j].userid,
  19124. ateacher: b[j].ateacher,
  19125. wid: b[j].id,
  19126. works: b[j].content,
  19127. sName: b[j].name,
  19128. type: 4,
  19129. ttype: b[j].ttype,
  19130. time: b[j].time,
  19131. score: b[j].score,
  19132. img: b[j].img,
  19133. likesCount: likesCount,
  19134. commentCount: commentCount,
  19135. isLikes: isLikes,
  19136. commentJson: commentJson,
  19137. likeJson: likeJson
  19138. };
  19139. _worksStudent[i].push(_works);
  19140. _worksStudent2[i].push(_works);
  19141. this.isWorksS[i].push({
  19142. uid: b[j].userid,
  19143. sName: b[j].name
  19144. });
  19145. } else if (b[j].type == 7 && b[j].atool != 50) {
  19146. let _work = {
  19147. userid: b[j].userid,
  19148. ateacher: b[j].ateacher,
  19149. wid: b[j].id,
  19150. works: b[j].content,
  19151. sName: b[j].name,
  19152. type: 5,
  19153. ttype: b[j].ttype,
  19154. time: b[j].time,
  19155. score: b[j].score,
  19156. img: b[j].img,
  19157. likesCount: likesCount,
  19158. commentCount: commentCount,
  19159. isLikes: isLikes,
  19160. commentJson: commentJson,
  19161. likeJson: likeJson
  19162. };
  19163. _worksStudent[i].push(_work);
  19164. _worksStudent2[i].push(_work);
  19165. this.isWorksS[i].push({
  19166. uid: b[j].userid,
  19167. sName: b[j].name
  19168. });
  19169. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19170. let _works = {
  19171. userid: b[j].userid,
  19172. ateacher: b[j].ateacher,
  19173. wid: b[j].id,
  19174. works: b[j].content,
  19175. sName: b[j].name,
  19176. type: 12,
  19177. ttype: b[j].ttype,
  19178. time: b[j].time,
  19179. score: b[j].score,
  19180. img: b[j].img,
  19181. likesCount: likesCount,
  19182. commentCount: commentCount,
  19183. isLikes: isLikes,
  19184. commentJson: commentJson,
  19185. likeJson: likeJson
  19186. };
  19187. if (this.isGroup) {
  19188. let isGw = 1;
  19189. for (
  19190. var groupI = 0;
  19191. groupI < this.courseGroup.group.length;
  19192. groupI++
  19193. ) {
  19194. let gid = this.courseGroup.group[groupI].id;
  19195. if (
  19196. this.courseGroupStudentUid[gid].indexOf(
  19197. b[j].userid
  19198. ) != -1
  19199. ) {
  19200. isGw = 2;
  19201. this.courseGroup.group[groupI].works[i].push(_works);
  19202. break;
  19203. }
  19204. }
  19205. if (isGw == 1) {
  19206. _worksStudent[i].push(_works);
  19207. }
  19208. } else {
  19209. _worksStudent[i].push(_works);
  19210. }
  19211. _worksStudent2[i].push(_works);
  19212. this.isWorksS[i].push({
  19213. uid: b[j].userid,
  19214. sName: b[j].name
  19215. });
  19216. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19217. let _works = {
  19218. userid: b[j].userid,
  19219. ateacher: b[j].ateacher,
  19220. wid: b[j].id,
  19221. works: b[j].content,
  19222. sName: b[j].name,
  19223. type: 0,
  19224. ttype: b[j].ttype,
  19225. time: b[j].time,
  19226. score: b[j].score,
  19227. img: b[j].img,
  19228. likesCount: likesCount,
  19229. commentCount: commentCount,
  19230. isLikes: isLikes,
  19231. commentJson: commentJson,
  19232. likeJson: likeJson
  19233. };
  19234. if (this.isGroup) {
  19235. let isGw = 1;
  19236. for (
  19237. var groupI = 0;
  19238. groupI < this.courseGroup.group.length;
  19239. groupI++
  19240. ) {
  19241. let gid = this.courseGroup.group[groupI].id;
  19242. if (
  19243. this.courseGroupStudentUid[gid].indexOf(
  19244. b[j].userid
  19245. ) != -1
  19246. ) {
  19247. isGw = 2;
  19248. this.courseGroup.group[groupI].works[i].push(_works);
  19249. break;
  19250. }
  19251. }
  19252. if (isGw == 1) {
  19253. _worksStudent[i].push(_works);
  19254. }
  19255. } else {
  19256. _worksStudent[i].push(_works);
  19257. }
  19258. _worksStudent2[i].push(_works);
  19259. this.isWorksS[i].push({
  19260. uid: b[j].userid,
  19261. sName: b[j].name
  19262. });
  19263. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19264. let _works = {
  19265. userid: b[j].userid,
  19266. ateacher: b[j].ateacher,
  19267. wid: b[j].id,
  19268. works: b[j].content,
  19269. sName: b[j].name,
  19270. type: 0,
  19271. ttype: b[j].ttype,
  19272. time: b[j].time,
  19273. score: b[j].score,
  19274. img: b[j].img,
  19275. likesCount: likesCount,
  19276. commentCount: commentCount,
  19277. isLikes: isLikes,
  19278. commentJson: commentJson,
  19279. likeJson: likeJson
  19280. };
  19281. if (this.isGroup) {
  19282. let isGw = 1;
  19283. for (
  19284. var groupI = 0;
  19285. groupI < this.courseGroup.group.length;
  19286. groupI++
  19287. ) {
  19288. let gid = this.courseGroup.group[groupI].id;
  19289. if (
  19290. this.courseGroupStudentUid[gid].indexOf(
  19291. b[j].userid
  19292. ) != -1
  19293. ) {
  19294. isGw = 2;
  19295. this.courseGroup.group[groupI].works[i].push(_works);
  19296. break;
  19297. }
  19298. }
  19299. if (isGw == 1) {
  19300. _worksStudent[i].push(_works);
  19301. }
  19302. } else {
  19303. _worksStudent[i].push(_works);
  19304. }
  19305. _worksStudent2[i].push(_works);
  19306. this.isWorksS[i].push({
  19307. uid: b[j].userid,
  19308. sName: b[j].name
  19309. });
  19310. }
  19311. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19312. let _works = {
  19313. userid: b[j].userid,
  19314. ateacher: b[j].ateacher,
  19315. wid: b[j].id,
  19316. works: b[j].content,
  19317. sName: b[j].name,
  19318. type: 2,
  19319. ttype: b[j].ttype,
  19320. time: b[j].time,
  19321. score: b[j].score,
  19322. img: b[j].img,
  19323. likesCount: likesCount,
  19324. commentCount: commentCount,
  19325. isLikes: isLikes,
  19326. commentJson: commentJson,
  19327. likeJson: likeJson
  19328. };
  19329. if (this.isGroup) {
  19330. let isGw = 1;
  19331. for (
  19332. var groupI = 0;
  19333. groupI < this.courseGroup.group.length;
  19334. groupI++
  19335. ) {
  19336. let gid = this.courseGroup.group[groupI].id;
  19337. if (
  19338. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19339. -1
  19340. ) {
  19341. isGw = 2;
  19342. this.courseGroup.group[groupI].works[i].push(_works);
  19343. break;
  19344. }
  19345. }
  19346. if (isGw == 1) {
  19347. _worksStudent[i].push(_works);
  19348. }
  19349. } else {
  19350. _worksStudent[i].push(_works);
  19351. }
  19352. _worksStudent2[i].push(_works);
  19353. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19354. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19355. //问卷
  19356. let _work = {
  19357. userid: b[j].userid,
  19358. ateacher: b[j].ateacher,
  19359. wid: b[j].id,
  19360. works: b[j].content,
  19361. sName: b[j].name,
  19362. type: 2,
  19363. ttype: b[j].ttype,
  19364. time: b[j].time,
  19365. score: b[j].score,
  19366. img: b[j].img,
  19367. likesCount: likesCount,
  19368. commentCount: commentCount,
  19369. isLikes: isLikes,
  19370. commentJson: commentJson,
  19371. likeJson: likeJson
  19372. };
  19373. _worksStudent[i].push(_work);
  19374. _worksStudent2[i].push(_work);
  19375. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19376. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19377. //选择题
  19378. let _work = {
  19379. userid: b[j].userid,
  19380. ateacher: b[j].ateacher,
  19381. wid: b[j].id,
  19382. works: b[j].content,
  19383. sName: b[j].name,
  19384. type: 8,
  19385. ttype: b[j].ttype,
  19386. time: b[j].time,
  19387. score: b[j].score,
  19388. img: b[j].img,
  19389. likesCount: likesCount,
  19390. commentCount: commentCount,
  19391. isLikes: isLikes,
  19392. commentJson: commentJson,
  19393. likeJson: likeJson
  19394. };
  19395. _worksStudent[i].push(_work);
  19396. _worksStudent2[i].push(_work);
  19397. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19398. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19399. //选择题
  19400. let _work = {
  19401. userid: b[j].userid,
  19402. ateacher: b[j].ateacher,
  19403. wid: b[j].id,
  19404. works: b[j].content,
  19405. sName: b[j].name,
  19406. type: 9,
  19407. ttype: b[j].ttype,
  19408. time: b[j].time,
  19409. score: b[j].score,
  19410. img: b[j].img,
  19411. likesCount: likesCount,
  19412. commentCount: commentCount,
  19413. isLikes: isLikes,
  19414. commentJson: commentJson,
  19415. likeJson: likeJson
  19416. };
  19417. _worksStudent[i].push(_work);
  19418. _worksStudent2[i].push(_work);
  19419. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19420. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19421. //选择题
  19422. let _work = {
  19423. userid: b[j].userid,
  19424. ateacher: b[j].ateacher,
  19425. wid: b[j].id,
  19426. works: b[j].content,
  19427. sName: b[j].name,
  19428. type: 10,
  19429. ttype: b[j].ttype,
  19430. time: b[j].time,
  19431. score: b[j].score,
  19432. img: b[j].img,
  19433. likesCount: likesCount,
  19434. commentCount: commentCount,
  19435. isLikes: isLikes,
  19436. commentJson: commentJson,
  19437. likeJson: likeJson
  19438. };
  19439. _worksStudent[i].push(_work);
  19440. _worksStudent2[i].push(_work);
  19441. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19442. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19443. //选择题
  19444. let _work = {
  19445. userid: b[j].userid,
  19446. ateacher: b[j].ateacher,
  19447. wid: b[j].id,
  19448. works: b[j].content,
  19449. sName: b[j].name,
  19450. type: 13,
  19451. ttype: b[j].ttype,
  19452. time: b[j].time,
  19453. score: b[j].score,
  19454. img: b[j].img,
  19455. likesCount: likesCount,
  19456. commentCount: commentCount,
  19457. isLikes: isLikes,
  19458. commentJson: commentJson,
  19459. likeJson: likeJson
  19460. };
  19461. _worksStudent[i].push(_work);
  19462. _worksStudent2[i].push(_work);
  19463. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19464. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19465. //选择题
  19466. let _work = {
  19467. userid: b[j].userid,
  19468. ateacher: b[j].ateacher,
  19469. wid: b[j].id,
  19470. works: b[j].content,
  19471. sName: b[j].name,
  19472. type: 16,
  19473. ttype: b[j].ttype,
  19474. time: b[j].time,
  19475. score: b[j].score,
  19476. img: b[j].img,
  19477. likesCount: likesCount,
  19478. commentCount: commentCount,
  19479. isLikes: isLikes,
  19480. commentJson: commentJson,
  19481. aiCode: b[j].aiCode,
  19482. teacherCode: b[j].teacherCode,
  19483. likeJson: likeJson
  19484. };
  19485. _worksStudent[i].push(_work);
  19486. _worksStudent2[i].push(_work);
  19487. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19488. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19489. //选择题
  19490. let _work = {
  19491. userid: b[j].userid,
  19492. ateacher: b[j].ateacher,
  19493. wid: b[j].id,
  19494. works: b[j].content,
  19495. sName: b[j].name,
  19496. type: 17,
  19497. ttype: b[j].ttype,
  19498. time: b[j].time,
  19499. score: b[j].score,
  19500. img: b[j].img,
  19501. likesCount: likesCount,
  19502. commentCount: commentCount,
  19503. isLikes: isLikes,
  19504. commentJson: commentJson,
  19505. likeJson: likeJson
  19506. };
  19507. _worksStudent[i].push(_work);
  19508. _worksStudent2[i].push(_work);
  19509. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19510. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19511. //交互视频
  19512. let _work = {
  19513. userid: b[j].userid,
  19514. ateacher: b[j].ateacher,
  19515. wid: b[j].id,
  19516. works: b[j].content,
  19517. sName: b[j].name,
  19518. type: 14,
  19519. ttype: b[j].ttype,
  19520. time: b[j].time,
  19521. score: b[j].score,
  19522. img: b[j].img,
  19523. likesCount: likesCount,
  19524. commentCount: commentCount,
  19525. isLikes: isLikes,
  19526. commentJson: commentJson,
  19527. likeJson: likeJson
  19528. };
  19529. _worksStudent[i].push(_work);
  19530. _worksStudent2[i].push(_work);
  19531. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19532. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19533. let _gindex = JSON.parse(b[j].content);
  19534. if (
  19535. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19536. b[j].userid
  19537. ) != -1
  19538. ) {
  19539. let _work = {
  19540. userid: b[j].userid,
  19541. ateacher: b[j].ateacher,
  19542. wid: b[j].id,
  19543. works: _gindex.url,
  19544. sName: b[j].name,
  19545. type: _gindex.type,
  19546. ttype: b[j].ttype,
  19547. time: b[j].time,
  19548. score: b[j].score,
  19549. img: b[j].img,
  19550. likesCount: likesCount,
  19551. commentCount: commentCount,
  19552. isLikes: isLikes,
  19553. commentJson: commentJson,
  19554. likeJson: likeJson
  19555. };
  19556. _worksStudent[i][_gindex.groupIndex].push(_work);
  19557. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19558. }
  19559. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19560. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19561. let _work = {
  19562. userid: b[j].userid,
  19563. ateacher: b[j].ateacher,
  19564. wid: b[j].id,
  19565. works: b[j].content,
  19566. sName: b[j].name ? b[j].name : b[j].userid,
  19567. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19568. ttype: b[j].ttype,
  19569. time: b[j].time,
  19570. score: b[j].score,
  19571. img: b[j].img,
  19572. likesCount: likesCount,
  19573. commentCount: commentCount,
  19574. isLikes: isLikes,
  19575. commentJson: commentJson,
  19576. likeJson: likeJson
  19577. };
  19578. _worksStudent[i].push(_work);
  19579. _worksStudent2[i].push(_work);
  19580. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19581. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19582. let _work = {
  19583. userid: b[j].userid,
  19584. ateacher: b[j].ateacher,
  19585. wid: b[j].id,
  19586. works: b[j].content,
  19587. sName: b[j].name ? b[j].name : b[j].userid,
  19588. type: 12,
  19589. ttype: b[j].ttype,
  19590. time: b[j].time,
  19591. score: b[j].score,
  19592. img: b[j].img,
  19593. likesCount: likesCount,
  19594. commentCount: commentCount,
  19595. isLikes: isLikes,
  19596. commentJson: commentJson,
  19597. likeJson: likeJson
  19598. };
  19599. _worksStudent[i].push(_work);
  19600. _worksStudent2[i].push(_work);
  19601. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19602. } else if (
  19603. a[i].tool[0] == 57 &&
  19604. b[j].atool == 57 &&
  19605. b[j].type == 12
  19606. ) {
  19607. let _work = {
  19608. userid: b[j].userid,
  19609. ateacher: b[j].ateacher,
  19610. wid: b[j].id,
  19611. works: b[j].content,
  19612. sName: b[j].name ? b[j].name : b[j].userid,
  19613. type: 12,
  19614. ttype: b[j].ttype,
  19615. time: b[j].time,
  19616. score: b[j].score,
  19617. img: b[j].img,
  19618. likesCount: likesCount,
  19619. commentCount: commentCount,
  19620. isLikes: isLikes,
  19621. commentJson: commentJson,
  19622. likeJson: likeJson
  19623. };
  19624. _worksStudent[i].push(_work);
  19625. _worksStudent2[i].push(_work);
  19626. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19627. } else if (
  19628. a[i].tool[0] == 57 &&
  19629. b[j].atool == 57 &&
  19630. b[j].type == 15
  19631. ) {
  19632. let _work = {
  19633. userid: b[j].userid,
  19634. ateacher: b[j].ateacher,
  19635. wid: b[j].id,
  19636. works: b[j].content,
  19637. sName: b[j].name ? b[j].name : b[j].userid,
  19638. type: 15,
  19639. ttype: b[j].ttype,
  19640. time: b[j].time,
  19641. score: b[j].score,
  19642. img: b[j].img,
  19643. likesCount: likesCount,
  19644. commentCount: commentCount,
  19645. isLikes: isLikes,
  19646. commentJson: commentJson,
  19647. likeJson: likeJson
  19648. };
  19649. _worksStudent[i].push(_work);
  19650. _worksStudent2[i].push(_work);
  19651. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19652. }
  19653. }
  19654. }
  19655. if (_worksStudent[i] && _worksStudent[i].length) {
  19656. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19657. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19658. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19659. var scoreA = parseFloat(jscoreA);
  19660. var scoreB = parseFloat(jscoreB);
  19661. if (scoreA == scoreB) {
  19662. return b.likesCount - a.likesCount;
  19663. }
  19664. return scoreB - scoreA;
  19665. });
  19666. if (this.isGroup) {
  19667. for (
  19668. var groupI = 0;
  19669. groupI < this.courseGroup.group.length;
  19670. groupI++
  19671. ) {
  19672. this.courseGroup.group[groupI].works[
  19673. i
  19674. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19675. a,
  19676. b
  19677. ) {
  19678. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19679. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19680. var scoreA = parseFloat(jscoreA);
  19681. var scoreB = parseFloat(jscoreB);
  19682. if (scoreA == scoreB) {
  19683. return b.likesCount - a.likesCount;
  19684. }
  19685. return scoreB - scoreA;
  19686. });
  19687. }
  19688. }
  19689. }
  19690. }
  19691. this.timeWorkList = _worksStudent2;
  19692. for (var i = 0; i < a.length; i++) {
  19693. for (var j = 0; j < b.length; j++) {
  19694. var data = b[j];
  19695. if (i == b[j].tool) {
  19696. if (data.type == 2 || data.type == 8) {
  19697. for (var z = 0; z < this.checkJson[i].length; z++) {
  19698. this.checkJson[i][z].checkPerent = [];
  19699. this.checkJson[i][z].right = Math.round(
  19700. (this.checkJson[i][z].rightPerson.length /
  19701. parseInt(_worksStudent[i].length)) *
  19702. 100
  19703. );
  19704. let aaaa = this.checkJson[i][z];
  19705. for (
  19706. var k = 0;
  19707. k < this.checkJson[i][z].checkCount.length;
  19708. k++
  19709. ) {
  19710. this.checkJson[i][z].checkPerent.push(
  19711. Math.round(
  19712. (this.checkJson[i][z].checkCount[k] /
  19713. parseInt(_worksStudent[i].length)) *
  19714. 100
  19715. )
  19716. );
  19717. }
  19718. }
  19719. } else if (data.type == 9) {
  19720. for (var z = 0; z < this.checkJson[i].length; z++) {
  19721. this.checkJson[i][z].checkPerent = [];
  19722. this.checkJson[i][z].right = Math.round(
  19723. (this.checkJson[i][z].rightPerson.length /
  19724. this.checkJson[i][z].checkPerson.length) *
  19725. 100
  19726. );
  19727. }
  19728. }
  19729. }
  19730. }
  19731. }
  19732. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19733. this.joinGroup(gindex);
  19734. }
  19735. this.worksStudent = _worksStudent;
  19736. if (
  19737. JSON.stringify(this.worksStudentCopy) !=
  19738. JSON.stringify(this.worksStudent)
  19739. ) {
  19740. console.log("88888999999");
  19741. this.worksStudentCopy = this.worksStudent;
  19742. this.AIloading = [];
  19743. this.loopLoading = [];
  19744. this.worksStudent.forEach((e, index) => {
  19745. this.loopLoading.push({ loading: false });
  19746. this.AIloading.push([]);
  19747. e.forEach(k => {
  19748. this.AIloading[index].push({ loading: false, sco: 0 });
  19749. });
  19750. });
  19751. this.refreshAssembly();
  19752. }
  19753. this.selectWorksStudent();
  19754. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19755. this.$nextTick(() => {
  19756. setTimeout(() => {
  19757. setTimeout(() => {
  19758. this.panToolHeight("tool-" + ci);
  19759. }, 500);
  19760. }, 0);
  19761. });
  19762. }
  19763. })
  19764. .catch(err => {
  19765. console.error(err);
  19766. });
  19767. },
  19768. pngToWhiteBg(file) {
  19769. const _file = file;
  19770. let read = new FileReader();
  19771. read.readAsDataURL(file); // 文件转base64
  19772. return new Promise((resolve, reject) => {
  19773. read.onload = e => {
  19774. let img = new Image();
  19775. img.src = e.target.result;
  19776. img.onload = async () => {
  19777. // 生成canvas
  19778. let canvas = document.createElement("canvas");
  19779. let context = canvas.getContext("2d");
  19780. // 绘制图片到canvas上
  19781. canvas.width = img.width;
  19782. canvas.height = img.height;
  19783. // 在canvas绘制前填充白色背景
  19784. context.fillStyle = "#fff";
  19785. context.fillRect(0, 0, canvas.width, canvas.height);
  19786. context.drawImage(img, 0, 0);
  19787. let base64 = canvas.toDataURL(file["type"], 1);
  19788. let newFile = this.dataUrlToFile(base64, _file);
  19789. resolve(newFile);
  19790. };
  19791. };
  19792. });
  19793. },
  19794. dataUrlToFile(dataurl, file) {
  19795. let arr = dataurl.split(","),
  19796. mime = arr[0].match(/:(.*?);/)[1],
  19797. bstr = atob(arr[1]),
  19798. n = bstr.length,
  19799. u8arr = new Uint8Array(n);
  19800. while (n--) {
  19801. u8arr[n] = bstr.charCodeAt(n);
  19802. }
  19803. // return new Blob([u8arr], { type: mime });
  19804. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19805. type: mime
  19806. });
  19807. },
  19808. async beforeUpload1(event, type, i) {
  19809. // this.$message.success('进入上传')
  19810. var file = "";
  19811. if (type == 5) {
  19812. file = event;
  19813. } else {
  19814. file = event.target.files[0];
  19815. }
  19816. var credentials = {
  19817. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19818. secretAccessKey: "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"
  19819. }; //秘钥形式的登录上传
  19820. window.AWS.config.update(credentials);
  19821. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19822. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19823. var _this = this;
  19824. _this.progress = 0;
  19825. _this.proVisible = true;
  19826. _this.isFinishSize = 0;
  19827. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19828. var b = [
  19829. "DOC",
  19830. "DOCX",
  19831. "DOCM",
  19832. "DOTM",
  19833. "DOTX",
  19834. "PPTX",
  19835. "PPSX",
  19836. "PPT",
  19837. "PPS",
  19838. "PPTM",
  19839. "POTM",
  19840. "PPAM",
  19841. "POTX",
  19842. "PPSM"
  19843. ];
  19844. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19845. var photoA = [
  19846. "BMP",
  19847. "GIF",
  19848. "PNG",
  19849. "JPEG",
  19850. "JPEG",
  19851. "JPG",
  19852. "TIF",
  19853. "PCX",
  19854. "TGA",
  19855. "EXIF",
  19856. "FPX",
  19857. "SVG",
  19858. "APNG"
  19859. ];
  19860. // if (
  19861. // b.indexOf(
  19862. // file.name
  19863. // .split(".")
  19864. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19865. // ) != -1
  19866. // ) {
  19867. // if (file.size / 1024 / 1024 > 10) {
  19868. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19869. // return;
  19870. // }
  19871. // } else if (
  19872. // excelA.indexOf(
  19873. // file.name
  19874. // .split(".")
  19875. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19876. // ) != "-1"
  19877. // ) {
  19878. // if (file.size / 1024 / 1024 > 5) {
  19879. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19880. // return;
  19881. // }
  19882. // }
  19883. if (
  19884. photoA.indexOf(
  19885. file.name
  19886. .split(".")
  19887. [file.name.split(".").length - 1].toLocaleUpperCase()
  19888. ) != -1 &&
  19889. type != 4
  19890. ) {
  19891. // const blob = await imageConversion.compress(file, 0.8)
  19892. file = await this.pngToWhiteBg(file);
  19893. const blob = await imageConversion.compressAccurately(file, 256);
  19894. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19895. file = new File([blob], file.name, { type: file.type });
  19896. }
  19897. if (file) {
  19898. var params = {
  19899. Key:
  19900. file.name.split(".")[0] +
  19901. new Date().getTime() +
  19902. "." +
  19903. file.name.split(".")[file.name.split(".").length - 1],
  19904. ContentType: file.type,
  19905. Body: file,
  19906. "Access-Control-Allow-Credentials": "*",
  19907. ACL: "public-read"
  19908. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19909. var options = {
  19910. // partSize: 2048 * 1024 * 1024,
  19911. partSize: 1024 * 1024 * 1024,
  19912. queueSize: 2,
  19913. leavePartsOnError: true
  19914. };
  19915. bucket
  19916. .upload(params, options)
  19917. .on("httpUploadProgress", function(evt) {
  19918. //这里可以写进度条
  19919. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19920. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19921. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19922. })
  19923. .send(function(err, data) {
  19924. _this.progress = 100;
  19925. _this.isFinishSize = _this.isAllSize;
  19926. setTimeout(() => {
  19927. _this.proVisible = false;
  19928. }, 1000);
  19929. if (err) {
  19930. var a = _this.$refs.upload1.uploadFiles;
  19931. a.splice(a.length - 1, a.length);
  19932. _this.$message.error("上传失败");
  19933. } else {
  19934. // _this.$message.success('上传成功')
  19935. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19936. var c = [
  19937. "AVI",
  19938. "NAVI",
  19939. "MPEG",
  19940. "ASF",
  19941. "MOV",
  19942. "WMV",
  19943. "3GP",
  19944. "RM",
  19945. "RMVB",
  19946. "FLV",
  19947. "F4V",
  19948. "H.264",
  19949. "H.265",
  19950. "REAL VIDEO",
  19951. "MKV",
  19952. "WebM",
  19953. "HDDVD",
  19954. "MP4",
  19955. "MPG",
  19956. "M4V",
  19957. "MGV",
  19958. "OGV",
  19959. "QTM",
  19960. "STR",
  19961. "AMC",
  19962. "DVX",
  19963. "EVO",
  19964. "DAT",
  19965. "OGG",
  19966. "OGM"
  19967. ];
  19968. if (type == 1) {
  19969. _this.studyJuri[0].cover.push({
  19970. name: file.name,
  19971. url: data.Location,
  19972. uid: file.uid
  19973. });
  19974. if (
  19975. c.indexOf(
  19976. _this.studyJuri[0].cover[0].url
  19977. .split(".")
  19978. [
  19979. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19980. ].toLocaleUpperCase()
  19981. ) != -1
  19982. ) {
  19983. _this.fileType = 2;
  19984. } else if (
  19985. b.indexOf(
  19986. _this.studyJuri[0].cover[0].url
  19987. .split(".")
  19988. [
  19989. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19990. ].toLocaleUpperCase()
  19991. ) != -1
  19992. ) {
  19993. _this.fileType = 1;
  19994. } else if (
  19995. photoA.indexOf(
  19996. _this.studyJuri[0].cover[0].url
  19997. .split(".")
  19998. [
  19999. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20000. ].toLocaleUpperCase()
  20001. ) != -1
  20002. ) {
  20003. _this.fileType = 0;
  20004. } else {
  20005. _this.fileType = 3;
  20006. }
  20007. _this.imgChange(null, null, type);
  20008. } else if (type == 2) {
  20009. _this.upToolImg = data.Location;
  20010. _this.imgChange(null, null, type);
  20011. _this.addCourseWorks(i);
  20012. } else if (type == 4) {
  20013. _this.addPz("3", data.Location);
  20014. } else if (type == 5) {
  20015. _this.addImgDrawImG(data.Location);
  20016. } else if (type == 6) {
  20017. var _ftype = 1;
  20018. if (
  20019. c.indexOf(
  20020. data.Location.split(".")[
  20021. data.Location.split(".").length - 1
  20022. ].toLocaleUpperCase()
  20023. ) != -1
  20024. ) {
  20025. _ftype = 5;
  20026. } else if (
  20027. b.indexOf(
  20028. data.Location.split(".")[
  20029. data.Location.split(".").length - 1
  20030. ].toLocaleUpperCase()
  20031. ) != -1
  20032. ) {
  20033. _ftype = 4;
  20034. } else {
  20035. _ftype = 1;
  20036. }
  20037. _this.plworkFile.push({
  20038. name: file.name,
  20039. url: data.Location,
  20040. uid: file.uid,
  20041. fileType: _ftype,
  20042. username:
  20043. _this.plworkFile.length > 10
  20044. ? _this.plworkFile.length + 1
  20045. : "0" + (_this.plworkFile.length + 1)
  20046. });
  20047. } else if (type == 7) {
  20048. _this.addCourseWorksGong(i, data.Location, 32);
  20049. } else if (type == 8) {
  20050. _this.addCourseWorksGong(i, data.Location, 57);
  20051. }
  20052. _this.imgChange(null, null, type);
  20053. console.log(data.Location);
  20054. // _this.$message.success('上传成功'+data.Location)
  20055. }
  20056. });
  20057. }
  20058. },
  20059. async beforeUpload3(event, type, i) {
  20060. // this.$message.success('进入上传')
  20061. let file = "";
  20062. let cfindex2 = 0;
  20063. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20064. file = event.target.files[cfindex];
  20065. var credentials = {
  20066. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20067. secretAccessKey: "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"
  20068. }; //秘钥形式的登录上传
  20069. window.AWS.config.update(credentials);
  20070. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20071. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20072. var _this = this;
  20073. // _this.progress = 0;
  20074. _this.proVisible2 = true;
  20075. var b = [
  20076. "DOC",
  20077. "DOCX",
  20078. "DOCM",
  20079. "DOTM",
  20080. "DOTX",
  20081. "PPTX",
  20082. "PPSX",
  20083. "PPT",
  20084. "PPS",
  20085. "PPTM",
  20086. "POTM",
  20087. "PPAM",
  20088. "POTX",
  20089. "PPSM"
  20090. ];
  20091. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20092. var photoA = [
  20093. "BMP",
  20094. "GIF",
  20095. "PNG",
  20096. "JPEG",
  20097. "JPG",
  20098. "TIF",
  20099. "PCX",
  20100. "TGA",
  20101. "EXIF",
  20102. "FPX",
  20103. "SVG",
  20104. "APNG"
  20105. ];
  20106. if (
  20107. photoA.indexOf(
  20108. file.name
  20109. .split(".")
  20110. [file.name.split(".").length - 1].toLocaleUpperCase()
  20111. ) != -1 &&
  20112. type != 4
  20113. ) {
  20114. // const blob = await imageConversion.compress(file, 0.8)
  20115. file = await this.pngToWhiteBg(file);
  20116. const blob = await imageConversion.compressAccurately(file, 256);
  20117. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20118. file = new File([blob], file.name, { type: file.type });
  20119. }
  20120. if (file) {
  20121. var params = {
  20122. Key:
  20123. file.name.split(".")[0] +
  20124. new Date().getTime() +
  20125. "." +
  20126. file.name.split(".")[file.name.split(".").length - 1],
  20127. ContentType: file.type,
  20128. Body: file,
  20129. "Access-Control-Allow-Credentials": "*",
  20130. ACL: "public-read"
  20131. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20132. var options = {
  20133. // partSize: 2048 * 1024 * 1024,
  20134. partSize: 1024 * 1024 * 1024,
  20135. queueSize: 2,
  20136. leavePartsOnError: true
  20137. };
  20138. bucket
  20139. .upload(params, options)
  20140. .on("httpUploadProgress", function(evt) {
  20141. //这里可以写进度条
  20142. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20143. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20144. })
  20145. .send(function(err, data) {
  20146. // _this.progress = 100;
  20147. cfindex2++;
  20148. setTimeout(() => {
  20149. if (
  20150. cfindex2 == event.target.files.length - 1 ||
  20151. cfindex2 > event.target.files.length - 1
  20152. ) {
  20153. _this.proVisible2 = false;
  20154. }
  20155. }, 1000);
  20156. if (err) {
  20157. var a = _this.$refs.upload1.uploadFiles;
  20158. a.splice(a.length - 1, a.length);
  20159. _this.$message.error("上传失败");
  20160. } else {
  20161. // _this.$message.success('上传成功')
  20162. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20163. var c = [
  20164. "AVI",
  20165. "NAVI",
  20166. "MPEG",
  20167. "ASF",
  20168. "MOV",
  20169. "WMV",
  20170. "3GP",
  20171. "RM",
  20172. "RMVB",
  20173. "FLV",
  20174. "F4V",
  20175. "H.264",
  20176. "H.265",
  20177. "REAL VIDEO",
  20178. "MKV",
  20179. "WebM",
  20180. "HDDVD",
  20181. "MP4",
  20182. "MPG",
  20183. "M4V",
  20184. "MGV",
  20185. "OGV",
  20186. "QTM",
  20187. "STR",
  20188. "AMC",
  20189. "DVX",
  20190. "EVO",
  20191. "DAT",
  20192. "OGG",
  20193. "OGM"
  20194. ];
  20195. if (type == 1) {
  20196. _this.studyJuri[0].cover.push({
  20197. name: file.name,
  20198. url: data.Location,
  20199. uid: file.uid
  20200. });
  20201. if (
  20202. c.indexOf(
  20203. _this.studyJuri[0].cover[0].url
  20204. .split(".")
  20205. [
  20206. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20207. ].toLocaleUpperCase()
  20208. ) != -1
  20209. ) {
  20210. _this.fileType = 2;
  20211. } else if (
  20212. b.indexOf(
  20213. _this.studyJuri[0].cover[0].url
  20214. .split(".")
  20215. [
  20216. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20217. ].toLocaleUpperCase()
  20218. ) != -1
  20219. ) {
  20220. _this.fileType = 1;
  20221. } else {
  20222. _this.fileType = 0;
  20223. }
  20224. _this.imgChange(null, null, type);
  20225. } else if (type == 2) {
  20226. _this.upToolImg = data.Location;
  20227. _this.imgChange(null, null, type);
  20228. _this.addCourseWorks(i);
  20229. } else if (type == 4) {
  20230. _this.addPz("3", data.Location);
  20231. } else if (type == 5) {
  20232. _this.addImgDrawImG(data.Location);
  20233. } else if (type == 6) {
  20234. var _ftype = 1;
  20235. if (
  20236. c.indexOf(
  20237. data.Location.split(".")[
  20238. data.Location.split(".").length - 1
  20239. ].toLocaleUpperCase()
  20240. ) != -1
  20241. ) {
  20242. _ftype = 5;
  20243. } else if (
  20244. b.indexOf(
  20245. data.Location.split(".")[
  20246. data.Location.split(".").length - 1
  20247. ].toLocaleUpperCase()
  20248. ) != -1
  20249. ) {
  20250. _ftype = 4;
  20251. } else {
  20252. _ftype = 1;
  20253. }
  20254. _this.plworkFile.push({
  20255. name: file.name,
  20256. url: data.Location,
  20257. uid: file.uid,
  20258. fileType: _ftype,
  20259. username:
  20260. _this.plworkFile.length + 1 > 9
  20261. ? _this.plworkFile.length + 1
  20262. : "0" + (_this.plworkFile.length + 1)
  20263. });
  20264. }
  20265. _this.imgChange(null, null, type);
  20266. console.log(data.Location);
  20267. // _this.$message.success('上传成功'+data.Location)
  20268. }
  20269. });
  20270. }
  20271. }
  20272. },
  20273. beforeUpload2(event, type) {
  20274. var file = event.target.files[0];
  20275. var credentials = {
  20276. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20277. secretAccessKey: "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"
  20278. }; //秘钥形式的登录上传
  20279. window.AWS.config.update(credentials);
  20280. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20281. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20282. var _this = this;
  20283. _this.progress = 0;
  20284. _this.proVisible = true;
  20285. if (file) {
  20286. var params = {
  20287. Key:
  20288. file.name.split(".")[0] +
  20289. new Date().getTime() +
  20290. "." +
  20291. file.name.split(".")[file.name.split(".").length - 1],
  20292. ContentType: file.type,
  20293. Body: file,
  20294. "Access-Control-Allow-Credentials": "*",
  20295. ACL: "public-read"
  20296. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20297. var options = {
  20298. partSize: 2048 * 1024 * 1024,
  20299. queueSize: 2,
  20300. leavePartsOnError: true
  20301. };
  20302. bucket
  20303. .upload(params, options)
  20304. .on("httpUploadProgress", function(evt) {
  20305. //这里可以写进度条
  20306. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20307. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20308. })
  20309. .send(function(err, data) {
  20310. _this.progress = 100;
  20311. setTimeout(() => {
  20312. _this.proVisible = false;
  20313. }, 1000);
  20314. if (err) {
  20315. var a = _this.$refs.upload1.uploadFiles;
  20316. a.splice(a.length - 1, a.length);
  20317. _this.$message.error("上传失败");
  20318. } else {
  20319. if (type == 2) {
  20320. _this.studyJuri[0].upVedio.push({
  20321. name: file.name,
  20322. url: data.Location,
  20323. uid: file.uid
  20324. });
  20325. _this.imgChange(null, null, type);
  20326. } else if (type == 3) {
  20327. _this.studyJuri[0].upFile.push({
  20328. name: file.name,
  20329. url: data.Location,
  20330. uid: file.uid
  20331. });
  20332. _this.imgChange(null, null, type);
  20333. }
  20334. console.log(data.Location);
  20335. }
  20336. });
  20337. }
  20338. },
  20339. allScrell() {
  20340. window.parent.postMessage({ allScreen: this.screenType }, "*");
  20341. },
  20342. nextOrpreSteps(t) {
  20343. if (this.IsFollow && this.tType == 2) {
  20344. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20345. return;
  20346. }
  20347. var b = this.chapInfoList.length - 1;
  20348. if (t == 0) {
  20349. if (this.courseType == 0) {
  20350. if (this.taskCount == 0) {
  20351. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20352. if (this.IsLookOpen) {
  20353. if (
  20354. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20355. ) {
  20356. if (
  20357. this.courseDetail.userid != this.userid &&
  20358. (!this.courseDetail.course_teacher ||
  20359. (this.courseDetail.course_teacher &&
  20360. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20361. -1))
  20362. ) {
  20363. this.$message.error("任务未解锁");
  20364. } else {
  20365. this.$message.error("上一任务未解锁");
  20366. }
  20367. return;
  20368. }
  20369. }
  20370. this.navList[this.courseType].isOpen = false;
  20371. this.courseType = b;
  20372. this.taskCount =
  20373. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20374. .length - 1;
  20375. this.navList[this.courseType].isOpen = true;
  20376. } else {
  20377. this.taskCount--;
  20378. }
  20379. } else {
  20380. if (this.taskCount == 0) {
  20381. this.navList[this.courseType].isOpen = false;
  20382. this.courseType--;
  20383. this.taskCount =
  20384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20385. .length - 1;
  20386. this.navList[this.courseType].isOpen = true;
  20387. } else {
  20388. this.taskCount--;
  20389. }
  20390. }
  20391. } else {
  20392. if (this.courseType == b) {
  20393. if (
  20394. this.taskCount ==
  20395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20396. 1
  20397. ) {
  20398. this.navList[this.courseType].isOpen = false;
  20399. this.courseType = 0;
  20400. this.taskCount = 0;
  20401. this.navList[this.courseType].isOpen = true;
  20402. } else {
  20403. var bbb = parseInt(this.taskCount) + 1;
  20404. if (
  20405. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20406. .isLook &&
  20407. this.courseDetail.userid != this.userid &&
  20408. (!this.courseDetail.course_teacher ||
  20409. (this.courseDetail.course_teacher &&
  20410. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20411. -1)) &&
  20412. this.IsLookOpen
  20413. ) {
  20414. this.$message.error("任务未解锁");
  20415. return;
  20416. }
  20417. this.taskCount++;
  20418. if (this.IsLookOpen) {
  20419. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20420. this.taskCount
  20421. ].isLook = true;
  20422. this.addCourseState(3);
  20423. }
  20424. }
  20425. } else {
  20426. if (
  20427. this.taskCount ==
  20428. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20429. 1
  20430. ) {
  20431. var bbb = parseInt(this.courseType) + 1;
  20432. if (
  20433. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20434. this.courseDetail.userid != this.userid &&
  20435. (!this.courseDetail.course_teacher ||
  20436. (this.courseDetail.course_teacher &&
  20437. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20438. -1)) &&
  20439. this.IsLookOpen
  20440. ) {
  20441. this.$message.error("任务未解锁");
  20442. return;
  20443. }
  20444. this.navList[this.courseType].isOpen = false;
  20445. this.courseType++;
  20446. this.taskCount = 0;
  20447. this.navList[this.courseType].isOpen = true;
  20448. } else {
  20449. var bbb = parseInt(this.taskCount) + 1;
  20450. if (
  20451. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20452. .isLook &&
  20453. this.courseDetail.userid != this.userid &&
  20454. (!this.courseDetail.course_teacher ||
  20455. (this.courseDetail.course_teacher &&
  20456. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20457. -1)) &&
  20458. this.IsLookOpen
  20459. ) {
  20460. this.$message.error("任务未解锁");
  20461. return;
  20462. }
  20463. this.taskCount++;
  20464. }
  20465. if (this.IsLookOpen) {
  20466. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20467. this.taskCount
  20468. ].isLook = true;
  20469. this.addCourseState(3);
  20470. }
  20471. }
  20472. // if (
  20473. // this.taskCount ==
  20474. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20475. // ) {
  20476. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20477. // } else {
  20478. // this.taskCount++;
  20479. // }
  20480. }
  20481. document.scrollingElement.scrollTop = 0;
  20482. this.showType = 7;
  20483. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20484. // if (this.vedio[this.taskCount].length > 0) {
  20485. // var a =
  20486. // document.getElementsByClassName("box_course")[this.taskCount]
  20487. // .offsetHeight;
  20488. // document.getElementsByClassName("vedioList")[
  20489. // this.taskCount
  20490. // ].style.height = a + "px";
  20491. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20492. // a - 40 + "px";
  20493. // }
  20494. this.isNoHomeWork = false;
  20495. (this.studyJuri = [
  20496. {
  20497. content: "",
  20498. cover: [],
  20499. upVedio: [],
  20500. upFile: []
  20501. }
  20502. ]),
  20503. (this.radio = []);
  20504. this.isClickNav = "";
  20505. this.selectPz();
  20506. this.getHomeWork();
  20507. this.getCourseDetail(2);
  20508. this.$forceUpdate();
  20509. },
  20510. openTask(s, n, i) {
  20511. this.refreshAssembly();
  20512. if (this.IsFollow && this.tType == 2) {
  20513. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20514. return;
  20515. }
  20516. if (this.IsLookOpen &&
  20517. this.courseDetail.userid != this.userid &&
  20518. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20519. if (
  20520. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20521. this.courseDetail.userid != this.userid &&
  20522. (!this.courseDetail.course_teacher ||
  20523. (this.courseDetail.course_teacher &&
  20524. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20525. ) {
  20526. this.$message.error("任务未解锁");
  20527. return;
  20528. }
  20529. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20530. if (
  20531. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20532. .isLook
  20533. ) {
  20534. this.$message.error("上一任务未解锁");
  20535. return;
  20536. }
  20537. } else if (s > this.courseType) {
  20538. if (n > 0) {
  20539. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20540. this.$message.error("上一任务未解锁");
  20541. return;
  20542. }
  20543. } else {
  20544. if (
  20545. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20546. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20547. ].isLook
  20548. ) {
  20549. this.$message.error("上一任务未解锁");
  20550. return;
  20551. }
  20552. }
  20553. }
  20554. }
  20555. if (this.navList[s].task[n].isOpen == true) {
  20556. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20557. return;
  20558. }
  20559. let flag = this.courseType == s;
  20560. this.courseType = s;
  20561. this.navId = i;
  20562. this.taskCount = n;
  20563. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20564. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  20565. this.courseType
  20566. ].task[this.taskCount].isOpen;
  20567. if (this.IsLookOpen) {
  20568. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20569. this.taskCount
  20570. ].isLook = true;
  20571. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20572. this.addCourseState(3,yym);
  20573. }
  20574. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20575. this.isCloseList[ci].isClose = 0;
  20576. this.isCloseList[ci].isCloseBoolean = false;
  20577. this.$nextTick(() => {
  20578. setTimeout(() => {
  20579. setTimeout(() => {
  20580. this.panToolHeight("tool-" + ci);
  20581. }, 0);
  20582. }, 0);
  20583. });
  20584. }
  20585. this.showType = 7;
  20586. this.isNoHomeWork = false;
  20587. (this.studyJuri = [
  20588. {
  20589. content: "",
  20590. cover: [],
  20591. upVedio: [],
  20592. upFile: []
  20593. }
  20594. ]),
  20595. (this.radio = []);
  20596. document.scrollingElement.scrollTop = 0;
  20597. // setTimeout(() => {
  20598. // let a = document.getElementById(i);
  20599. // if (a.offsetTop - 110 == 0) {
  20600. // window.scrollTo(0, 0);
  20601. // } else {
  20602. // window.scrollTo(0, a.offsetTop);
  20603. // }
  20604. // }, 0);
  20605. for (var z = 0; z < this.navList.length; z++) {
  20606. for (var q = 0; q < this.navList[z].task.length; q++) {
  20607. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20608. this.navList[z].task[q].tool[w].isTool = false;
  20609. }
  20610. }
  20611. }
  20612. this.selectPz();
  20613. this.getHomeWork();
  20614. this.getCourseDetail(2);
  20615. if (flag) {
  20616. this.insertMemorandum(
  20617. `进入<span class="variable">任务${n + 1}${
  20618. this.navList[s].task[n].taskName
  20619. ? ":" + this.navList[s].task[n].taskName
  20620. : ""
  20621. }</span>`
  20622. );
  20623. } else {
  20624. this.insertMemorandum(
  20625. `进入<span class="variable">阶段${s + 1}${
  20626. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  20627. }</span>→<span class="variable">任务${n + 1}${
  20628. this.navList[s].task[n].taskName
  20629. ? ":" + this.navList[s].task[n].taskName
  20630. : ""
  20631. }</span>`
  20632. );
  20633. }
  20634. },
  20635. get(i) {
  20636. if (this.IsFollow && this.tType == 2) {
  20637. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20638. return;
  20639. }
  20640. // for(var k=0;k<this.navList.length;k++){
  20641. // this.navList[k].isOpen = false;
  20642. // }
  20643. // this.navList[i].isOpen = true;
  20644. this.navList[i].isOpen = !this.navList[i].isOpen;
  20645. if (this.navList[i].isOpen) {
  20646. this.openTask(i, 0, i + "-0");
  20647. }
  20648. },
  20649. addQuestion() {
  20650. this.answerList.push({
  20651. answerTitle: this.answerQ,
  20652. answer: this.questionAnswer
  20653. });
  20654. let params = [
  20655. {
  20656. uid: this.userid,
  20657. cid: this.id,
  20658. stage: this.courseType,
  20659. task: this.taskCount,
  20660. tool: this.toolindex,
  20661. content: JSON.stringify(this.answerList),
  20662. type: 3
  20663. }
  20664. ];
  20665. this.ajax
  20666. .post(this.$store.state.api + "addCourseWorks", params)
  20667. .then(res => {
  20668. this.$message({
  20669. message: "提交成功",
  20670. type: "success"
  20671. });
  20672. this.answerList = [];
  20673. this.answerDialogVisible = false;
  20674. this.selectStudent();
  20675. this.selectSWorks();
  20676. this.selectSLook();
  20677. })
  20678. .catch(err => {
  20679. this.$message.error("提交失败");
  20680. console.error(err);
  20681. });
  20682. },
  20683. addQuestionTeacher() {
  20684. this.answerList.push({
  20685. answerTitle: this.answerQ,
  20686. answer: this.questionAnswer
  20687. });
  20688. let params = [
  20689. {
  20690. uid: this.sStudent.userid,
  20691. cid: this.id,
  20692. stage: this.courseType,
  20693. task: this.taskCount,
  20694. tool: this.toolindex,
  20695. content: JSON.stringify(this.answerList),
  20696. type: 3,
  20697. ateacher: this.userid
  20698. }
  20699. ];
  20700. this.ajax
  20701. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20702. .then(res => {
  20703. this.$message({
  20704. message: "提交成功",
  20705. type: "success"
  20706. });
  20707. this.answerList = [];
  20708. this.questionAnswer = "";
  20709. this.answerDialogVisibleTeacher = false;
  20710. this.selectStudent();
  20711. this.selectSWorks();
  20712. this.selectSLook();
  20713. })
  20714. .catch(err => {
  20715. this.$message.error("提交失败");
  20716. console.error(err);
  20717. });
  20718. },
  20719. refreshCourse() {
  20720. // window.location.reload();
  20721. this.navList = [];
  20722. this.getCourseDetail(1);
  20723. },
  20724. getCourseDetail(type, gindex) {
  20725. let loading;
  20726. if (type != 2) {
  20727. loading = this.$loading.service({
  20728. background: "rgba(255, 255, 255, 0.7)",
  20729. target: document.querySelector(".student_table")
  20730. });
  20731. }
  20732. this.downLoading = false;
  20733. // this.navList[0].isOpen = false;
  20734. // this.navList[this.courseType].isOpen = true;
  20735. // this.courseType = this.courseTypeLine;
  20736. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20737. let params = {
  20738. courseId: this.id
  20739. };
  20740. this.ajax
  20741. .get(this.$store.state.api + "selectCourseDetail3", params)
  20742. .then(res => {
  20743. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  20744. if (type != 2) {
  20745. loading.close();
  20746. if (
  20747. this.courseType >
  20748. JSON.parse(res.data[0][0].chapters).length - 1
  20749. ) {
  20750. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20751. }
  20752. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20753. .chapterInfo[0].taskJson;
  20754. var b = [
  20755. "AVI",
  20756. "NAVI",
  20757. "MPEG",
  20758. "ASF",
  20759. "MOV",
  20760. "WMV",
  20761. "3GP",
  20762. "RM",
  20763. "RMVB",
  20764. "FLV",
  20765. "F4V",
  20766. "H.264",
  20767. "H.265",
  20768. "REAL VIDEO",
  20769. "MKV",
  20770. "WebM",
  20771. "HDDVD",
  20772. "MP4",
  20773. "MPG",
  20774. "M4V",
  20775. "MGV",
  20776. "OGV",
  20777. "QTM",
  20778. "STR",
  20779. "AMC",
  20780. "DVX",
  20781. "EVO",
  20782. "DAT",
  20783. "OGG",
  20784. "OGM",
  20785. "MP3"
  20786. ];
  20787. let _chapterData = [];
  20788. for (var i = 0; i < a.length; i++) {
  20789. var c = a[i].chapterData;
  20790. this.vedio[i] = [];
  20791. this.textList[i] = [];
  20792. this.lineList[i] = [];
  20793. this.chapToolList[i] = [];
  20794. this.file[i] = [];
  20795. this.fileC[i] = [];
  20796. _chapterData[i] = c.filter(el => {
  20797. return el.type != 12;
  20798. });
  20799. this.fileC[i] = c.filter(el => {
  20800. return el.type == 12;
  20801. });
  20802. if (this.tType == 2) {
  20803. if (this.fileC[i].length) {
  20804. let yym1 = this.fileC[i].filter(e=>{
  20805. if(!converter(e.name).includes(converter("教案"))){
  20806. return e
  20807. }
  20808. })
  20809. this.fileC[i] = yym1
  20810. }
  20811. }
  20812. // else if (c[j].type == 12) {
  20813. // this.fileC[i].push(c[j]);
  20814. // }
  20815. for (var j = 0; j < c.length; j++) {
  20816. if (c[j].type == 7) {
  20817. this.chapToolList[i].push(c[j]);
  20818. } else if (c[j].type == 8 || c[j].type == 14) {
  20819. this.lineList[i].push(c[j]);
  20820. } else if (c[j].type == 6) {
  20821. this.textList[i].push(c[j]);
  20822. } else {
  20823. if (
  20824. b.indexOf(
  20825. c[j].url
  20826. .split(".")
  20827. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20828. ) != -1
  20829. ) {
  20830. this.vedio[i].push(c[j]);
  20831. } else {
  20832. this.file[i].push(c[j]);
  20833. }
  20834. }
  20835. }
  20836. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20837. d.sources[0].src =
  20838. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20839. this.playerO[i] = d;
  20840. }
  20841. this.courseDetail = res.data[0][0];
  20842. if(this.tType == 2){
  20843. this.tcid = this.arrayToArray(
  20844. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20845. this.classId ? this.classId.split(",") : []
  20846. ).join(",");
  20847. }else{
  20848. this.tcid = this.arrayToArray(
  20849. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20850. this.tcid2 ? this.tcid2.split(",") : []
  20851. ).join(",");
  20852. }
  20853. this.evalua = res.data[0][0].evaId;
  20854. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20855. this.courseType
  20856. ];
  20857. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20858. if (this.tcid && res.data[1].length) {
  20859. let _inviteA = [];
  20860. for (var ik = 0; ik < res.data[1].length; ik++) {
  20861. _inviteA.push({
  20862. cid: res.data[1][ik].classid,
  20863. ic: res.data[1][ik].code
  20864. });
  20865. }
  20866. for (var ik = 0; ik < _inviteA.length; ik++) {
  20867. if (
  20868. this.arrayToArray(
  20869. _inviteA[ik].cid.split(","),
  20870. this.tcid.split(",")
  20871. ).length
  20872. ) {
  20873. this.inviteCode = _inviteA[ik].ic;
  20874. break;
  20875. }
  20876. }
  20877. }
  20878. for (var l = 0; l < this.chapInfoList.length; l++) {
  20879. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20880. for (var m = 0; m < w.length; m++) {
  20881. w[m].id = l + "-" + m;
  20882. }
  20883. }
  20884. if (
  20885. _chapterData[this.taskCount].length &&
  20886. _chapterData[this.taskCount][0].type == 2
  20887. ) {
  20888. this.showType = 0;
  20889. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  20890. } else {
  20891. if (_chapterData[this.taskCount].length > 0) {
  20892. let _url = _chapterData[this.taskCount][0].url;
  20893. if (
  20894. _chapterData[this.taskCount][0].type == 8 ||
  20895. _chapterData[this.taskCount][0].type == 14
  20896. ) {
  20897. this.showType = 2;
  20898. if (
  20899. _url.indexOf("https://") == -1 &&
  20900. _url.indexOf("http://") == -1
  20901. ) {
  20902. _url = "https://" + _url;
  20903. }
  20904. this.pptImgUrl1 = _url;
  20905. } else if (_chapterData[this.taskCount][0].type == 3) {
  20906. if (
  20907. _url
  20908. .split(".")
  20909. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20910. ) {
  20911. this.showType = 3;
  20912. this.pptImgUrl1 = _url;
  20913. } else if (
  20914. this.isAssetTypeAnImage(
  20915. _url
  20916. .split(".")
  20917. [_url.split(".").length - 1].toLocaleLowerCase()
  20918. )
  20919. ) {
  20920. this.showType = 4;
  20921. this.pptImgUrl1 = _url;
  20922. } else {
  20923. this.showType = 2;
  20924. this.pptImgUrl1 =
  20925. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20926. encodeURIComponent(_url);
  20927. }
  20928. } else if (_chapterData[this.taskCount][0].type == 13) {
  20929. this.showType = 4;
  20930. this.pptImgUrl1 = _url;
  20931. } else if (_chapterData[this.taskCount][0].type == 6) {
  20932. this.showType = 1;
  20933. this.text = this.textList[this.taskCount][0];
  20934. }
  20935. }
  20936. }
  20937. this.isClickNav = 0;
  20938. if (
  20939. !_chapterData[this.taskCount].length ||
  20940. _chapterData[this.taskCount][0].type == 12
  20941. ) {
  20942. this.isClickNav = "";
  20943. this.showType = "";
  20944. }
  20945. if (this.tType == 2) {
  20946. _chapterData.forEach((e,i)=>{
  20947. if (e.length) {
  20948. let yym = e.filter(k=>{
  20949. if(!converter(k.name).includes(converter("教案"))){
  20950. return k
  20951. }
  20952. })
  20953. _chapterData[i] = yym
  20954. }
  20955. })
  20956. }
  20957. this.vChapterData = _chapterData;
  20958. } else {
  20959. this.showType = 0;
  20960. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20961. .chapterInfo[0].taskJson;
  20962. var b = [
  20963. "AVI",
  20964. "NAVI",
  20965. "MPEG",
  20966. "ASF",
  20967. "MOV",
  20968. "WMV",
  20969. "3GP",
  20970. "RM",
  20971. "RMVB",
  20972. "FLV",
  20973. "F4V",
  20974. "H.264",
  20975. "H.265",
  20976. "REAL VIDEO",
  20977. "MKV",
  20978. "WebM",
  20979. "HDDVD",
  20980. "MP4",
  20981. "MPG",
  20982. "M4V",
  20983. "MGV",
  20984. "OGV",
  20985. "QTM",
  20986. "STR",
  20987. "AMC",
  20988. "DVX",
  20989. "EVO",
  20990. "DAT",
  20991. "OGG",
  20992. "OGM",
  20993. "MP3"
  20994. ];
  20995. let _chapterData = [];
  20996. for (var i = 0; i < a.length; i++) {
  20997. var c = a[i].chapterData;
  20998. this.vedio[i] = [];
  20999. this.textList[i] = [];
  21000. this.lineList[i] = [];
  21001. this.chapToolList[i] = [];
  21002. this.file[i] = [];
  21003. this.fileC[i] = [];
  21004. _chapterData[i] = c.filter(el => {
  21005. return el.type != 12;
  21006. });
  21007. this.fileC[i] = c.filter(el => {
  21008. return el.type == 12;
  21009. });
  21010. if (this.tType == 2) {
  21011. if (this.fileC[i].length) {
  21012. let yym1 = this.fileC[i].filter(e=>{
  21013. if(!converter(e.name).includes(converter("教案"))){
  21014. return e
  21015. }
  21016. })
  21017. this.fileC[i] = yym1
  21018. }
  21019. }
  21020. for (var j = 0; j < c.length; j++) {
  21021. if (c[j].type == 7) {
  21022. this.chapToolList[i].push(c[j]);
  21023. } else if (c[j].type == 8 || c[j].type == 14) {
  21024. this.lineList[i].push(c[j]);
  21025. } else if (c[j].type == 6) {
  21026. this.textList[i].push(c[j]);
  21027. } else {
  21028. if (
  21029. b.indexOf(
  21030. c[j].url
  21031. .split(".")
  21032. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21033. ) != -1
  21034. ) {
  21035. this.vedio[i].push(c[j]);
  21036. } else {
  21037. this.file[i].push(c[j]);
  21038. }
  21039. }
  21040. }
  21041. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21042. d.sources[0].src =
  21043. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21044. this.playerO[i] = d;
  21045. }
  21046. if (
  21047. _chapterData[this.taskCount].length &&
  21048. _chapterData[this.taskCount][0].type == 2
  21049. ) {
  21050. this.showType = 0;
  21051. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21052. } else {
  21053. if (_chapterData[this.taskCount].length > 0) {
  21054. let _url = _chapterData[this.taskCount][0].url;
  21055. if (
  21056. _chapterData[this.taskCount][0].type == 8 ||
  21057. _chapterData[this.taskCount][0].type == 14
  21058. ) {
  21059. this.showType = 2;
  21060. if (
  21061. _url.indexOf("https://") == -1 &&
  21062. _url.indexOf("http://") == -1
  21063. ) {
  21064. _url = "https://" + _url;
  21065. }
  21066. this.pptImgUrl1 = _url;
  21067. } else if (_chapterData[this.taskCount][0].type == 3) {
  21068. if (
  21069. _url
  21070. .split(".")
  21071. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21072. ) {
  21073. this.showType = 3;
  21074. this.pptImgUrl1 = _url;
  21075. } else if (
  21076. this.isAssetTypeAnImage(
  21077. _url
  21078. .split(".")
  21079. [_url.split(".").length - 1].toLocaleLowerCase()
  21080. )
  21081. ) {
  21082. this.showType = 4;
  21083. this.pptImgUrl1 = _url;
  21084. } else {
  21085. this.showType = 2;
  21086. this.pptImgUrl1 =
  21087. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21088. encodeURIComponent(_url);
  21089. }
  21090. } else if (_chapterData[this.taskCount][0].type == 13) {
  21091. this.showType = 4;
  21092. this.pptImgUrl1 = _url;
  21093. } else if (_chapterData[this.taskCount][0].type == 6) {
  21094. this.showType = 1;
  21095. this.text = this.textList[this.taskCount][0];
  21096. }
  21097. }
  21098. }
  21099. this.isClickNav = 0;
  21100. if (
  21101. !_chapterData[this.taskCount].length ||
  21102. _chapterData[this.taskCount][0].type == 12
  21103. ) {
  21104. this.isClickNav = "";
  21105. this.showType = "";
  21106. }
  21107. if (this.tType == 2) {
  21108. _chapterData.forEach((e,i)=>{
  21109. if (e.length) {
  21110. let yym = e.filter(k=>{
  21111. if(!converter(k.name).includes(converter("教案"))){
  21112. return k
  21113. }
  21114. })
  21115. _chapterData[i] = yym
  21116. }
  21117. })
  21118. }
  21119. this.vChapterData = _chapterData;
  21120. this.$forceUpdate();
  21121. }
  21122. // console.log('this.chapInfoList22222',JS);
  21123. if (res.data[0][0].setting) {
  21124. try {
  21125. this.languageSetting =
  21126. JSON.parse(res.data[0][0].setting).languageSetting ||
  21127. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21128. ? JSON.parse(res.data[0][0].setting).languageSetting
  21129. : 0;
  21130. } catch (error) {
  21131. console.error(error);
  21132. }
  21133. }
  21134. // finalMarkList用来判断哪个工具为评分工具
  21135. if (this.courseDetail.state == 5) {
  21136. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21137. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21138. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21139. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21140. // // 没有的话在选其他工具为评分工具
  21141. // if(adc.length > 0){
  21142. // for (let k = chap.length - 1; k >= 0; k--) {
  21143. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21144. // this.finalMarkList = k;
  21145. // break;
  21146. // }
  21147. // }
  21148. // }else{
  21149. // for (let k = chap.length - 1; k >= 0; k--) {
  21150. // 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) {
  21151. // this.finalMarkList = k;
  21152. // break;
  21153. // }
  21154. // }
  21155. // }
  21156. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21157. // 不然会无限循环报错,会很难受
  21158. let aiSNum = 0;
  21159. if (
  21160. chapInfoListCopy[this.taskCount].eList &&
  21161. chapInfoListCopy[this.taskCount].eList.length
  21162. ) {
  21163. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21164. if (e.isai == 2) {
  21165. aiSNum++;
  21166. }
  21167. });
  21168. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21169. this.isaiNum = aiSNum;
  21170. } else {
  21171. this.isaiNum = 0;
  21172. }
  21173. // for (
  21174. // let k = 0;
  21175. // k < chapInfoListCopy[this.taskCount].eList.length;
  21176. // k++
  21177. // ) {
  21178. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21179. // this.againEva(this.taskCount, k);
  21180. // }
  21181. // }
  21182. }
  21183. }
  21184. // else {
  21185. // this.courseDetail = res.data[0][0];
  21186. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21187. // }
  21188. let _this = this;
  21189. if (_this.timer) {
  21190. clearInterval(_this.timer);
  21191. _this.timer = null;
  21192. }
  21193. if (_this.tcid) {
  21194. _this.getCourseGroup(gindex);
  21195. } else {
  21196. _this.selectSWorks(gindex);
  21197. }
  21198. _this.selectStudent();
  21199. _this.selectSLook();
  21200. _this.getPick();
  21201. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21202. _this.setCTask();
  21203. }
  21204. if (_this.dialogVisibleGroup) {
  21205. _this.groupJson =
  21206. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21207. _this.taskCount
  21208. ].toolChoose[_this.toolindex].groupJson;
  21209. }
  21210. _this.$nextTick(() => {
  21211. setTimeout(() => {
  21212. _this.checkEva();
  21213. }, 1000);
  21214. });
  21215. _this.timer = setInterval(function() {
  21216. // _this.getCourseDetail(2);
  21217. if (_this.tcid) {
  21218. _this.getCourseGroup();
  21219. } else {
  21220. _this.selectSWorks();
  21221. }
  21222. _this.selectStudent();
  21223. _this.selectSLook();
  21224. _this.getPick();
  21225. // _this.getSplitScreenData();
  21226. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21227. _this.setCTask();
  21228. }
  21229. if (_this.dialogVisibleGroup) {
  21230. _this.groupJson =
  21231. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21232. _this.taskCount
  21233. ].toolChoose[_this.toolindex].groupJson;
  21234. }
  21235. if (_this.tType == 4 || _this.ispzType == 4) {
  21236. _this.selectPz();
  21237. }
  21238. }, 5000);
  21239. if (_this.timer2 == null) {
  21240. _this.timer2 = setInterval(()=> {
  21241. _this.getSplitScreenData();//获取分屏数据
  21242. }, 5000);
  21243. }
  21244. _this.$nextTick(function() {
  21245. setTimeout(() => {
  21246. // var a =
  21247. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21248. // document.getElementsByClassName("vedioList")[0].style.height =
  21249. // a + "px";
  21250. // document.getElementsByClassName("navBox")[0].style.height =
  21251. // a - 40 + "px";
  21252. // if (_this.vedio[_this.taskCount].length > 0) {
  21253. // _this.vedioTime = [];
  21254. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21255. // _this.vedioTime[i] = document.getElementsByClassName(
  21256. // "vjs-duration-display"
  21257. // )[i].textContent;
  21258. // }
  21259. // }
  21260. }, 1000);
  21261. });
  21262. })
  21263. .catch(err => {
  21264. loading.close();
  21265. console.error(err);
  21266. });
  21267. },
  21268. getCourseGroup(gindex) {
  21269. let params = {
  21270. cid: this.id,
  21271. classid: this.tcid ? this.tcid : "1"
  21272. };
  21273. this.ajax
  21274. .get(this.$store.state.api + "getCourseGroup", params)
  21275. .then(res => {
  21276. if (res.data && res.data[0].length) {
  21277. if (!this.isGroup) {
  21278. let courseGroup = JSON.parse(res.data[0][0].group);
  21279. courseGroup.group = courseGroup.group.filter(el => {
  21280. el.works = [];
  21281. return el;
  21282. });
  21283. if (courseGroup.isopen == 2) {
  21284. this.isGroup = false;
  21285. this.selectSWorks(gindex);
  21286. return;
  21287. }
  21288. this.courseGroup = courseGroup;
  21289. let groupPerson = res.data[1];
  21290. let group = JSON.parse(res.data[0][0].group).group;
  21291. let courseGroupStudent = {};
  21292. let courseGroupStudentUid = {};
  21293. for (var i = 0; i < group.length; i++) {
  21294. courseGroupStudent[group[i].id] = [];
  21295. courseGroupStudentUid[group[i].id] = [];
  21296. for (var j = 0; j < groupPerson.length; j++) {
  21297. if (groupPerson[j].groupCid == group[i].id) {
  21298. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21299. courseGroupStudentUid[group[i].id].push(
  21300. groupPerson[j].userid
  21301. );
  21302. }
  21303. }
  21304. }
  21305. this.courseGroupStudent = courseGroupStudent;
  21306. this.courseGroupStudentUid = courseGroupStudentUid;
  21307. }
  21308. if (this.courseGroup.isopen == 2) {
  21309. this.isGroup = false;
  21310. } else {
  21311. this.isGroup = true;
  21312. }
  21313. this.selectSWorks(gindex);
  21314. } else {
  21315. this.selectSWorks(gindex);
  21316. this.isGroup = false;
  21317. }
  21318. })
  21319. .catch(err => {
  21320. // this.$message.error("网络不佳");
  21321. console.error(err);
  21322. });
  21323. },
  21324. setOperationTime() {
  21325. let _this = this;
  21326. if (_this.opertimer) {
  21327. clearInterval(_this.opertimer);
  21328. _this.opertimer = null;
  21329. }
  21330. _this.opertimer = setInterval(() => {
  21331. _this.setoTime("600");
  21332. }, 600000);
  21333. },
  21334. setoTime(time) {
  21335. let params = [
  21336. {
  21337. uid: this.userid,
  21338. cid: this.id,
  21339. type: "2",
  21340. time: time
  21341. }
  21342. ];
  21343. this.ajax
  21344. .post(this.$store.state.api + "addOperationTimeT2", params)
  21345. .then(res => {})
  21346. .catch(err => {
  21347. console.error(err);
  21348. });
  21349. },
  21350. addPz(type, content) {
  21351. if (type == "1" && this.pzConText == "") {
  21352. this.$message.error("评论不能为空!");
  21353. return;
  21354. }
  21355. let params = [
  21356. {
  21357. cid: this.id,
  21358. uid: this.userid,
  21359. s: this.courseType,
  21360. t: this.taskCount,
  21361. c: type == "1" ? this.pzConText : content,
  21362. type: type
  21363. }
  21364. ];
  21365. this.ajax
  21366. .post(this.$store.state.api + "addPz2", params)
  21367. .then(res => {
  21368. this.$message({
  21369. message: "添加成功",
  21370. type: "success"
  21371. });
  21372. this.pzConText = "";
  21373. this.addPzDialog = false;
  21374. this.selectPz();
  21375. this.insertMemorandum(
  21376. `使用<span class="btn">评论</span>功能,添加评论`
  21377. );
  21378. })
  21379. .catch(err => {
  21380. this.$message.error("添加失败");
  21381. console.error(err);
  21382. });
  21383. },
  21384. setReplyIndex(id, i) {
  21385. this.replyIndex = i;
  21386. this.replyPid = id;
  21387. this.replyDialogVisible = true;
  21388. },
  21389. addHf() {
  21390. if (this.reply == "") {
  21391. this.$message.error("回复不能为空!");
  21392. return;
  21393. }
  21394. let params = [
  21395. {
  21396. cid: this.id,
  21397. uid: this.userid,
  21398. s: this.courseType,
  21399. t: this.taskCount,
  21400. type: "1",
  21401. ct: 2,
  21402. pid: this.replyPid,
  21403. c: this.reply
  21404. }
  21405. ];
  21406. this.ajax
  21407. .post(this.$store.state.api + "addHf", params)
  21408. .then(res => {
  21409. this.reply = "";
  21410. this.$message({
  21411. message: "回复成功",
  21412. type: "success"
  21413. });
  21414. this.replyDialogVisible = false;
  21415. this.selectPz();
  21416. })
  21417. .catch(err => {
  21418. this.$message.error("回复失败");
  21419. console.error(err);
  21420. });
  21421. },
  21422. deletePz(id) {
  21423. this.$confirm("确定删除此评论吗?", "提示", {
  21424. confirmButtonText: "确定",
  21425. cancelButtonText: "取消",
  21426. type: "warning"
  21427. })
  21428. .then(() => {
  21429. let params = [
  21430. {
  21431. id: id
  21432. }
  21433. ];
  21434. this.ajax
  21435. .post(this.$store.state.api + "deletePz", params)
  21436. .then(res => {
  21437. this.$message({
  21438. message: "删除成功",
  21439. type: "success"
  21440. });
  21441. this.selectPz();
  21442. })
  21443. .catch(err => {
  21444. this.$message.error("网络异常");
  21445. console.error(err);
  21446. });
  21447. })
  21448. .catch(() => {});
  21449. },
  21450. deleteReply(id) {
  21451. this.$confirm("确定删除此回复吗?", "提示", {
  21452. confirmButtonText: "确定",
  21453. cancelButtonText: "取消",
  21454. type: "warning"
  21455. })
  21456. .then(() => {
  21457. let params = [
  21458. {
  21459. id: id
  21460. }
  21461. ];
  21462. this.ajax
  21463. .post(this.$store.state.api + "deleteReply", params)
  21464. .then(res => {
  21465. this.$message({
  21466. message: "删除成功",
  21467. type: "success"
  21468. });
  21469. this.selectPz();
  21470. })
  21471. .catch(err => {
  21472. this.$message.error("网络异常");
  21473. console.error(err);
  21474. });
  21475. })
  21476. .catch(() => {});
  21477. },
  21478. setPz() {
  21479. if (this.ispzType == 4) {
  21480. this.ispzType = 0;
  21481. this.pzDialog = false;
  21482. return;
  21483. }
  21484. this.ispzType = 4;
  21485. this.pzDialog = true;
  21486. this.selectPz();
  21487. },
  21488. selectPz() {
  21489. let params = {
  21490. cid: this.id,
  21491. s: this.courseType,
  21492. t: this.taskCount,
  21493. type: this.pzStype,
  21494. uid: this.userid
  21495. };
  21496. this.ajax
  21497. .get(this.$store.state.api + "selectPzListType", params)
  21498. .then(res => {
  21499. this.pzList = res.data[0];
  21500. var a = res.data[1];
  21501. for (var i = 0; i < a.length; i++) {
  21502. for (var j = 0; j < this.pzList.length; j++) {
  21503. if (!this.pzList[j].hfList) {
  21504. this.pzList[j].hfList = [];
  21505. }
  21506. if (a[i].pid == this.pzList[j].id) {
  21507. this.pzList[j].hfList.push(a[i]);
  21508. }
  21509. }
  21510. }
  21511. })
  21512. .catch(err => {
  21513. console.error(err);
  21514. });
  21515. },
  21516. // selectHf() {
  21517. // let params = {
  21518. // cid: this.id,
  21519. // s: this.courseType,
  21520. // t: this.taskCount,
  21521. // };
  21522. // this.ajax
  21523. // .get(this.$store.state.api + "selectHfList", params)
  21524. // .then((res) => {
  21525. // var a = res.data[0];
  21526. // for (var i = 0; i < a.length; i++) {
  21527. // for (var j = 0; j < this.pzList.length; j++) {
  21528. // if (!this.pzList[i].hfList) {
  21529. // this.pzList[i].hfList = [];
  21530. // }
  21531. // if (a[i].pid == this.pzList[j].id) {
  21532. // this.pzList[i].hfList.push(a[i]);
  21533. // }
  21534. // }
  21535. // }
  21536. // })
  21537. // .catch((err) => {
  21538. // console.error(err);
  21539. // });
  21540. // },
  21541. updateSLook() {
  21542. let params = {
  21543. sopen: this.sIsOpen == false ? 1 : 2,
  21544. cid: this.id
  21545. };
  21546. this.ajax
  21547. .get(this.$store.state.api + "updateCourseSLook", params)
  21548. .then(res => {
  21549. if (this.sIsOpen == true) {
  21550. this.$message({
  21551. message: "权限设置成功",
  21552. type: "success"
  21553. });
  21554. } else {
  21555. this.$message({
  21556. message: "权限关闭成功",
  21557. type: "success"
  21558. });
  21559. }
  21560. })
  21561. .catch(err => {
  21562. console.error(err);
  21563. });
  21564. },
  21565. updateFollow() {
  21566. let params = [
  21567. {
  21568. sopen: this.IsFollow == false ? 1 : 2,
  21569. cid: this.id
  21570. }
  21571. ];
  21572. this.ajax
  21573. .post(this.$store.state.api + "updateCourseFollow", params)
  21574. .then(res => {
  21575. if (this.IsFollow == true) {
  21576. this.$message({
  21577. message: "开启成功",
  21578. type: "success"
  21579. });
  21580. } else {
  21581. this.$message({
  21582. message: "关闭成功",
  21583. type: "success"
  21584. });
  21585. }
  21586. this.setCTask();
  21587. })
  21588. .catch(err => {
  21589. console.error(err);
  21590. });
  21591. },
  21592. setCTask() {
  21593. let params = [
  21594. {
  21595. sopen: this.courseType + "-" + this.taskCount,
  21596. cid: this.id
  21597. }
  21598. ];
  21599. this.ajax
  21600. .post(this.$store.state.api + "updateCourseFollowC", params)
  21601. .then(res => {})
  21602. .catch(err => {
  21603. console.error(err);
  21604. });
  21605. },
  21606. updateLookOpen() {
  21607. let params = [
  21608. {
  21609. sopen: this.IsLookOpen == false ? 1 : 2,
  21610. cid: this.id
  21611. }
  21612. ];
  21613. this.ajax
  21614. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21615. .then(res => {
  21616. if (this.IsLookOpen == true) {
  21617. // if (this.courseType != 0 && this.taskCount != 0) {
  21618. // this.openTask(0, 0, "0-0");
  21619. // }
  21620. this.$message({
  21621. message: "权限设置成功",
  21622. type: "success"
  21623. });
  21624. } else {
  21625. this.$message({
  21626. message: "权限关闭成功",
  21627. type: "success"
  21628. });
  21629. }
  21630. this.getCourseState(2);
  21631. })
  21632. .catch(err => {
  21633. console.error(err);
  21634. });
  21635. },
  21636. selectSLook() {
  21637. let params = {
  21638. cid: this.id
  21639. };
  21640. this.ajax
  21641. .get(this.$store.state.api + "selectCourseSLook", params)
  21642. .then(res => {
  21643. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21644. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21645. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21646. if (!this.IsLookOpen) {
  21647. this.setNavList();
  21648. }
  21649. // else {
  21650. this.getCourseState(1);
  21651. // }
  21652. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  21653. if ((this.IsFollow && this.tType == 2)) {
  21654. this.setContent2(false);
  21655. let _followC = res.data[0][0].followC.split("-");
  21656. if (
  21657. this.courseType != _followC[0] ||
  21658. this.taskCount != _followC[1]
  21659. ) {
  21660. this.navList[this.courseType].isOpen = false;
  21661. this.courseType = _followC[0];
  21662. this.navList[this.courseType].isOpen = true;
  21663. this.taskCount = parseInt(_followC[1]);
  21664. this.navId = res.data[0][0].followC;
  21665. document.scrollingElement.scrollTop = 0;
  21666. this.getCourseDetail(2);
  21667. }
  21668. }
  21669. })
  21670. .catch(err => {
  21671. console.error(err);
  21672. });
  21673. },
  21674. setNavList() {
  21675. if (this.navList.length == 0) {
  21676. this.navList = [];
  21677. var copyList = [];
  21678. for (var l = 0; l < this.chapInfoList.length; l++) {
  21679. var q = this.chapInfoList[l].dyName;
  21680. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21681. var e;
  21682. copyList.push({
  21683. dyName: q,
  21684. isOpen: l === 0 ? true : false,
  21685. task: []
  21686. });
  21687. for (var r = 0; r < w.length; r++) {
  21688. e = w[r].task;
  21689. if (this.chapInfoList[l].easy == 1) {
  21690. copyList[l].task.push({
  21691. taskName: q,
  21692. id: l + "-" + r,
  21693. isLook: w[r].isLook,
  21694. isOpen: r === 0 ? true : false,
  21695. tool: []
  21696. });
  21697. } else {
  21698. copyList[l].task.push({
  21699. taskName: e,
  21700. id: l + "-" + r,
  21701. isLook: w[r].isLook,
  21702. isOpen: r === 0 ? true : false,
  21703. tool: []
  21704. });
  21705. }
  21706. var t = w[r].toolChoose;
  21707. for (var k = 0; k < t.length; k++) {
  21708. var tool = t[k].tool[0];
  21709. copyList[l].task[r].tool.push({
  21710. tool: tool,
  21711. isTool: false
  21712. });
  21713. }
  21714. // this.navId = this.navId ? this.navId : l + "-" + r;
  21715. // this.navId = l + "-" + r;
  21716. }
  21717. }
  21718. this.navList = copyList;
  21719. this.navList[0].isOpen = false;
  21720. this.navList[this.courseType].isOpen = true;
  21721. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21722. } else {
  21723. this.setNavList2();
  21724. }
  21725. },
  21726. setNavList2() {
  21727. for (var l = 0; l < this.chapInfoList.length; l++) {
  21728. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21729. for (var r = 0; r < w.length; r++) {
  21730. this.navList[l].task[r].isLook = w[r].isLook;
  21731. }
  21732. }
  21733. if (
  21734. this.IsLookOpen &&
  21735. !this.navList[this.courseType].task[this.taskCount].isLook
  21736. ) {
  21737. this.openTask(0, 0, "0-0");
  21738. }
  21739. this.$forceUpdate();
  21740. },
  21741. getCourseState(type) {
  21742. let params = {
  21743. cid: this.id
  21744. };
  21745. this.ajax
  21746. .get(this.$store.state.api + "getCourseState", params)
  21747. .then(res => {
  21748. if (res.data[0].length > 0) {
  21749. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21750. }
  21751. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  21752. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  21753. console.log("this.chapInfoList", this.chapInfoList);
  21754. this.setNavList();
  21755. this.$forceUpdate();
  21756. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  21757. this.addCourseState(2);
  21758. } else {
  21759. this.addCourseState(1);
  21760. }
  21761. })
  21762. .catch(err => {
  21763. console.error(err);
  21764. });
  21765. },
  21766. addCourseState(type,val = '') {
  21767. let _state = val ? val : this.chapInfoList;
  21768. // this.courseType this.taskCount
  21769. if (type == 1 || type == 2) {
  21770. for (var i = 0; i < _state.length; i++) {
  21771. let el = _state[i].chapterInfo[0].taskJson;
  21772. for (var j = 0; j < el.length; j++) {
  21773. // if (i == 0 && j == 0) {
  21774. // el[j].isLook = true;
  21775. // } else {
  21776. // el[j].isLook = false;
  21777. // }
  21778. if (
  21779. this.courseType > i ||
  21780. (this.courseType == i && this.taskCount + 1 > j)
  21781. ) {
  21782. el[j].isLook = true;
  21783. } else {
  21784. el[j].isLook = false;
  21785. }
  21786. }
  21787. }
  21788. }
  21789. let params = [
  21790. {
  21791. cid: this.id,
  21792. state: JSON.stringify(_state)
  21793. }
  21794. ];
  21795. this.ajax
  21796. .post(
  21797. this.$store.state.api +
  21798. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21799. params
  21800. )
  21801. .then(res => {
  21802. if (this.IsLookOpen) {
  21803. this.setNavList();
  21804. }
  21805. if (type == 3 && type == 2) {
  21806. this.getCourseState(1);
  21807. }
  21808. })
  21809. .catch(err => {
  21810. console.error(err);
  21811. });
  21812. },
  21813. getHomeWork() {
  21814. let params = {
  21815. cid: this.id,
  21816. stage: this.courseType,
  21817. task: this.taskCount,
  21818. uid: this.userid
  21819. };
  21820. this.ajax
  21821. .get(this.$store.state.api + "selectWork", params)
  21822. .then(res => {
  21823. if (res.data[0].length > 0) {
  21824. this.studyJuri = JSON.parse(res.data[0][0].content);
  21825. this.isNoHomeWork = true;
  21826. }
  21827. })
  21828. .catch(err => {
  21829. console.error(err);
  21830. });
  21831. },
  21832. isAssetTypeAnImage(ext) {
  21833. return (
  21834. [
  21835. "png",
  21836. "jpg",
  21837. "jpeg",
  21838. "bmp",
  21839. "gif",
  21840. "webp",
  21841. "psd",
  21842. "svg",
  21843. "tiff"
  21844. ].indexOf(ext) !== -1
  21845. );
  21846. },
  21847. switchVideo(media) {
  21848. this.playerO = {};
  21849. this.playerOptions.poster = "";
  21850. this.playerOptions.sources[0].src = media;
  21851. this.playerO = this.playerOptions;
  21852. },
  21853. onPlayerPlay() {},
  21854. onPlayerTimeupdate(player) {
  21855. let gklog = player.cache_.currentTime; //当前播放的秒数
  21856. let a = player.cache_.duration; //视频的总时长
  21857. let gklog2 = parseInt(gklog);
  21858. // if(gklog2 == '3'){
  21859. // player.pause()
  21860. // setTimeout(()=>{
  21861. // player.currentTime(gklog2+1)
  21862. // player.play()
  21863. // },1000)
  21864. // }
  21865. console.log(" onPlayerTimeupdate!", gklog);
  21866. console.log(" onPlayerTimeupdate!", gklog2);
  21867. },
  21868. lookVedio(u, i) {
  21869. this.isClickNav = "";
  21870. // this.playerOptions.sources[0].src = u;
  21871. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21872. d.sources[0].src = u;
  21873. this.playerO[this.taskCount] = d;
  21874. this.showType = 0;
  21875. // this.isClickNav = "video" + i;
  21876. this.isClickNav = i;
  21877. this.$forceUpdate();
  21878. this.insertMemorandum(
  21879. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21880. this.vChapterData[this.taskCount].find(i => i.url == u).name
  21881. }</span>`
  21882. );
  21883. },
  21884. lookText(i, t) {
  21885. this.isClickNav = "";
  21886. // this.text = this.textList[i][t];
  21887. this.text = this.vChapterData[i][t];
  21888. // this.dialogVisible1 = true;
  21889. this.showType = 1;
  21890. // this.isClickNav = "text" + t;
  21891. this.isClickNav = t;
  21892. this.insertMemorandum(
  21893. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21894. this.vChapterData[this.taskCount][t].name
  21895. }.doc</span>`
  21896. );
  21897. },
  21898. lookTools(i, t) {
  21899. this.chapTools = this.chapToolList[i][t];
  21900. this.dialogVisible2 = true;
  21901. },
  21902. async openFile(f) {
  21903. this.pptImgUrl = "";
  21904. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21905. if (
  21906. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21907. -1
  21908. ) {
  21909. let _uuurl = await this.checkLink(f);
  21910. this.pptImgUrl =
  21911. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21912. encodeURIComponent(_uuurl);
  21913. this.showPDF = false;
  21914. this.dialogVisible3 = true;
  21915. } else if (
  21916. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21917. ) {
  21918. this.pptImgUrl = f;
  21919. this.showPDF = true;
  21920. this.dialogVisible3 = true;
  21921. }
  21922. this.insertMemorandum(
  21923. `查看<span class="variable">${w.sName}</span>的作业`
  21924. );
  21925. },
  21926. openTable(f) {
  21927. this.tableJson = JSON.parse(f.works);
  21928. this.dialogVisibleTable2 = true;
  21929. this.insertMemorandum(
  21930. `查看<span class="variable">${f.sName}的作业</span>`
  21931. );
  21932. },
  21933. openWord(f) {
  21934. this.tableJson = JSON.parse(f.works);
  21935. this.dialogVisibleTable3 = true;
  21936. this.insertMemorandum(
  21937. `查看<span class="variable">${f.sName}的作业</span>`
  21938. );
  21939. },
  21940. doUrl(url, i) {
  21941. this.isClickNav = "";
  21942. this.pptImgUrl1 = "";
  21943. this.showType = 2;
  21944. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21945. url = "https://" + url;
  21946. }
  21947. this.pptImgUrl1 = "";
  21948. setTimeout(() => {
  21949. this.pptImgUrl1 = url;
  21950. }, 500);
  21951. // this.isClickNav = "line" + i;
  21952. this.isClickNav = i;
  21953. this.$forceUpdate();
  21954. },
  21955. checkPhoto(f, i) {
  21956. this.showType = 4;
  21957. this.pptImgUrl1 = f.url;
  21958. this.isClickNav = i;
  21959. this.$forceUpdate();
  21960. this.insertMemorandum(
  21961. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21962. this.vChapterData[this.taskCount][i].name
  21963. }</span>`
  21964. );
  21965. },
  21966. async downFile(f, i) {
  21967. this.isClickNav = "";
  21968. this.pptImgUrl1 = "";
  21969. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21970. if (
  21971. a.indexOf(
  21972. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21973. ) != -1
  21974. ) {
  21975. let _uuurl = await this.checkLink(f.url);
  21976. this.pptImgUrl1 =
  21977. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21978. encodeURIComponent(_uuurl);
  21979. // this.dialogVisible3 = true;
  21980. this.showType = 2;
  21981. } else if (
  21982. this.isAssetTypeAnImage(
  21983. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21984. )
  21985. ) {
  21986. this.showType = 4;
  21987. this.pptImgUrl1 = f.url;
  21988. } else if (
  21989. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21990. "PDF"
  21991. ) {
  21992. this.pptImgUrl1 = f.url;
  21993. // this.dialogVisible3 = true;
  21994. this.showType = 3;
  21995. } else {
  21996. window.open(this.file[i].url);
  21997. }
  21998. // this.isClickNav = "word" + i;
  21999. this.isClickNav = i;
  22000. this.insertMemorandum(
  22001. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22002. this.vChapterData[this.taskCount][i].name
  22003. }</span>`
  22004. );
  22005. },
  22006. downFileList(i) {
  22007. window.open(this.noImgList[i].url);
  22008. },
  22009. openAddWork() {
  22010. this.dialogVisible = true;
  22011. },
  22012. addBzWorks() {
  22013. let params = [
  22014. {
  22015. uid: this.userid,
  22016. cid: this.id,
  22017. stage: this.courseType,
  22018. task: this.taskCount,
  22019. tool: this.toolindex,
  22020. content: JSON.stringify(this.eScore),
  22021. type: 6
  22022. }
  22023. ];
  22024. this.ajax
  22025. .post(this.$store.state.api + "addCourseWorks", params)
  22026. .then(res => {
  22027. this.$message({
  22028. message: "提交成功",
  22029. type: "success"
  22030. });
  22031. this.eScore = { eBzText: "", eStar: [] };
  22032. this.studentEvalDialogVisible = false;
  22033. this.selectSWorks();
  22034. })
  22035. .catch(err => {
  22036. this.$message.error("提交失败");
  22037. console.error(err);
  22038. });
  22039. },
  22040. addBzWorksTeacher() {
  22041. let params = [
  22042. {
  22043. uid: this.sStudent.userid,
  22044. cid: this.id,
  22045. stage: this.courseType,
  22046. task: this.taskCount,
  22047. tool: this.toolindex,
  22048. content: JSON.stringify(this.eScore),
  22049. type: 6
  22050. }
  22051. ];
  22052. this.ajax
  22053. .post(this.$store.state.api + "addCourseWorks", params)
  22054. .then(res => {
  22055. this.$message({
  22056. message: "提交成功",
  22057. type: "success"
  22058. });
  22059. this.eScore = { eBzText: "", eStar: [] };
  22060. this.studentEvalDialogVisibleTeacher = false;
  22061. this.selectSWorks();
  22062. })
  22063. .catch(err => {
  22064. this.$message.error("提交失败");
  22065. console.error(err);
  22066. });
  22067. },
  22068. addStudentAsk() {
  22069. if (!this.radio.length) {
  22070. this.$message.error("请选择选项");
  22071. return;
  22072. }
  22073. for (var i = 0; i < this.askJson.askCount; i++) {
  22074. if (
  22075. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22076. (this.radio[i] !== 0 && !this.radio[i])
  22077. ) {
  22078. this.$message.error("请选择选项");
  22079. return;
  22080. }
  22081. }
  22082. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22083. let params = [
  22084. {
  22085. uid: this.userid,
  22086. cid: this.id,
  22087. stage: this.courseType,
  22088. task: this.taskCount,
  22089. tool: this.toolindex,
  22090. content: JSON.stringify(this.askList),
  22091. type: 2
  22092. }
  22093. ];
  22094. this.ajax
  22095. .post(this.$store.state.api + "addCourseWorks", params)
  22096. .then(res => {
  22097. this.$message({
  22098. message: "提交成功",
  22099. type: "success"
  22100. });
  22101. this.askList = [];
  22102. this.dialogVisible5 = false;
  22103. this.selectStudent();
  22104. this.selectSWorks();
  22105. this.selectSLook();
  22106. })
  22107. .catch(err => {
  22108. this.$message.error("提交失败");
  22109. console.error(err);
  22110. });
  22111. },
  22112. addStudentAskTeacher() {
  22113. if (!this.radio.length) {
  22114. this.$message.error("请选择选项");
  22115. return;
  22116. }
  22117. for (var i = 0; i < this.askJson.askCount; i++) {
  22118. if (
  22119. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22120. (this.radio[i] !== 0 && !this.radio[i])
  22121. ) {
  22122. this.$message.error("请选择选项");
  22123. return;
  22124. }
  22125. }
  22126. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22127. let params = [
  22128. {
  22129. uid: this.sStudent.userid,
  22130. cid: this.id,
  22131. stage: this.courseType,
  22132. task: this.taskCount,
  22133. tool: this.toolindex,
  22134. content: JSON.stringify(this.askList),
  22135. type: 2
  22136. }
  22137. ];
  22138. this.ajax
  22139. .post(this.$store.state.api + "addCourseWorks", params)
  22140. .then(res => {
  22141. this.$message({
  22142. message: "提交成功",
  22143. type: "success"
  22144. });
  22145. this.askList = [];
  22146. this.dialogVisible5Teacher = false;
  22147. this.selectStudent();
  22148. this.selectSWorks();
  22149. this.selectSLook();
  22150. })
  22151. .catch(err => {
  22152. this.$message.error("提交失败");
  22153. console.error(err);
  22154. });
  22155. },
  22156. addStudentTest() {
  22157. if (!this.radio.length) {
  22158. this.$message.error("请选择选项");
  22159. return;
  22160. }
  22161. for (var i = 0; i < this.testJson.testCount; i++) {
  22162. if (
  22163. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22164. (this.radio[i] !== 0 && !this.radio[i])
  22165. ) {
  22166. this.$message.error("请选择选项");
  22167. return;
  22168. }
  22169. }
  22170. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22171. let params = [
  22172. {
  22173. uid: this.userid,
  22174. cid: this.id,
  22175. stage: this.courseType,
  22176. task: this.taskCount,
  22177. tool: this.toolindex,
  22178. content: JSON.stringify(this.askList),
  22179. type: 8
  22180. }
  22181. ];
  22182. this.ajax
  22183. .post(this.$store.state.api + "addCourseWorks", params)
  22184. .then(res => {
  22185. this.$message({
  22186. message: "提交成功",
  22187. type: "success"
  22188. });
  22189. this.askList = [];
  22190. this.dialogVisibleChoice = false;
  22191. this.selectStudent();
  22192. this.selectSWorks();
  22193. this.selectSLook();
  22194. })
  22195. .catch(err => {
  22196. this.$message.error("提交失败");
  22197. console.error(err);
  22198. });
  22199. },
  22200. addStudentTestTeacher() {
  22201. if (!this.radio.length) {
  22202. this.$message.error("请选择选项");
  22203. return;
  22204. }
  22205. for (var i = 0; i < this.testJson.testCount; i++) {
  22206. if (
  22207. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22208. (this.radio[i] !== 0 && !this.radio[i])
  22209. ) {
  22210. this.$message.error("请选择选项");
  22211. return;
  22212. }
  22213. }
  22214. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22215. let params = [
  22216. {
  22217. uid: this.sStudent.userid,
  22218. cid: this.id,
  22219. stage: this.courseType,
  22220. task: this.taskCount,
  22221. tool: this.toolindex,
  22222. content: JSON.stringify(this.askList),
  22223. type: 8
  22224. }
  22225. ];
  22226. this.ajax
  22227. .post(this.$store.state.api + "addCourseWorks", params)
  22228. .then(res => {
  22229. this.$message({
  22230. message: "提交成功",
  22231. type: "success"
  22232. });
  22233. this.askList = [];
  22234. this.dialogVisibleChoiceTeacher = false;
  22235. this.selectStudent();
  22236. this.selectSWorks();
  22237. this.selectSLook();
  22238. })
  22239. .catch(err => {
  22240. this.$message.error("提交失败");
  22241. console.error(err);
  22242. });
  22243. },
  22244. addWork() {
  22245. if (this.studyJuri[0].content == "") {
  22246. this.$message.error("请将信息填写完整");
  22247. return;
  22248. } else if (this.studyJuri[0].cover.length == 0) {
  22249. this.$message.error("请将信息填写完整");
  22250. return;
  22251. } else if (this.studyJuri[0].upVedio.length == 0) {
  22252. this.$message.error("请将信息填写完整");
  22253. return;
  22254. }
  22255. if (this.isNoHomeWork) {
  22256. this.$confirm(
  22257. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22258. "提示",
  22259. {
  22260. confirmButtonText: "确定",
  22261. cancelButtonText: "取消",
  22262. type: "warning"
  22263. }
  22264. )
  22265. .then(() => {
  22266. let params = [
  22267. {
  22268. uid: this.userid,
  22269. cid: this.id,
  22270. stage: this.courseType,
  22271. task: this.taskCount,
  22272. content: JSON.stringify(this.studyJuri)
  22273. }
  22274. ];
  22275. this.ajax
  22276. .post(this.$store.state.api + "addWorks", params)
  22277. .then(res => {
  22278. this.$message({
  22279. message: "提交成功",
  22280. type: "success"
  22281. });
  22282. this.isNoHomeWork = true;
  22283. this.dialogVisible = false;
  22284. })
  22285. .catch(err => {
  22286. this.$message.error("提交失败");
  22287. console.error(err);
  22288. });
  22289. })
  22290. .catch(() => {});
  22291. } else {
  22292. let params = [
  22293. {
  22294. uid: this.userid,
  22295. cid: this.id,
  22296. stage: this.courseType,
  22297. task: this.taskCount,
  22298. content: JSON.stringify(this.studyJuri)
  22299. }
  22300. ];
  22301. this.ajax
  22302. .post(this.$store.state.api + "addWorks", params)
  22303. .then(res => {
  22304. this.$message({
  22305. message: "提交成功",
  22306. type: "success"
  22307. });
  22308. this.isNoHomeWork = true;
  22309. this.dialogVisible = false;
  22310. })
  22311. .catch(err => {
  22312. this.$message.error("提交失败");
  22313. console.error(err);
  22314. });
  22315. }
  22316. },
  22317. selectCount() {
  22318. let params = {
  22319. cid: this.id,
  22320. chid: this.courseType,
  22321. uid: this.userid
  22322. };
  22323. this.ajax
  22324. .get(this.$store.state.api + "selectToolsCount", params)
  22325. .then(res => {
  22326. for (var i = 0; i < res.data[0].length; i++) {
  22327. if (res.data[0][i].tools == 1) {
  22328. this.wbCount = res.data[0][i].count;
  22329. } else if (res.data[0][i].tools == 2) {
  22330. this.wordCount = res.data[0][i].count;
  22331. } else if (res.data[0][i].tools == 3) {
  22332. this.mindCount = res.data[0][i].count;
  22333. } else if (res.data[0][i].tools == 4) {
  22334. this.askCount = res.data[0][i].count;
  22335. } else if (res.data[0][i].tools == 6) {
  22336. this.noteCount = res.data[0][i].count;
  22337. } else if (res.data[0][i].tools == 7) {
  22338. this.mindNetWorkCount = res.data[0][i].count;
  22339. } else if (res.data[0][i].tools == 8) {
  22340. this.libraryCount = res.data[0][i].count;
  22341. } else if (res.data[0][i].tools == 16) {
  22342. this.workCount = res.data[0][i].count;
  22343. } else if (res.data[0][i].tools == 10) {
  22344. this.timeCount = res.data[0][i].count;
  22345. } else if (res.data[0][i].tools == 15) {
  22346. this.answerCount = res.data[0][i].count;
  22347. } else if (res.data[0][i].tools == 18) {
  22348. this.trainCount = res.data[0][i].count;
  22349. }
  22350. }
  22351. })
  22352. .catch(err => {
  22353. console.error(err);
  22354. });
  22355. },
  22356. openTools(t, i, index, c, sName, id) {
  22357. var z = JSON.parse(c);
  22358. this.noteName = sName;
  22359. if (t == 4) {
  22360. this.radio = [];
  22361. this.isAnswer = false;
  22362. let b = z[0].anwer;
  22363. this.radio = b;
  22364. this.askJson = z[0].askJson;
  22365. this.isAnswer = true;
  22366. this.dialogVisible5 = true;
  22367. } else if (t == 45) {
  22368. this.radio = [];
  22369. this.isAnswer = false;
  22370. let b = z[0].anwer;
  22371. this.radio = b;
  22372. this.testJson = z[0].testJson;
  22373. this.isAnswer = true;
  22374. this.dialogVisibleChoice = true;
  22375. } else if (t == 69) {
  22376. this.oldEnglishJson1 = {};
  22377. this.oldEnglishJson = {};
  22378. this.englishList1 = {};
  22379. this.newEngIndex = -1;
  22380. this.isNoUserid = false;
  22381. this.englishList1 = this.chapInfoList[
  22382. this.courseType
  22383. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  22384. this.oldEnglishJson = z;
  22385. this.engWid = id;
  22386. this.newEnglishList = { engTitle: "", engText: "" };
  22387. this.newEnglishList1 = [];
  22388. this.selectEngC(id, z);
  22389. } else if (t == 62) {
  22390. this.videoType = 1;
  22391. this.videoJson = {};
  22392. this.videoJson = JSON.parse(c);
  22393. // this.videoJson =
  22394. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22395. // index
  22396. // ].toolChoose[i].videoJson;
  22397. this.dialogVisibleVideo = true;
  22398. }
  22399. // else if (t == 15) {
  22400. // this.answerQ = "";
  22401. // this.questionAnswer = "";
  22402. // this.answerQ = z[0].answerTitle;
  22403. // this.questionAnswer = z[0].answer;
  22404. // this.answerDialogVisible = true;
  22405. // }
  22406. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  22407. },
  22408. fastText(p, t) {
  22409. if (t == 1) {
  22410. this.commentText += p;
  22411. } else {
  22412. this.eScore.eBzText += p;
  22413. }
  22414. },
  22415. addTools(t, i, index) {
  22416. var a = 0;
  22417. // this.taskCount = index;
  22418. this.toolindex = i;
  22419. if (t == 1) {
  22420. if (this.wbCount > 0) {
  22421. this.updateCount(this.wbCount, t);
  22422. } else {
  22423. this.wbCount++;
  22424. a = this.wbCount;
  22425. this.toolsCount(a, t);
  22426. }
  22427. window.parent.postMessage(
  22428. {
  22429. tools: "1",
  22430. cid: this.id,
  22431. stage: this.courseType,
  22432. task: this.taskCount,
  22433. tool: i
  22434. },
  22435. "*"
  22436. );
  22437. } else if (t == 2) {
  22438. if (this.wordCount > 0) {
  22439. this.updateCount(this.wordCount, t);
  22440. } else {
  22441. this.wordCount++;
  22442. a = this.wordCount;
  22443. this.toolsCount(a, t);
  22444. }
  22445. window.parent.postMessage({ tools: "2" }, "*");
  22446. } else if (t == 3) {
  22447. if (this.mindCount > 0) {
  22448. this.updateCount(this.mindCount, t);
  22449. } else {
  22450. this.mindCount++;
  22451. a = this.mindCount;
  22452. this.toolsCount(a, t);
  22453. }
  22454. window.parent.postMessage(
  22455. {
  22456. tools: "3",
  22457. cid: this.id,
  22458. stage: this.courseType,
  22459. task: this.taskCount,
  22460. tool: i
  22461. },
  22462. "*"
  22463. );
  22464. } else if (t == 4) {
  22465. this.radio = [];
  22466. this.noteName = "";
  22467. this.isAnswer = false;
  22468. if (this.askCount > 0) {
  22469. this.updateCount(this.askCount, t);
  22470. } else {
  22471. this.askCount++;
  22472. a = this.askCount;
  22473. this.toolsCount(a, t);
  22474. }
  22475. if (!this.dialogVisible2) {
  22476. this.askJson.askJson = this.chapInfoList[
  22477. this.courseType
  22478. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22479. this.askJson.askTitle = this.chapInfoList[
  22480. this.courseType
  22481. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22482. this.askJson.askCount = this.chapInfoList[
  22483. this.courseType
  22484. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22485. } else {
  22486. this.askJson.askJson = this.chapTools.askJson.askJson;
  22487. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22488. this.askJson.askCount = this.chapTools.askJson.askCount;
  22489. }
  22490. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22491. if (this.askJson.askJson[k].type == "2") {
  22492. this.radio.push([]);
  22493. } else {
  22494. this.radio.push("");
  22495. }
  22496. }
  22497. this.dialogVisible5 = true;
  22498. // window.parent.postMessage({ tools: "4" }, "*");
  22499. } else if (t == 45) {
  22500. this.noteName = "";
  22501. this.radio = [];
  22502. this.isAnswer = false;
  22503. if (this.askCount > 0) {
  22504. this.updateCount(this.askCount, t);
  22505. } else {
  22506. this.askCount++;
  22507. a = this.askCount;
  22508. this.toolsCount(a, t);
  22509. }
  22510. this.testJson = this.chapInfoList[
  22511. this.courseType
  22512. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22513. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22514. if (this.testJson.testJson[k].type == "2") {
  22515. this.radio.push([]);
  22516. } else {
  22517. this.radio.push("");
  22518. }
  22519. }
  22520. this.dialogVisibleChoice = true;
  22521. // window.parent.postMessage({ tools: "4" }, "*");
  22522. } else if (t == 5) {
  22523. if (this.scoreCount > 0) {
  22524. this.updateCount(this.scoreCount, t);
  22525. } else {
  22526. this.scoreCount++;
  22527. a = this.scoreCount;
  22528. this.toolsCount(a, t);
  22529. }
  22530. this.dialogVisible4 = true;
  22531. // window.parent.postMessage({ tools: "5" }, "*");
  22532. } else if (t == 6) {
  22533. if (this.noteCount > 0) {
  22534. this.updateCount(this.noteCount, t);
  22535. } else {
  22536. this.noteCount++;
  22537. a = this.noteCount;
  22538. this.toolsCount(a, t);
  22539. }
  22540. window.parent.postMessage(
  22541. {
  22542. tools: "6",
  22543. cid: this.id,
  22544. stage: this.courseType,
  22545. task: this.taskCount,
  22546. tool: i
  22547. },
  22548. "*"
  22549. );
  22550. } else if (t == 7) {
  22551. if (this.mindNetWorkCount > 0) {
  22552. this.updateCount(this.mindNetWorkCount, t);
  22553. } else {
  22554. this.mindNetWorkCount++;
  22555. a = this.mindNetWorkCount;
  22556. this.toolsCount(a, t);
  22557. }
  22558. window.parent.postMessage(
  22559. {
  22560. tools: "7",
  22561. cid: this.id,
  22562. stage: this.courseType,
  22563. task: this.taskCount,
  22564. tool: i
  22565. },
  22566. "*"
  22567. );
  22568. } else if (t == 16) {
  22569. if (this.workCount > 0) {
  22570. this.updateCount(this.workCount, t);
  22571. } else {
  22572. this.workCount++;
  22573. a = this.workCount;
  22574. this.toolsCount(a, t);
  22575. }
  22576. this.dialogVisible = true;
  22577. } else if (t == 50) {
  22578. if (this.tType == 2) {
  22579. this.$message.error("不支持学生使用");
  22580. return;
  22581. }
  22582. this.plworkFile = [];
  22583. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22584. if (!this.uploadCid) {
  22585. this.$message.error(
  22586. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22587. );
  22588. return;
  22589. }
  22590. // this.uploadCid =
  22591. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22592. // index
  22593. // ].toolChoose[i].uploadJson[0];
  22594. this.selectUploadStudent(2);
  22595. } else if (t == 8) {
  22596. if (this.libraryCount > 0) {
  22597. this.updateCount(this.libraryCount, t);
  22598. } else {
  22599. this.libraryCount++;
  22600. a = this.libraryCount;
  22601. this.toolsCount(a, t);
  22602. }
  22603. window.parent.postMessage({ tools: "8" }, "*");
  22604. } else if (t == 17) {
  22605. if (this.libraryCount > 0) {
  22606. this.updateCount(this.libraryCount, t);
  22607. } else {
  22608. this.libraryCount++;
  22609. a = this.libraryCount;
  22610. this.toolsCount(a, t);
  22611. }
  22612. window.parent.postMessage({ tools: "17" }, "*");
  22613. } else if (t == 18) {
  22614. if (this.trainCount > 0) {
  22615. this.updateCount(this.trainCount, t);
  22616. } else {
  22617. this.trainCount++;
  22618. a = this.trainCount;
  22619. this.toolsCount(a, t);
  22620. }
  22621. window.parent.postMessage({ tools: "18" }, "*");
  22622. } else if (t == 10) {
  22623. if (this.timeCount > 0) {
  22624. this.updateCount(this.timeCount, t);
  22625. } else {
  22626. this.timeCount++;
  22627. a = this.timeCount;
  22628. this.toolsCount(a, t);
  22629. }
  22630. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22631. .taskJson[index].toolChoose[i].preTime
  22632. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22633. .toolChoose[i].preTime
  22634. : "";
  22635. this.timeDialogVisible = true;
  22636. } else if (t == 15) {
  22637. this.answerQ = "";
  22638. this.questionAnswer = "";
  22639. if (this.answerCount > 0) {
  22640. this.updateCount(this.answerCount, t);
  22641. } else {
  22642. this.answerCount++;
  22643. a = this.answerCount;
  22644. this.toolsCount(a, t);
  22645. }
  22646. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22647. .taskJson[index].toolChoose[i].answerQ
  22648. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22649. .toolChoose[i].answerQ
  22650. : "";
  22651. this.answerDialogVisible = true;
  22652. } else if (t == 21) {
  22653. window.parent.postMessage({ tools: "21" }, "*");
  22654. } else if (t == 22) {
  22655. window.parent.postMessage({ tools: "22" }, "*");
  22656. } else if (t == 23) {
  22657. window.parent.postMessage({ tools: "23" }, "*");
  22658. } else if (t == 24) {
  22659. window.parent.postMessage({ tools: "24" }, "*");
  22660. } else if (t == 25) {
  22661. window.parent.postMessage({ tools: "25" }, "*");
  22662. } else if (t == 31) {
  22663. window.parent.postMessage({ tools: "31" }, "*");
  22664. } else if (t == 28) {
  22665. window.parent.postMessage({ tools: "28" }, "*");
  22666. } else if (t == 37) {
  22667. window.parent.postMessage({ tools: "37" }, "*");
  22668. } else if (t == 38) {
  22669. window.parent.postMessage({ tools: "38" }, "*");
  22670. } else if (t == 39) {
  22671. window.parent.postMessage({ tools: "39" }, "*");
  22672. } else if (t == 32) {
  22673. window.parent.postMessage({ tools: "32" }, "*");
  22674. } else if (t == 66) {
  22675. window.parent.postMessage({ tools: "66" }, "*");
  22676. } else if (t == 67) {
  22677. window.parent.postMessage({ tools: "67" }, "*");
  22678. } else if (t == 68) {
  22679. window.parent.postMessage({ tools: "68" }, "*");
  22680. } else if (t == 57) {
  22681. // window.parent.postMessage({ tools: "57" }, "*");
  22682. window.parent.postMessage(
  22683. {
  22684. tools: "57u",
  22685. cid: this.id,
  22686. stage: this.courseType,
  22687. task: this.taskCount,
  22688. tool: i
  22689. },
  22690. "*"
  22691. );
  22692. } else if (t == 58) {
  22693. window.parent.postMessage({ tools: "58" }, "*");
  22694. } else if (t == 59) {
  22695. window.parent.postMessage({ tools: "59" }, "*");
  22696. } else if (t == 60) {
  22697. window.parent.postMessage({ tools: "60" }, "*");
  22698. } else if (t == 61) {
  22699. window.parent.postMessage({ tools: "61" }, "*");
  22700. } else if (t == 63) {
  22701. window.parent.postMessage({ tools: "63" }, "*");
  22702. } else if (t == 71) {
  22703. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22704. // this.$message.error("该工具不可使用");
  22705. // return
  22706. // }
  22707. window.parent.postMessage({ tools: "71" }, "*");
  22708. } else if (t == 69) {
  22709. if (this.worksStudent[i].length) {
  22710. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22711. if (this.userid == this.worksStudent[i][k].userid) {
  22712. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  22713. break;
  22714. } else {
  22715. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22716. }
  22717. }
  22718. } else {
  22719. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22720. }
  22721. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22722. .taskJson[index].toolChoose[i].englishList
  22723. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22724. .toolChoose[i].englishList
  22725. : {};
  22726. this.englishToolIndex = i;
  22727. this.myAnList = this.myAnswerList1;
  22728. this.engDialogVisible = true;
  22729. } else if (t == 70) {
  22730. if (this.worksStudent[i].length) {
  22731. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22732. if (
  22733. this.userid == this.worksStudent[i][k].userid &&
  22734. this.worksStudent[i][k].type == 17
  22735. ) {
  22736. this.englishVoiceJsonWork = JSON.parse(
  22737. this.worksStudent[i][k].works
  22738. );
  22739. break;
  22740. } else {
  22741. this.englishVoiceJsonWork = [];
  22742. }
  22743. }
  22744. } else {
  22745. this.englishVoiceJsonWork = [];
  22746. }
  22747. let englishVoiceJson = {};
  22748. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22749. .taskJson[index].toolChoose[i].englishVoiceJson
  22750. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22751. .toolChoose[i].englishVoiceJson
  22752. : {};
  22753. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22754. this.EnglishVoiceDialog = true;
  22755. } else if (t == 65) {
  22756. if (this.tType == 2) {
  22757. this.$message.error("不支持学生使用");
  22758. return;
  22759. }
  22760. this.uploadCid = this.tcid;
  22761. if (!this.uploadCid) {
  22762. this.$message.error(
  22763. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  22764. );
  22765. return;
  22766. }
  22767. this.selectPickStudent();
  22768. } else if (t == 26) {
  22769. window.parent.postMessage(
  22770. {
  22771. tools: "26",
  22772. cid: this.id,
  22773. stage: this.courseType,
  22774. task: this.taskCount,
  22775. tool: i
  22776. },
  22777. "*"
  22778. );
  22779. } else if (t == 40) {
  22780. if (this.evalCount > 0) {
  22781. this.updateCount(this.evalCount, t);
  22782. } else {
  22783. this.evalCount++;
  22784. a = this.evalCount;
  22785. this.toolsCount(a, t);
  22786. }
  22787. this.eScore = { eBzText: "", eStar: [] };
  22788. if (this.worksStudent[i].length) {
  22789. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22790. if (this.userid == this.worksStudent[i][k].userid) {
  22791. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22792. this.rateJson = this.chapInfoList[
  22793. this.courseType
  22794. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22795. break;
  22796. } else {
  22797. this.rateJson = this.chapInfoList[
  22798. this.courseType
  22799. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22800. }
  22801. }
  22802. } else {
  22803. this.rateJson = this.chapInfoList[
  22804. this.courseType
  22805. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22806. }
  22807. this.isStar = false;
  22808. this.studentEvalDialogVisible = true;
  22809. } else if (t == 41) {
  22810. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22811. .taskJson[index].toolChoose[i].selectJson
  22812. ? JSON.parse(
  22813. JSON.stringify(
  22814. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22815. index
  22816. ].toolChoose[i].selectJson
  22817. )
  22818. )
  22819. : { url: "", select: [], answer: [] };
  22820. if (this.worksStudent[i].length) {
  22821. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22822. if (this.userid == this.worksStudent[i][k].userid) {
  22823. var a = this.worksStudent[i][k].works.split(",");
  22824. for (var ki = 0; ki < a.length; ki++) {
  22825. a[ki] = parseInt(a[ki]);
  22826. }
  22827. this.selectAnswer = {
  22828. answer: a,
  22829. stu: this.worksStudent[i][k].sName
  22830. };
  22831. break;
  22832. } else {
  22833. this.selectAnswer = { answer: [], stu: "" };
  22834. }
  22835. }
  22836. } else {
  22837. this.selectAnswer = { answer: [], stu: "" };
  22838. }
  22839. this.isSelect = false;
  22840. this.dialogVisibleSelect = true;
  22841. } else if (t == 44) {
  22842. window.parent.postMessage({ tools: "44" }, "*");
  22843. } else if (t == 47) {
  22844. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22845. .taskJson[index].toolChoose[i].sentenceList
  22846. ? JSON.parse(
  22847. JSON.stringify(
  22848. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22849. index
  22850. ].toolChoose[i].sentenceList
  22851. )
  22852. )
  22853. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22854. for (var q = 0; q < this.sentenceList.length; q++) {
  22855. this.sentenceList[q].chooseSenList = [];
  22856. this.sentenceList[q].addChangeSen = [];
  22857. this.sentenceList[q].addChangeSen = JSON.parse(
  22858. JSON.stringify(this.sentenceList[q].addSentence)
  22859. );
  22860. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  22861. q
  22862. ].rightAnswer.length;
  22863. }
  22864. this.dialogVisibleSentence = true;
  22865. } else if (t == 48) {
  22866. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22867. .taskJson[index].toolChoose[i].tableJson
  22868. ? JSON.parse(
  22869. JSON.stringify(
  22870. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22871. index
  22872. ].toolChoose[i].tableJson
  22873. )
  22874. )
  22875. : { text: "" };
  22876. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22877. if (this.worksStudent[i].length) {
  22878. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22879. if (this.userid == this.worksStudent[i][k].userid) {
  22880. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22881. break;
  22882. }
  22883. }
  22884. }
  22885. this.dialogVisibleTable = true;
  22886. } else if (t == 52) {
  22887. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22888. .taskJson[index].toolChoose[i].wordJson
  22889. ? JSON.parse(
  22890. JSON.stringify(
  22891. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22892. index
  22893. ].toolChoose[i].wordJson
  22894. )
  22895. )
  22896. : { text: "" };
  22897. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22898. if (this.worksStudent[i].length) {
  22899. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22900. if (this.userid == this.worksStudent[i][k].userid) {
  22901. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22902. break;
  22903. }
  22904. }
  22905. }
  22906. this.dialogVisibleWord = true;
  22907. } else if (t == 49) {
  22908. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  22909. return;
  22910. }
  22911. this.groupJson = this.chapInfoList[
  22912. this.courseType
  22913. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  22914. this.islock = this.groupJson.islock == 1 ? true : false;
  22915. this.dialogVisibleGroup = true;
  22916. } else if (t == 62) {
  22917. this.videoType = 0;
  22918. this.videoJson = {};
  22919. this.videoJson = this.chapInfoList[
  22920. this.courseType
  22921. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  22922. this.dialogVisibleVideo = true;
  22923. }
  22924. this.insertMemorandum(
  22925. `点击工作区<span class="variable">工具${index + 1}:${
  22926. this.toolsList[t]
  22927. }</span>`
  22928. );
  22929. },
  22930. teacherWorkSubmit(t, i, index, s) {
  22931. this.sStudent = s;
  22932. this.toolindex = i;
  22933. this.sTool = t;
  22934. if (this.tType !== "1" && this.tType !== "4") {
  22935. return;
  22936. }
  22937. if (t == 16 || t == 32 || t == 50) {
  22938. this.dialogVisibleWorks = true;
  22939. } else if (t == 15) {
  22940. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22941. .taskJson[index].toolChoose[i].answerQ
  22942. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22943. .toolChoose[i].answerQ
  22944. : "";
  22945. this.questionAnswer = "";
  22946. this.answerDialogVisibleTeacher = true; //问答
  22947. } else if (t == 52) {
  22948. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22949. .taskJson[index].toolChoose[i].wordJson
  22950. ? JSON.parse(
  22951. JSON.stringify(
  22952. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22953. index
  22954. ].toolChoose[i].wordJson
  22955. )
  22956. )
  22957. : { text: "" };
  22958. if (this.worksStudent[i].length) {
  22959. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22960. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22961. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22962. break;
  22963. }
  22964. }
  22965. }
  22966. this.dialogVisibleWordTeacher = true; //文档
  22967. } else if (t == 4) {
  22968. this.radio = [];
  22969. this.noteName = "";
  22970. this.isAnswer = false;
  22971. if (this.askCount > 0) {
  22972. this.updateCount(this.askCount, t);
  22973. } else {
  22974. this.askCount++;
  22975. a = this.askCount;
  22976. this.toolsCount(a, t);
  22977. }
  22978. if (!this.dialogVisible2) {
  22979. this.askJson.askJson = this.chapInfoList[
  22980. this.courseType
  22981. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22982. this.askJson.askTitle = this.chapInfoList[
  22983. this.courseType
  22984. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22985. this.askJson.askCount = this.chapInfoList[
  22986. this.courseType
  22987. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22988. } else {
  22989. this.askJson.askJson = this.chapTools.askJson.askJson;
  22990. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22991. this.askJson.askCount = this.chapTools.askJson.askCount;
  22992. }
  22993. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22994. if (this.askJson.askJson[k].type == "2") {
  22995. this.radio.push([]);
  22996. } else {
  22997. this.radio.push("");
  22998. }
  22999. }
  23000. this.dialogVisible5Teacher = true;
  23001. } else if (t == 45) {
  23002. this.noteName = "";
  23003. this.radio = [];
  23004. this.isAnswer = false;
  23005. if (this.askCount > 0) {
  23006. this.updateCount(this.askCount, t);
  23007. } else {
  23008. this.askCount++;
  23009. a = this.askCount;
  23010. this.toolsCount(a, t);
  23011. }
  23012. this.testJson = this.chapInfoList[
  23013. this.courseType
  23014. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23015. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23016. if (this.testJson.testJson[k].type == "2") {
  23017. this.radio.push([]);
  23018. } else {
  23019. this.radio.push("");
  23020. }
  23021. }
  23022. this.dialogVisibleChoiceTeacher = true;
  23023. } else if (t == 41) {
  23024. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23025. .taskJson[index].toolChoose[i].selectJson
  23026. ? JSON.parse(
  23027. JSON.stringify(
  23028. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23029. index
  23030. ].toolChoose[i].selectJson
  23031. )
  23032. )
  23033. : { url: "", select: [], answer: [] };
  23034. if (this.worksStudent[i].length) {
  23035. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23036. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23037. var a = this.worksStudent[i][k].works.split(",");
  23038. for (var ki = 0; ki < a.length; ki++) {
  23039. a[ki] = parseInt(a[ki]);
  23040. }
  23041. this.selectAnswer = {
  23042. answer: a,
  23043. stu: this.worksStudent[i][k].sName
  23044. };
  23045. break;
  23046. } else {
  23047. this.selectAnswer = { answer: [], stu: "" };
  23048. }
  23049. }
  23050. } else {
  23051. this.selectAnswer = { answer: [], stu: "" };
  23052. }
  23053. this.isSelect = false;
  23054. this.dialogVisibleSelectTeacher = true;
  23055. } else if (t == 47) {
  23056. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23057. .taskJson[index].toolChoose[i].sentenceList
  23058. ? JSON.parse(
  23059. JSON.stringify(
  23060. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23061. index
  23062. ].toolChoose[i].sentenceList
  23063. )
  23064. )
  23065. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23066. for (var q = 0; q < this.sentenceList.length; q++) {
  23067. this.sentenceList[q].chooseSenList = [];
  23068. this.sentenceList[q].addChangeSen = [];
  23069. this.sentenceList[q].addChangeSen = JSON.parse(
  23070. JSON.stringify(this.sentenceList[q].addSentence)
  23071. );
  23072. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23073. q
  23074. ].rightAnswer.length;
  23075. }
  23076. this.dialogVisibleSentenceTeacher = true;
  23077. } else if (t == 48) {
  23078. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23079. .taskJson[index].toolChoose[i].tableJson
  23080. ? JSON.parse(
  23081. JSON.stringify(
  23082. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23083. index
  23084. ].toolChoose[i].tableJson
  23085. )
  23086. )
  23087. : { text: "" };
  23088. if (this.worksStudent[i].length) {
  23089. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23090. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23091. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23092. break;
  23093. }
  23094. }
  23095. }
  23096. this.dialogVisibleTableTeacher = true;
  23097. } else if (t == 40) {
  23098. if (this.evalCount > 0) {
  23099. this.updateCount(this.evalCount, t);
  23100. } else {
  23101. this.evalCount++;
  23102. a = this.evalCount;
  23103. this.toolsCount(a, t);
  23104. }
  23105. this.eScore = { eBzText: "", eStar: [] };
  23106. if (this.worksStudent[i].length) {
  23107. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23108. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23109. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23110. this.rateJson = this.chapInfoList[
  23111. this.courseType
  23112. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23113. break;
  23114. } else {
  23115. this.rateJson = this.chapInfoList[
  23116. this.courseType
  23117. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23118. }
  23119. }
  23120. } else {
  23121. this.rateJson = this.chapInfoList[
  23122. this.courseType
  23123. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23124. }
  23125. this.isStar = false;
  23126. this.studentEvalDialogVisibleTeacher = true;
  23127. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23128. window.parent.postMessage(
  23129. {
  23130. tools: t + "teacher",
  23131. cid: this.id,
  23132. stage: this.courseType,
  23133. task: this.taskCount,
  23134. tool: i,
  23135. student: this.sStudent
  23136. },
  23137. "*"
  23138. );
  23139. }
  23140. },
  23141. openCocoPi(tool, i, uid, uname) {
  23142. let student = {
  23143. userid: uid,
  23144. student: uname
  23145. };
  23146. if (tool == 57) {
  23147. window.parent.postMessage(
  23148. {
  23149. tools: tool + "teacher",
  23150. cid: this.id,
  23151. stage: this.courseType,
  23152. task: this.taskCount,
  23153. tool: i,
  23154. student: student
  23155. },
  23156. "*"
  23157. );
  23158. }
  23159. },
  23160. setRightAnswer(s, i, j) {
  23161. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23162. if (
  23163. this.sentenceList[i].chooseSenList[q] == undefined ||
  23164. this.sentenceList[i].chooseSenList[q] == ""
  23165. ) {
  23166. this.sentenceList[i].chooseSenList[q] = s;
  23167. this.sentenceList[i].addChangeSen[j] = "";
  23168. break;
  23169. }
  23170. }
  23171. this.$forceUpdate();
  23172. },
  23173. returnCard(r, i, j) {
  23174. var a = this.sentenceList[i].addSentence.indexOf(r);
  23175. this.sentenceList[i].chooseSenList[j] = "";
  23176. this.sentenceList[i].addChangeSen[a] = r;
  23177. this.$forceUpdate();
  23178. },
  23179. // addSentenceTool() {
  23180. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23181. // this.taskCount
  23182. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23183. // this.sentenceList = [
  23184. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23185. // ];
  23186. // this.dialogVisibleSentence = false;
  23187. // },
  23188. toolsCount(a, t) {
  23189. let params = {
  23190. cid: this.id,
  23191. chid: this.courseType,
  23192. uid: this.userid,
  23193. tid: t,
  23194. count: a
  23195. };
  23196. this.ajax
  23197. .get(this.$store.state.api + "insertToolsCount", params)
  23198. .then(res => {
  23199. this.selectCount();
  23200. })
  23201. .catch(err => {
  23202. console.error(err);
  23203. });
  23204. },
  23205. updateCount(c, t) {
  23206. c++;
  23207. let params = {
  23208. cid: this.id,
  23209. chid: this.courseType,
  23210. uid: this.userid,
  23211. tid: t,
  23212. count: c
  23213. };
  23214. this.ajax
  23215. .get(this.$store.state.api + "updateToolsCount", params)
  23216. .then(res => {
  23217. this.selectCount();
  23218. })
  23219. .catch(err => {
  23220. console.error(err);
  23221. });
  23222. },
  23223. checkEva() {
  23224. if (this.evalua != "") {
  23225. for (var i = 0; i < this.evaJuri.length; i++) {
  23226. if (this.evalua == this.evaJuri[i].id) {
  23227. this.eTitle = this.evaJuri[i].title;
  23228. this.eJson = JSON.parse(this.evaJuri[i].content);
  23229. }
  23230. }
  23231. this.$forceUpdate();
  23232. setTimeout(() => {
  23233. this.setMindData();
  23234. }, 0);
  23235. }
  23236. },
  23237. selectEva() {
  23238. let params = {
  23239. oid: this.oid
  23240. };
  23241. this.ajax
  23242. .get(this.$store.state.api + "selectAllEvaluation", params)
  23243. .then(res => {
  23244. this.evaJuri = res.data[0];
  23245. })
  23246. .catch(err => {
  23247. console.error(err);
  23248. });
  23249. },
  23250. setMindData() {
  23251. this.data.data = [];
  23252. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23253. let _eJson = Object.keys(this.eJson);
  23254. let _e = this.eJson;
  23255. for (let i = 0; i < _eJson.length; i++) {
  23256. let element = _e[_eJson[i]];
  23257. this.data.data.push({
  23258. id: element.id,
  23259. parentid: "root",
  23260. topic: element.name
  23261. });
  23262. let _eJsonc = Object.keys(element.child);
  23263. let _e2 = element.child;
  23264. for (let j = 0; j < _eJsonc.length; j++) {
  23265. let _ec = _e2[_eJsonc[j]];
  23266. this.data.data.push({
  23267. id: _ec.id,
  23268. parentid: element.id,
  23269. topic: _ec.name
  23270. });
  23271. let _eJsonz = Object.keys(_ec.child);
  23272. let _e3 = _ec.child;
  23273. for (let z = 0; z < _eJsonz.length; z++) {
  23274. let _ez = _e3[_eJsonz[z]];
  23275. this.data.data.push({
  23276. id: _ez.id,
  23277. parentid: _ec.id,
  23278. topic: _ez.name
  23279. });
  23280. }
  23281. }
  23282. }
  23283. this.$forceUpdate();
  23284. },
  23285. checkFileFull(type, url) {
  23286. this.fullDialogVisible = true;
  23287. this.fulltype = type;
  23288. this.fullUrl = url;
  23289. },
  23290. async checkFileFull1(t, f) {
  23291. this.fullDialogVisible = true;
  23292. if (t == 6) {
  23293. this.fulltype = 1;
  23294. this.fullUrl = JSON.parse(JSON.stringify(f));
  23295. } else if (t == 8) {
  23296. this.fulltype = 2;
  23297. this.fullUrl = f.url;
  23298. } else if (
  23299. t == 3 &&
  23300. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23301. "PDF"
  23302. ) {
  23303. this.fulltype = 3;
  23304. this.fullUrl = f.url;
  23305. } else if (t == 3) {
  23306. this.fulltype = 2;
  23307. let _uuurl = await this.checkLink(f.url);
  23308. this.fullUrl =
  23309. "https://view.officeapps.live.com/op/view.aspx?src=" +
  23310. encodeURIComponent(_uuurl);
  23311. }
  23312. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23313. },
  23314. openSname(n, id, i, uid) {
  23315. this.snameWid = id;
  23316. this.worksSName = n;
  23317. this.worksSid = uid == n ? "" : uid;
  23318. this.toolindex = i;
  23319. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23320. if (!this.uploadCid) {
  23321. this.$message.error(
  23322. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23323. );
  23324. return;
  23325. }
  23326. this.selectUploadStudent(1);
  23327. },
  23328. updateName() {
  23329. let params = {
  23330. n: this.worksSName,
  23331. cid: this.snameWid
  23332. };
  23333. this.ajax
  23334. .get(this.$store.state.api + "updateCourseWorksName", params)
  23335. .then(res => {
  23336. this.$message({
  23337. message: "修改成功",
  23338. type: "success"
  23339. });
  23340. this.dialogVisibleSname = false;
  23341. this.getCourseDetail(2);
  23342. this.snameWid = "";
  23343. this.worksSName = "";
  23344. })
  23345. .catch(err => {
  23346. console.error(err);
  23347. });
  23348. },
  23349. downloadFile2(f) {
  23350. // const loading = this.$loading.service({
  23351. // background: "rgba(255, 255, 255, 0.7)",
  23352. // target: document.body,
  23353. // text: "文件加载中...",
  23354. // });
  23355. // let url2 = f.url;
  23356. // let _url2 = "";
  23357. // if (
  23358. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23359. // ) {
  23360. // _url2 = url2.split(
  23361. // "https://view.officeapps.live.com/op/view.aspx?src="
  23362. // )[1];
  23363. // } else {
  23364. // _url2 = url2;
  23365. // }
  23366. // let params = {
  23367. // url: _url2,
  23368. // name: f.name,
  23369. // };
  23370. // this.ajax
  23371. // .get(this.$store.state.api + "download", params)
  23372. // .then((res) => {
  23373. // loading.close();
  23374. // let content = res.data.data.data;
  23375. // let ab = new ArrayBuffer(content.length);
  23376. // let view = new Uint8Array(ab);
  23377. // for (var i = 0; i < content.length; ++i) {
  23378. // view[i] = content[i];
  23379. // }
  23380. // let elink = document.createElement("a");
  23381. // elink.download = f.name;
  23382. // elink.style.display = "none";
  23383. // let blob = new Blob([ab], {
  23384. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23385. // });
  23386. // elink.href = URL.createObjectURL(blob);
  23387. // document.body.appendChild(elink);
  23388. // elink.click();
  23389. // document.body.removeChild(elink);
  23390. // })
  23391. // .catch((err) => {
  23392. // loading.close();
  23393. // console.error(err);
  23394. // });
  23395. var credentials = {
  23396. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23397. secretAccessKey: "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"
  23398. }; //秘钥形式的登录上传
  23399. window.AWS.config.update(credentials);
  23400. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23401. let url2 = f.url;
  23402. let _url2 = "";
  23403. if (
  23404. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23405. ) {
  23406. _url2 = url2.split(
  23407. "https://view.officeapps.live.com/op/view.aspx?src="
  23408. )[1];
  23409. } else {
  23410. _url2 = url2;
  23411. }
  23412. let _this = this;
  23413. _this.downLoading = true;
  23414. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23415. let name = decodeURIComponent(
  23416. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23417. );
  23418. var params = {
  23419. Bucket: "ccrb",
  23420. Key: name
  23421. };
  23422. s3.getObject(params, function(err, data) {
  23423. _this.downLoading = false;
  23424. if (err) console.log(err, err.stack);
  23425. // an error occurred
  23426. else {
  23427. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23428. let a = document.createElement("a");
  23429. a.name = f.name;
  23430. a.href = url;
  23431. a.download = f.name;
  23432. a.click();
  23433. console.log(data);
  23434. } // sxuccessful response
  23435. });
  23436. return;
  23437. let url = f.url;
  23438. let _url = "";
  23439. if (
  23440. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23441. ) {
  23442. _url = url.split(
  23443. "https://view.officeapps.live.com/op/view.aspx?src="
  23444. )[1];
  23445. } else {
  23446. _url = url;
  23447. }
  23448. _this.downLoading = true;
  23449. // const loading = _this.$loading.service({
  23450. // background: "rgba(255, 255, 255, 0.7)",
  23451. // target: document.body,
  23452. // text: "文件加载中...",
  23453. // });
  23454. let x = new XMLHttpRequest();
  23455. x.open("GET", _url, true);
  23456. x.responseType = "blob";
  23457. x.onload = function() {
  23458. _this.downLoading = false;
  23459. // loading.close();
  23460. let url = window.URL.createObjectURL(new Blob([x.response]));
  23461. let a = document.createElement("a");
  23462. a.name = f.name;
  23463. a.href = url;
  23464. a.download = f.name;
  23465. a.click();
  23466. };
  23467. x.send();
  23468. },
  23469. downloadFile(url) {
  23470. let hz = url.substring(url.lastIndexOf(".") + 1);
  23471. if (hz == "txt" || hz == "md") {
  23472. this.lookTxt(url);
  23473. return;
  23474. }
  23475. var credentials = {
  23476. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23477. secretAccessKey: "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"
  23478. }; //秘钥形式的登录上传
  23479. window.AWS.config.update(credentials);
  23480. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23481. let url2 = url;
  23482. let _url2 = "";
  23483. if (
  23484. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23485. ) {
  23486. _url2 = url2.split(
  23487. "https://view.officeapps.live.com/op/view.aspx?src="
  23488. )[1];
  23489. } else {
  23490. _url2 = url2;
  23491. }
  23492. const loading2 = this.$loading.service({
  23493. background: "rgba(255, 255, 255, 0.7)",
  23494. target: document.body,
  23495. text: "文件加载中..."
  23496. });
  23497. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23498. let name = decodeURIComponent(
  23499. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23500. );
  23501. var params = {
  23502. Bucket: "ccrb",
  23503. Key: name
  23504. };
  23505. s3.getObject(params, function(err, data) {
  23506. loading2.close();
  23507. if (err) console.log(err, err.stack);
  23508. // an error occurred
  23509. else {
  23510. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23511. let a = document.createElement("a");
  23512. a.name = name;
  23513. a.href = url;
  23514. a.download = name;
  23515. a.click();
  23516. console.log(data);
  23517. } // sxuccessful response
  23518. });
  23519. return;
  23520. let _this = this;
  23521. let _url = "";
  23522. if (
  23523. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23524. ) {
  23525. _url = url.split(
  23526. "https://view.officeapps.live.com/op/view.aspx?src="
  23527. )[1];
  23528. } else {
  23529. _url = url;
  23530. }
  23531. const x = new XMLHttpRequest();
  23532. x.open("GET", _url, true);
  23533. x.responseType = "blob";
  23534. const loading = _this.$loading.service({
  23535. background: "rgba(255, 255, 255, 0.7)",
  23536. target: document.body,
  23537. text: "文件加载中..."
  23538. });
  23539. // _this.$message.success("文件下载中...");
  23540. x.onload = function(e) {
  23541. loading.close();
  23542. let content = x.response;
  23543. let elink = document.createElement("a");
  23544. elink.download = decodeURI(
  23545. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23546. );
  23547. elink.style.display = "none";
  23548. let blob = new Blob([content]);
  23549. elink.href = URL.createObjectURL(blob);
  23550. document.body.appendChild(elink);
  23551. elink.click();
  23552. document.body.removeChild(elink);
  23553. };
  23554. x.send();
  23555. },
  23556. openLine(url) {
  23557. window.open(url);
  23558. },
  23559. resize() {
  23560. if (document.getElementsByClassName("box_course").length) {
  23561. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23562. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23563. if (this.showType == 2 || this.showType == 3) {
  23564. document.getElementsByClassName("navBox")[0].style.height =
  23565. a - 40 + 0 + "px";
  23566. } else {
  23567. document.getElementsByClassName("navBox")[0].style.height =
  23568. a - 40 + "px";
  23569. }
  23570. }
  23571. this.Stbodywidth =
  23572. document.getElementsByClassName("student_body").length &&
  23573. document.getElementsByClassName("student_body")[0].offsetWidth;
  23574. },
  23575. closeDraw() {
  23576. this.bg = null;
  23577. this.drawShow = false;
  23578. },
  23579. showPicturePaint(url) {
  23580. let params = {
  23581. img: url
  23582. };
  23583. this.ajax
  23584. .get(this.$store.state.api + "imgToBase64", params)
  23585. .then(res => {
  23586. this.drawShow = true;
  23587. this.bg = res.data[0].img;
  23588. })
  23589. .catch(err => {
  23590. console.error(err);
  23591. });
  23592. },
  23593. addImgDraw(base64) {
  23594. let file = { name: "批注图.png" };
  23595. let img = this.dataUrlToFile(base64, file);
  23596. this.beforeUpload1(img, 5);
  23597. },
  23598. addImgDrawImG(url) {
  23599. // console.log(url);
  23600. let params = [
  23601. {
  23602. wid: this.commentDetail.wid,
  23603. img: url
  23604. }
  23605. ];
  23606. this.ajax
  23607. .post(this.$store.state.api + "updateCourseWorks", params)
  23608. .then(res => {
  23609. this.$message({
  23610. message: "提交成功",
  23611. type: "success"
  23612. });
  23613. this.drawShow = false;
  23614. this.bg = "";
  23615. this.selectSWorks();
  23616. this.selectStudent();
  23617. })
  23618. .catch(err => {
  23619. this.$message.error("提交失败");
  23620. console.error(err);
  23621. });
  23622. },
  23623. deletePicturePaint() {
  23624. this.$confirm("确定删除此批注吗?", "提示", {
  23625. confirmButtonText: "确定",
  23626. cancelButtonText: "取消",
  23627. type: "warning"
  23628. })
  23629. .then(() => {
  23630. let params = [
  23631. {
  23632. wid: this.commentDetail.wid,
  23633. img: ""
  23634. }
  23635. ];
  23636. this.ajax
  23637. .post(this.$store.state.api + "updateCourseWorks", params)
  23638. .then(res => {
  23639. this.$message({
  23640. message: "删除成功",
  23641. type: "success"
  23642. });
  23643. this.selectSWorks();
  23644. this.selectStudent();
  23645. })
  23646. .catch(err => {
  23647. this.$message.error("删除失败");
  23648. console.error(err);
  23649. });
  23650. })
  23651. .catch(() => {});
  23652. },
  23653. getAudioVideo(constraintsData) {
  23654. if (navigator.mediaDevices === undefined) {
  23655. navigator.mediaDevices = {};
  23656. }
  23657. if (navigator.mediaDevices.getUserMedia === undefined) {
  23658. navigator.mediaDevices.getUserMedia = function(constraints) {
  23659. // 首先,如果有getUserMedia的话,就获得它
  23660. var getUserMedia =
  23661. navigator.getUserMedia ||
  23662. navigator.webkitGetUserMedia ||
  23663. navigator.mozGetUserMedia ||
  23664. navigator.msGetUserMedia;
  23665. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23666. if (!getUserMedia) {
  23667. return Promise.reject({ code: 404 });
  23668. }
  23669. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23670. return new Promise(function(resolve, reject) {
  23671. getUserMedia.call(navigator, constraints, resolve, reject);
  23672. });
  23673. };
  23674. }
  23675. return navigator.mediaDevices.getUserMedia(constraintsData);
  23676. },
  23677. /**
  23678. * 开始录制
  23679. */
  23680. startRecording(callback) {
  23681. let _function = screenStream => {
  23682. this.addStreamStopListener(screenStream, () => {
  23683. console.log("流停止监听");
  23684. this.stopRecording();
  23685. this.$emit("streamStop", {});
  23686. // this.stopRecording();
  23687. });
  23688. var options = {
  23689. type: "video",
  23690. mimeType: "video/webm",
  23691. disableLogs: false,
  23692. getNativeBlob: false, // enable it for longer recordings
  23693. ignoreMutedMedia: false
  23694. };
  23695. // this.video.srcObject = screenStream;
  23696. this.recorder = RecordRTC(screenStream, options);
  23697. this.recorder.startRecording();
  23698. this.recorder.screen = screenStream;
  23699. this.videoStart = true;
  23700. // callback(true);
  23701. };
  23702. this.getAudioVideo({ audio: true })
  23703. .then(res => {
  23704. this.captureScreen(_function, true);
  23705. console.log("已点击允许,开启成功");
  23706. })
  23707. .catch(err => {
  23708. // console.log('浏览器不支持,请更换浏览器')
  23709. // } else {
  23710. this.captureScreen(_function, false);
  23711. console.log("请检查是否存在麦克风");
  23712. });
  23713. },
  23714. /**
  23715. * 停止录制
  23716. */
  23717. stopRecording(callback) {
  23718. this.recorder.stopRecording(() => {
  23719. // this.video.src = this.video.srcObject = null;
  23720. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23721. const url = URL.createObjectURL(this.recorder.getBlob());
  23722. const a = document.createElement("a"); //this.fileName+
  23723. let videoFile = new File(
  23724. [this.recorder.getBlob()],
  23725. this.courseDetail.title + "录屏.mp4",
  23726. {
  23727. type: "video/mp4"
  23728. }
  23729. );
  23730. let downloadUrl = URL.createObjectURL(videoFile);
  23731. if (this.$refs.classRoomHelperRef) {
  23732. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  23733. }
  23734. document.body.appendChild(a);
  23735. a.style.display = "none";
  23736. a.href = url;
  23737. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  23738. a.click();
  23739. this.recorder.screen.stop();
  23740. this.recorder.destroy();
  23741. this.recorder = null;
  23742. this.videoStart = false;
  23743. // callback(false);
  23744. });
  23745. },
  23746. //初始化
  23747. captureScreen(callback, type) {
  23748. if (navigator.getDisplayMedia) {
  23749. //录制结束,文件下载
  23750. navigator
  23751. .getDisplayMedia({
  23752. video: true
  23753. })
  23754. .then(screenStream => {
  23755. if (type) {
  23756. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23757. screenStream.addTrack(mic.getTracks()[0]);
  23758. callback(screenStream);
  23759. });
  23760. } else {
  23761. callback(screenStream);
  23762. }
  23763. })
  23764. .catch(function(error) {
  23765. console.log("error", error);
  23766. });
  23767. } else if (navigator.mediaDevices.getDisplayMedia) {
  23768. navigator.mediaDevices
  23769. .getDisplayMedia({
  23770. video: true
  23771. })
  23772. .then(screenStream => {
  23773. if (type) {
  23774. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23775. screenStream.addTrack(mic.getTracks()[0]);
  23776. callback(screenStream);
  23777. });
  23778. } else {
  23779. callback(screenStream);
  23780. }
  23781. })
  23782. .catch(function(error) {
  23783. console.log("error", error);
  23784. });
  23785. } else {
  23786. var error = "getDisplayMedia API are not supported in this browser.";
  23787. console.log("error", error);
  23788. alert(error);
  23789. }
  23790. },
  23791. //流监听
  23792. addStreamStopListener(stream, callback) {
  23793. stream.addEventListener(
  23794. "ended",
  23795. function() {
  23796. callback();
  23797. callback = function() {};
  23798. },
  23799. false
  23800. );
  23801. stream.addEventListener(
  23802. "inactive",
  23803. function() {
  23804. callback();
  23805. callback = function() {};
  23806. },
  23807. false
  23808. );
  23809. stream.getTracks().forEach(function(track) {
  23810. track.addEventListener(
  23811. "ended",
  23812. function() {
  23813. callback();
  23814. callback = function() {};
  23815. },
  23816. false
  23817. );
  23818. track.addEventListener(
  23819. "inactive",
  23820. function() {
  23821. callback();
  23822. callback = function() {};
  23823. },
  23824. false
  23825. );
  23826. });
  23827. },
  23828. updateGroup() {
  23829. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23830. this.dialogVisibleGroup2 = true;
  23831. },
  23832. numberPan() {
  23833. if (
  23834. /[^\d]/.test(this.groupJson.number) ||
  23835. this.groupJson.number < 2 ||
  23836. this.groupJson.number > 10
  23837. ) {
  23838. this.$message.error("请输入2-10的数字");
  23839. this.groupJson.number = "";
  23840. }
  23841. },
  23842. updateGroupJson() {
  23843. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23844. if (
  23845. this.groupStudentUid[this.toolindex][i].length >
  23846. this.groupJson2.number
  23847. ) {
  23848. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23849. return;
  23850. }
  23851. }
  23852. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23853. this.islock = this.groupJson.islock == 1 ? true : false;
  23854. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23855. this.taskCount
  23856. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23857. let params = [
  23858. {
  23859. cid: this.id,
  23860. chapters: JSON.stringify(this.chapInfoList),
  23861. uid: this.userid,
  23862. unitIndex: this.courseType
  23863. }
  23864. ];
  23865. this.ajax
  23866. .post(this.$store.state.api + "updateWorkNew4", params)
  23867. .then(res => {
  23868. this.$message.success("设置成功");
  23869. this.getCourseDetail(2);
  23870. this.dialogVisibleGroup2 = false;
  23871. this.groupJson2 = {};
  23872. this.$forceUpdate();
  23873. })
  23874. .catch(err => {
  23875. this.$message.error("网络不佳");
  23876. console.error(err);
  23877. });
  23878. },
  23879. lockChair() {
  23880. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23881. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23882. this.updateGroupJson();
  23883. },
  23884. selectGroup(index) {
  23885. this.getCourseDetail(2, index);
  23886. },
  23887. joinGroup(index) {
  23888. if (this.groupJson.islock == 2) {
  23889. this.$message.error("位置已被锁定,无法加入");
  23890. return;
  23891. }
  23892. if (
  23893. this.groupStudent[this.toolindex][index].length >
  23894. this.groupJson.number ||
  23895. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23896. ) {
  23897. this.$message.error("位置已满,无法加入");
  23898. return;
  23899. }
  23900. let params = [
  23901. {
  23902. cid: this.id,
  23903. stage: this.courseType,
  23904. task: this.taskCount,
  23905. tool: this.toolindex,
  23906. g: index,
  23907. uid: this.userid
  23908. }
  23909. ];
  23910. this.ajax
  23911. .post(this.$store.state.api + "joinGroup", params)
  23912. .then(res => {
  23913. this.$message.success("加入成功");
  23914. this.getCourseDetail(2);
  23915. })
  23916. .catch(err => {
  23917. this.$message.error("网络不佳");
  23918. console.error(err);
  23919. });
  23920. },
  23921. exitGroup(id) {
  23922. if (this.groupJson.islock == 2) {
  23923. this.$message.error("位置已被锁定,无法退出");
  23924. return;
  23925. }
  23926. let params = [
  23927. {
  23928. gid: id
  23929. }
  23930. ];
  23931. this.ajax
  23932. .post(this.$store.state.api + "exitGroup", params)
  23933. .then(res => {
  23934. this.$message.success("退出成功");
  23935. this.getCourseDetail(2);
  23936. })
  23937. .catch(err => {
  23938. this.$message.error("网络不佳");
  23939. console.error(err);
  23940. });
  23941. },
  23942. groupUpload(index, task, gindex) {
  23943. this.taskCount = task;
  23944. this.toolindex = index;
  23945. this.groupIndex = gindex;
  23946. this.dialogVisibleGroupWork = true;
  23947. },
  23948. updateGroupChair(user) {
  23949. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23950. el.label = index;
  23951. return index != user.group;
  23952. });
  23953. this.updateGroupUser = user;
  23954. this.dialogVisibleUpdateGroup = true;
  23955. },
  23956. updateChair() {
  23957. if (
  23958. this.groupStudent[this.toolindex][this.checkChair].length >
  23959. this.groupJson.number ||
  23960. this.groupStudent[this.toolindex][this.checkChair].length ==
  23961. this.groupJson.number
  23962. ) {
  23963. this.$message.error("位置已满,无法加入");
  23964. return;
  23965. }
  23966. let params = [
  23967. {
  23968. cid: this.id,
  23969. stage: this.courseType,
  23970. task: this.taskCount,
  23971. tool: this.toolindex,
  23972. g: this.checkChair,
  23973. uid: this.updateGroupUser.userid
  23974. }
  23975. ];
  23976. this.ajax
  23977. .post(this.$store.state.api + "joinGroup", params)
  23978. .then(res => {
  23979. this.$message.success("修改成功");
  23980. this.updateGroupUser = {};
  23981. this.checkChair = "";
  23982. this.updateGroupArray = {};
  23983. this.dialogVisibleUpdateGroup = false;
  23984. this.getCourseDetail(2);
  23985. })
  23986. .catch(err => {
  23987. this.$message.error("网络不佳");
  23988. console.error(err);
  23989. });
  23990. },
  23991. deleteGroupChair(gindex) {
  23992. this.checkDeleteGroup = [];
  23993. this.deleteGroupUser = JSON.parse(
  23994. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23995. );
  23996. this.deleteGroupArray = this.groupJson.group[gindex];
  23997. this.groupIndex = gindex;
  23998. this.dialogVisibleDeleteGroup = true;
  23999. },
  24000. async deleteChair() {
  24001. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24002. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  24003. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24004. this.checkDeleteGroup[i]
  24005. )
  24006. ];
  24007. let params = [
  24008. {
  24009. gid: gid.id
  24010. }
  24011. ];
  24012. var a = await this.deleteChairA(params);
  24013. if (i == this.checkDeleteGroup.length - 1) {
  24014. this.$message.success("退出成功");
  24015. this.dialogVisibleDeleteGroup = false;
  24016. this.deleteGroupUser = [];
  24017. this.deleteGroupArray = {};
  24018. this.groupIndex = "";
  24019. this.checkDeleteGroup = [];
  24020. this.getCourseDetail(2);
  24021. }
  24022. }
  24023. },
  24024. deleteChairA(params) {
  24025. return new Promise((resolve, reject) => {
  24026. this.ajax
  24027. .post(this.$store.state.api + "exitGroup", params)
  24028. .then(res => {
  24029. resolve(1);
  24030. })
  24031. .catch(err => {
  24032. this.$message.error("网络不佳");
  24033. console.error(err);
  24034. });
  24035. });
  24036. },
  24037. contract(i) {
  24038. if (this.isCloseList[i].isClose == 0) {
  24039. this.isCloseList[i].isClose = 1;
  24040. } else {
  24041. this.isCloseList[i].isClose = 0;
  24042. }
  24043. this.$forceUpdate();
  24044. },
  24045. openWordCloud(toolindex) {
  24046. this.wordCloudData = '';
  24047. let array = [];
  24048. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24049. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24050. array.push({ name: works });
  24051. }
  24052. if (this.isGroup) {
  24053. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24054. let works = this.courseGroup.group[i].works[toolindex];
  24055. for (var j = 0; j < works.length; j++) {
  24056. let answer = JSON.parse(works[j].works)[0].answer;
  24057. array.push({ name: answer });
  24058. }
  24059. }
  24060. }
  24061. let _result = ''
  24062. array.forEach(e=>{
  24063. _result +=e.name+','
  24064. })
  24065. this.wordCloudData = _result;
  24066. this.dialogVisibleWordCloud = true;
  24067. this.wordCloudKey += 1;
  24068. },
  24069. openTips(i) {
  24070. this.tipsIndex = i;
  24071. this.downDialogVisible = true;
  24072. },
  24073. uploadWorks() {
  24074. this.$confirm("确定导出作业吗?", "提示", {
  24075. confirmButtonText: "确定",
  24076. cancelButtonText: "取消",
  24077. type: "warning"
  24078. })
  24079. .then(() => {
  24080. const loading = this.$loading.service({
  24081. background: "rgba(255, 255, 255, 0.7)",
  24082. target: document.body,
  24083. text: "文件加载中..."
  24084. });
  24085. const _worksStudent = this.worksStudent;
  24086. let url = [];
  24087. var counts = {};
  24088. for (var l = 0; l < _worksStudent[i].length; l++) {
  24089. var item = _worksStudent[i][l];
  24090. var name = item.sName;
  24091. if (!counts.hasOwnProperty(name)) {
  24092. counts[name] = 0;
  24093. } else {
  24094. counts[name]++;
  24095. }
  24096. if (counts[name] > 0) {
  24097. item.sName += " (" + counts[name] + ")";
  24098. }
  24099. }
  24100. for (var l = 0; l < _worksStudent[i].length; l++) {
  24101. var item = _worksStudent[i][l];
  24102. if (
  24103. item.works.indexOf(
  24104. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24105. ) !== -1 &&
  24106. item.works.indexOf("img") === -1
  24107. ) {
  24108. url.push({ name: item.sName, url: item.works });
  24109. }
  24110. }
  24111. // var toolList = [
  24112. // { name: "电子白板", tool: 1 },
  24113. // { name: "思维导图", tool: 3 },
  24114. // { name: "协同文档", tool: 6 },
  24115. // { name: "思维网格", tool: 7 },
  24116. // { name: "素材库", tool: 8 },
  24117. // { name: "学习资料", tool: 17 },
  24118. // { name: "便签", tool: 2 },
  24119. // { name: "问卷调查", tool: 4 },
  24120. // { name: "选择题", tool: 45 },
  24121. // { name: "倒计时", tool: 10 },
  24122. // { name: "问答", tool: 15 },
  24123. // { name: "课程设计", tool: 26 },
  24124. // { name: "训练服务器", tool: 18 },
  24125. // { name: "作业提交", tool: 16 },
  24126. // { name: "批量上传", tool: 50 },
  24127. // { name: "AIoT Blockly", tool: 21 },
  24128. // { name: "AI Python", tool: 23 },
  24129. // { name: "AI Blockly", tool: 24 },
  24130. // { name: "目标管理", tool: 25 },
  24131. // { name: "数学画板", tool: 31 },
  24132. // { name: "翻译", tool: 28 },
  24133. // { name: "魔盒识字", tool: 37 },
  24134. // { name: "数学画板", tool: 31 },
  24135. // { name: "24点", tool: 38 },
  24136. // { name: "GeoGebra", tool: 39 },
  24137. // { name: "源码编辑", tool: 32 },
  24138. // { name: "个人评价", tool: 40 },
  24139. // { name: "选择匹配", tool: 41 },
  24140. // { name: "汉字宫", tool: 44 },
  24141. // { name: "排序", tool: 47 },
  24142. // { name: "表格", tool: 48 },
  24143. // { name: "文档", tool: 52 },
  24144. // { name: "学生分组", tool: 49 },
  24145. // { name: "CocoPi", tool: 57 },
  24146. // { name: "模拟驾驶", tool: 58 },
  24147. // { name: "路径搜索", tool: 59 },
  24148. // { name: "深度学习", tool: 60 },
  24149. // { name: "全历史", tool: 61 },
  24150. // { name: "交互视频", tool: 62 },
  24151. // { name: "海龟编程", tool: 63 },
  24152. // { name: "挑人", tool: 65 },
  24153. // { name: "公式编辑", tool: 66 },
  24154. // { name: "分子结构", tool: 67 },
  24155. // { name: "时间轴", tool: 68 },
  24156. // ];
  24157. // var toolName = "";
  24158. // for(var w = 0;w<toolList.length;w++){
  24159. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24160. // toolName = toolList[w].name;
  24161. // }
  24162. // }
  24163. console.log(url);
  24164. this.downLoadAll(url, loading);
  24165. })
  24166. .catch(() => {});
  24167. },
  24168. downLoadAll(url, loading) {
  24169. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24170. const zip = new JSZip();
  24171. const cache = {};
  24172. const promises = [];
  24173. data.forEach(item => {
  24174. const promise = getFile(item.url).then(data => {
  24175. if (data.data != 1) {
  24176. // 下载文件, 并存成ArrayBuffer对象
  24177. const file_name =
  24178. item.name +
  24179. "." +
  24180. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24181. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24182. cache[file_name] = data.data;
  24183. }
  24184. });
  24185. promises.push(promise);
  24186. });
  24187. Promise.all(promises).then(() => {
  24188. zip.generateAsync({ type: "blob" }).then(content => {
  24189. // 生成二进制流
  24190. FileSaver.saveAs(
  24191. content,
  24192. this.courseDetail.title + "-" + "作业提交工具.zip"
  24193. ); // 利用file-saver保存文件 自定义文件名
  24194. setTimeout(() => {
  24195. loading.close();
  24196. }, 2000);
  24197. });
  24198. });
  24199. },
  24200. pickStudent(stu) {
  24201. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24202. return;
  24203. }
  24204. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24205. confirmButtonText: "确定",
  24206. cancelButtonText: "取消",
  24207. type: "warning"
  24208. })
  24209. .then(() => {
  24210. let params = [
  24211. {
  24212. uid: stu.userid,
  24213. cid: this.id,
  24214. stage: this.courseType,
  24215. task: this.taskCount,
  24216. tool: this.toolindex
  24217. }
  24218. ];
  24219. this.ajax
  24220. .post(this.$store.state.api + "updateCoursePick", params)
  24221. .then(res => {
  24222. this.$message.success("操作成功");
  24223. this.getPick();
  24224. })
  24225. .catch(err => {
  24226. this.$message.error("网络不佳");
  24227. console.error(err);
  24228. });
  24229. })
  24230. .catch(() => {});
  24231. },
  24232. selectUser() {
  24233. let params = {
  24234. userid: this.userid
  24235. };
  24236. this.ajax
  24237. .get(this.$store.state.api + "selectUser", params)
  24238. .then(res => {
  24239. this.userMes = res.data[0];
  24240. })
  24241. .catch(err => {
  24242. console.error(err);
  24243. });
  24244. },
  24245. setEngText(i) {
  24246. this.newEngIndex = i;
  24247. this.$forceUpdate();
  24248. },
  24249. addCorrect() {
  24250. this.$confirm("你确定提交批改嘛?", "提示", {
  24251. confirmButtonText: "确定",
  24252. showCancelButton: false,
  24253. closeOnClickModal: false,
  24254. type: "warning"
  24255. })
  24256. .then(() => {
  24257. let params = {
  24258. cid: this.id,
  24259. s: parseInt(this.courseType),
  24260. t: this.taskCount,
  24261. tool: this.toolindex,
  24262. wid: this.engWid,
  24263. c: this.userid,
  24264. w:
  24265. this.userMes[0].type == 2
  24266. ? JSON.parse(this.newEnglishList)
  24267. : this.newEngIndex == -1 &&
  24268. this.isNoUserid == true &&
  24269. this.newEnglishList1.length
  24270. ? JSON.stringify(this.oldEnglishJson1)
  24271. : this.newEngIndex == -1
  24272. ? JSON.stringify(this.newEnglishList)
  24273. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24274. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24275. : ""
  24276. };
  24277. this.ajax
  24278. .get(this.$store.state.api + "addEngC", params)
  24279. .then(res => {
  24280. this.$message.success("提交成功");
  24281. this.engUpdateDialogVisible = false;
  24282. })
  24283. .catch(err => {
  24284. console.error(err);
  24285. });
  24286. })
  24287. .catch(() => {});
  24288. },
  24289. selectEngC(id, z) {
  24290. let params = {
  24291. workid: id
  24292. };
  24293. this.ajax
  24294. .get(this.$store.state.api + "selectEngC", params)
  24295. .then(res => {
  24296. if (res.data[0].length == 0) {
  24297. this.newEnglishList.engTitle = z.engTitle;
  24298. this.newEnglishList.engText = z.engText;
  24299. } else {
  24300. var a = res.data[0];
  24301. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24302. if (this.userMes[0].type == 2) {
  24303. var snum = 0;
  24304. for (var i = 0; i < a.length; i++) {
  24305. if (this.userMes[0].userid == a[i].correct) {
  24306. this.newEnglishList = JSON.parse(a[i].cWork);
  24307. snum = 1;
  24308. }
  24309. }
  24310. if (snum == 0) {
  24311. this.newEnglishList = { engTitle: "", engText: "" };
  24312. this.newEnglishList.engTitle = z.engTitle;
  24313. this.newEnglishList.engText = z.engText;
  24314. }
  24315. } else if (this.userMes[0].type == 1) {
  24316. var num = 0;
  24317. for (var w = 0; w < a.length; w++) {
  24318. if (this.userMes[0].userid == a[w].correct) {
  24319. num = 1;
  24320. }
  24321. }
  24322. if (num == 0) {
  24323. this.isNoUserid = true;
  24324. var c = JSON.parse(JSON.stringify(z));
  24325. this.oldEnglishJson1 = c;
  24326. } else {
  24327. this.isNoUserid = false;
  24328. }
  24329. var b = a.sort((item, index) => {
  24330. console.log(item);
  24331. if (item.correct === this.userMes[0].userid) {
  24332. return -1; // 将a移到前面
  24333. } else if (index.correct === this.userMes[0].userid) {
  24334. return 1; // 将b移到前面
  24335. } else {
  24336. return 0; // 保持默认顺序
  24337. }
  24338. });
  24339. for (var p = 0; p < b.length; p++) {
  24340. for (var y = 0; y < ppp.length; y++) {
  24341. if (b[p].id == ppp[y].id) {
  24342. b[p].cWork = JSON.parse(ppp[y].cWork);
  24343. break;
  24344. }
  24345. }
  24346. }
  24347. this.newEnglishList1 = b;
  24348. }
  24349. }
  24350. this.greyType = false;
  24351. setTimeout(() => {
  24352. this.topHeight = document.querySelectorAll(
  24353. ".engUpTop"
  24354. )[0].offsetHeight;
  24355. if (this.newEnglishList1.length > 0) {
  24356. if (this.isNoUserid == true) {
  24357. this.engListLength = this.newEnglishList1.length + 1;
  24358. this.newEngIndex = -1;
  24359. } else {
  24360. this.engListLength = this.newEnglishList1.length;
  24361. this.newEngIndex = 0;
  24362. }
  24363. }
  24364. if (this.userMes[0].type == 2) {
  24365. this.correctWord = Diff.diffWordsWithSpace(
  24366. this.oldEnglishJson.engText,
  24367. this.newEnglishList.engText
  24368. );
  24369. } else if (
  24370. this.newEngIndex == -1 &&
  24371. this.isNoUserid == true &&
  24372. this.newEnglishList1.length
  24373. ) {
  24374. this.correctWord = Diff.diffWordsWithSpace(
  24375. this.oldEnglishJson.engText,
  24376. this.oldEnglishJson1.engText
  24377. );
  24378. } else if (this.newEngIndex == -1) {
  24379. this.correctWord = Diff.diffWordsWithSpace(
  24380. this.oldEnglishJson.engText,
  24381. this.newEnglishList.engText
  24382. );
  24383. } else if (
  24384. this.newEngIndex > -1 &&
  24385. this.newEnglishList1.length > 0
  24386. ) {
  24387. this.correctWord = Diff.diffWordsWithSpace(
  24388. this.oldEnglishJson.engText,
  24389. this.newEnglishList1[this.newEngIndex].cWork.engText
  24390. );
  24391. }
  24392. }, 500);
  24393. this.engUpdateDialogVisible = true;
  24394. this.$forceUpdate();
  24395. })
  24396. .catch(err => {
  24397. console.error(err);
  24398. });
  24399. },
  24400. getPick() {
  24401. let params = {
  24402. cid: this.id
  24403. };
  24404. this.ajax
  24405. .get(this.$store.state.api + "getPick", params)
  24406. .then(res => {
  24407. let array = [];
  24408. for (var i = 0; i < res.data[0].length; i++) {
  24409. array.push(res.data[0][i].userid);
  24410. }
  24411. this.isPickStudent = array;
  24412. if (array.indexOf(this.userid) !== -1) {
  24413. this.$confirm("你被老师选到啦!", "提示", {
  24414. confirmButtonText: "确定",
  24415. showCancelButton: false,
  24416. closeOnClickModal: false,
  24417. type: "warning"
  24418. })
  24419. .then(() => {
  24420. let pa = [
  24421. {
  24422. uid: this.userid,
  24423. cid: this.id
  24424. }
  24425. ];
  24426. this.ajax
  24427. .post(this.$store.state.api + "deletePick", pa)
  24428. .then(res => {
  24429. this.getPick();
  24430. })
  24431. .catch(err => {
  24432. this.$message.error("网络不佳");
  24433. console.error(err);
  24434. });
  24435. })
  24436. .catch(() => {});
  24437. }
  24438. })
  24439. .catch(err => {
  24440. this.$message.error("网络不佳");
  24441. console.error(err);
  24442. });
  24443. },
  24444. foldEva() {
  24445. if (
  24446. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24447. this.taskCount
  24448. ].isEvaFold2
  24449. ) {
  24450. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24451. this.taskCount
  24452. ].isEvaFold2 = false;
  24453. } else {
  24454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24455. this.taskCount
  24456. ].isEvaFold2 = true;
  24457. setTimeout(() => {
  24458. this.checkEva();
  24459. setTimeout(() => {
  24460. this.checkEva();
  24461. }, 500);
  24462. }, 0);
  24463. }
  24464. this.$forceUpdate();
  24465. },
  24466. panToolHeight(tool) {
  24467. var _tool = document.querySelectorAll("#" + tool)[0];
  24468. var _toolA = _tool ? _tool.offsetHeight : 0;
  24469. var _toolC = 0;
  24470. var _toolC =
  24471. _tool && _tool.children && _tool.children[0]
  24472. ? _tool.children[0].offsetHeight + 50
  24473. : 0;
  24474. let boolean2 = _toolA > _toolC ? true : false;
  24475. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  24476. this.$forceUpdate();
  24477. },
  24478. async checkLink(url) {
  24479. // console.log(url)
  24480. let _url = url;
  24481. try {
  24482. const response = await fetch(url);
  24483. if (!response.ok) {
  24484. _url = await this.checkLink(
  24485. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24486. encodeURIComponent(
  24487. _url.split(
  24488. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  24489. )[1]
  24490. )
  24491. );
  24492. }
  24493. // console.log(response.ok)
  24494. } catch (error) {
  24495. console.error("Error checking link:", error);
  24496. // console.log(false)
  24497. _url = await this.checkLink(
  24498. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24499. encodeURIComponent(
  24500. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24501. )
  24502. );
  24503. }
  24504. // console.log(_url)
  24505. return _url;
  24506. },
  24507. setClassRoomHelperWidth(width) {
  24508. this.classRoomHelperWidth = width;
  24509. },
  24510. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24511. this.$refs.choseWorksDetailDialogRef.open({
  24512. toolType:tooc,
  24513. tType: this.tType,
  24514. toolIndex: toolIndex
  24515. });
  24516. this.changeSplitScreenBehavior({
  24517. code: 1,
  24518. form: {
  24519. toolType:tooc,
  24520. toolIndex: toolIndex,
  24521. courseType: this.courseType,
  24522. taskCount: this.taskCount,
  24523. type: 0
  24524. }
  24525. });
  24526. },
  24527. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24528. this.$refs.statisticalAnalysisRef.open({
  24529. worksStudent: this.worksStudent[toolIndex],
  24530. tType: this.tType,
  24531. toolIndex: toolIndex
  24532. });
  24533. this.changeSplitScreenBehavior({
  24534. code: 2,
  24535. form: {
  24536. toolType:4,
  24537. courseType: this.courseType,
  24538. taskCount: this.taskCount,
  24539. toolIndex: toolIndex,
  24540. type: 0
  24541. }
  24542. });
  24543. },
  24544. statisticalAnalysisRefresh(toolIndex) {
  24545. this.$refs.statisticalAnalysisRef.refreshData({
  24546. worksStudent: this.worksStudent[toolIndex],
  24547. tType: this.tType,
  24548. toolIndex: toolIndex
  24549. });
  24550. },
  24551. async splitScreenBehavior(type = 0) {
  24552. // return;
  24553. if (this.splitScreenData.loading)
  24554. return this.$message.info("操作过快,请稍等");
  24555. if (type == 0) {
  24556. //关闭分屏
  24557. this.splitScreenData.isOpen = false;
  24558. // this.splitScreenData.userId = "";
  24559. // this.splitScreenData.uid = "";
  24560. this.splitScreenData.behavior = null;
  24561. await this.updateSplitScreenData(1);
  24562. this.$message.success("已关闭分屏模式");
  24563. this.studentFreePreview(false);
  24564. this.OpenJobPreview(false);
  24565. // this.followingMode(false);
  24566. } else if (type == 1) {
  24567. //开启分屏
  24568. this.splitScreenData.isOpen = true;
  24569. this.splitScreenData.userId = this.userid;
  24570. this.splitScreenData.uid = this.splitScreenData.myUid;
  24571. this.splitScreenData.behavior = null;
  24572. let status = await this.updateSplitScreenData(0);
  24573. if (status == 1) {
  24574. this.$message.success("已开启分屏");
  24575. this.studentFreePreview(true);
  24576. this.OpenJobPreview(true);
  24577. this.changeSplitScreenBehavior({form:{}})
  24578. // this.followingMode(true);
  24579. } else {
  24580. this.splitScreenData.isOpen = false;
  24581. this.splitScreenData.userId = "";
  24582. this.splitScreenData.uid = "";
  24583. this.splitScreenData.behavior = null;
  24584. this.$message.success("分屏开启失败");
  24585. }
  24586. }
  24587. },
  24588. enterFullScreen() {
  24589. let element = document.documentElement;
  24590. if (element.requestFullscreen) {
  24591. element.requestFullscreen();
  24592. } else if (element.mozRequestFullScreen) { /* Firefox */
  24593. element.mozRequestFullScreen();
  24594. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24595. element.webkitRequestFullscreen();
  24596. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24597. element.msRequestFullscreen();
  24598. }
  24599. },
  24600. exitFullScreen() {
  24601. if (document.exitFullscreen) {
  24602. document.exitFullscreen();
  24603. } else if (document.mozCancelFullScreen) { /* Firefox */
  24604. document.mozCancelFullScreen();
  24605. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24606. document.webkitExitFullscreen();
  24607. } else if (document.msExitFullscreen) { /* IE/Edge */
  24608. document.msExitFullscreen();
  24609. }
  24610. },
  24611. confirmOpen(){
  24612. this.splitScreenData.isOpen = true;
  24613. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24614. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24615. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24616. this.confirmOpenDig = false
  24617. if (!document.fullscreenElement) {
  24618. this.enterFullScreen();
  24619. }
  24620. if (this.timer2) {
  24621. clearInterval(this.timer2);
  24622. this.timer2 = null;
  24623. console.log('清除定时器');
  24624. }
  24625. this.timer2 = setInterval(()=> {
  24626. this.getSplitScreenData();//获取分屏数据
  24627. }, 1000);
  24628. this.$message.success("分屏模式已开启");
  24629. },
  24630. getSplitScreenData() {
  24631. // return;
  24632. // if (this.tType != 1) return;
  24633. let params = {
  24634. cid: this.id
  24635. };
  24636. this.ajax
  24637. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24638. .then(async res => {
  24639. let data = res.data[0][0]["splitScreenData"];
  24640. console.log("获取了分屏数:", data);
  24641. if (data) {
  24642. data = JSON.parse(data);
  24643. if (
  24644. !this.splitScreenData.isOpen &&
  24645. data.isOpen &&
  24646. this.splitScreenData.myUid == data.uid
  24647. ) {
  24648. this.splitScreenData.isOpen = false;
  24649. this.splitScreenData.userId = "";
  24650. this.splitScreenData.uid = "";
  24651. this.splitScreenData.behavior = null;
  24652. await this.updateSplitScreenData(1);
  24653. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24654. this.confirmOpenDig = true
  24655. this.confirmOpenDigData = data
  24656. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24657. this.splitScreenData.isOpen = false;
  24658. this.splitScreenData.userId = "";
  24659. this.splitScreenData.uid = "";
  24660. this.splitScreenData.behavior = null;
  24661. this.$message.error("已结束分屏模式");
  24662. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24663. this.splitScreenData.isOpen = true;
  24664. this.splitScreenData.uid = data.uid;
  24665. this.splitScreenData.userId = data.userId;
  24666. this.splitScreenData.behavior = data.behavior;
  24667. }
  24668. this.doSplitScreenBehavior();
  24669. } else {
  24670. if (this.splitScreenData.isOpen) {
  24671. this.splitScreenData.isOpen = false;
  24672. this.splitScreenData.userId = "";
  24673. this.splitScreenData.uid = "";
  24674. this.splitScreenData.behavior = null;
  24675. this.$message.error("已结束分屏模式");
  24676. if (this.timer2) {
  24677. clearInterval(this.timer2);
  24678. this.timer2 = null;
  24679. }
  24680. this.timer2 = setInterval(()=> {
  24681. this.getSplitScreenData();//获取分屏数据
  24682. }, 5000);
  24683. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  24684. confirmButtonText: '确定', //确认按钮的文字
  24685. showCancelButton: false, //是否显示取消按钮
  24686. showClose: false, //是否显示关闭按钮
  24687. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24688. type: "warning",
  24689. })
  24690. .then(() => {
  24691. if (document.fullscreenElement) {
  24692. this.exitFullScreen();
  24693. }
  24694. })
  24695. .catch(() => {});
  24696. }
  24697. }
  24698. })
  24699. .catch(e => {
  24700. console.log("获取分屏数出错:", e);
  24701. });
  24702. },
  24703. doSplitScreenBehavior() {
  24704. if (
  24705. this.splitScreenData.isOpen &&
  24706. this.splitScreenData.uid != this.splitScreenData.myUid
  24707. ) {
  24708. let behavior = this.splitScreenData.behavior;
  24709. if (behavior) {
  24710. if (behavior.code === 99) {
  24711. //初始化
  24712. this.fullDialogVisible = false;
  24713. if(this.$refs.choseWorksDetailDialogRef.show){
  24714. this.$refs.choseWorksDetailDialogRef.close();
  24715. }
  24716. if(this.$refs.statisticalAnalysisRef.show){
  24717. this.$refs.statisticalAnalysisRef.close();
  24718. }
  24719. }
  24720. if (behavior.code === 0) {
  24721. //开启内容列表弹窗
  24722. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24723. }else{
  24724. this.fullDialogVisible = false;
  24725. }
  24726. if (behavior.code === 1) {
  24727. //关于选择题的作业详细的操作
  24728. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24729. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24730. this.courseType = behavior.form.courseType;
  24731. this.taskCount = behavior.form.taskCount;
  24732. }
  24733. this.$nextTick(() => {
  24734. if (this.$refs.choseWorksDetailDialogRef.show) {
  24735. //已经打开了
  24736. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24737. } else {
  24738. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24739. }
  24740. });
  24741. }else{
  24742. this.$refs.choseWorksDetailDialogRef.close()
  24743. }
  24744. if(behavior.code === 2){
  24745. if(this.$refs.statisticalAnalysisRef.show){
  24746. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24747. }else{
  24748. this.$refs.statisticalAnalysisRef.open({
  24749. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24750. tType: this.tType,
  24751. toolIndex: behavior.form.toolIndex
  24752. });
  24753. }
  24754. }else{
  24755. this.$refs.statisticalAnalysisRef.close();
  24756. }
  24757. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24758. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24759. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24760. if (behavior.form.courseType != this.courseType ||
  24761. behavior.form.taskCount != this.taskCount ||
  24762. behavior.form.toolType != this.toolindex
  24763. ) {
  24764. var a = document.scrollingElement;
  24765. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24766. if (target) {
  24767. target.scrollIntoView(true);
  24768. setTimeout(()=>{
  24769. let scrollBody = document.querySelector('.body_student').parentElement
  24770. scrollBody.scrollTop = scrollBody.scrollTop - 100
  24771. }, 0);
  24772. // setTimeout(() => {
  24773. // a.scrollTop = 0
  24774. // }, 0);
  24775. }
  24776. }
  24777. if(this.courseType !=behavior.form.courseType){
  24778. this.courseType = behavior.form.courseType;
  24779. }
  24780. if(this.taskCount !=behavior.form.taskCount){
  24781. this.taskCount = behavior.form.taskCount;
  24782. }
  24783. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  24784. this.toolindex = behavior.form.toolType;
  24785. }
  24786. // if(behavior.form.navId){
  24787. // this.navId = behavior.form.navId
  24788. // }
  24789. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24790. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24791. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24792. this.getCourseDetail()
  24793. }
  24794. this.setContent2(false)
  24795. }
  24796. } else {
  24797. }
  24798. }
  24799. },
  24800. updateSplitScreenData(empty = 0) {
  24801. return new Promise(resolve => {
  24802. if(this.userid!==this.courseDetail.userid){
  24803. if(!this.courseDetail.userid){
  24804. return setTimeout(()=>{
  24805. this.updateSplitScreenData(empty)
  24806. },2000)
  24807. }
  24808. return;
  24809. };
  24810. if (
  24811. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24812. this.splitScreenData.userId == this.userid
  24813. ) {
  24814. this.splitScreenData.loading = true;
  24815. let params = [
  24816. {
  24817. cid: this.id,
  24818. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24819. }
  24820. ];
  24821. this.ajax
  24822. .post(
  24823. this.$store.state.api + "update_courseSplitScreenData",
  24824. params
  24825. )
  24826. .then(res => {
  24827. this.splitScreenData.loading = false;
  24828. if (res.data == 1) {
  24829. resolve(1);
  24830. console.log("修改分屏数据成功");
  24831. }
  24832. })
  24833. .catch(e => {
  24834. this.splitScreenData.loading = false;
  24835. console.log("修改分屏数据失败", e);
  24836. resoleve(0);
  24837. });
  24838. } else if (empty == 2 && this.tType == 1) {
  24839. let params = [
  24840. {
  24841. cid: this.id,
  24842. nData: ""
  24843. }
  24844. ];
  24845. return this.ajax
  24846. .post(
  24847. this.$store.state.api + "update_courseSplitScreenData",
  24848. params
  24849. )
  24850. .then(_ => resolve(1))
  24851. .catch(_ => resolve(0));
  24852. } else {
  24853. return resolve(0);
  24854. }
  24855. });
  24856. },
  24857. changeSplitScreenBehavior(newValue) {
  24858. if (
  24859. this.splitScreenData.isOpen &&
  24860. this.splitScreenData.uid == this.splitScreenData.myUid
  24861. ) {
  24862. let _behavior = null;
  24863. if(!newValue){
  24864. _behavior = {}
  24865. }else{
  24866. _behavior = newValue
  24867. }
  24868. if(_behavior.form){
  24869. _behavior.form.taskCount = this.taskCount;
  24870. _behavior.form.courseType = this.courseType
  24871. }else{
  24872. _behavior.form = {
  24873. taskCount:this.taskCount,
  24874. courseType:this.courseType
  24875. }
  24876. }
  24877. this.splitScreenData.behavior = _behavior;
  24878. this.updateSplitScreenData(0);
  24879. }
  24880. },
  24881. studentFreePreview(flag) {
  24882. this.IsLookOpen = flag;
  24883. this.followingMode(flag)
  24884. this.updateLookOpen();
  24885. },
  24886. OpenJobPreview(flag) {
  24887. this.sIsOpen = flag;
  24888. this.updateSLook();
  24889. },
  24890. followingMode(flag) {
  24891. this.IsFollow = flag;
  24892. this.updateFollow();
  24893. }
  24894. },
  24895. directives: {
  24896. // 使用局部注册指令的方式
  24897. resize: {
  24898. // 指令的名称
  24899. bind(el, binding) {
  24900. // el为绑定的元素,binding为绑定给指令的对象
  24901. let width = "",
  24902. height = "";
  24903. function isReize() {
  24904. const style = document.defaultView.getComputedStyle(el);
  24905. if (width !== style.width || height !== style.height) {
  24906. binding.value(); // 关键
  24907. }
  24908. width = style.width;
  24909. height = style.height;
  24910. }
  24911. el.__vueSetInterval__ = setInterval(isReize, 300);
  24912. },
  24913. unbind(el) {
  24914. clearInterval(el.__vueSetInterval__);
  24915. }
  24916. },
  24917. autoHeight: {
  24918. update(el, binding) {
  24919. const { value } = binding;
  24920. if (value && typeof value === "number") {
  24921. el.style.height = `${value}px`;
  24922. } else {
  24923. el.style.height = "auto";
  24924. }
  24925. },
  24926. componentUpdated(el) {
  24927. el.style.height = `${el.scrollHeight + 5}px`;
  24928. }
  24929. }
  24930. },
  24931. beforeDestroy() {
  24932. window.onresize = null;
  24933. clearInterval(this.timer);
  24934. this.timer = null;
  24935. clearInterval(this.timer2);
  24936. this.timer2 = null;
  24937. clearInterval(this.opertimer);
  24938. this.opertimer = null;
  24939. this.updateSplitScreenData(1);
  24940. },
  24941. computed: {
  24942. getHeight() {
  24943. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24944. },
  24945. contentConvent() {
  24946. return function(c) {
  24947. return c
  24948. ? c
  24949. .replaceAll(/\r\n/g, "<br/>")
  24950. .replaceAll(/\n/g, "<br/>")
  24951. .replaceAll(/\s/g, " &nbsp")
  24952. : "";
  24953. };
  24954. },
  24955. commentRight() {
  24956. if (
  24957. !this.orgArray.includes(this.org) &&
  24958. !this.oidArray.includes(this.oid)
  24959. ) {
  24960. return "35px";
  24961. }
  24962. return `calc(${this.classRoomHelperWidth} + 5px)`;
  24963. // if(this.$refs["classRoomHelperRef"].type==0){
  24964. // return "100px";
  24965. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24966. // return "502px"
  24967. // }else{
  24968. // return "0px"
  24969. // }
  24970. },
  24971. checkUpload() {
  24972. return function() {
  24973. var studentK = [];
  24974. if (this.plworkFile.length > 0) {
  24975. for (var z = 0; z < this.plworkFile.length; z++) {
  24976. studentK.push(this.plworkFile[z].username);
  24977. }
  24978. studentK = studentK.join(",");
  24979. }
  24980. var a = this.uploadStudentJuri.filter(el => {
  24981. return studentK.indexOf(el.userid) == -1;
  24982. });
  24983. return a;
  24984. };
  24985. },
  24986. getSName() {
  24987. return function(name) {
  24988. var check = name;
  24989. this.uploadStudentJuri.forEach(el => {
  24990. if (el.userid == check) {
  24991. check = el.name ? el.name : el.username;
  24992. }
  24993. });
  24994. return check;
  24995. };
  24996. },
  24997. getImgList() {
  24998. return function(val) {
  24999. let srcList = []; // 定义一个数组用来接收后面的img地址
  25000. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  25001. match,
  25002. capture
  25003. ) {
  25004. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25005. srcList.push(capture);
  25006. });
  25007. return srcList;
  25008. };
  25009. },
  25010. retrnToolHeight() {
  25011. return function(tool) {
  25012. var _tool = document.querySelectorAll("#" + tool)[0];
  25013. return _tool
  25014. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  25015. 30 +
  25016. "px"
  25017. : 0;
  25018. };
  25019. },
  25020. Correct() {
  25021. return function(c) {
  25022. let w = "";
  25023. let a = this.correctWord;
  25024. for (var k = 0; k < a.length; k++) {
  25025. //diffWordsWithSpace
  25026. if (a.length > 1) {
  25027. if (a[k].added == true) {
  25028. w +=
  25029. '<span style="background-color: green;color:#fff">' +
  25030. a[k].value +
  25031. "</span>";
  25032. } else if (a[k].removed == true) {
  25033. w +=
  25034. '<span style="text-decoration: line-through;color:red">' +
  25035. a[k].value +
  25036. "</span>";
  25037. } else {
  25038. w += "<span>" + a[k].value + "</span>";
  25039. }
  25040. } else {
  25041. w = c;
  25042. }
  25043. //diffChars方法
  25044. // if(w == ""){
  25045. // if(a.length > 1){
  25046. // if(a[k].added == true){
  25047. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25048. // }else if(a[k].removed == true){
  25049. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25050. // }
  25051. // }else{
  25052. // w = c
  25053. // }
  25054. // }else{
  25055. // if(k == a.length - 1){
  25056. // if(a[k].added == true){
  25057. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25058. // }else if(a[k].removed == true){
  25059. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25060. // }
  25061. // }else{
  25062. // if(a[k].added == true){
  25063. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25064. // }else if(a[k].removed == true){
  25065. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25066. // }
  25067. // }
  25068. // }
  25069. }
  25070. c = w;
  25071. return c;
  25072. };
  25073. },
  25074. getScoreList() {
  25075. let params = {
  25076. cid: this.id
  25077. };
  25078. this.ajax
  25079. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25080. .then(res => {
  25081. let result = res.data;
  25082. this.scoreList.datalist = result[0];
  25083. this.scoreList.isScoreList = result[1];
  25084. })
  25085. .catch(err => {
  25086. console.error(err);
  25087. });
  25088. }
  25089. },
  25090. mounted() {
  25091. this.updateSplitScreenData(2);
  25092. this.splitScreenData.myUid = uuidv4();
  25093. document.body.addEventListener("click", e => {
  25094. if (this.isUpdateToolDetail1) {
  25095. this.updateToolDetail(this.toolDetailIndex);
  25096. }
  25097. });
  25098. if (this.screenType == 2) {
  25099. window.parent.postMessage({ allScreen: 4 }, "*");
  25100. } else if (this.screenType == 3) {
  25101. window.parent.postMessage({ allScreen: 5 }, "*");
  25102. } else if (this.screenType == 1) {
  25103. window.parent.postMessage({ allScreen: 6 }, "*");
  25104. }
  25105. this.setOperationTime();
  25106. this.selectEva();
  25107. this.getCourseDetail();
  25108. this.selectCount();
  25109. this.getHomeWork();
  25110. this.selectUser();
  25111. this.getAIJ();
  25112. this.contentDialog = true;
  25113. this.setContent2(true);
  25114. if (this.tType == 4) {
  25115. this.pzDialog = true;
  25116. this.selectPz();
  25117. }
  25118. // 获取评分列表
  25119. this.getScoreList();
  25120. document.scrollingElement.scrollTop = 0;
  25121. window.addEventListener("resize", () => {
  25122. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25123. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25124. if (this.showType == 2 || this.showType == 3) {
  25125. document.getElementsByClassName("navBox")[0].style.height =
  25126. a - 40 + 0 + "px";
  25127. } else {
  25128. document.getElementsByClassName("navBox")[0].style.height =
  25129. a - 40 + "px";
  25130. }
  25131. });
  25132. let _this = this;
  25133. setTimeout(() => {
  25134. // _this.vedioTime = [];
  25135. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25136. // _this.vedioTime[i] = document.getElementsByClassName(
  25137. // "vjs-duration-display"
  25138. // )[i].textContent;
  25139. // }
  25140. }, 1000);
  25141. }
  25142. };
  25143. </script>
  25144. <style scoped>
  25145. @media screen and (max-width: 1280px) {
  25146. /* .courseIndex > div:first-child(2) {
  25147. width: 15% !important;
  25148. } */
  25149. /* .navText {
  25150. width: 120px !important;
  25151. } */
  25152. .evaCss {
  25153. flex-direction: column !important;
  25154. align-items: center !important;
  25155. }
  25156. .elist_input {
  25157. width: 90% !important;
  25158. }
  25159. .dialog_diy1 >>> .el-dialog {
  25160. width: 100% !important;
  25161. }
  25162. .rightWidthCss {
  25163. width: 100% !important;
  25164. }
  25165. .dialog_diy3 >>> .el-dialog {
  25166. width: 100% !important;
  25167. }
  25168. .addToolCss {
  25169. right: 0 !important;
  25170. width: 100% !important;
  25171. min-width: unset !important;
  25172. }
  25173. }
  25174. .evaCssMax {
  25175. flex-direction: column !important;
  25176. align-items: center !important;
  25177. }
  25178. .dialog_diy >>> .el-dialog {
  25179. margin-top: 10vh !important;
  25180. }
  25181. .body_student {
  25182. width: 77%;
  25183. height: 100%;
  25184. position: absolute;
  25185. left: 22%;
  25186. top: 0;
  25187. }
  25188. .student_head {
  25189. width: 100%;
  25190. margin: 20px auto 0;
  25191. padding-bottom: 20px;
  25192. display: flex;
  25193. flex-direction: column;
  25194. flex-wrap: nowrap;
  25195. align-items: flex-start;
  25196. justify-content: flex-start;
  25197. }
  25198. .pb_left {
  25199. width: 20%;
  25200. margin-right: 10px;
  25201. background: rgb(255, 255, 255);
  25202. position: fixed;
  25203. height: calc(100% - 40px);
  25204. border-radius: 20px;
  25205. padding-bottom: 15px;
  25206. box-sizing: border-box;
  25207. }
  25208. .wheel > img,
  25209. .project > img,
  25210. .star > img,
  25211. .evaluate > img,
  25212. .up_photo > img,
  25213. .chapter_add > img,
  25214. .deleteWord > img,
  25215. .question > img,
  25216. .homework > img {
  25217. width: 100%;
  25218. height: 100%;
  25219. }
  25220. .upCover > img {
  25221. width: 131px;
  25222. height: 69px;
  25223. object-fit: cover;
  25224. }
  25225. .upCover {
  25226. width: calc(100% / 3.5);
  25227. position: relative;
  25228. margin: 0 15px 10px 0;
  25229. display: flex;
  25230. flex-direction: column;
  25231. flex-wrap: nowrap;
  25232. justify-content: center;
  25233. align-content: center;
  25234. align-items: center;
  25235. height: fit-content;
  25236. }
  25237. .upCover2 {
  25238. width: 100%;
  25239. position: relative;
  25240. margin: 0 15px 10px 0;
  25241. display: flex;
  25242. flex-direction: column;
  25243. flex-wrap: nowrap;
  25244. justify-content: center;
  25245. align-content: center;
  25246. align-items: center;
  25247. }
  25248. .upCover2 > img {
  25249. width: 100%;
  25250. height: 90px;
  25251. object-fit: contain;
  25252. }
  25253. .chapter_add {
  25254. width: 120px;
  25255. position: relative;
  25256. text-align: center;
  25257. }
  25258. .isAddThings {
  25259. margin-top: 20px;
  25260. position: relative;
  25261. text-align: center;
  25262. background: #f7f8fa;
  25263. height: 90px;
  25264. width: 90px;
  25265. display: flex;
  25266. flex-direction: column;
  25267. justify-content: center;
  25268. }
  25269. .deleteWord {
  25270. width: 22px;
  25271. height: 22px;
  25272. position: absolute;
  25273. right: -5px;
  25274. top: -5px;
  25275. cursor: pointer;
  25276. }
  25277. .box_course {
  25278. /* width: 60%; */
  25279. width: calc(100% - 300px);
  25280. }
  25281. .wheel {
  25282. width: 100%;
  25283. /* height: 100%; */
  25284. height: 650px;
  25285. }
  25286. .right_box {
  25287. display: flex;
  25288. flex-direction: column;
  25289. margin-left: 30px;
  25290. justify-content: space-around;
  25291. }
  25292. .right_box_title {
  25293. font-size: 23px;
  25294. }
  25295. .people {
  25296. display: flex;
  25297. }
  25298. .student_body {
  25299. width: 100%;
  25300. margin: 0 auto;
  25301. margin-top: 10px;
  25302. padding: 0 0 20px;
  25303. }
  25304. .study_top {
  25305. margin-top: 100px;
  25306. width: 100%;
  25307. height: auto;
  25308. padding-bottom: 20px;
  25309. margin-left: 2px;
  25310. min-height: 90%;
  25311. }
  25312. .study_top .checkbox {
  25313. display: flex;
  25314. align-items: center;
  25315. padding: 15px 0 15px 30px;
  25316. flex: 0 0 auto;
  25317. font-weight: bold;
  25318. border-bottom: 1px solid #eee;
  25319. }
  25320. .study_top .check {
  25321. padding-bottom: 5px;
  25322. text-align: center;
  25323. cursor: pointer;
  25324. height: 30px;
  25325. box-sizing: border-box;
  25326. display: flex;
  25327. }
  25328. .study_top .checked {
  25329. border-bottom: 4px solid #3fc6a0;
  25330. padding-bottom: 5px;
  25331. color: #3fc6a0;
  25332. display: flex;
  25333. height: 35px;
  25334. }
  25335. .study_top .checked > div,
  25336. .study_top .check > div {
  25337. margin-right: 5px;
  25338. }
  25339. .videoTop {
  25340. display: flex;
  25341. flex-direction: row;
  25342. justify-content: space-between;
  25343. background: #fff;
  25344. align-items: center;
  25345. width: 95%;
  25346. padding: 20px;
  25347. }
  25348. .filebox {
  25349. display: flex;
  25350. flex-wrap: wrap;
  25351. flex-direction: column;
  25352. padding: 0 0 5px;
  25353. position: relative;
  25354. }
  25355. .filebox:before {
  25356. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25357. position: absolute;
  25358. top: 20px;
  25359. left: 13px;
  25360. border-left: 2px dotted #cad1dc;
  25361. height: calc(100% - 15px);
  25362. }
  25363. .toolHeng2 > div:last-child::before {
  25364. height: calc(100% - 43px);
  25365. }
  25366. .filebox .tooldetail {
  25367. width: calc(100%);
  25368. margin: 0px 12px;
  25369. padding: 12px;
  25370. line-height: 30px;
  25371. word-break: break-word;
  25372. background: #ffffff;
  25373. border-radius: 8px 8px 8px 8px;
  25374. opacity: 1;
  25375. border: 1px solid #cad1dc;
  25376. overflow: hidden;
  25377. box-sizing: border-box;
  25378. }
  25379. .file {
  25380. display: flex;
  25381. flex-direction: column;
  25382. align-items: center;
  25383. justify-content: center;
  25384. cursor: pointer;
  25385. width: 200px;
  25386. }
  25387. .file div {
  25388. margin-top: 10px;
  25389. width: 150px;
  25390. text-align: center;
  25391. overflow: hidden;
  25392. white-space: nowrap;
  25393. text-overflow: ellipsis;
  25394. }
  25395. .media {
  25396. display: flex;
  25397. flex-direction: column;
  25398. align-items: center;
  25399. justify-content: center;
  25400. margin: 0 20px 20px 0;
  25401. cursor: pointer;
  25402. margin: 12px 0 5px 15px;
  25403. overflow: hidden;
  25404. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25405. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25406. box-sizing: border-box;
  25407. }
  25408. .media img {
  25409. height: 90px;
  25410. width: 160px;
  25411. object-fit: cover;
  25412. }
  25413. .media .title {
  25414. padding: 5px;
  25415. text-align: left;
  25416. width: 100%;
  25417. box-sizing: border-box;
  25418. }
  25419. .media .btn {
  25420. width: 100%;
  25421. height: 35px;
  25422. line-height: 35px;
  25423. color: #fff;
  25424. background: #606060;
  25425. text-align: center;
  25426. overflow: hidden;
  25427. white-space: nowrap;
  25428. text-overflow: ellipsis;
  25429. }
  25430. .detail_content_top {
  25431. width: 100%;
  25432. padding: 25px 0 25px 0;
  25433. }
  25434. .detail_title {
  25435. text-align: center;
  25436. font-size: 24px;
  25437. }
  25438. .detail_time {
  25439. font-size: 13px;
  25440. padding: 15px 0 0 40px;
  25441. }
  25442. .detail_content {
  25443. line-height: 2pc;
  25444. width: 90%;
  25445. margin: 0 auto;
  25446. padding-top: 30px;
  25447. text-indent: 30px;
  25448. overflow: auto;
  25449. height: 200px;
  25450. }
  25451. .score_box >>> .el-rate {
  25452. margin-left: 10px;
  25453. }
  25454. .dialog_change >>> .el-dialog {
  25455. border-radius: 5px;
  25456. }
  25457. .dialog_change >>> .el-dialog__header {
  25458. background: #f2f2f2;
  25459. text-align: center;
  25460. }
  25461. .dialog_change >>> .el-dialog__title {
  25462. line-height: 5px;
  25463. }
  25464. .dialog_change >>> .el-dialog__body {
  25465. background: #fff;
  25466. padding: 10px 20px;
  25467. }
  25468. .score_box {
  25469. display: flex;
  25470. align-items: center;
  25471. margin-bottom: 18px;
  25472. margin-top: 20px;
  25473. }
  25474. .up_photo {
  25475. width: 120px;
  25476. cursor: pointer;
  25477. margin-top: 10px;
  25478. }
  25479. .up_photo2 {
  25480. width: 180px;
  25481. box-sizing: border-box;
  25482. min-width: 180px;
  25483. height: 180px;
  25484. max-height: 180px;
  25485. min-height: 180px;
  25486. cursor: pointer;
  25487. display: flex;
  25488. flex-direction: column;
  25489. align-items: center;
  25490. justify-content: center;
  25491. background: rgb(242, 246, 255);
  25492. /* padding: 25px; */
  25493. margin-bottom: 10px;
  25494. }
  25495. .up_photo2 img {
  25496. width: 50%;
  25497. height: auto;
  25498. }
  25499. .up_photo2 span {
  25500. color: #898989;
  25501. }
  25502. .plworkBox {
  25503. display: flex;
  25504. align-items: center;
  25505. margin-top: 10px;
  25506. flex-wrap: wrap;
  25507. }
  25508. .upload_send {
  25509. margin: 30px auto 30px;
  25510. width: 60%;
  25511. background: #3681fc;
  25512. text-align: center;
  25513. height: 35px;
  25514. line-height: 35px;
  25515. color: #fff;
  25516. border-radius: 5px;
  25517. cursor: pointer;
  25518. }
  25519. .marginT {
  25520. margin-top: 20px;
  25521. }
  25522. .cd_content_steps {
  25523. display: flex;
  25524. width: 90%;
  25525. justify-content: space-around;
  25526. border-top: 1px solid #eeeeee;
  25527. }
  25528. .cd_steps_box {
  25529. display: flex;
  25530. justify-content: center;
  25531. align-items: center;
  25532. flex-direction: column;
  25533. cursor: pointer;
  25534. }
  25535. .first {
  25536. display: flex;
  25537. align-items: center;
  25538. margin: 15px 0 20px 0;
  25539. font-size: 20px;
  25540. }
  25541. .first > div:nth-child(2) {
  25542. font-size: 16px !important;
  25543. padding-left: 10px;
  25544. line-height: 26px;
  25545. box-sizing: border-box;
  25546. }
  25547. .blue_box_one {
  25548. text-align: center;
  25549. color: #fff;
  25550. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25551. border-radius: 7px;
  25552. margin: 10px;
  25553. cursor: pointer;
  25554. width: 95%;
  25555. height: 45px;
  25556. display: flex;
  25557. flex-direction: row;
  25558. justify-content: flex-start;
  25559. align-items: center;
  25560. }
  25561. .blue_box_one > div:nth-child(1) {
  25562. line-height: 30px;
  25563. margin: 0 5px 0 10px;
  25564. width: 30%;
  25565. min-width: 70px;
  25566. border-radius: 4px;
  25567. }
  25568. .blue_box_one > div:nth-child(2) {
  25569. white-space: nowrap;
  25570. text-overflow: ellipsis;
  25571. overflow: hidden;
  25572. word-break: break-all;
  25573. width: 70%;
  25574. text-align: left;
  25575. margin-right: 10px;
  25576. max-width: calc(100% - 85px);
  25577. }
  25578. .blue_box_one > div:nth-child(2):hover {
  25579. overflow: hidden;
  25580. text-overflow: ellipsis;
  25581. white-space: nowrap;
  25582. cursor: pointer;
  25583. }
  25584. .upFile {
  25585. margin: 0 auto;
  25586. width: 120px;
  25587. background: #3681fc;
  25588. color: #fff;
  25589. height: 30px;
  25590. text-align: center;
  25591. line-height: 30px;
  25592. border-radius: 5px;
  25593. font-size: 14px;
  25594. cursor: pointer;
  25595. }
  25596. .courseTitle {
  25597. width: 85%;
  25598. margin: 10px auto 26px auto;
  25599. display: flex;
  25600. flex-direction: row;
  25601. align-items: center;
  25602. justify-content: space-between;
  25603. text-align: center;
  25604. }
  25605. .courseTitle .ctitle {
  25606. font-size: 20px;
  25607. font-weight: bold;
  25608. color: #0e1e33;
  25609. white-space: nowrap;
  25610. overflow: hidden;
  25611. text-overflow: ellipsis;
  25612. }
  25613. .inviteBox {
  25614. font-size: 14px;
  25615. /* margin-top: 5px; */
  25616. color: #00000099;
  25617. text-align: center;
  25618. }
  25619. .courseTitle >>> .el-tooltip {
  25620. width: 100%;
  25621. white-space: nowrap;
  25622. overflow: hidden;
  25623. text-overflow: ellipsis;
  25624. word-break: break-word;
  25625. }
  25626. .ml {
  25627. margin-left: 20px;
  25628. color: #5b7dba;
  25629. border-left: 3px solid #5b7dba;
  25630. padding-left: 5px;
  25631. font-weight: bold;
  25632. }
  25633. .return {
  25634. width: 2rem;
  25635. height: 2rem;
  25636. cursor: pointer;
  25637. }
  25638. .return > img {
  25639. width: 100%;
  25640. height: 100%;
  25641. }
  25642. .returnBtn {
  25643. width: 86px;
  25644. height: 36px;
  25645. background: #3681fc;
  25646. border-radius: 4px;
  25647. color: #fff;
  25648. text-align: center;
  25649. line-height: 36px;
  25650. margin-right: 20px;
  25651. cursor: pointer;
  25652. font-size: 14px;
  25653. font-weight: 400;
  25654. display: flex;
  25655. flex-direction: row;
  25656. flex-wrap: nowrap;
  25657. align-items: center;
  25658. justify-content: center;
  25659. }
  25660. .reBtnIcon,
  25661. .commentIcon,
  25662. .vedioIcon,
  25663. .vedioIcon1 {
  25664. /* width: 36px; */
  25665. height: 36px;
  25666. border-radius: 4px;
  25667. position: relative;
  25668. /* background: #e0eafb; */
  25669. background: #0061ff;
  25670. cursor: pointer;
  25671. margin-right: 12px;
  25672. display: flex;
  25673. align-items: center;
  25674. padding: 0 10px;
  25675. box-sizing: border-box;
  25676. font-size: 14px;
  25677. color: #fff;
  25678. }
  25679. .reBtnIcon::before,
  25680. .commentIcon::before,
  25681. .vedioIcon::before,
  25682. .vedioIcon1::before {
  25683. content: "";
  25684. display: block;
  25685. background-size: 100% 100%;
  25686. background-repeat: no-repeat;
  25687. width: 20px;
  25688. height: 20px;
  25689. margin-right: 5px;
  25690. /* position: absolute; */
  25691. /* top: 8px;
  25692. left: 8px; */
  25693. }
  25694. .vedioIcon1 {
  25695. background: #f63564;
  25696. }
  25697. .reBtnIcon::before {
  25698. background-image: url("../../assets/icon/newIcons/refresh.png");
  25699. }
  25700. .commentIcon::before {
  25701. background-image: url("../../assets/icon/newIcons/comment.png");
  25702. }
  25703. .vedioIcon::before {
  25704. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25705. }
  25706. .vedioIcon1::before {
  25707. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25708. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25709. }
  25710. .tool {
  25711. display: flex;
  25712. flex-direction: column;
  25713. flex-wrap: nowrap;
  25714. width: 13%;
  25715. margin: 0 30px;
  25716. align-items: center;
  25717. position: relative;
  25718. padding: 10px 25px;
  25719. cursor: pointer;
  25720. }
  25721. .whiteBIcon {
  25722. width: 150px;
  25723. }
  25724. .whiteBIcon > img {
  25725. width: 100%;
  25726. height: 100%;
  25727. }
  25728. .mask {
  25729. background-color: rgba(0, 0, 0, 0);
  25730. position: fixed;
  25731. top: 0;
  25732. left: 0;
  25733. width: 100%;
  25734. height: 100%;
  25735. z-index: 20000;
  25736. display: flex;
  25737. align-items: center;
  25738. justify-content: center;
  25739. }
  25740. .progressBox {
  25741. width: 500px;
  25742. height: 180px;
  25743. background: #fff;
  25744. border-radius: 10px;
  25745. box-shadow: 0 0 6px 1px #bfbfbf;
  25746. display: flex;
  25747. align-items: center;
  25748. justify-content: center;
  25749. flex-direction: column;
  25750. position: relative;
  25751. color: #6c6c6c;
  25752. }
  25753. .progressBox >>> .el-progress-bar__outer {
  25754. background-color: #d1dfff !important;
  25755. }
  25756. .progressBox .lbox {
  25757. height: 50px;
  25758. font-size: 19px;
  25759. display: flex;
  25760. align-items: center;
  25761. color: #747474;
  25762. }
  25763. .progressBox .lbox img {
  25764. width: 40px;
  25765. margin-right: 20px;
  25766. }
  25767. .closeCss {
  25768. position: absolute;
  25769. top: 8px;
  25770. right: 8px;
  25771. cursor: pointer;
  25772. width: 20px;
  25773. height: 20px;
  25774. }
  25775. .closeCss > img {
  25776. width: 100%;
  25777. height: 100%;
  25778. }
  25779. .uploadVedio {
  25780. display: flex;
  25781. flex-direction: column;
  25782. flex-wrap: nowrap;
  25783. justify-content: center;
  25784. align-items: center;
  25785. margin: 0 15px 10px 0;
  25786. }
  25787. .uploadVedio > img {
  25788. width: 30px;
  25789. height: 30px;
  25790. }
  25791. .uploadVedio > span {
  25792. white-space: nowrap;
  25793. overflow: hidden;
  25794. text-overflow: ellipsis;
  25795. width: 75px;
  25796. margin-top: 7px;
  25797. }
  25798. .picName {
  25799. white-space: nowrap;
  25800. overflow: hidden;
  25801. text-overflow: ellipsis;
  25802. width: 75px;
  25803. margin-top: 7px;
  25804. }
  25805. .new_top {
  25806. display: flex;
  25807. background: #fff;
  25808. flex-direction: row;
  25809. justify-content: flex-start;
  25810. align-items: center;
  25811. height: 60px;
  25812. position: fixed;
  25813. top: 20px;
  25814. left: 22%;
  25815. width: 77%;
  25816. z-index: 999;
  25817. border-radius: 12px 12px 0 0;
  25818. border-bottom: 1px solid #cad1dc;
  25819. padding: 10px 0;
  25820. }
  25821. .new_topFixed {
  25822. width: 100%;
  25823. height: 40px;
  25824. position: fixed;
  25825. top: 0px;
  25826. display: block;
  25827. background: #f2f2f2;
  25828. z-index: 998;
  25829. }
  25830. .before {
  25831. position: absolute;
  25832. background: #c3dad4;
  25833. width: 6px;
  25834. height: 100%;
  25835. }
  25836. .courseIndex {
  25837. display: flex;
  25838. flex-direction: row;
  25839. align-items: center;
  25840. width: calc(100% - 745px);
  25841. }
  25842. .courseIndex > div:nth-child(1) {
  25843. margin: 0 0 0 10px;
  25844. font-size: 20px;
  25845. min-width: 100px;
  25846. font-weight: bold;
  25847. border-left: 4px solid #3363b9;
  25848. height: 32px;
  25849. text-align: center;
  25850. line-height: 35px;
  25851. }
  25852. .courseIndex > div:nth-child(2) {
  25853. font-size: 20px;
  25854. /* width: 300px; */
  25855. max-width: calc(100% - 105px);
  25856. white-space: nowrap;
  25857. overflow: hidden;
  25858. text-overflow: ellipsis;
  25859. }
  25860. .courseIndex > div:nth-child(3) {
  25861. border-bottom: 1px solid #d7d7d7;
  25862. padding-bottom: 5px;
  25863. background: #3681fc;
  25864. width: 55px;
  25865. min-width: 55px;
  25866. border-radius: 5px;
  25867. color: #fff;
  25868. text-align: center;
  25869. height: 20px;
  25870. line-height: 26px;
  25871. font-size: 14px;
  25872. margin: 0 0 0 10px;
  25873. }
  25874. .course_text {
  25875. padding: 20px 0 0 15px;
  25876. text-indent: 30px;
  25877. width: 80%;
  25878. min-height: 20px;
  25879. }
  25880. .vedioList {
  25881. background: #f2f2f2;
  25882. border: 1px solid #ececec;
  25883. /* width: 38.8%; */
  25884. /* width: 300px; */
  25885. width: 100%;
  25886. height: 445px;
  25887. border-radius: 10px;
  25888. overflow: hidden;
  25889. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25890. }
  25891. .vedioNav {
  25892. margin: 10px 0 0 15px;
  25893. border-bottom: 1px solid #d7d7d7;
  25894. padding-bottom: 5px;
  25895. background: #3681fc;
  25896. width: 55px;
  25897. min-width: 55px;
  25898. border-radius: 5px;
  25899. color: #fff;
  25900. text-align: center;
  25901. height: 20px;
  25902. line-height: 26px;
  25903. font-size: 14px;
  25904. }
  25905. .queTop {
  25906. display: flex;
  25907. padding: 20px 0 20px 30px;
  25908. width: 100%;
  25909. flex-direction: row;
  25910. justify-content: flex-start;
  25911. align-items: center;
  25912. box-sizing: border-box;
  25913. }
  25914. .queTopTitle {
  25915. display: flex;
  25916. flex-direction: row;
  25917. flex-wrap: nowrap;
  25918. align-items: center;
  25919. font-weight: bold;
  25920. font-size: 20px;
  25921. color: rgb(14, 30, 51);
  25922. }
  25923. .queTopTitle::before {
  25924. content: "";
  25925. width: 2px;
  25926. height: 22px;
  25927. background: #3681fc;
  25928. border-radius: 3px;
  25929. display: block;
  25930. margin: 2px 6px 0 0;
  25931. }
  25932. .queTopRight {
  25933. display: flex;
  25934. flex-direction: row;
  25935. flex-wrap: nowrap;
  25936. align-items: center;
  25937. }
  25938. .queTopClose {
  25939. margin-right: 20px;
  25940. cursor: pointer;
  25941. position: relative;
  25942. display: flex;
  25943. }
  25944. .closeImg,
  25945. .openImg {
  25946. width: 25px;
  25947. height: 25px;
  25948. position: absolute;
  25949. left: -20px;
  25950. top: -1px;
  25951. }
  25952. .closeImg > img,
  25953. .openImg > img {
  25954. width: 100%;
  25955. height: 100%;
  25956. }
  25957. .question {
  25958. width: 40px;
  25959. margin-right: 10px;
  25960. margin-top: 7px;
  25961. }
  25962. .queTitle {
  25963. margin-left: 5px;
  25964. font-size: 25px;
  25965. display: flex;
  25966. align-items: center;
  25967. }
  25968. .addEditor {
  25969. width: 100px;
  25970. height: 30px;
  25971. background: #42cda6;
  25972. color: #fff;
  25973. border-radius: 5px;
  25974. text-align: center;
  25975. line-height: 30px;
  25976. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25977. cursor: pointer;
  25978. }
  25979. /* .vedioName {
  25980. cursor: pointer;
  25981. margin: 0px 0px 10px 5px;
  25982. white-space: nowrap;
  25983. overflow: hidden;
  25984. text-overflow: ellipsis;
  25985. width: 100%;
  25986. } */
  25987. .vedioTime {
  25988. width: 35px;
  25989. position: absolute;
  25990. color: #fff;
  25991. bottom: 0px;
  25992. right: 0px;
  25993. text-align: center;
  25994. background: #46411f;
  25995. height: 20px;
  25996. font-size: 14px;
  25997. line-height: 20px;
  25998. }
  25999. .homework {
  26000. width: 200px;
  26001. display: flex;
  26002. flex-direction: column;
  26003. flex-wrap: nowrap;
  26004. align-items: center;
  26005. cursor: pointer;
  26006. }
  26007. .homebox {
  26008. display: flex;
  26009. flex-wrap: wrap;
  26010. flex-direction: row;
  26011. justify-content: flex-start;
  26012. align-items: center;
  26013. padding: 15px 0;
  26014. }
  26015. .isChooseActive {
  26016. color: #3681fc !important;
  26017. font-weight: bold !important;
  26018. }
  26019. .chooseWho {
  26020. display: flex;
  26021. width: 100%;
  26022. flex-direction: row;
  26023. flex-wrap: nowrap;
  26024. justify-content: flex-start;
  26025. padding-bottom: 10px;
  26026. }
  26027. .chooseWho > div {
  26028. cursor: pointer;
  26029. padding-bottom: 10px;
  26030. margin: 0 30px 0 0;
  26031. font-weight: 400;
  26032. color: #0e1e33;
  26033. }
  26034. .addPoint > div > img {
  26035. cursor: pointer;
  26036. width: 85px;
  26037. border-radius: 15px;
  26038. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26039. }
  26040. .addPoint > div {
  26041. display: flex;
  26042. flex-direction: column;
  26043. flex-wrap: nowrap;
  26044. align-items: center;
  26045. }
  26046. .isBorder > div {
  26047. margin: 0 0 10px 0;
  26048. align-items: flex-start !important;
  26049. }
  26050. .noiframeBox {
  26051. display: flex;
  26052. flex-wrap: wrap;
  26053. }
  26054. .iframeBox iframe {
  26055. width: 100%;
  26056. height: 800px;
  26057. border: none;
  26058. margin-bottom: 20px;
  26059. border: 1px solid #ccc;
  26060. }
  26061. .upload_toolBtn {
  26062. background: #3681fc;
  26063. color: #fff;
  26064. width: 110px;
  26065. text-align: center;
  26066. height: 35px;
  26067. line-height: 35px;
  26068. font-size: 14px;
  26069. border-radius: 5px;
  26070. cursor: pointer;
  26071. position: absolute;
  26072. right: 10px;
  26073. bottom: 0;
  26074. }
  26075. .binfo_input,
  26076. .pj {
  26077. font: inherit;
  26078. color: currentColor;
  26079. width: 100%;
  26080. margin: 0;
  26081. padding: 15px 14px;
  26082. display: block;
  26083. min-width: 0;
  26084. outline: none;
  26085. box-sizing: content-box;
  26086. background: none;
  26087. -webkit-tap-highlight-color: transparent;
  26088. border: 1px solid rgba(0, 0, 0, 0.23);
  26089. border-radius: 4px;
  26090. box-sizing: border-box;
  26091. resize: none;
  26092. }
  26093. .binfo_input:focus-visible {
  26094. border: 1px solid rgba(61, 103, 188);
  26095. }
  26096. .dialog_diyCopy >>> .el-dialog__header {
  26097. display: none !important;
  26098. }
  26099. .dialog_diyCopy >>> .el-dialog__body {
  26100. padding: 0 !important;
  26101. height: 100% !important;
  26102. }
  26103. .confirmOpenDigCss > div{
  26104. font-size: 14px;
  26105. color: rgba(0, 0, 0, 0.6);
  26106. }
  26107. .confirmOpenDigCss >>> .el-dialog{
  26108. border-radius: 6px;
  26109. }
  26110. .confirmOpenDigCss >>> .el-dialog__body{
  26111. padding: 25px !important;
  26112. }
  26113. .confirmOpenDigCss > span{
  26114. font-size: 16px;
  26115. font-weight: 600;
  26116. color: rgba(0, 0, 0, 0.8);
  26117. }
  26118. .dialog_diy >>> .el-dialog__header,
  26119. .dialog_diy1 >>> .el-dialog__header {
  26120. background: #454545 !important;
  26121. padding: 15px 20px;
  26122. }
  26123. .dialog_diy >>> .el-dialog__title,
  26124. .dialog_diy1 >>> .el-dialog__title {
  26125. color: #fff;
  26126. }
  26127. .dialog_diy >>> .el-dialog__headerbtn,
  26128. .dialog_diy1 >>> .el-dialog__headerbtn {
  26129. top: 19px;
  26130. }
  26131. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26132. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26133. color: #fff;
  26134. }
  26135. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26136. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26137. color: #fff;
  26138. }
  26139. .dialog_diy1 >>> .el-dialog__body {
  26140. padding: 0;
  26141. }
  26142. .dialog_diy >>> .el-dialog__body,
  26143. .dialog_diy >>> .el-dialog__footer,
  26144. .dialog_diy1 >>> .el-dialog__footer {
  26145. background: #fafafa;
  26146. }
  26147. .markScore_diy >>> .el-dialog {
  26148. border-radius: 10px;
  26149. }
  26150. .markScore_diy >>> .el-dialog__body {
  26151. padding: 0;
  26152. height: 621px;
  26153. min-height: calc(100% - 60px);
  26154. }
  26155. .markScore_diy >>> .el-dialog__header {
  26156. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26157. }
  26158. .markScore_diy >>> .markScore_diyTit {
  26159. width: calc(100% - 60px);
  26160. display: flex;
  26161. justify-content: space-between;
  26162. align-items: center;
  26163. }
  26164. .a_addBox {
  26165. padding: 0 0 0 15px;
  26166. }
  26167. .a_add_box {
  26168. padding: 10px;
  26169. background: #fff;
  26170. margin-bottom: 10px;
  26171. border-radius: 5px;
  26172. box-shadow: 0 0 5px 0 #d5d5d5;
  26173. }
  26174. .a_add_head {
  26175. display: flex;
  26176. align-items: flex-start;
  26177. /* justify-content: space-between; */
  26178. flex-direction: column;
  26179. /* flex-direction: row; */
  26180. margin: 10px 0 20px 0;
  26181. font-size: 18px;
  26182. width: 100%;
  26183. }
  26184. .askIndex {
  26185. background: #3681fc;
  26186. border-radius: 50%;
  26187. color: #fff;
  26188. width: 25px;
  26189. height: 25px;
  26190. min-width: 25px;
  26191. min-height: 25px;
  26192. text-align: center;
  26193. line-height: 25px;
  26194. margin-right: 5px;
  26195. }
  26196. .a_add_head .a_add_head_input {
  26197. width: 300px;
  26198. }
  26199. .a_add_head .a_add_head_div {
  26200. display: flex;
  26201. align-items: center;
  26202. justify-content: space-between;
  26203. }
  26204. .a_add_body {
  26205. display: flex;
  26206. align-items: center;
  26207. }
  26208. .a_add_input {
  26209. display: flex;
  26210. align-items: center;
  26211. flex-wrap: wrap;
  26212. width: 100%;
  26213. }
  26214. .a_add_input >>> .el-radio-group,
  26215. .a_add_input >>> .el-checkbox-group {
  26216. width: 100%;
  26217. }
  26218. .a_add_input >>> .el-radio,
  26219. .a_add_input >>> .el-checkbox {
  26220. display: flex;
  26221. flex-direction: row;
  26222. flex-wrap: nowrap;
  26223. align-items: center;
  26224. padding: 15px 0;
  26225. }
  26226. .a_add_input >>> .el-radio:not(:last-child),
  26227. .a_add_input >>> .el-checkbox:not(:last-child) {
  26228. width: 100%;
  26229. border-bottom: 1px solid #efefef;
  26230. }
  26231. .redioStyle >>> .el-radio__label {
  26232. font-size: 18px;
  26233. }
  26234. .redioStyle >>> .el-radio__label > span,
  26235. .redioStyle >>> .el-checkbox__label > span {
  26236. word-break: break-all;
  26237. white-space: normal;
  26238. }
  26239. .redioStyle >>> .el-checkbox__label {
  26240. font-size: 18px;
  26241. }
  26242. .toolHeng2 {
  26243. width: 100%;
  26244. padding-left: 15px;
  26245. box-sizing: border-box;
  26246. }
  26247. .workNav {
  26248. font-size: 20px;
  26249. font-weight: bold;
  26250. color: #0e1e33;
  26251. display: flex;
  26252. flex-direction: row;
  26253. flex-wrap: nowrap;
  26254. align-items: center;
  26255. padding: 15px 0 15px 0;
  26256. }
  26257. .workNav::before {
  26258. content: "";
  26259. width: 2px;
  26260. height: 22px;
  26261. background: #3681fc;
  26262. border-radius: 3px;
  26263. display: block;
  26264. margin: 2px 6px 0 0;
  26265. }
  26266. .toolHeng {
  26267. display: flex;
  26268. flex-direction: row;
  26269. flex-wrap: wrap;
  26270. justify-content: flex-start;
  26271. align-items: center;
  26272. width: 100%;
  26273. }
  26274. .toolHeng > div {
  26275. padding-left: 20px;
  26276. }
  26277. .isWidth {
  26278. width: 20%;
  26279. }
  26280. .textTitle {
  26281. display: flex;
  26282. flex-direction: row;
  26283. flex-wrap: nowrap;
  26284. align-items: center;
  26285. width: 95%;
  26286. }
  26287. .textTitle >>> .el-form-item__label {
  26288. font-size: 22px;
  26289. color: #918f8f;
  26290. width: 100px;
  26291. }
  26292. .textTitle >>> .el-form-item__content {
  26293. width: calc(100% - 100px);
  26294. }
  26295. .textCss >>> .el-dialog {
  26296. width: 800px !important;
  26297. height: 400px;
  26298. background: #fafafa;
  26299. }
  26300. .textCss >>> .el-dialog__body {
  26301. margin: 55px 8% 0 8%;
  26302. padding: 0 !important;
  26303. }
  26304. .textCss >>> .el-dialog__footer {
  26305. padding-top: 38px;
  26306. }
  26307. .toolsCss >>> .el-dialog__body {
  26308. padding: 20px;
  26309. }
  26310. .lineCss >>> .el-dialog__body {
  26311. display: flex;
  26312. flex-direction: row;
  26313. align-items: center;
  26314. justify-content: center;
  26315. }
  26316. .newNav {
  26317. display: flex;
  26318. flex-direction: row;
  26319. align-items: baseline;
  26320. justify-content: flex-start;
  26321. }
  26322. .navListItem {
  26323. width: calc(100% - 20px);
  26324. height: 50px;
  26325. margin: 0px auto 10px;
  26326. display: flex;
  26327. flex-direction: row;
  26328. flex-wrap: nowrap;
  26329. align-items: center;
  26330. justify-content: space-between;
  26331. background: #f0f4fa;
  26332. border-radius: 6px 6px 6px 6px;
  26333. }
  26334. .navText {
  26335. cursor: pointer;
  26336. white-space: nowrap;
  26337. overflow: hidden;
  26338. text-overflow: ellipsis;
  26339. width: 220px;
  26340. padding: 0 10px;
  26341. font-weight: 400;
  26342. color: #0e1e33;
  26343. }
  26344. .downIcon {
  26345. width: 20px;
  26346. min-width: 20px;
  26347. height: 20px;
  26348. margin-right: 15px;
  26349. cursor: pointer;
  26350. }
  26351. .downIcon > img {
  26352. width: 100%;
  26353. height: 100%;
  26354. }
  26355. .noVedio {
  26356. display: flex;
  26357. flex-direction: row;
  26358. justify-content: center;
  26359. align-content: center;
  26360. }
  26361. .noNavText {
  26362. cursor: pointer;
  26363. margin: 0px 0px 10px 5px;
  26364. width: 112px;
  26365. }
  26366. .listNoVedio {
  26367. margin: 0 0 0 30px;
  26368. width: 97%;
  26369. }
  26370. .video-player >>> .video-js {
  26371. height: 100%;
  26372. }
  26373. .hangVedioList {
  26374. width: 90% !important;
  26375. height: 150px !important;
  26376. margin: 20px 0 0 30px;
  26377. }
  26378. .hangVedio {
  26379. width: 100%;
  26380. height: 170px !important;
  26381. align-items: flex-start !important;
  26382. }
  26383. .hangHand {
  26384. height: 150px !important;
  26385. }
  26386. .twoChild {
  26387. width: 95%;
  26388. margin: 10px;
  26389. border-radius: 5px;
  26390. background: #f2f2f2;
  26391. display: flex;
  26392. flex-direction: column;
  26393. flex-wrap: nowrap;
  26394. justify-content: flex-start;
  26395. align-items: flex-start;
  26396. transition: all 0.5s;
  26397. overflow: hidden;
  26398. height: 0;
  26399. background: #e7f3ff;
  26400. }
  26401. .twoChild > div:nth-child(1) {
  26402. margin-top: 5px;
  26403. }
  26404. .navChild {
  26405. width: 100%;
  26406. cursor: pointer;
  26407. margin-bottom: 10px;
  26408. position: relative;
  26409. }
  26410. .navChild img {
  26411. position: absolute;
  26412. right: 11px;
  26413. width: 15px;
  26414. top: 50%;
  26415. transform: translateY(-50%);
  26416. }
  26417. .navActive,
  26418. .toolActive {
  26419. height: auto !important;
  26420. overflow: auto !important;
  26421. /* // padding-bottom: 16px; */
  26422. }
  26423. .toolActive {
  26424. padding: 0;
  26425. }
  26426. .navTask {
  26427. display: flex;
  26428. flex-direction: row;
  26429. flex-wrap: nowrap;
  26430. align-items: center;
  26431. align-content: flex-start;
  26432. height: 40px;
  26433. justify-content: flex-start;
  26434. padding: 0 10px;
  26435. width: 100%;
  26436. box-sizing: border-box;
  26437. }
  26438. .navTaskname {
  26439. white-space: nowrap;
  26440. text-overflow: ellipsis;
  26441. overflow: hidden;
  26442. word-break: break-all;
  26443. padding-left: 5px;
  26444. }
  26445. .openTaskActive {
  26446. /* background-color: #e0eafb !important;
  26447. color: #0061ff; */
  26448. color: #fff;
  26449. background: rgb(55, 129, 252) !important;
  26450. }
  26451. .iframeName {
  26452. margin: 5px 0;
  26453. border-left: 4px solid #41c4a4;
  26454. padding-left: 4px;
  26455. }
  26456. .toolTitle {
  26457. margin: 0px 0px 20px;
  26458. font-size: 20px;
  26459. font-weight: 500;
  26460. border-left: 4px solid #41c4a4;
  26461. padding-left: 4px;
  26462. }
  26463. .cru_selectBox {
  26464. overflow: auto;
  26465. width: 95%;
  26466. margin: 17px auto 0;
  26467. height: calc(100% - 40px - 21px - 20px - 17px);
  26468. background: #fff;
  26469. border-radius: 8px;
  26470. }
  26471. .cru_selectBox::-webkit-scrollbar,
  26472. .study_top::-webkit-scrollbar,
  26473. .textContent::-webkit-scrollbar {
  26474. /*滚动条整体样式*/
  26475. width: 6px;
  26476. /*高宽分别对应横竖滚动条的尺寸*/
  26477. height: 6px;
  26478. }
  26479. /*定义滚动条轨道 内阴影+圆角*/
  26480. .cru_selectBox::-webkit-scrollbar-track,
  26481. .study_top::-webkit-scrollbar-track,
  26482. .textContent::-webkit-scrollbar {
  26483. border-radius: 10px;
  26484. background-color: #b8bdc9;
  26485. }
  26486. /*定义滑块 内阴影+圆角*/
  26487. .cru_selectBox::-webkit-scrollbar-thumb,
  26488. .study_top::-webkit-scrollbar-thumb,
  26489. .textContent::-webkit-scrollbar-thumb {
  26490. border-radius: 10px;
  26491. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26492. background-color: #2c5ab3;
  26493. }
  26494. .vedioBox {
  26495. border-radius: 0 0 20px 20px;
  26496. background: #fff;
  26497. overflow: auto;
  26498. }
  26499. .taskBox {
  26500. width: 98%;
  26501. background: #f0f4fa;
  26502. margin: 10px auto;
  26503. padding: 0 10px;
  26504. border-radius: 4px;
  26505. box-sizing: border-box;
  26506. }
  26507. .vedioTaskBox {
  26508. width: 100%;
  26509. display: flex;
  26510. flex-direction: row;
  26511. flex-wrap: nowrap;
  26512. align-items: flex-start;
  26513. position: relative;
  26514. }
  26515. .toolBox {
  26516. margin: 15px 0 0 25px;
  26517. display: flex;
  26518. position: relative;
  26519. padding: 18px 20px;
  26520. border-top-left-radius: 5px;
  26521. border-top-right-radius: 5px;
  26522. width: 90%;
  26523. }
  26524. .btnAll {
  26525. position: absolute;
  26526. right: 0;
  26527. display: flex;
  26528. flex-direction: row;
  26529. flex-wrap: nowrap;
  26530. align-items: center;
  26531. }
  26532. .btnLeft,
  26533. .btnRight {
  26534. display: flex;
  26535. flex-direction: row;
  26536. flex-wrap: nowrap;
  26537. align-items: center;
  26538. padding: 5px 0;
  26539. }
  26540. .btnLeft {
  26541. border-right: 1px solid #cad1dc;
  26542. }
  26543. .btnLeft > .custom-tooltip {
  26544. background: #3681fc;
  26545. color: #fff;
  26546. }
  26547. .last:hover {
  26548. background: #3383fa !important;
  26549. color: #fff;
  26550. border: 1px solid #3383fa !important;
  26551. }
  26552. .last,
  26553. .returnBtn1 {
  26554. width: 90px;
  26555. height: 36px;
  26556. background: #ffffff;
  26557. border-radius: 4px;
  26558. border: 1px solid #0061ff;
  26559. color: #0061ff;
  26560. cursor: pointer;
  26561. display: flex;
  26562. flex-direction: row;
  26563. flex-wrap: nowrap;
  26564. align-items: center;
  26565. justify-content: center;
  26566. margin-left: 12px;
  26567. }
  26568. .returnBtn1 {
  26569. background: #f0f4fa;
  26570. border-radius: 4px;
  26571. border: 1px solid #cad1dc;
  26572. margin: 0 12px;
  26573. }
  26574. .lastImg {
  26575. min-width: 15px;
  26576. width: 15px;
  26577. height: 15px;
  26578. display: flex;
  26579. }
  26580. .lastText {
  26581. padding: 0 5px 0 5px;
  26582. box-sizing: border-box;
  26583. font-size: 14px;
  26584. }
  26585. .lastImg > img {
  26586. width: 100%;
  26587. height: 100%;
  26588. }
  26589. /* .vedioTimeBox {
  26590. display: flex;
  26591. flex-direction: row;
  26592. align-items: center;
  26593. flex-wrap: nowrap;
  26594. position: relative;
  26595. } */
  26596. .navBox {
  26597. background: #fff;
  26598. height: calc(100% - 40px);
  26599. overflow-y: auto;
  26600. overflow-x: hidden;
  26601. }
  26602. .worksBox {
  26603. margin: 0 0 10px 25px;
  26604. border-bottom: 1px solid #eeeeee;
  26605. padding: 18px 20px;
  26606. border-radius: 4px;
  26607. width: 90%;
  26608. }
  26609. .worksBTitle {
  26610. font-size: 20px;
  26611. padding-bottom: 15px;
  26612. border-bottom: 1px solid #eeeeee;
  26613. display: flex;
  26614. align-items: center;
  26615. }
  26616. .greenBox {
  26617. width: 5px;
  26618. height: 30px;
  26619. background: #63b6fa;
  26620. margin-right: 5px;
  26621. }
  26622. .worksDetailBox {
  26623. display: flex;
  26624. width: 100%;
  26625. flex-direction: row;
  26626. flex-wrap: wrap;
  26627. align-items: flex-end;
  26628. justify-content: flex-start;
  26629. padding: 15px 5px;
  26630. box-sizing: border-box;
  26631. }
  26632. .works {
  26633. display: flex;
  26634. flex-direction: column;
  26635. flex-wrap: nowrap;
  26636. align-items: flex-start;
  26637. justify-content: flex-start;
  26638. align-content: center;
  26639. max-width: 240px;
  26640. width: calc(100% / 3 - 10px);
  26641. height: auto;
  26642. margin-right: 10px;
  26643. margin-bottom: 10px;
  26644. overflow: hidden;
  26645. height: 140px;
  26646. box-shadow: 0 0 6px 1px #dfdada;
  26647. border-radius: 15px;
  26648. }
  26649. .workImg {
  26650. width: 100%;
  26651. /* height: calc(100% - 40px); */
  26652. height: 105px;
  26653. position: relative;
  26654. }
  26655. .workImg > img {
  26656. width: 100%;
  26657. height: 100%;
  26658. object-fit: contain;
  26659. cursor: pointer;
  26660. }
  26661. .worksName {
  26662. height: 40px;
  26663. line-height: 40px;
  26664. display: flex;
  26665. width: 100%;
  26666. flex-direction: row;
  26667. flex-wrap: nowrap;
  26668. justify-content: space-between;
  26669. align-items: center;
  26670. margin: 0 0 0 10px;
  26671. }
  26672. .worksName > div:nth-child(1) {
  26673. width: 110px;
  26674. white-space: nowrap;
  26675. overflow: hidden;
  26676. text-overflow: ellipsis;
  26677. }
  26678. .worksName > div:nth-child(2) {
  26679. color: #b7b4b5;
  26680. }
  26681. .noWorksS {
  26682. padding: 15px 0;
  26683. display: flex;
  26684. flex-direction: row;
  26685. flex-wrap: wrap;
  26686. align-items: center;
  26687. justify-content: flex-start;
  26688. }
  26689. .noWorksName,
  26690. .isWorksName,
  26691. .isWorksName2 {
  26692. background: #ddebf8;
  26693. color: #000;
  26694. width: 90px;
  26695. height: 25px;
  26696. text-align: center;
  26697. line-height: 25px;
  26698. border-radius: 4px;
  26699. margin: 10px 15px 10px 0;
  26700. white-space: nowrap;
  26701. overflow: hidden;
  26702. padding: 5px;
  26703. text-overflow: ellipsis;
  26704. cursor: pointer;
  26705. border: 1px solid #ddebf8;
  26706. }
  26707. .noWorksName {
  26708. background: #fff;
  26709. color: #0061ff;
  26710. border: 1px solid #0061ff;
  26711. }
  26712. .noWorksName > span {
  26713. max-width: 100%;
  26714. display: block;
  26715. overflow: hidden;
  26716. text-overflow: ellipsis;
  26717. white-space: nowrap;
  26718. }
  26719. .isWorksName2 {
  26720. width: 100px;
  26721. height: 40px;
  26722. line-height: 40px;
  26723. position: relative;
  26724. background: #dae6f9;
  26725. }
  26726. .isWorksName {
  26727. background: #e7ebf1 !important;
  26728. width: 100px;
  26729. height: 40px;
  26730. line-height: 40px;
  26731. position: relative;
  26732. color: #acb4bf;
  26733. border: 1px solid #cad1dc !important;
  26734. }
  26735. .isSelectName,
  26736. .noWorksName:hover {
  26737. background: #3383fa !important;
  26738. color: #fff !important;
  26739. border: 1px solid #3383fa !important;
  26740. }
  26741. .title {
  26742. background: #1e5cc9;
  26743. /* width: 98%; */
  26744. height: 45px;
  26745. color: #fff;
  26746. line-height: 45px;
  26747. padding-left: 20px;
  26748. box-sizing: border-box;
  26749. }
  26750. .textBox {
  26751. font-size: 20px;
  26752. width: 90%;
  26753. display: flex;
  26754. flex-direction: column;
  26755. align-items: center;
  26756. margin: 20px auto 0;
  26757. max-height: calc(100% - 75px);
  26758. overflow: auto;
  26759. }
  26760. .textContent {
  26761. font-size: 18px;
  26762. width: 95%;
  26763. max-width: 95%;
  26764. }
  26765. .answerBg {
  26766. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26767. background-size: 100% 100%;
  26768. width: 100%;
  26769. height: 100%;
  26770. color: #fff;
  26771. text-align: center;
  26772. display: flex;
  26773. flex-direction: column;
  26774. flex-wrap: nowrap;
  26775. align-items: center;
  26776. position: relative;
  26777. justify-content: center;
  26778. }
  26779. /* .answerBg > div:nth-child(1) { */
  26780. /* font-size: 22px;
  26781. padding: 25px 0 10px; */
  26782. /* } */
  26783. .answerContent {
  26784. width: 215px;
  26785. max-height: 60px;
  26786. word-break: break-all;
  26787. text-align: center;
  26788. /* white-space: nowrap; */
  26789. overflow: hidden;
  26790. text-overflow: ellipsis;
  26791. /* padding: 23px 0 0; */
  26792. -webkit-line-clamp: 3;
  26793. -webkit-box-orient: vertical;
  26794. display: -webkit-box;
  26795. font-size: 15px;
  26796. cursor: pointer;
  26797. }
  26798. .elist_input_box {
  26799. display: flex;
  26800. align-items: flex-start;
  26801. flex-wrap: nowrap;
  26802. padding: 10px 0 15px 30px;
  26803. flex-direction: column;
  26804. }
  26805. .elist_input {
  26806. /* width: 40%; */
  26807. width: 45%;
  26808. padding: 20px;
  26809. /* margin: 20px; */
  26810. box-sizing: border-box;
  26811. }
  26812. .elist_input .elist_input_box input {
  26813. font: inherit;
  26814. color: currentColor;
  26815. width: 200px;
  26816. padding: 8px 14px;
  26817. display: block;
  26818. min-width: 0;
  26819. outline: none;
  26820. border: 1px solid rgba(0, 0, 0, 0.23);
  26821. border-radius: 4px;
  26822. box-sizing: border-box;
  26823. background: #fff;
  26824. margin: 0 20px 0 0;
  26825. }
  26826. .elist_input .elist_input_box span {
  26827. height: 36px;
  26828. line-height: 36px;
  26829. color: rgb(82, 82, 82);
  26830. }
  26831. .elist_input .elist_input_box .remove {
  26832. height: 20px;
  26833. width: 20px;
  26834. background-size: 100% 100%;
  26835. background-position: unset;
  26836. margin-left: 5px;
  26837. }
  26838. .elist_input_box >>> .el-rate {
  26839. display: flex;
  26840. height: 36px;
  26841. align-items: center;
  26842. }
  26843. .elist_input_box .elist_inptu_text {
  26844. min-height: 50px;
  26845. /* width: 500px;
  26846. max-height: 150px; */
  26847. width: 100%;
  26848. line-height: 50px;
  26849. color: rgb(82, 82, 82);
  26850. overflow: auto;
  26851. text-indent: 5px;
  26852. background: #f7f6f9;
  26853. border-radius: 10px;
  26854. }
  26855. .elist_input_box .elist_inptu_text input {
  26856. width: 500px;
  26857. }
  26858. .elist_input_box >>> .el-rate__icon {
  26859. font-size: 24px;
  26860. }
  26861. .isClick {
  26862. background: #4d9def;
  26863. }
  26864. .bzBox {
  26865. display: flex;
  26866. flex-direction: row;
  26867. align-items: center;
  26868. }
  26869. .bzBox .yCss {
  26870. width: 7px;
  26871. height: 7px;
  26872. background: #fff;
  26873. margin: 0 16px 0 6px;
  26874. border-radius: 50%;
  26875. border: 5px solid #3681fc;
  26876. z-index: 99;
  26877. }
  26878. .bzBox > div:nth-child(2) {
  26879. font-size: 18px;
  26880. font-weight: bold;
  26881. color: #0e1e33;
  26882. }
  26883. .navTitile {
  26884. padding: 0 0px 0 15px;
  26885. font-size: 16px;
  26886. font-weight: bold;
  26887. color: #0e1e33;
  26888. height: 40px;
  26889. line-height: 40px;
  26890. }
  26891. .isTypeOne {
  26892. width: 240px;
  26893. height: 170px;
  26894. /* border: 1px solid #f8f8f8; */
  26895. border-radius: 10px;
  26896. box-shadow: 0 0 6px 1px #dfdada;
  26897. }
  26898. .e_add_top {
  26899. display: flex;
  26900. justify-content: space-between;
  26901. padding: 10px 20px;
  26902. border-radius: 3px;
  26903. background: #fff;
  26904. }
  26905. .e_add_title2 {
  26906. display: flex;
  26907. align-items: center;
  26908. }
  26909. .e_add_title2 span {
  26910. width: 40px;
  26911. }
  26912. .e_add_title {
  26913. display: flex;
  26914. align-items: center;
  26915. color: #b8b8b8;
  26916. font-size: 18px;
  26917. position: relative;
  26918. height: 40px;
  26919. }
  26920. .e_add_title span {
  26921. margin-right: 10px;
  26922. }
  26923. .e_add_title .el_input {
  26924. width: 300px;
  26925. }
  26926. .e_add_title >>> .el-input__inner {
  26927. width: 400px;
  26928. }
  26929. .e_add_btn {
  26930. }
  26931. .e_add_content {
  26932. display: flex;
  26933. width: 100%;
  26934. max-width: 650px;
  26935. height: 550px;
  26936. }
  26937. .e_add_list {
  26938. background: #fff;
  26939. height: 500px;
  26940. width: 210px;
  26941. position: relative;
  26942. margin: 15px 5px 0 0;
  26943. flex-shrink: 0;
  26944. display: flex;
  26945. flex-direction: column;
  26946. }
  26947. .e_add_list_title {
  26948. font-size: 20px;
  26949. width: 100%;
  26950. box-sizing: border-box;
  26951. padding: 15px 40px;
  26952. text-align: center;
  26953. border-bottom: 1px solid #eaeaea;
  26954. position: relative;
  26955. display: flex;
  26956. align-items: center;
  26957. justify-content: center;
  26958. height: 57px;
  26959. background: #f6f6f6;
  26960. }
  26961. .e_add_list_title span {
  26962. overflow: hidden;
  26963. white-space: nowrap;
  26964. text-overflow: ellipsis;
  26965. }
  26966. .e_add_list_title img {
  26967. position: absolute;
  26968. right: 15px;
  26969. width: 25px;
  26970. cursor: pointer;
  26971. top: 50%;
  26972. transform: translateY(-50%);
  26973. }
  26974. .e_add_list_body {
  26975. height: calc(100% - 187px);
  26976. overflow: auto;
  26977. }
  26978. .e_add_list_child {
  26979. width: 100%;
  26980. display: flex;
  26981. align-items: center;
  26982. justify-content: center;
  26983. position: relative;
  26984. box-sizing: border-box;
  26985. padding: 15px 40px;
  26986. text-align: center;
  26987. }
  26988. .e_add_list_child span {
  26989. overflow: hidden;
  26990. white-space: nowrap;
  26991. text-overflow: ellipsis;
  26992. cursor: pointer;
  26993. }
  26994. .e_add_list_child img {
  26995. position: absolute;
  26996. right: 10px;
  26997. width: 21px;
  26998. cursor: pointer;
  26999. top: 50%;
  27000. transform: translateY(-50%);
  27001. }
  27002. .e_add_list_child + .e_add_list_child {
  27003. border-top: 1px solid #eaeaea;
  27004. }
  27005. .e_add_list_child .active {
  27006. color: #409eff;
  27007. }
  27008. .e_add_list_btn {
  27009. position: absolute;
  27010. bottom: 0;
  27011. height: 50px;
  27012. background: rgb(120, 120, 254);
  27013. width: 100%;
  27014. color: #fff;
  27015. font-size: 16px;
  27016. text-align: center;
  27017. line-height: 50px;
  27018. cursor: pointer;
  27019. }
  27020. .e_add_list_detail {
  27021. position: absolute;
  27022. bottom: 0;
  27023. height: 130px;
  27024. background: rgb(120, 120, 254);
  27025. width: 100%;
  27026. color: #fff;
  27027. font-size: 16px;
  27028. display: flex;
  27029. align-items: center;
  27030. justify-content: center;
  27031. }
  27032. .e_add_list_detail textarea {
  27033. height: 90%;
  27034. width: 95%;
  27035. border: none;
  27036. resize: none;
  27037. outline: none;
  27038. padding: 5px;
  27039. box-sizing: border-box;
  27040. }
  27041. .e_add_list_pbox {
  27042. width: 100%;
  27043. max-width: 650px;
  27044. /* height: 600px; */
  27045. }
  27046. .e_add_list_pbox_title {
  27047. height: 50px;
  27048. background: #fff;
  27049. display: flex;
  27050. align-items: center;
  27051. width: 100%;
  27052. box-sizing: border-box;
  27053. padding: 0 20px;
  27054. }
  27055. .type_title {
  27056. font-size: 18px;
  27057. font-weight: 700;
  27058. }
  27059. .type_content {
  27060. font-size: 16px;
  27061. /* margin-left: 30px; */
  27062. }
  27063. .type_content span + span {
  27064. margin-left: 20px;
  27065. }
  27066. .type_content span {
  27067. cursor: pointer;
  27068. padding-bottom: 5px;
  27069. box-sizing: border-box;
  27070. }
  27071. .type_content .active {
  27072. color: #409eff;
  27073. border-bottom: 2px solid #409eff;
  27074. }
  27075. .e_add_list_pbox_content {
  27076. height: calc(100% - 50px);
  27077. display: flex;
  27078. align-items: center;
  27079. width: 100%;
  27080. background: #fff;
  27081. }
  27082. .evaCss {
  27083. display: flex;
  27084. flex-direction: row;
  27085. flex-wrap: nowrap;
  27086. align-items: flex-start;
  27087. padding: 0 0 20px;
  27088. }
  27089. .evaCss >>> .cell {
  27090. position: relative;
  27091. overflow: visible;
  27092. }
  27093. .evaCss >>> .el-table__body-wrapper {
  27094. overflow: visible;
  27095. }
  27096. .evaCss >>> .el-table {
  27097. overflow: visible;
  27098. }
  27099. .blueRootCss {
  27100. position: absolute;
  27101. top: 50%;
  27102. left: 0;
  27103. transform: translate(-20px, -50%);
  27104. }
  27105. .cru_line {
  27106. position: absolute;
  27107. bottom: 0px;
  27108. transition: all 0.5s;
  27109. left: 0px;
  27110. width: 125px;
  27111. margin-left: -25px;
  27112. }
  27113. .isNoMessage {
  27114. width: 20%;
  27115. margin: 25% auto 0;
  27116. }
  27117. .isNoMessage > img {
  27118. width: 100%;
  27119. height: 100%;
  27120. }
  27121. .fullStyle >>> .el-dialog__body {
  27122. height: 100% !important;
  27123. }
  27124. .fullStyle >>> .el-dialog,
  27125. .fullStyle {
  27126. width: 100% !important;
  27127. max-width: 100% !important;
  27128. height: 100% !important;
  27129. margin: 0 !important;
  27130. }
  27131. .full_diy >>> .el-dialog {
  27132. margin: 0 !important;
  27133. height: 100%;
  27134. padding: 4px;
  27135. }
  27136. .full_diy >>> .el-dialog__body {
  27137. height: calc(100% - 100px);
  27138. }
  27139. .full_diy2 >>> .el-dialog__body {
  27140. height: calc(100% - 50px);
  27141. padding: 0;
  27142. }
  27143. .switchCss {
  27144. /* width: 100%; */
  27145. display: flex;
  27146. flex-direction: row;
  27147. flex-wrap: nowrap;
  27148. align-items: center;
  27149. /* justify-content: center; */
  27150. }
  27151. .isClickNav {
  27152. /* color: #499eef; */
  27153. color: #000;
  27154. }
  27155. .commentImg {
  27156. width: 25px;
  27157. height: 25px;
  27158. cursor: pointer;
  27159. }
  27160. .commentImg > img {
  27161. width: 100%;
  27162. height: 100%;
  27163. }
  27164. .comment {
  27165. background: #f9f9f9;
  27166. border-radius: 0 0 4px 4px;
  27167. display: flex;
  27168. flex-direction: row;
  27169. flex-wrap: nowrap;
  27170. align-items: center;
  27171. justify-content: flex-end;
  27172. height: 35px;
  27173. }
  27174. .commentList {
  27175. display: flex;
  27176. flex-direction: row;
  27177. flex-wrap: nowrap;
  27178. align-items: center;
  27179. justify-content: center;
  27180. align-content: center;
  27181. /* margin-left: 15px; */
  27182. /* margin-left: 8px; */
  27183. }
  27184. .scoreImg {
  27185. width: 17px;
  27186. height: 17px;
  27187. }
  27188. .studentDetail {
  27189. display: flex;
  27190. flex-direction: row;
  27191. flex-wrap: nowrap;
  27192. /* align-items: center; */
  27193. align-items: flex-start;
  27194. }
  27195. .tx {
  27196. width: 50px;
  27197. }
  27198. .tx > img {
  27199. width: 100%;
  27200. height: 100%;
  27201. }
  27202. .nameAndTime {
  27203. display: flex;
  27204. flex-direction: column;
  27205. flex-wrap: nowrap;
  27206. align-items: flex-start;
  27207. margin-left: 10px;
  27208. }
  27209. .worksAnswer {
  27210. color: #4078dd;
  27211. margin: 10px 0;
  27212. font-size: 16px;
  27213. position: relative;
  27214. }
  27215. .worksAnswer > img {
  27216. width: 500px;
  27217. height: 300px;
  27218. object-fit: contain;
  27219. margin: 0 auto;
  27220. display: block;
  27221. }
  27222. .commentTop {
  27223. border-bottom: 1px solid #eaeaea;
  27224. padding-bottom: 10px;
  27225. }
  27226. .commentBox {
  27227. padding-top: 15px;
  27228. }
  27229. .pl {
  27230. font-size: 18px;
  27231. }
  27232. .plPerson {
  27233. width: 100%;
  27234. }
  27235. .plName {
  27236. display: flex;
  27237. flex-direction: row;
  27238. flex-wrap: nowrap;
  27239. align-items: baseline;
  27240. color: #78787a;
  27241. width: 100%;
  27242. }
  27243. .deleteComment {
  27244. cursor: pointer;
  27245. margin-left: auto;
  27246. color: #237ade;
  27247. }
  27248. .plContent {
  27249. margin-top: 5px;
  27250. }
  27251. .evalCss {
  27252. background: #fff;
  27253. font-size: 18px;
  27254. }
  27255. .nav {
  27256. color: #9d9d9d;
  27257. padding: 5px 0 15px 20px;
  27258. }
  27259. .middleBox {
  27260. padding: 5px 0 15px 20px;
  27261. }
  27262. .pfBox {
  27263. padding-bottom: 30px;
  27264. }
  27265. .nameAndrate {
  27266. display: flex;
  27267. flex-direction: row;
  27268. flex-wrap: nowrap;
  27269. align-items: center;
  27270. padding-bottom: 10px;
  27271. height: 30px;
  27272. line-height: 30px;
  27273. }
  27274. .nameAndrate > div {
  27275. margin-left: 10px;
  27276. color: #000;
  27277. height: 30px;
  27278. }
  27279. .nameAndrate >>> .el-rate__icon {
  27280. font-size: 28px !important;
  27281. }
  27282. .pfBox > div:nth-child(2) {
  27283. background: #f7f6f9;
  27284. width: 400px;
  27285. min-height: 45px;
  27286. border-radius: 10px;
  27287. font-size: 16px;
  27288. display: flex;
  27289. flex-wrap: wrap;
  27290. align-items: center;
  27291. padding: 10px 20px;
  27292. box-sizing: border-box;
  27293. color: #000;
  27294. }
  27295. .bz {
  27296. display: flex;
  27297. flex-direction: row;
  27298. flex-wrap: nowrap;
  27299. align-items: flex-start;
  27300. }
  27301. .bz > div {
  27302. padding: 0 10px;
  27303. }
  27304. .select_box2_title {
  27305. background: #fff;
  27306. border-radius: 5px;
  27307. padding: 15px 10px;
  27308. box-sizing: border-box;
  27309. margin-bottom: 10px;
  27310. display: flex;
  27311. flex-direction: row;
  27312. flex-wrap: nowrap;
  27313. align-items: center;
  27314. }
  27315. .select_box2_title > div:nth-child(2) {
  27316. margin-left: 10px;
  27317. color: #c4c4c4;
  27318. }
  27319. .select_box2_box {
  27320. display: flex;
  27321. height: 500px;
  27322. }
  27323. .select_box2_img {
  27324. width: calc(100% - 310px);
  27325. height: 100%;
  27326. overflow: auto;
  27327. background: #fff;
  27328. border-radius: 5px;
  27329. }
  27330. .select_box2_img img {
  27331. width: 100%;
  27332. }
  27333. .select_box2_answer {
  27334. background: #fff;
  27335. margin-left: 10px;
  27336. border-radius: 5px;
  27337. width: 300px;
  27338. overflow: auto;
  27339. height: 90%;
  27340. display: flex;
  27341. flex-direction: column;
  27342. align-items: flex-start;
  27343. padding-top: 10px;
  27344. box-sizing: border-box;
  27345. position: relative;
  27346. }
  27347. .select_answer_title {
  27348. padding: 0 0 15px 20px;
  27349. color: #c4c4c4;
  27350. }
  27351. .select_box2_answer_box {
  27352. margin: 0 0 10px 20px;
  27353. width: 85%;
  27354. display: flex;
  27355. flex-direction: row;
  27356. flex-wrap: nowrap;
  27357. align-items: center;
  27358. }
  27359. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27360. color: #000;
  27361. }
  27362. .upAnswerCss {
  27363. position: absolute;
  27364. bottom: 15px;
  27365. right: 15px;
  27366. }
  27367. .upAnswerCss >>> .el-button {
  27368. width: 95px;
  27369. height: 35px;
  27370. line-height: 35px;
  27371. padding: 0;
  27372. }
  27373. .rightWidthCss {
  27374. width: 60%;
  27375. display: flex;
  27376. flex-direction: row;
  27377. align-items: flex-start;
  27378. }
  27379. .rightAnswer {
  27380. display: flex;
  27381. flex-direction: row;
  27382. flex-wrap: nowrap;
  27383. align-items: center;
  27384. color: red;
  27385. margin-bottom: 31px;
  27386. }
  27387. .rightAnswerCss {
  27388. display: flex;
  27389. flex-direction: column;
  27390. flex-wrap: nowrap;
  27391. padding-top: 60px;
  27392. }
  27393. .blueCss {
  27394. color: #767de1;
  27395. margin-left: 10px;
  27396. }
  27397. .redCss {
  27398. color: red;
  27399. }
  27400. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27401. color: rgb(0 123 255) !important;
  27402. }
  27403. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27404. color: rgb(0 123 255) !important;
  27405. }
  27406. .zuoyeYulan {
  27407. padding-top: 0;
  27408. font-size: 18px;
  27409. display: flex;
  27410. align-items: flex-end;
  27411. }
  27412. .buttonA {
  27413. margin-left: 10px;
  27414. padding: 0;
  27415. }
  27416. .displayBox {
  27417. margin-bottom: 10px;
  27418. display: block;
  27419. border-bottom: 3px solid #eee;
  27420. display: flex;
  27421. align-items: center;
  27422. }
  27423. .easy_comment {
  27424. width: calc(100% - 90px);
  27425. margin-left: 10px;
  27426. display: flex;
  27427. flex-wrap: wrap;
  27428. }
  27429. .easy_comment > div {
  27430. border: 1px solid #4a4a4a;
  27431. color: #666;
  27432. border-radius: 15px;
  27433. padding: 5px 10px;
  27434. font-size: 16px;
  27435. margin-bottom: 10px;
  27436. margin-right: 5px;
  27437. cursor: pointer;
  27438. }
  27439. .easy_comment div:hover {
  27440. border: 1px solid #f7ba2a;
  27441. color: #c69217;
  27442. }
  27443. .xuan_right_box {
  27444. padding: 10px 0;
  27445. background: #f0f4fa;
  27446. margin: 0 15px 0 25px;
  27447. border-bottom-left-radius: 5px;
  27448. border-bottom-right-radius: 5px;
  27449. width: 91.5%;
  27450. }
  27451. .tool_right_box {
  27452. display: flex;
  27453. align-items: center;
  27454. }
  27455. .tool_right_box + .tool_right_box {
  27456. margin-top: 10px;
  27457. }
  27458. .right_box_xuan {
  27459. border-radius: 5px;
  27460. padding: 5px;
  27461. margin-left: 10px;
  27462. min-width: 85px;
  27463. background: #fff;
  27464. color: #0061ff;
  27465. border: 1px solid #0061ff;
  27466. font-size: 14px;
  27467. }
  27468. .pButton:hover {
  27469. opacity: 1 !important;
  27470. }
  27471. .pButton {
  27472. position: fixed;
  27473. text-align: center;
  27474. cursor: pointer;
  27475. z-index: 999;
  27476. right: 20px;
  27477. top: 110px;
  27478. width: 50px;
  27479. height: 50px;
  27480. display: flex;
  27481. align-items: center;
  27482. justify-content: center;
  27483. border-radius: 5px;
  27484. }
  27485. .pzClass {
  27486. width: calc(100% - 340px);
  27487. }
  27488. .newDialogCss {
  27489. /* position: fixed;
  27490. right: 5%;
  27491. top: 50%;
  27492. width: 340px;
  27493. transform: translateY(-50%);
  27494. height: 60%;
  27495. box-shadow: 0px 0 8px 0px #555555;
  27496. border-radius: 15px;
  27497. z-index: 999; */
  27498. position: fixed;
  27499. right: 20px;
  27500. top: 101px;
  27501. width: 330px;
  27502. height: calc(100% - 80px);
  27503. z-index: 999;
  27504. background: #fff;
  27505. border-top-right-radius: 0px;
  27506. border-bottom-right-radius: 0px;
  27507. overflow: hidden;
  27508. }
  27509. .newDialogCss > .scoreList {
  27510. width: 100%;
  27511. height: 100%;
  27512. box-sizing: border-box;
  27513. padding: 10px 15px;
  27514. overflow: auto;
  27515. padding-bottom: 80px;
  27516. }
  27517. .pzTop {
  27518. color: #fff;
  27519. background: #000;
  27520. display: flex;
  27521. flex-direction: row;
  27522. flex-wrap: nowrap;
  27523. align-items: center;
  27524. justify-content: space-between;
  27525. height: 40px;
  27526. border-radius: 15px 15px 0 0;
  27527. user-select: none;
  27528. }
  27529. .pzTop2 .checkbox {
  27530. display: flex;
  27531. align-items: center;
  27532. padding: 5px 10px;
  27533. flex: 0 0 auto;
  27534. font-weight: bold;
  27535. border-bottom: 1px solid #eee;
  27536. justify-content: space-between;
  27537. }
  27538. .checkbox > .cb-tabList {
  27539. display: flex;
  27540. align-items: center;
  27541. }
  27542. .cb-tabList > div {
  27543. margin-right: 20px;
  27544. font-weight: 400;
  27545. cursor: pointer;
  27546. }
  27547. .cb-tabList > .cb-tabItem {
  27548. color: #1684fc;
  27549. position: relative;
  27550. }
  27551. .cb-tabItem::after {
  27552. content: "";
  27553. width: 100%;
  27554. height: 2px;
  27555. background: #1684fc;
  27556. position: absolute;
  27557. bottom: -5px;
  27558. left: 0;
  27559. }
  27560. .pzTop2 .check {
  27561. text-align: center;
  27562. cursor: pointer;
  27563. box-sizing: border-box;
  27564. display: flex;
  27565. }
  27566. .pzTop2 img {
  27567. width: 25px;
  27568. cursor: pointer;
  27569. }
  27570. .pzTop > div:nth-child(1) {
  27571. padding-left: 10px;
  27572. }
  27573. .pzTop > div:nth-child(2) {
  27574. width: 15px;
  27575. height: 15px;
  27576. padding-right: 10px;
  27577. cursor: pointer;
  27578. }
  27579. .pzTop > div:nth-child(2) > img {
  27580. width: 100%;
  27581. height: 100%;
  27582. }
  27583. .pzBox,
  27584. .noPzBox {
  27585. height: calc(100% - 60px);
  27586. /* background: #ededed; */
  27587. background: #fff;
  27588. /* border-radius: 0 0 15px 15px; */
  27589. }
  27590. .noPzBox {
  27591. display: flex;
  27592. flex-direction: column;
  27593. flex-wrap: nowrap;
  27594. justify-content: center;
  27595. align-items: center;
  27596. }
  27597. .pzList {
  27598. background: #f7f7f7;
  27599. width: 90%;
  27600. margin: 0 auto 15px;
  27601. border-radius: 5px;
  27602. }
  27603. .pzNavTop {
  27604. display: flex;
  27605. flex-direction: row;
  27606. flex-wrap: nowrap;
  27607. padding: 10px 10px 0 10px;
  27608. align-items: center;
  27609. }
  27610. .pzDelete {
  27611. cursor: pointer;
  27612. margin-left: auto;
  27613. font-size: 14px;
  27614. color: #afafaf;
  27615. }
  27616. .pzNavTop > div:nth-child(1) {
  27617. background: #3760af;
  27618. width: 35px;
  27619. height: 35px;
  27620. color: #fff;
  27621. text-align: center;
  27622. line-height: 35px;
  27623. border-radius: 50%;
  27624. font-size: 14px;
  27625. }
  27626. .pzNavTop > div:nth-child(2) {
  27627. font-size: 18px;
  27628. color: #959595;
  27629. margin-left: 5px;
  27630. }
  27631. .pzContent {
  27632. padding: 10px;
  27633. word-break: break-word;
  27634. }
  27635. .pzContent audio {
  27636. width: 100%;
  27637. }
  27638. .pzContent audio::-webkit-media-controls-panel {
  27639. background: #fff;
  27640. }
  27641. .pzContent >>> img {
  27642. max-width: 100%;
  27643. }
  27644. .pzListBox {
  27645. padding-top: 15px;
  27646. height: calc(100% - 110px);
  27647. overflow: auto;
  27648. }
  27649. .addPzButton {
  27650. position: relative;
  27651. margin-top: 3px;
  27652. width: 100%;
  27653. }
  27654. .addPzButton .img1 {
  27655. position: absolute;
  27656. top: 50%;
  27657. right: 25px;
  27658. transform: translateY(-50%);
  27659. height: 100%;
  27660. display: flex;
  27661. align-items: center;
  27662. }
  27663. .addPzButton .img1 div {
  27664. display: flex;
  27665. }
  27666. .addPzButton .img1 div img {
  27667. width: 28px;
  27668. margin-left: 10px;
  27669. cursor: pointer;
  27670. }
  27671. .addPzButton .img1 div span {
  27672. font-size: 14px;
  27673. margin: 4px 0 0 3px;
  27674. color: #afafaf;
  27675. }
  27676. .addPz {
  27677. background: #4b79ce;
  27678. width: 100px;
  27679. color: #fff;
  27680. font-size: 12px;
  27681. height: 30px;
  27682. margin: 0 auto;
  27683. text-align: center;
  27684. line-height: 30px;
  27685. border-radius: 10px;
  27686. cursor: pointer;
  27687. }
  27688. .addDialogCss {
  27689. position: fixed;
  27690. width: 600px;
  27691. height: 70%;
  27692. min-height: 450px;
  27693. box-shadow: 0px 0 8px 0px #555555;
  27694. border-radius: 15px;
  27695. z-index: 999;
  27696. left: 50%;
  27697. top: 50%;
  27698. margin: -18% 0 0 -300px;
  27699. }
  27700. .teacherPz {
  27701. display: flex;
  27702. flex-direction: row;
  27703. align-items: center;
  27704. flex-wrap: nowrap;
  27705. }
  27706. .teacherPzImg {
  27707. width: 30px;
  27708. height: 30px;
  27709. }
  27710. .teacherPzImg > img {
  27711. width: 100%;
  27712. height: 100%;
  27713. }
  27714. .addPzBox {
  27715. height: calc(100% - 40px);
  27716. background: #ededed;
  27717. border-bottom-left-radius: 15px;
  27718. border-bottom-right-radius: 15px;
  27719. }
  27720. .pzAudioClass {
  27721. margin: 15px 14px;
  27722. background: #fff;
  27723. height: 100%;
  27724. display: flex;
  27725. justify-content: center;
  27726. align-items: center;
  27727. }
  27728. .pzConText {
  27729. width: 95%;
  27730. height: 100%;
  27731. margin: 10px auto 0;
  27732. border: none;
  27733. background: #fff;
  27734. border-radius: 0px;
  27735. }
  27736. .pzConText >>> .text {
  27737. height: calc(100% - 82px);
  27738. }
  27739. .addTextCss {
  27740. background: #4b79ce;
  27741. width: 80px;
  27742. height: 30px;
  27743. text-align: center;
  27744. color: #fff;
  27745. line-height: 30px;
  27746. border-radius: 10px;
  27747. margin: 10px auto 0;
  27748. cursor: pointer;
  27749. }
  27750. .pzConText:focus-visible {
  27751. border: none !important;
  27752. }
  27753. .maxWidth {
  27754. width: 1000px;
  27755. }
  27756. .noPz {
  27757. width: 150px;
  27758. margin: 0 auto 20%;
  27759. }
  27760. .noPz > img {
  27761. width: 100%;
  27762. height: 100%;
  27763. }
  27764. .timeAndReply {
  27765. display: flex;
  27766. flex-direction: row;
  27767. flex-wrap: nowrap;
  27768. justify-content: space-between;
  27769. align-items: center;
  27770. font-size: 14px;
  27771. box-sizing: border-box;
  27772. padding: 0 10px 10px 0px;
  27773. }
  27774. .timeAndReply .time {
  27775. color: #bfbfbf;
  27776. padding: 0 0 0 10px;
  27777. box-sizing: border-box;
  27778. }
  27779. .timeAndReply > div:last-child {
  27780. cursor: pointer;
  27781. color: #777;
  27782. }
  27783. /* table 样式 */
  27784. .cont >>> table {
  27785. border-top: 1px solid #ccc;
  27786. border-left: 1px solid #ccc;
  27787. }
  27788. .cont >>> table td,
  27789. .cont >>> table th {
  27790. border-bottom: 1px solid #ccc;
  27791. border-right: 1px solid #ccc;
  27792. /* padding: 20px 5px; */
  27793. padding: 5px 10px;
  27794. max-width: 0px;
  27795. height: 30px;
  27796. vertical-align: baseline;
  27797. box-sizing: border-box;
  27798. }
  27799. .cont >>> table th {
  27800. border-bottom: 2px solid #ccc;
  27801. text-align: center;
  27802. }
  27803. /* blockquote 样式 */
  27804. .cont >>> blockquote {
  27805. display: block;
  27806. border-left: 8px solid #d0e5f2;
  27807. padding: 5px 10px;
  27808. margin: 10px 0;
  27809. line-height: 1.4;
  27810. font-size: 100%;
  27811. background-color: #f1f1f1;
  27812. }
  27813. /* code 样式 */
  27814. .cont >>> code {
  27815. display: inline-block;
  27816. /* *display: inline; */
  27817. zoom: 1;
  27818. background-color: #f1f1f1;
  27819. border-radius: 3px;
  27820. padding: 3px 5px;
  27821. margin: 0 3px;
  27822. }
  27823. .cont >>> pre code {
  27824. display: block;
  27825. }
  27826. /* ul ol 样式 */
  27827. .cont >>> ul,
  27828. ol {
  27829. margin: 10px 0 10px 20px;
  27830. }
  27831. .addPzCheck {
  27832. display: flex;
  27833. flex-direction: row;
  27834. flex-wrap: nowrap;
  27835. padding: 10px 15px 0;
  27836. }
  27837. .addPzCheck span {
  27838. cursor: pointer;
  27839. padding-bottom: 5px;
  27840. font-weight: bold;
  27841. }
  27842. .addPzCheck span + span {
  27843. margin-left: 10px;
  27844. }
  27845. .addPzCheck .isChooseActive {
  27846. color: #3e88f4;
  27847. border-bottom: 2px solid #2f80f3;
  27848. }
  27849. /* code 样式 */
  27850. .cont {
  27851. /* -webkit-user-modify: read-write; */
  27852. overflow-wrap: break-word;
  27853. -webkit-line-break: after-white-space;
  27854. word-break: break-word;
  27855. white-space: pre-line;
  27856. }
  27857. .scoreBox,
  27858. .scoreDetailBox {
  27859. display: flex;
  27860. align-items: center;
  27861. justify-content: flex-start;
  27862. margin-top: 20px;
  27863. font-size: 18px;
  27864. width: 100%;
  27865. }
  27866. .scoreBox .t,
  27867. .scoreDetailBox .t {
  27868. margin-right: 10px;
  27869. width: 100px;
  27870. text-align: right;
  27871. }
  27872. .scoreDetailBox {
  27873. align-items: flex-start;
  27874. }
  27875. .scoreDetailBox >>> .el-textarea {
  27876. width: calc(100% - 200px);
  27877. }
  27878. .scoreBox >>> .el-input {
  27879. width: 130px;
  27880. font-size: 38px;
  27881. }
  27882. .scoreBox >>> .el-input__inner {
  27883. height: 60px;
  27884. }
  27885. .answerScore {
  27886. position: absolute;
  27887. top: 10px;
  27888. right: 10px;
  27889. background: #0000008f;
  27890. border-radius: 5px;
  27891. padding: 3px 5px;
  27892. font-size: 14px;
  27893. color: #fff;
  27894. cursor: pointer;
  27895. }
  27896. .open_box .switch_box {
  27897. width: 100%;
  27898. margin: 0 auto;
  27899. display: flex;
  27900. justify-content: space-between;
  27901. }
  27902. .open_box .switch_box + .switch_box {
  27903. margin-top: 10px;
  27904. }
  27905. .deleteImg,
  27906. .deleteImg1 {
  27907. width: 25px !important;
  27908. height: 25px !important;
  27909. cursor: pointer;
  27910. position: absolute;
  27911. top: 10px;
  27912. right: 10px;
  27913. }
  27914. .deleteImg2 {
  27915. width: 23px !important;
  27916. height: 23px !important;
  27917. top: 5px;
  27918. right: 5px;
  27919. }
  27920. .deleteImg1 {
  27921. width: 23px !important;
  27922. height: 23px !important;
  27923. top: 5px !important;
  27924. right: 30px !important;
  27925. }
  27926. .rightW {
  27927. right: 40px;
  27928. }
  27929. .drawPBox {
  27930. display: flex;
  27931. flex-direction: column;
  27932. position: relative;
  27933. }
  27934. .drawPBox span {
  27935. font-size: 18px;
  27936. color: #606266;
  27937. padding-bottom: 10px;
  27938. margin: 10px 0;
  27939. border-bottom: 1px solid #eaeaea;
  27940. }
  27941. .drawPBox img {
  27942. width: 500px;
  27943. height: 300px;
  27944. object-fit: contain;
  27945. cursor: pointer;
  27946. margin: 0 auto;
  27947. }
  27948. .sentenBox {
  27949. background: #fff;
  27950. height: 450px;
  27951. overflow: auto;
  27952. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27953. background-position: 102%;
  27954. background-repeat: no-repeat;
  27955. background-size: 60%;
  27956. }
  27957. .addSen {
  27958. background: #409efe;
  27959. width: 90px;
  27960. color: #fff;
  27961. height: 35px;
  27962. text-align: center;
  27963. line-height: 35px;
  27964. border-radius: 5px;
  27965. float: right;
  27966. margin: 10px 20px 0 0;
  27967. cursor: pointer;
  27968. }
  27969. .sentenTop {
  27970. display: flex;
  27971. flex-direction: row;
  27972. flex-wrap: nowrap;
  27973. align-items: center;
  27974. padding: 55px 0 0 20px;
  27975. box-sizing: border-box;
  27976. }
  27977. .sentenTop > div:nth-child(2) {
  27978. width: 300px;
  27979. margin: 0 15px;
  27980. }
  27981. .sentenTop > div:nth-child(3) {
  27982. background: #409efe;
  27983. color: #fff;
  27984. width: 65px;
  27985. height: 35px;
  27986. text-align: center;
  27987. line-height: 35px;
  27988. border-radius: 5px;
  27989. cursor: pointer;
  27990. }
  27991. .cardList,
  27992. .cardList1 {
  27993. padding: 10px 0 10px 0;
  27994. display: flex;
  27995. flex-direction: row;
  27996. flex-wrap: wrap;
  27997. align-items: center;
  27998. box-sizing: border-box;
  27999. border-bottom: 1px solid #f4f4f4;
  28000. width: 98%;
  28001. margin: 0 auto;
  28002. min-width: 60%;
  28003. max-width: 85%;
  28004. }
  28005. .cardList1 {
  28006. padding: 10px 0 10px 10px !important;
  28007. margin: 0 !important;
  28008. }
  28009. .cardBox {
  28010. display: flex;
  28011. flex-direction: row;
  28012. flex-wrap: wrap;
  28013. align-items: center;
  28014. align-content: center;
  28015. }
  28016. .cardBox > div {
  28017. margin-bottom: 10px;
  28018. }
  28019. .isCard,
  28020. .isChooseCard,
  28021. .noCard,
  28022. .isCard1 {
  28023. min-width: 130px;
  28024. width: auto;
  28025. height: 60px;
  28026. text-align: center;
  28027. line-height: 60px;
  28028. font-size: 20px;
  28029. cursor: pointer;
  28030. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28031. background-size: cover;
  28032. transition: all 2s;
  28033. margin-right: 20px;
  28034. background-size: 100% 100%;
  28035. padding: 0 20px;
  28036. box-sizing: border-box;
  28037. }
  28038. .isCard > div,
  28039. .noCard > div,
  28040. .isCard1 > div {
  28041. white-space: nowrap;
  28042. overflow: hidden;
  28043. text-overflow: ellipsis;
  28044. width: 100%;
  28045. margin: 0 auto;
  28046. }
  28047. .noCard {
  28048. background-image: none;
  28049. }
  28050. .isCard1 {
  28051. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28052. }
  28053. .isChooseCard {
  28054. background-image: none;
  28055. border: 1px dashed #b9b9b9;
  28056. border-radius: 10px;
  28057. }
  28058. .card {
  28059. width: 130px;
  28060. height: 60px;
  28061. }
  28062. .card > img {
  28063. width: 100%;
  28064. height: 100%;
  28065. }
  28066. .rightCardBox {
  28067. margin: 10px 0 0 10px;
  28068. }
  28069. .rightCardBox > div:nth-child(1) {
  28070. margin-bottom: 10px;
  28071. }
  28072. .cardCss {
  28073. display: flex;
  28074. flex-direction: column;
  28075. flex-wrap: nowrap;
  28076. align-items: center;
  28077. border-bottom: 3px solid #b4c3d3;
  28078. padding: 0 0 5px 0;
  28079. margin-right: 10px;
  28080. }
  28081. .cardCss > div:nth-child(2) {
  28082. background: #5b7b9d;
  28083. color: #fff;
  28084. width: 20px;
  28085. height: 20px;
  28086. border-radius: 50%;
  28087. text-align: center;
  28088. line-height: 20px;
  28089. }
  28090. .isWrong {
  28091. display: flex;
  28092. flex-direction: row;
  28093. flex-wrap: nowrap;
  28094. align-content: center;
  28095. align-items: center;
  28096. }
  28097. .answerRight {
  28098. width: 25%;
  28099. }
  28100. .isTj {
  28101. display: flex;
  28102. flex-direction: row;
  28103. flex-wrap: nowrap;
  28104. align-items: center;
  28105. }
  28106. .isTj > div:nth-child(2) {
  28107. color: #727070;
  28108. margin-left: 10px;
  28109. }
  28110. .isTjImg {
  28111. width: 30px;
  28112. height: 30px;
  28113. }
  28114. .isTjImg > img {
  28115. width: 100%;
  28116. height: 100%;
  28117. }
  28118. .cardAnswerBox {
  28119. font-size: 18px;
  28120. width: 97%;
  28121. border: 5px;
  28122. padding: 0;
  28123. border-radius: 5px;
  28124. margin: 10px auto;
  28125. word-break: break-word;
  28126. }
  28127. .w_name {
  28128. margin-bottom: 10px;
  28129. }
  28130. .w_name span {
  28131. font-size: 16px;
  28132. }
  28133. .w_teachert {
  28134. width: 50px !important;
  28135. position: absolute;
  28136. height: auto !important;
  28137. z-index: 10;
  28138. right: 25px;
  28139. top: -25px;
  28140. }
  28141. /* .group_workBox {
  28142. } */
  28143. .group_workBox + .group_workBox {
  28144. margin-top: 20px;
  28145. }
  28146. .group_box {
  28147. padding-bottom: 20px;
  28148. border-bottom: 2px solid #f0f0f0;
  28149. margin-top: 10px;
  28150. }
  28151. .group_title {
  28152. display: flex;
  28153. align-items: center;
  28154. justify-content: space-between;
  28155. width: 95%;
  28156. }
  28157. .group_name {
  28158. background-image: url(../../assets/icon/groupN.png);
  28159. width: 220px;
  28160. background-size: 100% 100%;
  28161. height: 67px;
  28162. padding: 0 20px 0 43px;
  28163. box-sizing: border-box;
  28164. line-height: 63px;
  28165. color: #fff;
  28166. overflow: hidden;
  28167. white-space: nowrap;
  28168. text-overflow: ellipsis;
  28169. }
  28170. .group_work {
  28171. width: 100%;
  28172. padding: 0 10px;
  28173. box-sizing: border-box;
  28174. display: flex;
  28175. flex-wrap: wrap;
  28176. }
  28177. .g_d_box {
  28178. display: flex;
  28179. flex-flow: wrap;
  28180. justify-content: space-around;
  28181. }
  28182. .g_d_box .isChair {
  28183. background-image: url(../../assets/avatar.png) !important;
  28184. }
  28185. .g_d_group {
  28186. width: 500px;
  28187. margin-bottom: 80px;
  28188. }
  28189. .g_d_group_chair {
  28190. display: flex;
  28191. align-items: center;
  28192. justify-content: center;
  28193. }
  28194. .g_d_group_chair > div + div {
  28195. margin-left: 30px;
  28196. }
  28197. .g_d_group_chair > div,
  28198. .g_d_group_chair2 > div {
  28199. display: flex;
  28200. flex-direction: column;
  28201. align-items: center;
  28202. }
  28203. .g_d_group_chair > div > span:nth-child(1),
  28204. .g_d_group_chair2 > div > span:nth-child(1) {
  28205. background-image: url(../../assets/icon/chair.png);
  28206. width: 50px;
  28207. height: 50px;
  28208. display: block;
  28209. background-size: 100% 100%;
  28210. }
  28211. .g_d_group_tableBox {
  28212. display: flex;
  28213. align-items: center;
  28214. justify-content: center;
  28215. }
  28216. .g_d_group_chair2 {
  28217. display: flex;
  28218. flex-direction: column;
  28219. align-items: center;
  28220. justify-content: center;
  28221. }
  28222. .g_d_group_chair2 > div + div {
  28223. margin-top: 10px;
  28224. }
  28225. .g_d_group_table {
  28226. background-image: url(../../assets/icon/groupBg.png);
  28227. width: 354px;
  28228. height: 196px;
  28229. background-size: 100% 100%;
  28230. display: flex;
  28231. align-items: center;
  28232. justify-content: center;
  28233. flex-direction: column;
  28234. color: #fff;
  28235. }
  28236. .g_d_group_table > div:nth-child(1) {
  28237. font-size: 24px;
  28238. margin-bottom: 5px;
  28239. }
  28240. .g_d_group_table > div:nth-child(2) div {
  28241. cursor: pointer;
  28242. background: #2e77bf;
  28243. padding: 4px 10px;
  28244. border-radius: 5px;
  28245. }
  28246. .groupBox {
  28247. }
  28248. .groupContent + .groupContent {
  28249. margin-top: 30px;
  28250. }
  28251. .groupTitle {
  28252. font-size: 24px;
  28253. color: rgb(80, 80, 80);
  28254. margin-bottom: 20px;
  28255. }
  28256. .groupName {
  28257. display: flex;
  28258. align-items: center;
  28259. }
  28260. .groupn {
  28261. font-size: 15px;
  28262. margin-right: 10px;
  28263. }
  28264. .groupName + .groupName {
  28265. margin-top: 15px;
  28266. }
  28267. .groupBtn {
  28268. margin-left: 10px;
  28269. }
  28270. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28271. text-align: left;
  28272. }
  28273. .g_d_btnBox {
  28274. display: flex;
  28275. justify-content: flex-end;
  28276. align-items: center;
  28277. margin-bottom: 20px;
  28278. }
  28279. .updateChair {
  28280. position: relative;
  28281. }
  28282. .updateChairBtn {
  28283. position: absolute;
  28284. width: 50px;
  28285. height: 50px;
  28286. overflow: hidden;
  28287. /* display: flex; */
  28288. align-items: center;
  28289. justify-content: center;
  28290. background: #00000087;
  28291. color: #fff;
  28292. border-radius: 50px;
  28293. display: none;
  28294. cursor: pointer;
  28295. }
  28296. .updateChair:hover .updateChairBtn {
  28297. display: flex;
  28298. }
  28299. .group_staic_box {
  28300. display: flex;
  28301. padding: 30px 40px 10px;
  28302. flex-wrap: wrap;
  28303. }
  28304. .group_staic {
  28305. /* width: 50%; */
  28306. margin-bottom: 20px;
  28307. display: flex;
  28308. align-items: center;
  28309. }
  28310. .group_staic span:nth-child(1) {
  28311. width: 150px;
  28312. text-align: right;
  28313. margin-right: 15px;
  28314. }
  28315. .group_staic span:nth-child(2) {
  28316. background: rgb(0 123 255);
  28317. color: #fff;
  28318. border-radius: 5px;
  28319. padding: 5px;
  28320. }
  28321. .codeFileBox {
  28322. height: 300px;
  28323. background: #fff;
  28324. display: flex;
  28325. align-items: center;
  28326. justify-content: center;
  28327. }
  28328. .codeFileBox img {
  28329. width: 200px;
  28330. margin: 0;
  28331. height: auto;
  28332. }
  28333. .codeFileBox div {
  28334. background: rgb(80, 142, 226);
  28335. color: #fff;
  28336. padding: 10px 20px;
  28337. border-radius: 25px;
  28338. cursor: pointer;
  28339. margin-left: 15px;
  28340. }
  28341. .radioBox {
  28342. display: flex;
  28343. flex-direction: column;
  28344. flex-wrap: nowrap;
  28345. align-items: flex-start;
  28346. }
  28347. .radioBox > div {
  28348. margin: 10px 0 0 10px;
  28349. }
  28350. /* .radioBox >>> .el-radio__input,
  28351. .radioBox >>> .el-checkbox__inner {
  28352. margin-left: 10px;
  28353. } */
  28354. .radioBox >>> .el-radio__label,
  28355. .radioBox >>> .el-checkbox__label {
  28356. display: flex;
  28357. align-items: center;
  28358. width: 100%;
  28359. }
  28360. .radioBox >>> .el-radio__label > span {
  28361. width: 100%;
  28362. display: -webkit-box;
  28363. overflow: hidden;
  28364. white-space: normal !important;
  28365. text-overflow: ellipsis;
  28366. word-wrap: break-word;
  28367. }
  28368. .inImg {
  28369. width: 100px;
  28370. cursor: pointer;
  28371. }
  28372. .inImg > img {
  28373. width: 100%;
  28374. height: 100%;
  28375. object-fit: cover;
  28376. }
  28377. .timuImgBox {
  28378. margin: 10px 0;
  28379. display: flex;
  28380. flex-direction: column;
  28381. flex-wrap: wrap;
  28382. align-items: flex-start;
  28383. }
  28384. .timuImg {
  28385. width: 150px;
  28386. margin: 5px 0;
  28387. cursor: pointer;
  28388. }
  28389. .timuImg > img {
  28390. width: 100%;
  28391. height: 100%;
  28392. object-fit: cover;
  28393. }
  28394. .worksTop {
  28395. display: flex;
  28396. flex-direction: row;
  28397. align-items: flex-end;
  28398. }
  28399. .worksTitle {
  28400. display: flex;
  28401. flex-direction: row;
  28402. flex-wrap: nowrap;
  28403. align-items: center;
  28404. }
  28405. .worksTitle::before,
  28406. .worksTop::before {
  28407. content: "";
  28408. display: block;
  28409. width: 3px;
  28410. height: 20px;
  28411. background: #0061ff;
  28412. border-radius: 3px;
  28413. margin: 0 5px 0 0;
  28414. }
  28415. .corOpen {
  28416. margin: 0 0 0 10px;
  28417. font-size: 14px;
  28418. cursor: pointer;
  28419. color: #505050;
  28420. }
  28421. .corOpen:hover {
  28422. color: #499eef;
  28423. }
  28424. .navCorOpenBox {
  28425. display: flex;
  28426. flex-direction: row;
  28427. align-items: center;
  28428. justify-content: space-between;
  28429. height: 55px;
  28430. background: #ffffff;
  28431. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28432. border-radius: 8px 8px 0px 0px;
  28433. z-index: 9;
  28434. position: relative;
  28435. }
  28436. .navCorOpen {
  28437. padding-right: 15px;
  28438. cursor: pointer;
  28439. width: 45px;
  28440. display: flex;
  28441. }
  28442. .navCorOpen > img {
  28443. width: 100%;
  28444. height: 100%;
  28445. }
  28446. .mlImg {
  28447. width: 40px !important;
  28448. min-width: 40px;
  28449. cursor: pointer;
  28450. transform: rotate(180deg);
  28451. }
  28452. .mlImg > img {
  28453. width: 100%;
  28454. height: 100%;
  28455. }
  28456. .navLeftCss {
  28457. width: 100% !important;
  28458. left: 0 !important;
  28459. }
  28460. .isContentCss {
  28461. width: 100% !important;
  28462. }
  28463. .isAllWidth {
  28464. width: 100% !important;
  28465. }
  28466. .group_switch {
  28467. margin-right: 10px;
  28468. height: 30px;
  28469. display: flex;
  28470. align-items: center;
  28471. }
  28472. .group_switch > span {
  28473. margin-right: 5px;
  28474. }
  28475. .fileC_box {
  28476. padding-top: 15px;
  28477. }
  28478. .fileC_box > .fileC_title {
  28479. padding: 10px 5px 14px 10px;
  28480. border-top: 1px solid #cad1dc;
  28481. font-size: 14px;
  28482. font-weight: 400;
  28483. color: #cad1dc;
  28484. width: calc(100% - 20px);
  28485. margin: 0 auto;
  28486. box-sizing: border-box;
  28487. }
  28488. .pl_select_box {
  28489. height: 40px;
  28490. line-height: 40px;
  28491. width: 100%;
  28492. cursor: pointer;
  28493. padding: 0 20px;
  28494. box-sizing: border-box;
  28495. border-radius: 5px;
  28496. border: 1px solid #d6d6d6;
  28497. white-space: nowrap;
  28498. overflow: hidden;
  28499. text-overflow: ellipsis;
  28500. background: #fff;
  28501. text-align: left;
  28502. }
  28503. .newButton {
  28504. width: 102px;
  28505. height: 36px;
  28506. background: #e7ebf1;
  28507. border-radius: 4px;
  28508. color: #0e1e33;
  28509. font-weight: 400;
  28510. font-size: 14px;
  28511. border: none;
  28512. float: right;
  28513. margin-left: 10px;
  28514. }
  28515. .el-table >>> .even_row {
  28516. background-color: #f0f4fa;
  28517. }
  28518. .stageBoxCss,
  28519. .stageBoxIsCss {
  28520. display: flex;
  28521. flex-direction: row;
  28522. flex-wrap: nowrap;
  28523. align-items: center;
  28524. height: 50px;
  28525. border-bottom: 1px solid #e2f5fc;
  28526. cursor: pointer;
  28527. width: 100%;
  28528. }
  28529. .stageBoxIsCss {
  28530. background: #0061ff;
  28531. color: #fff;
  28532. border-radius: 8px;
  28533. }
  28534. .closeTri,
  28535. .closeTri1 {
  28536. min-width: 15px;
  28537. width: 15px;
  28538. height: 15px;
  28539. }
  28540. .closeTri1 {
  28541. padding-left: 10px;
  28542. cursor: pointer;
  28543. }
  28544. .closeTri > img,
  28545. .closeTri1 > img {
  28546. width: 100%;
  28547. height: 100%;
  28548. /* transition: all .5s; */
  28549. }
  28550. .noToolBlue {
  28551. min-width: 10px;
  28552. width: 10px;
  28553. height: 10px;
  28554. background: #0061ff;
  28555. border-radius: 50%;
  28556. margin-left: 13px;
  28557. }
  28558. .stageChild,
  28559. .toolChild {
  28560. height: 0;
  28561. overflow: hidden;
  28562. transition: all 0.5s;
  28563. }
  28564. /* .toolChild { */
  28565. /* margin: 0 0 0 17px;
  28566. padding: 0 0 0 20px;
  28567. border-left: 1px solid #d7d7d7; */
  28568. /* } */
  28569. .toolChild > div + div {
  28570. margin-top: 5px;
  28571. }
  28572. .gjCss {
  28573. display: flex;
  28574. flex-direction: row;
  28575. flex-wrap: nowrap;
  28576. align-items: center;
  28577. padding: 10px 0 10px 40px;
  28578. box-sizing: border-box;
  28579. font-size: 14px;
  28580. cursor: pointer;
  28581. border-radius: 5px;
  28582. }
  28583. .toolChild > div {
  28584. position: relative;
  28585. width: 100%;
  28586. }
  28587. /* .toolChild > div::before { */
  28588. /* content: "";
  28589. width: 15px;
  28590. height: 1px;
  28591. background: #cad1dc;
  28592. position: absolute;
  28593. top: 24px;
  28594. left: -20px;
  28595. display: block; */
  28596. /* } */
  28597. .isGjCss {
  28598. /* color: #0061ff; */
  28599. color: #fff;
  28600. background: rgb(55, 129, 252);
  28601. /* background-color: #e0eafb !important;
  28602. color: #0061ff !important; */
  28603. }
  28604. .navItem {
  28605. background: #ffffff;
  28606. border-radius: 4px;
  28607. width: 100%;
  28608. margin: 10px auto;
  28609. position: relative;
  28610. height: 40px;
  28611. display: flex;
  28612. flex-direction: row;
  28613. flex-wrap: nowrap;
  28614. align-items: center;
  28615. }
  28616. .navItemList {
  28617. display: flex;
  28618. flex-direction: row;
  28619. flex-wrap: nowrap;
  28620. align-items: center;
  28621. padding: 0 13px;
  28622. cursor: pointer;
  28623. width: calc(100% - 60px);
  28624. height: 100%;
  28625. }
  28626. .navItemList > div:first-child {
  28627. min-width: 60px;
  28628. }
  28629. .navItemList > div:last-child {
  28630. width: calc(100% - 80px);
  28631. white-space: nowrap;
  28632. overflow: hidden;
  28633. text-overflow: ellipsis;
  28634. word-break: break-word;
  28635. }
  28636. /* .isItemList > div {
  28637. color: #fff !important;
  28638. } */
  28639. .tool_work_box {
  28640. width: 100%;
  28641. padding: 0 37px 0;
  28642. box-sizing: border-box;
  28643. }
  28644. .tool_box {
  28645. width: 100%;
  28646. padding: 0 0 0 20px;
  28647. }
  28648. .tool_type_box {
  28649. display: flex;
  28650. flex-direction: row;
  28651. align-items: baseline;
  28652. flex-wrap: nowrap;
  28653. justify-content: flex-start;
  28654. position: relative;
  28655. }
  28656. .toolSort {
  28657. display: flex;
  28658. flex-direction: row;
  28659. flex-wrap: wrap;
  28660. justify-content: flex-start;
  28661. align-items: flex-start;
  28662. padding: 0 0 15px 0;
  28663. }
  28664. .toolSort > div {
  28665. margin: 0 10px 0 0;
  28666. width: 135px;
  28667. box-sizing: border-box;
  28668. border: 2px solid transparent;
  28669. }
  28670. .tools {
  28671. width: 100%;
  28672. display: flex;
  28673. flex-direction: column;
  28674. flex-wrap: nowrap;
  28675. align-items: flex-start;
  28676. }
  28677. .whiteBIcon {
  28678. width: fit-content;
  28679. cursor: pointer;
  28680. display: flex;
  28681. flex-direction: column;
  28682. flex-wrap: nowrap;
  28683. align-items: center;
  28684. font-size: 14px;
  28685. }
  28686. .tool:hover {
  28687. border: 2px solid #a5c7ff;
  28688. border-radius: 5px;
  28689. }
  28690. .whiteBIcon > img {
  28691. width: 65px;
  28692. height: 100%;
  28693. }
  28694. .whiteBIcon > img {
  28695. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28696. border-radius: 15px;
  28697. }
  28698. .check {
  28699. /* width: 20px;
  28700. height: 20px; */
  28701. cursor: pointer;
  28702. margin: 10px 0;
  28703. position: absolute;
  28704. right: 2px;
  28705. top: -5px;
  28706. }
  28707. .noChoose,
  28708. .isChoose {
  28709. width: 15px;
  28710. height: 15px;
  28711. border-radius: 50%;
  28712. border: 1px solid #adadad;
  28713. }
  28714. .isChoose {
  28715. border: 4px solid #0363ff !important;
  28716. width: 10px;
  28717. height: 10px;
  28718. }
  28719. .isToolChoose {
  28720. border: 2px solid #5394ff !important;
  28721. border-radius: 5px;
  28722. box-shadow: 0 0 6px 0px #5394ff;
  28723. }
  28724. .checkDiv {
  28725. display: flex;
  28726. align-items: center;
  28727. }
  28728. .checkDiv span {
  28729. margin-left: 5px;
  28730. color: #858585;
  28731. }
  28732. .check img {
  28733. width: 20px;
  28734. height: 20px;
  28735. }
  28736. .lockTaskIcon {
  28737. width: 20px;
  28738. height: 20px;
  28739. position: absolute;
  28740. right: 10px;
  28741. top: 10px;
  28742. }
  28743. .lockTaskIcon > img {
  28744. width: 100%;
  28745. height: 100%;
  28746. }
  28747. .pick_box {
  28748. display: flex;
  28749. align-items: flex-start;
  28750. flex-wrap: wrap;
  28751. }
  28752. .selectBox {
  28753. width: 110px;
  28754. margin-left: 10px;
  28755. margin: 0 10px 0 auto;
  28756. }
  28757. .selectBox >>> .el-input__inner {
  28758. height: 30px;
  28759. line-height: 30px;
  28760. }
  28761. .selectBox >>> .el-input__icon {
  28762. line-height: 30px;
  28763. }
  28764. .sentenceTitle {
  28765. display: flex;
  28766. flex-direction: row;
  28767. flex-wrap: nowrap;
  28768. align-items: center;
  28769. }
  28770. .sentenceTitle::before {
  28771. content: attr(index);
  28772. background: #3681fc;
  28773. border-radius: 50%;
  28774. color: #fff;
  28775. width: 25px;
  28776. height: 25px;
  28777. min-width: 25px;
  28778. min-height: 25px;
  28779. text-align: center;
  28780. line-height: 25px;
  28781. margin-right: 5px;
  28782. }
  28783. .hfBox {
  28784. padding: 10px;
  28785. box-sizing: border-box;
  28786. }
  28787. .whoReplyWho {
  28788. display: flex;
  28789. flex-direction: row;
  28790. flex-wrap: nowrap;
  28791. align-items: baseline;
  28792. justify-content: flex-start;
  28793. }
  28794. .hfBottom {
  28795. display: flex;
  28796. flex-direction: row;
  28797. flex-wrap: nowrap;
  28798. align-items: center;
  28799. justify-content: space-between;
  28800. font-size: 14px;
  28801. }
  28802. .deleteHfItem {
  28803. cursor: pointer;
  28804. width: 20px;
  28805. height: 20px;
  28806. }
  28807. .deleteHfItem > img {
  28808. width: 100%;
  28809. height: 100%;
  28810. }
  28811. .whoReplyWho > .hfImg {
  28812. width: 12px;
  28813. height: 12px;
  28814. margin: 0 5px;
  28815. }
  28816. .whoReplyWho > .hfImg > img {
  28817. width: 100%;
  28818. height: 100%;
  28819. }
  28820. .hfContent {
  28821. padding-top: 10px;
  28822. box-sizing: border-box;
  28823. display: -webkit-box;
  28824. overflow: hidden;
  28825. white-space: normal !important;
  28826. text-overflow: ellipsis;
  28827. word-wrap: break-word;
  28828. -webkit-box-orient: vertical;
  28829. }
  28830. .hfTime {
  28831. text-align: left;
  28832. box-sizing: border-box;
  28833. padding: 10px 0 10px 0px;
  28834. color: #bfbfbf;
  28835. font-size: 14px;
  28836. }
  28837. .btnAllNT {
  28838. position: fixed;
  28839. bottom: 100px;
  28840. right: 40px;
  28841. z-index: 999;
  28842. display: flex;
  28843. flex-direction: row;
  28844. }
  28845. .btnAllNT > img {
  28846. cursor: pointer;
  28847. width: 80px;
  28848. }
  28849. .toolMask {
  28850. position: fixed;
  28851. width: 100%;
  28852. height: 100%;
  28853. background: #3f3c3c;
  28854. opacity: 0.5;
  28855. top: 0;
  28856. left: 0;
  28857. z-index: 999;
  28858. }
  28859. .addToolCss {
  28860. position: fixed;
  28861. z-index: 999;
  28862. background: #fff;
  28863. right: 5%;
  28864. bottom: 18%;
  28865. min-width: 1035px;
  28866. min-height: 300px;
  28867. border-radius: 10px;
  28868. box-shadow: 0 0 8px 1px #b2b2b2;
  28869. }
  28870. .toolTop {
  28871. display: flex;
  28872. flex-direction: row;
  28873. flex-wrap: nowrap;
  28874. justify-content: space-between;
  28875. align-items: center;
  28876. padding: 20px;
  28877. }
  28878. .toolTop > div:nth-child(2) {
  28879. width: 15px;
  28880. height: 15px;
  28881. padding-right: 10px;
  28882. cursor: pointer;
  28883. }
  28884. .toolTop > div:nth-child(2) > img {
  28885. width: 100%;
  28886. height: 100%;
  28887. }
  28888. .fullStyle >>> .el-dialog__body {
  28889. height: calc(100% - 125px) !important;
  28890. box-sizing: border-box;
  28891. padding: 30px 0 !important;
  28892. background: #fff !important;
  28893. }
  28894. .fullStyle >>> .el-dialog {
  28895. width: 100% !important;
  28896. max-width: 100% !important;
  28897. height: 100% !important;
  28898. margin: 0 !important;
  28899. }
  28900. .fullStyle {
  28901. width: 100% !important;
  28902. max-width: 100% !important;
  28903. height: 100% !important;
  28904. margin: 0 auto !important;
  28905. }
  28906. .fullStyle >>> .el-dialog__footer {
  28907. background: #fff !important;
  28908. }
  28909. .engUpBox {
  28910. width: 100%;
  28911. height: 100%;
  28912. }
  28913. .engTitle,
  28914. .engText {
  28915. display: flex;
  28916. flex-direction: row;
  28917. flex-wrap: nowrap;
  28918. align-items: flex-start;
  28919. padding: 0 20px 20px 20px;
  28920. box-sizing: border-box;
  28921. }
  28922. .engTitle > .div:first-child,
  28923. .engText > div:first-child {
  28924. min-width: 75px;
  28925. }
  28926. .correctBox {
  28927. width: 100%;
  28928. display: flex;
  28929. flex-direction: row;
  28930. flex-wrap: nowrap;
  28931. align-items: flex-start;
  28932. }
  28933. .oldBox {
  28934. width: 50%;
  28935. height: 100%;
  28936. display: flex;
  28937. flex-direction: column;
  28938. flex-wrap: nowrap;
  28939. align-items: center;
  28940. border-top: 1px solid #d9d9d9;
  28941. border-left: 1px solid #d9d9d9;
  28942. border-right: 1px solid #d9d9d9;
  28943. }
  28944. .oldBox > div:first-child {
  28945. width: 100%;
  28946. text-align: center;
  28947. background: #d9d9d9;
  28948. height: 35px;
  28949. line-height: 35px;
  28950. font-weight: bold;
  28951. }
  28952. .oldText {
  28953. width: 100%;
  28954. height: calc(100% - 35px);
  28955. overflow: auto;
  28956. margin: 10px 0;
  28957. display: flex;
  28958. flex-direction: column;
  28959. flex-wrap: nowrap;
  28960. align-content: center;
  28961. align-items: center;
  28962. }
  28963. .detailBox {
  28964. width: 50%;
  28965. padding: 10px;
  28966. background: #f6f6f6;
  28967. border-radius: 5px;
  28968. }
  28969. .oldDetail,
  28970. .oldDetail1 {
  28971. padding-bottom: 30px;
  28972. }
  28973. .oldImg {
  28974. width: 30px;
  28975. height: 30px;
  28976. }
  28977. .oldImg > img {
  28978. width: 100%;
  28979. height: 100%;
  28980. }
  28981. .allName {
  28982. min-width: 200px;
  28983. white-space: nowrap;
  28984. overflow: hidden;
  28985. text-overflow: ellipsis;
  28986. word-break: break-word;
  28987. cursor: pointer;
  28988. text-align: center;
  28989. border: 1px solid #bcc2cc;
  28990. box-sizing: border-box;
  28991. }
  28992. .engUpTop {
  28993. max-height: 300px;
  28994. overflow: auto;
  28995. }
  28996. .isUpdateToolDetailClass {
  28997. padding: 0 !important;
  28998. }
  28999. .isUpdateToolDetailClass textarea {
  29000. padding: 12px;
  29001. font-size: 16px;
  29002. min-height: 100%;
  29003. width: 100%;
  29004. box-sizing: border-box;
  29005. outline: none;
  29006. border: none;
  29007. line-height: 30px;
  29008. resize: none;
  29009. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  29010. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29011. color: #838383;
  29012. }
  29013. .show_taskD {
  29014. min-width: fit-content;
  29015. margin-left: 10px;
  29016. display: flex;
  29017. align-items: center;
  29018. font-size: 14px;
  29019. cursor: pointer;
  29020. color: #717c8d;
  29021. }
  29022. .show_taskD > img {
  29023. width: 15px;
  29024. margin-right: 5px;
  29025. transition: 0.2s all;
  29026. transform: rotate(-90deg);
  29027. }
  29028. .show_taskD.show > img {
  29029. transform: rotate(0deg);
  29030. }
  29031. .correctCss {
  29032. position: absolute;
  29033. bottom: -70px;
  29034. background: #409eff;
  29035. color: #fff;
  29036. }
  29037. .ScoreBtn {
  29038. background: rgba(87, 159, 248, 1);
  29039. display: flex;
  29040. justify-content: center;
  29041. align-items: center;
  29042. color: #fff;
  29043. font-size: 14px;
  29044. padding: 8px 12px;
  29045. border-radius: 5px;
  29046. cursor: pointer;
  29047. }
  29048. .max-height-popover .el-popover {
  29049. min-height: 200px;
  29050. max-height: 400px; /* 设置最大高度 */
  29051. overflow: auto; /* 超出部分显示滚动条 */
  29052. }
  29053. .blueRootCss {
  29054. display: block;
  29055. margin-right: 5px;
  29056. }
  29057. .stuLookScore {
  29058. position: absolute;
  29059. top: 12px;
  29060. right: 40px;
  29061. background: #0000008f;
  29062. border-radius: 5px;
  29063. padding: 3px 5px;
  29064. font-size: 14px;
  29065. color: #fff;
  29066. cursor: pointer;
  29067. }
  29068. div::-webkit-scrollbar {
  29069. width: 10px;
  29070. height: 6px;
  29071. }
  29072. </style>