studyStudent.vue 1.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- ai模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div
  73. class="courseTitle"
  74. :style="{ margin: tcid && inviteCode && '10px auto 0px' }"
  75. >
  76. <div
  77. style="
  78. max-width: calc(100% - 40px);
  79. width: auto;
  80. white-space: nowrap;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. word-break: break-word;
  84. display: block;
  85. "
  86. >
  87. <el-tooltip
  88. effect="light"
  89. :content="courseDetail.title"
  90. placement="top"
  91. >
  92. <div class="ctitle">
  93. {{ courseDetail.title }}
  94. </div>
  95. </el-tooltip>
  96. </div>
  97. <el-tooltip effect="light" content="收缩" placement="top">
  98. <div class="mlImg" @click="setContent2(false)">
  99. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  100. </div>
  101. </el-tooltip>
  102. </div>
  103. <div
  104. class="inviteBox"
  105. v-if="tcid && inviteCode"
  106. style="padding: 0 0 8px 0"
  107. >
  108. <div>
  109. <span>随机码:{{ inviteCode }}</span>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="cru_selectBox">
  114. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  115. <div class="stageChild" :class="{ navActive: item.isOpen }">
  116. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  117. <div
  118. class="navItem"
  119. :class="{
  120. openTaskActive:
  121. navIndex == taskCount &&
  122. nav.id == navId &&
  123. stageIndex == courseType
  124. }"
  125. >
  126. <div v-if="nav.tool[0].tool != undefined">
  127. <div
  128. class="closeTri1"
  129. v-if="
  130. navIndex == taskCount &&
  131. nav.id == navId &&
  132. stageIndex == courseType
  133. "
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img
  137. :style="{
  138. transform: nav.isOpen
  139. ? 'rotate(0deg)'
  140. : 'rotate(270deg)'
  141. }"
  142. src="../../assets/icon/newIcons/bDown2.png"
  143. alt
  144. />
  145. </div>
  146. <div
  147. class="closeTri1"
  148. v-else
  149. @click="openTask(stageIndex, navIndex, nav.id)"
  150. >
  151. <img
  152. :style="{
  153. transform: nav.isOpen
  154. ? 'rotate(90deg)'
  155. : 'rotate(0deg)'
  156. }"
  157. src="../../assets/icon/newIcons/right.png"
  158. alt
  159. />
  160. </div>
  161. </div>
  162. <div v-else class="noToolBlue"></div>
  163. <div
  164. @click="openTask(stageIndex, navIndex, nav.id)"
  165. class="navItemList"
  166. :class="{
  167. isItemList:
  168. navIndex == taskCount &&
  169. nav.id == navId &&
  170. stageIndex == courseType
  171. }"
  172. >
  173. <div>任务{{ navIndex + 1 }}:</div>
  174. <el-tooltip
  175. effect="light"
  176. :content="nav.taskName"
  177. placement="top"
  178. >
  179. <div
  180. :style="{
  181. width:
  182. IsLookOpen && !nav.isLook
  183. ? 'calc(100% - 75px)'
  184. : 'auto'
  185. }"
  186. >
  187. {{ nav.taskName }}
  188. </div>
  189. </el-tooltip>
  190. </div>
  191. <div class="lockTaskIcon">
  192. <img
  193. src="../../assets/lock.png"
  194. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  195. courseDetail.course_teacher.indexOf(userid) ==-1"
  196. alt=""
  197. />
  198. </div>
  199. </div>
  200. <div
  201. v-if="nav.tool[0].tool != undefined"
  202. class="toolChild"
  203. :class="{ toolActive: nav.isOpen }"
  204. >
  205. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  206. <div
  207. class="gjCss"
  208. :class="{
  209. isGjCss: t.isTool
  210. }"
  211. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  212. >
  213. <div>工具{{ toolIndex2 + 1 }}:</div>
  214. <div v-if="t.tool == 58">模拟驾驶</div>
  215. <div v-if="t.tool == 59">路径搜索</div>
  216. <div v-if="t.tool == 60">深度学习</div>
  217. <div v-if="t.tool == 10">倒计时</div>
  218. <div v-if="t.tool == 65">挑人</div>
  219. <div v-if="t.tool == 7">思维网格</div>
  220. <div v-if="t.tool == 1">电子白板</div>
  221. <div v-if="t.tool == 52">文档</div>
  222. <div v-if="t.tool == 3">思维导图</div>
  223. <div v-if="t.tool == 48">表格</div>
  224. <div v-if="t.tool == 49">学生分组</div>
  225. <div v-if="t.tool == 4">问卷调查</div>
  226. <div v-if="t.tool == 45">选择题</div>
  227. <div v-if="t.tool == 15">问答</div>
  228. <div v-if="t.tool == 16">作业提交</div>
  229. <div v-if="t.tool == 50">批量上传</div>
  230. <div v-if="t.tool == 41">选择匹配</div>
  231. <div v-if="t.tool == 47">排序</div>
  232. <div v-if="t.tool == 40">个人评价</div>
  233. <div v-if="t.tool == 18">训练平台</div>
  234. <div v-if="t.tool == 21">AIoT Blockly</div>
  235. <div v-if="t.tool == 23">AI Python</div>
  236. <div v-if="t.tool == 24">AI Blockly</div>
  237. <div v-if="t.tool == 32">源码编辑</div>
  238. <div v-if="t.tool == 57">CocoPi</div>
  239. <div v-if="t.tool == 63">海龟编程</div>
  240. <div v-if="t.tool == 28">翻译</div>
  241. <div v-if="t.tool == 31">数字画板</div>
  242. <div v-if="t.tool == 39">GeoGebra</div>
  243. <div v-if="t.tool == 66">公式编辑</div>
  244. <div v-if="t.tool == 67">分子结构</div>
  245. <div v-if="t.tool == 68">时间轴</div>
  246. <div v-if="t.tool == 69">英语写作</div>
  247. <div v-if="t.tool == 70">英语口语</div>
  248. <div v-if="t.tool == 25">目标管理</div>
  249. <div v-if="t.tool == 26">课程设计</div>
  250. <div v-if="t.tool == 62">交互视频</div>
  251. <div v-if="t.tool == 71">AI智能体</div>
  252. <div v-if="t.tool == 72">应用中心</div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div
  262. class="body_student"
  263. :style="{
  264. width: mlDialog
  265. ? 'calc(100% - ' +
  266. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  267. ' - 20% - 40px)'
  268. : 'calc(100% - ' +
  269. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  270. ' - 10px)',
  271. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  272. }"
  273. >
  274. <div
  275. class="new_topFixed"
  276. :style="{
  277. width: mlDialog
  278. ? 'calc(100% - ' +
  279. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  280. ' - 20% - 40px)'
  281. : 'calc(100% - ' +
  282. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  283. ' - 10px)',
  284. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  285. }"
  286. ></div>
  287. <div
  288. class="new_top"
  289. :style="{
  290. width: mlDialog
  291. ? 'calc(100% - ' +
  292. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  293. ' - 20% - 47px)'
  294. : 'calc(100% - ' +
  295. `${!['2'].includes(tType) ? classRoomHelperWidth : '10px'}` +
  296. ' - 18px)',
  297. left: mlDialog ? 'calc(20% + 35px)' : '10px'
  298. }"
  299. >
  300. <div
  301. class="courseIndex"
  302. :style="{
  303. width:
  304. (orgArray.includes(org) || oidArray.includes(oid)) &&
  305. !['2'].includes(tType)
  306. ? '100%'
  307. : 'calc(100% - 745px)'
  308. }"
  309. >
  310. <div>任务{{ taskCount + 1 }}</div>
  311. <el-tooltip
  312. effect="light"
  313. :content="
  314. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  315. "
  316. placement="top"
  317. >
  318. <div>
  319. {{
  320. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  321. .task
  322. }}
  323. </div>
  324. </el-tooltip>
  325. </div>
  326. <div
  327. class="btnAll"
  328. v-show="
  329. (!orgArray.includes(org) && !oidArray.includes(oid)) ||
  330. ['2'].includes(tType)
  331. "
  332. >
  333. <div class="btnLeft">
  334. <el-tooltip effect="light" content="刷新" placement="top">
  335. <div class="reBtnIcon" @click="refreshCourse">
  336. <span>刷新</span>
  337. </div>
  338. </el-tooltip>
  339. <el-tooltip effect="light" content="评论" placement="top">
  340. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  341. <span>评论</span>
  342. </div>
  343. </el-tooltip>
  344. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  345. <el-tooltip effect="light" content="录制" placement="top">
  346. <div class="vedioIcon" @click="startRecording">
  347. <span>录制</span>
  348. </div>
  349. </el-tooltip>
  350. </div>
  351. <div v-else-if="tType == 1 || tType == 4">
  352. <el-tooltip effect="light" content="下载" placement="top">
  353. <div class="vedioIcon1" @click="stopRecording">
  354. <span>下载</span>
  355. </div>
  356. </el-tooltip>
  357. </div>
  358. </div>
  359. <div class="btnRight">
  360. <div
  361. class="last"
  362. @click="nextOrpreSteps(0)"
  363. v-if="!(IsFollow && tType == 2)"
  364. @mouseover="isHovered = true"
  365. @mouseout="isHovered = false"
  366. >
  367. <div class="lastImg">
  368. <img
  369. :src="
  370. isHovered
  371. ? require('../../assets/icon/newIcons/whiteLast.png')
  372. : require('../../assets/icon/newIcons/last.png')
  373. "
  374. alt=""
  375. />
  376. </div>
  377. <div class="lastText">上一步</div>
  378. </div>
  379. <div
  380. class="last"
  381. @click="nextOrpreSteps(1)"
  382. v-if="!(IsFollow && tType == 2)"
  383. @mouseover="isHovered1 = true"
  384. @mouseout="isHovered1 = false"
  385. >
  386. <div class="lastText">下一步</div>
  387. <div class="lastImg">
  388. <img
  389. :src="
  390. isHovered1
  391. ? require('../../assets/icon/newIcons/whiteNext.png')
  392. : require('../../assets/icon/newIcons/next.png')
  393. "
  394. alt=""
  395. />
  396. </div>
  397. </div>
  398. <div
  399. class="last"
  400. @click="juriVisible = true"
  401. v-if="tType == 1"
  402. @mouseover="isHovered2 = true"
  403. @mouseout="isHovered2 = false"
  404. >
  405. <div class="lastImg">
  406. <img
  407. :src="
  408. isHovered2
  409. ? require('../../assets/icon/newIcons/whiteLock.png')
  410. : require('../../assets/icon/newIcons/lock.png')
  411. "
  412. alt=""
  413. />
  414. </div>
  415. <div class="lastText">权限</div>
  416. </div>
  417. <div
  418. class="returnBtn1 returnIcon"
  419. @click.stop="
  420. goTo(
  421. '/courseDetail?userid=' +
  422. userid +
  423. '&oid=' +
  424. oid +
  425. '&org=' +
  426. org +
  427. '&cid=' +
  428. classId +
  429. '&courseId=' +
  430. id +
  431. '&tType=' +
  432. tType +
  433. '&screenType=' +
  434. screenType
  435. )
  436. "
  437. >
  438. <div class="lastImg">
  439. <img src="../../assets/icon/newIcon/return.png" alt="" />
  440. </div>
  441. <div class="lastText" style="color: #000">返回</div>
  442. </div>
  443. </div>
  444. <!-- <div
  445. class="returnBtn lockIcon"
  446. @click="juriVisible = true"
  447. v-if="tType == 1"
  448. >
  449. 权限
  450. </div>
  451. <div
  452. class="returnBtn vedioIcon"
  453. @click="startRecording"
  454. v-if="!videoStart && (tType == 1 || tType == 4)"
  455. >
  456. 录制
  457. </div>
  458. <div
  459. class="returnBtn"
  460. @click="stopRecording"
  461. v-else-if="tType == 1 || tType == 4"
  462. style="background: #ee5255"
  463. >
  464. 下载
  465. </div>
  466. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  467. 评论
  468. </div>
  469. <div
  470. class="returnBtn"
  471. @click="nextOrpreSteps(0)"
  472. v-if="!(IsFollow && tType == 2)"
  473. >
  474. 上一步
  475. </div>
  476. <div
  477. class="returnBtn"
  478. @click="nextOrpreSteps(1)"
  479. v-if="!(IsFollow && tType == 2)"
  480. >
  481. 下一步
  482. </div>
  483. <div class="returnBtn" @click="refreshCourse">刷新</div>
  484. <div
  485. class="returnBtn returnIcon"
  486. @click.stop="
  487. goTo(
  488. '/courseDetail?userid=' +
  489. userid +
  490. '&oid=' +
  491. oid +
  492. '&org=' +
  493. org +
  494. '&cid=' +
  495. classId +
  496. '&courseId=' +
  497. id +
  498. '&tType=' +
  499. tType +
  500. '&screenType=' +
  501. screenType
  502. )
  503. "
  504. >
  505. 返回
  506. </div> -->
  507. </div>
  508. </div>
  509. <div
  510. class="isNoMessage"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .chapterData.length == 0 &&
  514. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  515. .toolChoose[0].tool.length == 0 &&
  516. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  517. .taskDetail == '' &&
  518. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  519. .eList &&
  520. !(
  521. courseDetail.userid == userid ||
  522. (courseDetail.course_teacher &&
  523. courseDetail.course_teacher.indexOf(userid) != -1)
  524. )
  525. "
  526. >
  527. <img src="../../assets/icon/isNoMessage.png" alt />
  528. </div>
  529. <div class="study_top" :class="{ pzClass: pzDialog }">
  530. <div
  531. class="vedioBox"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != '' ||
  535. vChapterData[taskCount].length > 0 ||
  536. fileC[taskCount].length > 0
  537. "
  538. style="border-radius: 0 0 20px 20px"
  539. >
  540. <div
  541. class="taskBox"
  542. v-if="
  543. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  544. .taskDetail != ''
  545. "
  546. >
  547. <div
  548. style="
  549. display: flex;
  550. flex-wrap: nowrap;
  551. flex-direction: column;
  552. position: relative;
  553. "
  554. >
  555. <div
  556. style="
  557. padding: 15px 0;
  558. line-height: 29px;
  559. font-size: 18px;
  560. color: #0e1e33;
  561. "
  562. class="cont"
  563. v-if="
  564. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  565. .taskDetail != ''
  566. "
  567. v-html="
  568. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  569. .taskDetail
  570. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  571. taskCount
  572. ].taskDetail
  573. : '暂无描述'
  574. "
  575. ></div>
  576. </div>
  577. </div>
  578. <div
  579. class="student_head"
  580. v-if="
  581. vChapterData[taskCount].length > 0 ||
  582. fileC[taskCount].length > 0
  583. "
  584. >
  585. <div
  586. class="vedioTaskBox"
  587. v-loading="downLoading || showType == 7"
  588. >
  589. <div
  590. :class="
  591. contentDialog == false
  592. ? 'box_course isContentCss'
  593. : 'box_course'
  594. "
  595. v-if="
  596. vChapterData.length > 0 &&
  597. vChapterData[taskCount] &&
  598. showType !== ''
  599. "
  600. >
  601. <div class="wheel" style="height: auto" v-if="showType === 0">
  602. <div
  603. class="workd_media"
  604. style="height: 650px; width: calc(100% - 50px)"
  605. >
  606. <video-player
  607. class="video-player vjs-custom-skin"
  608. :class="contentDialog == false ? 'isAllWidth' : ''"
  609. :playsinline="true"
  610. :options="playerO[taskCount]"
  611. @play="onPlayerPlay($event)"
  612. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  613. ></video-player>
  614. </div>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-if="showType == 1"
  619. style="
  620. box-shadow: 0 0 6px 1px #f2f2f2;
  621. width: 95%;
  622. margin: 0 auto;
  623. background: #f1f1f1;
  624. "
  625. >
  626. <div class="title">查看文档</div>
  627. <el-form class="textBox">
  628. <el-form-item class="textTitle">
  629. <div style="font-size: 22px">
  630. {{ text.name }}
  631. </div>
  632. </el-form-item>
  633. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  634. <div v-html="text.url" class="textContent cont"></div>
  635. </el-form>
  636. </div>
  637. <div
  638. class="wheel"
  639. v-if="
  640. pptImgUrl1.indexOf(
  641. 'https://view.officeapps.live.com/op/view.aspx?src='
  642. ) != -1 && showType == 2
  643. "
  644. style="width: 95%; margin: 0 auto"
  645. >
  646. <iframe
  647. style="width: 100%; height: 100%; border: none"
  648. :src="pptImgUrl1"
  649. ></iframe>
  650. </div>
  651. <div
  652. class="wheel"
  653. v-else-if="showType == 2"
  654. style="width: 95%; margin: 0 auto"
  655. >
  656. <iframe
  657. style="width: 100%; height: 100%; border: none"
  658. security="restricted"
  659. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  660. :src="pptImgUrl1"
  661. ></iframe>
  662. </div>
  663. <div
  664. class="wheel"
  665. v-if="showType == 3"
  666. style="width: 95%; margin: 0 auto"
  667. >
  668. <pdf
  669. :pdfUrl="pptImgUrl1"
  670. style="width: 100%; height: 100%; overflow: auto"
  671. ></pdf>
  672. </div>
  673. <div
  674. class="wheel"
  675. v-if="showType == 4"
  676. style="width: 95%; margin: 0 auto"
  677. >
  678. <el-image
  679. :src="pptImgUrl1"
  680. fit="contain"
  681. style="width: 100%; height: 100%; cursor: pointer"
  682. @click="previewImg(pptImgUrl1)"
  683. ></el-image>
  684. </div>
  685. </div>
  686. <div
  687. class="pButton"
  688. style="position: absolute; right: 20px; top: 0; z-index: 998"
  689. v-if="!contentDialog"
  690. @click="setContent(true)"
  691. >
  692. <!-- 批 -->
  693. <img
  694. src="../../assets/icon/newIcons/isLeft.png"
  695. style="width: 45px"
  696. alt=""
  697. />
  698. </div>
  699. <div
  700. v-if="contentDialog == true"
  701. :style="{
  702. width:
  703. (vChapterData[taskCount].length > 0 ||
  704. fileC[taskCount].length > 0) &&
  705. showType === ''
  706. ? 'calc(100%)'
  707. : '300px',
  708. margin:
  709. (vChapterData[taskCount].length > 0 ||
  710. fileC[taskCount].length > 0) &&
  711. showType === ''
  712. ? '0 15px'
  713. : '0 15px 0 0'
  714. }"
  715. >
  716. <div
  717. class="vedioList"
  718. v-if="
  719. vChapterData[taskCount].length > 0 ||
  720. fileC[taskCount].length > 0
  721. "
  722. style="height: 650px"
  723. >
  724. <div class="navCorOpenBox">
  725. <div class="navTitile">内容列表:</div>
  726. <div class="navCorOpen" @click="setContent(false)">
  727. <img
  728. src="../../assets/icon/newIcons/isRight.png"
  729. alt=""
  730. />
  731. </div>
  732. </div>
  733. <div class="navBox">
  734. <div
  735. v-show="
  736. vChapterData[taskCount].length > 0 ||
  737. fileC[taskCount].length > 0
  738. "
  739. style="padding: 10px 0 25px 0"
  740. >
  741. <div
  742. class="vedioTimeBox"
  743. v-for="(vitem, vindex) in vChapterData[taskCount]"
  744. :key="vindex + '1'"
  745. >
  746. <div class="navListItem" v-if="vitem.type == 2">
  747. <div
  748. @click="lookVedio(vitem.url, vindex)"
  749. class="navText"
  750. :class="isClickNav == vindex ? 'isClickNav' : ''"
  751. >
  752. <span v-if="vitem.text">{{ vitem.text }}-</span
  753. >{{ vitem.name }}
  754. </div>
  755. <div class="downIcon" @click="downloadFile2(vitem)">
  756. <img
  757. src="../../assets/icon/newIcon/down.png"
  758. alt
  759. />
  760. </div>
  761. </div>
  762. <div class="navListItem" v-if="vitem.type == 6">
  763. <div
  764. @click="lookText(taskCount, vindex)"
  765. class="navText"
  766. :class="isClickNav == vindex ? 'isClickNav' : ''"
  767. >
  768. {{ vitem.name }}.doc
  769. </div>
  770. <div
  771. class="downIcon"
  772. @click="checkFileFull1(vitem.type, vitem)"
  773. >
  774. <img
  775. src="../../assets/icon/newIcon/allScreen.png"
  776. alt
  777. />
  778. </div>
  779. </div>
  780. <div
  781. class="navListItem"
  782. v-if="vitem.type == 8 || vitem.type == 14"
  783. >
  784. <div
  785. @click="doUrl(vitem.url, vindex)"
  786. class="navText"
  787. :class="isClickNav == vindex ? 'isClickNav' : ''"
  788. >
  789. {{ vitem.title ? vitem.title : vitem.url }}
  790. </div>
  791. <div
  792. class="downIcon"
  793. @click="checkFileFull1(vitem.type, vitem)"
  794. >
  795. <img
  796. src="../../assets/icon/newIcon/allScreen.png"
  797. alt
  798. />
  799. </div>
  800. </div>
  801. <div class="navListItem" v-if="vitem.type == 3">
  802. <div
  803. @click="downFile(vitem, vindex)"
  804. class="navText"
  805. :class="isClickNav == vindex ? 'isClickNav' : ''"
  806. >
  807. <span v-if="vitem.text">{{ vitem.text }}-</span
  808. >{{ vitem.name }}
  809. </div>
  810. <div
  811. class="downIcon"
  812. @click="checkFileFull1(vitem.type, vitem)"
  813. >
  814. <img
  815. src="../../assets/icon/newIcon/allScreen.png"
  816. alt
  817. />
  818. </div>
  819. <div class="downIcon" @click="downloadFile2(vitem)">
  820. <img
  821. src="../../assets/icon/newIcon/down.png"
  822. alt
  823. />
  824. </div>
  825. </div>
  826. <div class="navListItem" v-if="vitem.type == 12">
  827. <div class="navText" @click="downloadFile2(vitem)">
  828. <span v-if="vitem.text">{{ vitem.text }}-</span
  829. >{{ vitem.name }}
  830. </div>
  831. <div
  832. class="downIcon"
  833. @click="checkFileFull1(vitem.type, vitem)"
  834. >
  835. <img
  836. src="../../assets/icon/newIcon/allScreen.png"
  837. alt
  838. />
  839. </div>
  840. <div class="downIcon" @click="downloadFile2(vitem)">
  841. <img
  842. src="../../assets/icon/newIcon/down.png"
  843. alt
  844. />
  845. </div>
  846. </div>
  847. <div class="navListItem" v-if="vitem.type == 13">
  848. <div
  849. class="navText"
  850. @click="checkPhoto(vitem, vindex)"
  851. :class="isClickNav == vindex ? 'isClickNav' : ''"
  852. >
  853. {{ vitem.name }}
  854. </div>
  855. <div class="downIcon" @click="downloadFile2(vitem)">
  856. <img
  857. src="../../assets/icon/newIcon/down.png"
  858. alt
  859. />
  860. </div>
  861. </div>
  862. </div>
  863. <div
  864. class="fileC_box"
  865. v-if="fileC[taskCount].length > 0"
  866. >
  867. <div class="fileC_title">以下文件不支持预览</div>
  868. <div
  869. class="vedioTimeBox"
  870. v-for="(vitem, vindex) in fileC[taskCount]"
  871. :key="vindex + '1'"
  872. >
  873. <div class="navListItem" v-if="vitem.type == 12">
  874. <div class="navText" style="color: #acb4bf">
  875. <span v-if="vitem.text">{{ vitem.text }}-</span
  876. >{{ vitem.name }}
  877. </div>
  878. <div
  879. class="downIcon"
  880. @click="downloadFile2(vitem)"
  881. >
  882. <img
  883. src="../../assets/icon/newIcon/down.png"
  884. alt
  885. />
  886. </div>
  887. </div>
  888. </div>
  889. </div>
  890. </div>
  891. </div>
  892. </div>
  893. </div>
  894. </div>
  895. <div style="width: calc(100% - 315px)">
  896. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  897. <!-- <el-button
  898. type="primary"
  899. class="newButton"
  900. @click="checkFileFull(showType, pptImgUrl1)"
  901. >全屏查看</el-button
  902. >
  903. <el-button
  904. type="primary"
  905. class="newButton"
  906. @click="downloadFile(pptImgUrl1)"
  907. v-if="showType != 2"
  908. >文件下载</el-button
  909. > -->
  910. <el-button
  911. class="newButton"
  912. v-if="
  913. showType == 2 &&
  914. pptImgUrl1.indexOf(
  915. 'https://view.officeapps.live.com/op/view.aspx?src='
  916. ) == -1
  917. "
  918. type="primary"
  919. @click="openLine(pptImgUrl1)"
  920. >打开链接
  921. </el-button>
  922. </div>
  923. <!-- <div
  924. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  925. v-if="showType == 1"
  926. >
  927. <el-button
  928. type="primary"
  929. class="newButton"
  930. @click="checkFileFull(showType, text)"
  931. >全屏查看</el-button
  932. >
  933. </div> -->
  934. </div>
  935. </div>
  936. </div>
  937. <div class="student_body" v-resize="resize">
  938. <div
  939. class="vedioBox"
  940. :style="{
  941. borderRadius:
  942. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  943. .taskDetail == '' &&
  944. vChapterData[taskCount].length == 0 &&
  945. fileC[taskCount].length == 0
  946. ? '0 0 20px 20px'
  947. : '20px'
  948. }"
  949. v-if="
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool &&
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .toolChoose[0].tool.length > 0
  954. "
  955. >
  956. <div
  957. class="toolHeng2"
  958. style="position: relative"
  959. v-if="
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length &&
  964. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  965. .toolChoose[0].tool.length > 0
  966. "
  967. >
  968. <div class="workNav">工作区</div>
  969. <div
  970. class="filebox"
  971. style="flex-wrap: nowrap"
  972. v-for="(tool, toolIndex) in chapInfoList[courseType]
  973. .chapterInfo[0].taskJson[taskCount].toolChoose"
  974. :key="toolIndex"
  975. >
  976. <div class="bzBox">
  977. <div class="yCss"></div>
  978. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  979. 工具{{ toolIndex + 1 }}
  980. </div>
  981. <div
  982. v-if="timeWorkList[toolIndex].length > 0"
  983. style="margin: 0 0 0 10px"
  984. >
  985. {{
  986. timeWorkList[toolIndex][0].time
  987. ? "时间:" + timeWorkList[toolIndex][0].time
  988. : ""
  989. }}
  990. </div>
  991. </div>
  992. <div class="toolBox">
  993. <div>
  994. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  995. :key="indexTool"-->
  996. <!-- <div class="iframeBox">
  997. <div
  998. class="addPoint isBorder"
  999. v-for="(tooC, toolCIndex) in tool.tool"
  1000. :key="toolCIndex"
  1001. >
  1002. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1003. <div
  1004. class="iframeName"
  1005. >
  1006. 电子白板
  1007. </div>
  1008. <iframe
  1009. src="https://iwb.cocorobo.cn/"
  1010. ref="whiteBoard"
  1011. ></iframe>
  1012. </div>
  1013. </div>
  1014. </div>-->
  1015. <div class="noiframeBox">
  1016. <div
  1017. class="addPoint"
  1018. v-for="(tooC, toolCIndex) in tool.tool"
  1019. :key="toolCIndex"
  1020. >
  1021. <div v-if="tooC == 1">
  1022. <img
  1023. src="../../assets/icon/secondToolList/whiteBoard.png"
  1024. alt
  1025. @click="addTools(tooC, toolIndex, taskCount)"
  1026. />
  1027. <div style="margin: 5px 0">电子白板</div>
  1028. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1029. style="position: absolute;right: 33px;top: -30px;">
  1030. 投影
  1031. </div>
  1032. </div>
  1033. <div v-if="tooC == 3">
  1034. <img
  1035. src="../../assets/icon/secondToolList/mindMapping.png"
  1036. alt
  1037. @click="addTools(tooC, toolIndex, taskCount)"
  1038. />
  1039. <div style="margin: 5px 0">思维导图</div>
  1040. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1041. style="position: absolute;right: 33px;top: -30px;">
  1042. 投影
  1043. </div>
  1044. </div>
  1045. <div v-if="tooC == 6">
  1046. <img
  1047. src="../../assets/icon/secondToolList/doc.png"
  1048. alt
  1049. @click="addTools(tooC, toolIndex, taskCount)"
  1050. />
  1051. <div style="margin: 5px 0">协同文档</div>
  1052. </div>
  1053. <div v-if="tooC == 7">
  1054. <img
  1055. src="../../assets/icon/secondToolList/mindNetwork.png"
  1056. alt
  1057. @click="addTools(tooC, toolIndex, taskCount)"
  1058. />
  1059. <div style="margin: 5px 0">思维网格</div>
  1060. <!-- && worksStudent[toolIndex].length>0 -->
  1061. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1062. style="position: absolute;right: 33px;top: -30px;">
  1063. 投影
  1064. </div>
  1065. </div>
  1066. <div v-if="tooC == 8">
  1067. <img
  1068. src="../../assets/icon/secondToolList/library.png"
  1069. alt
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. />
  1072. <div style="margin: 5px 0">素材库</div>
  1073. </div>
  1074. <div v-if="tooC == 17">
  1075. <img
  1076. src="../../assets/icon/secondToolList/library.png"
  1077. alt
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. />
  1080. <div style="margin: 5px 0">学习资料</div>
  1081. </div>
  1082. <div v-if="tooC == 2">
  1083. <img
  1084. @click="addTools(tooC, toolIndex, taskCount)"
  1085. src="../../assets/icon/secondToolList/note.png"
  1086. alt
  1087. />
  1088. <div style="margin: 5px 0">便签</div>
  1089. </div>
  1090. <div v-if="tooC == 4">
  1091. <img
  1092. @click="addTools(tooC, toolIndex, taskCount)"
  1093. src="../../assets/icon/thirdToolList/ask.png"
  1094. alt
  1095. />
  1096. <div style="margin: 5px 0">问卷调查</div>
  1097. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1098. style="position: absolute;right: 153px;top: -30px;">
  1099. 投影
  1100. </div>
  1101. <div
  1102. class="upload_toolBtn"
  1103. v-if="tType === '1'"
  1104. @click="
  1105. openStatisticalAnalysis(
  1106. tooC,
  1107. toolIndex,
  1108. taskCount,
  1109. 45
  1110. )
  1111. "
  1112. style="position: absolute;right: 33px;top: -30px;"
  1113. >
  1114. 统计分析
  1115. </div>
  1116. </div>
  1117. <div v-if="tooC == 45">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/thirdToolList/choose.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">选择题</div>
  1124. <div
  1125. class="upload_toolBtn"
  1126. @click="
  1127. openChoseWorksDetailDialog(
  1128. tooC,
  1129. toolIndex,
  1130. taskCount,
  1131. 45
  1132. )
  1133. "
  1134. style="position: absolute;right: 33px;top: -30px;"
  1135. >
  1136. 投影
  1137. </div>
  1138. </div>
  1139. <!-- <div v-if="tooC == 5">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../../assets/icon/thirdToolList/score.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">量规评分</div>
  1146. </div> -->
  1147. <div v-if="tooC == 10">
  1148. <img
  1149. @click="addTools(tooC, toolIndex, taskCount)"
  1150. src="../../assets/icon/thirdToolList/time.png"
  1151. alt
  1152. />
  1153. <div style="margin: 5px 0">倒计时</div>
  1154. </div>
  1155. <div v-if="tooC == 15">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/thirdToolList/answer.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">问答</div>
  1162. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1163. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1164. 投影
  1165. </div>
  1166. </div>
  1167. <div v-if="tooC == 26">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../../assets/icon/thirdToolList/courseDesign.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">课程设计</div>
  1174. </div>
  1175. <div v-if="tooC == 18">
  1176. <img
  1177. @click="addTools(tooC, toolIndex, taskCount)"
  1178. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1179. alt
  1180. />
  1181. <div style="margin: 5px 0">训练服务器</div>
  1182. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1183. style="position: absolute;right: 33px;top: -30px;">
  1184. 投影
  1185. </div>
  1186. </div>
  1187. <div v-if="tooC == 16">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/thirdToolList/work.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">作业提交</div>
  1194. </div>
  1195. <div v-if="tooC == 50">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/thirdToolList/plwork.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">批量上传</div>
  1202. </div>
  1203. <div v-if="tooC == 21">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../../assets/icon/fourthToolList/program.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">AIoT Blockly</div>
  1210. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1211. style="position: absolute;right: 33px;top: -30px;">
  1212. 投影
  1213. </div>
  1214. </div>
  1215. <!-- <div v-if="tooC == 22">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/program.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">AI体验</div>
  1222. </div> -->
  1223. <div v-if="tooC == 23">
  1224. <img
  1225. @click="addTools(tooC, toolIndex, taskCount)"
  1226. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1227. alt
  1228. />
  1229. <div style="margin: 5px 0">AI Python</div>
  1230. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1231. style="position: absolute;right: 33px;top: -30px;">
  1232. 投影
  1233. </div>
  1234. </div>
  1235. <div v-if="tooC == 24">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../../assets/icon/fourthToolList/AIprogram.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">AI Blockly</div>
  1242. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1243. style="position: absolute;right: 33px;top: -30px;">
  1244. 投影
  1245. </div>
  1246. </div>
  1247. <div v-if="tooC == 25">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/thirdToolList/evalua.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">目标管理</div>
  1254. </div>
  1255. <div v-if="tooC == 31">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../../assets/icon/secondToolList/networkPanel.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">数学画板</div>
  1262. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1263. style="position: absolute;right: 33px;top: -30px;">
  1264. 投影
  1265. </div>
  1266. </div>
  1267. <div v-if="tooC == 28">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../../assets/icon/secondToolList/translation.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">翻译</div>
  1274. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1275. style="position: absolute;right: 33px;top: -30px;">
  1276. 投影
  1277. </div>
  1278. </div>
  1279. <div v-if="tooC == 37">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../../assets/icon/secondToolList/mohe.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">魔盒识字</div>
  1286. </div>
  1287. <div v-if="tooC == 38">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../../assets/icon/secondToolList/24game.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">24点</div>
  1294. </div>
  1295. <div v-if="tooC == 39">
  1296. <img
  1297. @click="addTools(tooC, toolIndex, taskCount)"
  1298. src="../../assets/icon/secondToolList/GeoGebra.png"
  1299. alt
  1300. />
  1301. <div style="margin: 5px 0">GeoGebra</div>
  1302. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1303. style="position: absolute;right: 33px;top: -30px;">
  1304. 投影
  1305. </div>
  1306. </div>
  1307. <div v-if="tooC == 32">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/thirdToolList/code.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">源码编辑</div>
  1314. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1315. style="position: absolute;right: 153px;top: -42px;">
  1316. 投影
  1317. </div>
  1318. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1319. style="position: absolute;left: 110px;bottom: 30px;">
  1320. 上传文件
  1321. <input type="file" accept="*" style="display: none"
  1322. @change="beforeUpload1($event, 7, toolIndex)" />
  1323. </div> -->
  1324. </div>
  1325. <div v-if="tooC == 40">
  1326. <img
  1327. @click="addTools(tooC, toolIndex, taskCount)"
  1328. src="../../assets/icon/secondToolList/eval.png"
  1329. alt
  1330. />
  1331. <div style="margin: 5px 0">个人评价</div>
  1332. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1333. style="position: absolute;right: 33px;top: -30px;">
  1334. 投影
  1335. </div>
  1336. </div>
  1337. <div v-if="tooC == 41">
  1338. <img
  1339. @click="addTools(tooC, toolIndex, taskCount)"
  1340. src="../../assets/icon/thirdToolList/select.png"
  1341. alt
  1342. />
  1343. <div style="margin: 5px 0">选择匹配</div>
  1344. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1345. style="position: absolute;right: 33px;top: -30px;">
  1346. 投影
  1347. </div>
  1348. </div>
  1349. <div v-if="tooC == 44">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../../assets/icon/thirdToolList/hanClass.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">汉字宫</div>
  1356. </div>
  1357. <div v-if="tooC == 47">
  1358. <img
  1359. @click="addTools(tooC, toolIndex, taskCount)"
  1360. src="../../assets/icon/fourthToolList/conSentences.png"
  1361. alt
  1362. />
  1363. <div style="margin: 5px 0">排序</div>
  1364. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1365. style="position: absolute;right: 33px;top: -30px;">
  1366. 投影
  1367. </div>
  1368. </div>
  1369. <div v-if="tooC == 48">
  1370. <img
  1371. @click="addTools(tooC, toolIndex, taskCount)"
  1372. src="../../assets/icon/fourthToolList/table.png"
  1373. alt
  1374. />
  1375. <div style="margin: 5px 0">表格</div>
  1376. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1377. style="position: absolute;right: 33px;top: -30px;">
  1378. 投影
  1379. </div>
  1380. </div>
  1381. <div v-if="tooC == 52">
  1382. <img
  1383. @click="addTools(tooC, toolIndex, taskCount)"
  1384. src="../../assets/icon/fourthToolList/text.png"
  1385. alt
  1386. />
  1387. <div style="margin: 5px 0">文档</div>
  1388. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1389. style="position: absolute;right: 33px;top: -30px;">
  1390. 投影
  1391. </div>
  1392. </div>
  1393. <div v-if="tooC == 49">
  1394. <img
  1395. @click="addTools(tooC, toolIndex, taskCount)"
  1396. src="../../assets/icon/fourthToolList/group.png"
  1397. alt
  1398. />
  1399. <div style="margin: 5px 0">学生分组</div>
  1400. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1401. style="position: absolute;right: 33px;top: -30px;">
  1402. 投影
  1403. </div>
  1404. </div>
  1405. <div v-if="tooC == 57">
  1406. <img
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. src="../../assets/icon/fourthToolList/cocopi.png"
  1409. alt
  1410. />
  1411. <div style="margin: 5px 0">CocoPi</div>
  1412. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1413. style="position: absolute;right: 33px;top: -30px;">
  1414. 投影
  1415. </div>
  1416. </div>
  1417. <div v-if="tooC == 58">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../../assets/icon/fourthToolList/car.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">模拟驾驶</div>
  1424. </div>
  1425. <div v-if="tooC == 59">
  1426. <img
  1427. @click="addTools(tooC, toolIndex, taskCount)"
  1428. src="../../assets/icon/fourthToolList/lineSearch.png"
  1429. alt
  1430. />
  1431. <div style="margin: 5px 0">路径搜索</div>
  1432. </div>
  1433. <div v-if="tooC == 60">
  1434. <img
  1435. @click="addTools(tooC, toolIndex, taskCount)"
  1436. src="../../assets/icon/fourthToolList/deepLearning.png"
  1437. alt
  1438. />
  1439. <div style="margin: 5px 0">深度学习</div>
  1440. </div>
  1441. <div v-if="tooC == 61">
  1442. <img
  1443. @click="addTools(tooC, toolIndex, taskCount)"
  1444. src="../../assets/icon/fourthToolList/allHistory.png"
  1445. alt
  1446. />
  1447. <div style="margin: 5px 0">全历史</div>
  1448. </div>
  1449. <div v-if="tooC == 62">
  1450. <img
  1451. @click="addTools(tooC, toolIndex, taskCount)"
  1452. src="../../assets/icon/fourthToolList/interVideo.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">交互视频</div>
  1456. </div>
  1457. <div v-if="tooC == 63">
  1458. <img
  1459. @click="addTools(tooC, toolIndex, taskCount)"
  1460. src="../../assets/icon/fourthToolList/Wood.png"
  1461. alt
  1462. />
  1463. <div style="margin: 5px 0">海龟编程</div>
  1464. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1465. style="position: absolute;right: 33px;top: -30px;">
  1466. 投影
  1467. </div>
  1468. </div>
  1469. <div v-if="tooC == 71">
  1470. <img
  1471. @click="addTools(tooC, toolIndex, taskCount)"
  1472. src="../../assets/icon/fourthToolList/chatgpt.png"
  1473. alt
  1474. />
  1475. <div style="margin: 5px 0">AI智能体</div>
  1476. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1477. style="position: absolute;right: 33px;top: -30px;">
  1478. 投影
  1479. </div>
  1480. </div>
  1481. <div v-if="tooC == 72">
  1482. <img
  1483. style="height: 85px;object-fit: cover;"
  1484. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. :src="tool.appJson.json.icon"
  1487. alt
  1488. />
  1489. <img
  1490. v-else
  1491. @click="addTools(tooC, toolIndex, taskCount)"
  1492. src="../../assets/icon/firstToolList/appStore.png"
  1493. alt
  1494. />
  1495. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1496. <!-- content to trigger tooltip here -->
  1497. <div class="Ovh">
  1498. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1499. </div>
  1500. </el-tooltip>
  1501. </div>
  1502. <div v-if="tooC == 65">
  1503. <img
  1504. @click="addTools(tooC, toolIndex, taskCount)"
  1505. src="../../assets/icon/firstToolList/pickPeople.png"
  1506. alt
  1507. />
  1508. <div style="margin: 5px 0">挑人</div>
  1509. </div>
  1510. <div v-if="tooC == 66">
  1511. <img
  1512. @click="addTools(tooC, toolIndex, taskCount)"
  1513. src="../../assets/icon/secondToolList/formulaEdi.png"
  1514. alt
  1515. />
  1516. <div style="margin: 5px 0">公式编辑</div>
  1517. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1518. style="position: absolute;right: 33px;top: -30px;">
  1519. 投影
  1520. </div>
  1521. </div>
  1522. <div v-if="tooC == 67">
  1523. <img
  1524. @click="addTools(tooC, toolIndex, taskCount)"
  1525. src="../../assets/icon/secondToolList/molStr.png"
  1526. alt
  1527. />
  1528. <div style="margin: 5px 0">分子结构</div>
  1529. </div>
  1530. <div v-if="tooC == 68">
  1531. <img
  1532. @click="addTools(tooC, toolIndex, taskCount)"
  1533. src="../../assets/icon/secondToolList/timeAxis.png"
  1534. alt
  1535. />
  1536. <div style="margin: 5px 0">时间轴</div>
  1537. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1538. style="position: absolute;right: 33px;top: -30px;">
  1539. 投影
  1540. </div> -->
  1541. </div>
  1542. <div v-if="tooC == 69">
  1543. <img
  1544. @click="addTools(tooC, toolIndex, taskCount)"
  1545. src="../../assets/icon/secondToolList/english.png"
  1546. alt
  1547. />
  1548. <div style="margin: 5px 0">英语写作</div>
  1549. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1550. style="position: absolute;right: 33px;top: -30px;">
  1551. 投影
  1552. </div>
  1553. </div>
  1554. <div v-if="tooC == 70">
  1555. <img
  1556. @click="addTools(tooC, toolIndex, taskCount)"
  1557. src="../../assets/icon/thirdToolList/englishVoice.png"
  1558. alt
  1559. />
  1560. <div style="margin: 5px 0">英语口语</div>
  1561. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1562. style="position: absolute;right: 33px;top: -30px;">
  1563. 投影
  1564. </div>
  1565. </div>
  1566. </div>
  1567. </div>
  1568. </div>
  1569. <div
  1570. class="tooldetail"
  1571. v-if="tool.toolDetail != ''"
  1572. :class="{
  1573. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1574. }"
  1575. >
  1576. <!-- <div class="toolTitle">工具描述</div> -->
  1577. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1578. <div
  1579. style="height:100%;"
  1580. v-html="contentConvent(tool.toolDetail)"
  1581. v-if="toolDetailIndex != toolIndex"
  1582. ></div>
  1583. <div v-else @click.stop="" style="height:100%;">
  1584. <textarea
  1585. @change="
  1586. () => {
  1587. $forceUpdate();
  1588. }
  1589. "
  1590. class="checkTextArea"
  1591. rows="3"
  1592. v-autoHeight="70"
  1593. type="text"
  1594. placeholder="请输入任务描述"
  1595. v-model="updateToolDetailInner"
  1596. ></textarea>
  1597. </div>
  1598. </div>
  1599. <el-button
  1600. type="primary"
  1601. v-if="tool.tool[0] == 32"
  1602. style="position: absolute; right: 30px; top: -45px"
  1603. @click="addImg($event)"
  1604. >上传作业<input
  1605. type="file"
  1606. accept="*"
  1607. style="display: none"
  1608. @change="beforeUpload1($event, 7, toolIndex)"
  1609. /></el-button>
  1610. <el-button
  1611. type="primary"
  1612. v-if="tool.tool[0] == 15"
  1613. style="position: absolute; right: 30px; top: -45px"
  1614. @click="openWordCloud(toolIndex)"
  1615. >生成词云</el-button
  1616. >
  1617. <el-button
  1618. type="primary"
  1619. v-if="
  1620. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1621. "
  1622. style="position: absolute; right: 30px; top: -45px"
  1623. @click="uploadWorks(toolIndex)"
  1624. >导出作业</el-button
  1625. >
  1626. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1627. position: absolute;
  1628. right: 30px;
  1629. transform: translateY(-130%);
  1630. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1631. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1632. </div>
  1633. <div
  1634. v-if="
  1635. tType &&
  1636. tType == 2 &&
  1637. !sIsOpen &&
  1638. tool.tool.indexOf(16) != -1
  1639. "
  1640. class="worksBox"
  1641. >
  1642. <div
  1643. class="zuoyeYulan"
  1644. v-if="workStudent[toolIndex].length > 0"
  1645. >
  1646. <span class="worksTitle">作业预览</span>
  1647. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1648. </div>
  1649. <div
  1650. class="worksDetailBox"
  1651. v-if="workStudent[toolIndex].length > 0"
  1652. >
  1653. <div
  1654. class="works"
  1655. style="
  1656. width: 200px;
  1657. height: 140px;
  1658. margin: 10px 10px 10px 0;
  1659. box-shadow: 0 0 6px 1px #dfdada;
  1660. "
  1661. v-for="(w, wIndex) in workStudent[toolIndex]"
  1662. :key="wIndex"
  1663. >
  1664. <div class="workImg" v-if="w.type == 0">
  1665. <img
  1666. :src="w.works"
  1667. @click="previewImg(w.works, w)"
  1668. alt
  1669. />
  1670. <div
  1671. class="answerScore"
  1672. v-if="w.score"
  1673. @click.stop="openScore(w)"
  1674. :class="{
  1675. rightW:
  1676. w.userid == userid || tType == 1 || tType == 4
  1677. }"
  1678. >
  1679. {{ JSON.parse(w.score).wScore }}分
  1680. </div>
  1681. <div
  1682. class="answerScore"
  1683. @click.stop="openScore(w)"
  1684. v-else-if="courseDetail.userid == userid"
  1685. :class="{
  1686. rightW:
  1687. w.userid == userid || tType == 1 || tType == 4
  1688. }"
  1689. >
  1690. 评分
  1691. </div>
  1692. <div
  1693. class="stuLookScore"
  1694. v-if="
  1695. w.userid == userid ||
  1696. (tType == 1 &&
  1697. courseDetail.state == 5 &&
  1698. ((chapInfoList[courseType].chapterInfo[0]
  1699. .taskJson[taskCount].eList &&
  1700. chapInfoList[courseType].chapterInfo[0]
  1701. .taskJson[taskCount].eList.length) ||
  1702. (tool.eList && tool.eList.length)))
  1703. "
  1704. >
  1705. <el-popover
  1706. placement="top"
  1707. width="318"
  1708. trigger="hover"
  1709. >
  1710. <markScore
  1711. :loading="AIloading[toolIndex][wIndex].loading"
  1712. :markScoreVisible="markScoreVisible"
  1713. :ref="`markSco${toolIndex}${wIndex}`"
  1714. @updateLoading="updateLoading"
  1715. @updateDocSco="updateDocSco"
  1716. @refreshOther="refreshOther"
  1717. @markScoreDig="markScoreDig"
  1718. :tool="tool"
  1719. :wIndex="wIndex"
  1720. :scoCon="w"
  1721. :toolIndex="toolIndex"
  1722. :key="refreshKey"
  1723. :stage="courseType"
  1724. :task="taskCount"
  1725. :scoTit="
  1726. chapInfoList[courseType].chapterInfo[0]
  1727. .taskJson[taskCount].eList
  1728. "
  1729. >
  1730. </markScore>
  1731. <div
  1732. @click="
  1733. markScoreDig2(
  1734. w.sName,
  1735. worksStudent,
  1736. w.userid,
  1737. toolIndex,
  1738. chapInfoList[courseType].chapterInfo[0]
  1739. .taskJson[taskCount].eList,
  1740. AIloading[toolIndex][wIndex].loading,
  1741. tool
  1742. )
  1743. "
  1744. slot="reference"
  1745. >
  1746. <span v-if="AIloading[toolIndex][wIndex].sco">
  1747. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1748. </span>
  1749. <span v-else>
  1750. 评分
  1751. </span>
  1752. </div>
  1753. </el-popover>
  1754. </div>
  1755. <img
  1756. class="deleteImg"
  1757. src="../../assets/deleteworks.png"
  1758. v-if="
  1759. w.userid == userid || tType == 1 || tType == 4
  1760. "
  1761. @click.stop="deleteWorks(w.wid)"
  1762. alt
  1763. />
  1764. </div>
  1765. <div class="workImg" v-if="w.type == 1">
  1766. <img :src="word" @click="openFile(w.works)" alt />
  1767. <div
  1768. class="answerScore"
  1769. v-if="w.score"
  1770. @click.stop="openScore(w)"
  1771. :class="{
  1772. rightW:
  1773. w.userid == userid || tType == 1 || tType == 4
  1774. }"
  1775. >
  1776. {{ JSON.parse(w.score).wScore }}分
  1777. </div>
  1778. <div
  1779. class="answerScore"
  1780. @click.stop="openScore(w)"
  1781. v-else-if="courseDetail.userid == userid"
  1782. :class="{
  1783. rightW:
  1784. w.userid == userid || tType == 1 || tType == 4
  1785. }"
  1786. >
  1787. 评分
  1788. </div>
  1789. <div
  1790. class="stuLookScore"
  1791. v-if="
  1792. w.userid == userid ||
  1793. (tType == 1 &&
  1794. courseDetail.state == 5 &&
  1795. ((chapInfoList[courseType].chapterInfo[0]
  1796. .taskJson[taskCount].eList &&
  1797. chapInfoList[courseType].chapterInfo[0]
  1798. .taskJson[taskCount].eList.length) ||
  1799. (tool.eList && tool.eList.length)))
  1800. "
  1801. >
  1802. <el-popover
  1803. placement="top"
  1804. width="318"
  1805. trigger="hover"
  1806. >
  1807. <markScore
  1808. :loading="AIloading[toolIndex][wIndex].loading"
  1809. :markScoreVisible="markScoreVisible"
  1810. :ref="`markSco${toolIndex}${wIndex}`"
  1811. @updateLoading="updateLoading"
  1812. @updateDocSco="updateDocSco"
  1813. @refreshOther="refreshOther"
  1814. @markScoreDig="markScoreDig"
  1815. :tool="tool"
  1816. :wIndex="wIndex"
  1817. :scoCon="w"
  1818. :toolIndex="toolIndex"
  1819. :key="refreshKey"
  1820. :stage="courseType"
  1821. :task="taskCount"
  1822. :scoTit="
  1823. chapInfoList[courseType].chapterInfo[0]
  1824. .taskJson[taskCount].eList
  1825. "
  1826. >
  1827. </markScore>
  1828. <div
  1829. @click="
  1830. markScoreDig2(
  1831. w.sName,
  1832. worksStudent,
  1833. w.userid,
  1834. toolIndex,
  1835. chapInfoList[courseType].chapterInfo[0]
  1836. .taskJson[taskCount].eList,
  1837. AIloading[toolIndex][wIndex].loading,
  1838. tool
  1839. )
  1840. "
  1841. slot="reference"
  1842. >
  1843. <span v-if="AIloading[toolIndex][wIndex].sco">
  1844. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1845. </span>
  1846. <span v-else>
  1847. 评分
  1848. </span>
  1849. </div>
  1850. </el-popover>
  1851. </div>
  1852. <img
  1853. class="deleteImg"
  1854. src="../../assets/deleteworks.png"
  1855. v-if="
  1856. w.userid == userid || tType == 1 || tType == 4
  1857. "
  1858. @click.stop="deleteWorks(w.wid)"
  1859. alt
  1860. />
  1861. </div>
  1862. <div class="workImg" v-if="w.type == 3">
  1863. <img
  1864. style="cursor: pointer"
  1865. :src="video"
  1866. @click="openVideo(w)"
  1867. alt
  1868. />
  1869. <div
  1870. class="answerScore"
  1871. v-if="w.score"
  1872. @click.stop="openScore(w)"
  1873. :class="{
  1874. rightW:
  1875. w.userid == userid || tType == 1 || tType == 4
  1876. }"
  1877. >
  1878. {{ JSON.parse(w.score).wScore }}分
  1879. </div>
  1880. <div
  1881. class="answerScore"
  1882. @click.stop="openScore(w)"
  1883. v-else-if="courseDetail.userid == userid"
  1884. :class="{
  1885. rightW:
  1886. w.userid == userid || tType == 1 || tType == 4
  1887. }"
  1888. >
  1889. 评分
  1890. </div>
  1891. <div
  1892. class="stuLookScore"
  1893. v-if="
  1894. w.userid == userid ||
  1895. (tType == 1 &&
  1896. courseDetail.state == 5 &&
  1897. ((chapInfoList[courseType].chapterInfo[0]
  1898. .taskJson[taskCount].eList &&
  1899. chapInfoList[courseType].chapterInfo[0]
  1900. .taskJson[taskCount].eList.length) ||
  1901. (tool.eList && tool.eList.length)))
  1902. "
  1903. >
  1904. <el-popover
  1905. placement="top"
  1906. width="318"
  1907. trigger="hover"
  1908. >
  1909. <markScore
  1910. :loading="AIloading[toolIndex][wIndex].loading"
  1911. :markScoreVisible="markScoreVisible"
  1912. :ref="`markSco${toolIndex}${wIndex}`"
  1913. @updateLoading="updateLoading"
  1914. @updateDocSco="updateDocSco"
  1915. @refreshOther="refreshOther"
  1916. @markScoreDig="markScoreDig"
  1917. :tool="tool"
  1918. :wIndex="wIndex"
  1919. :scoCon="w"
  1920. :toolIndex="toolIndex"
  1921. :key="refreshKey"
  1922. :stage="courseType"
  1923. :task="taskCount"
  1924. :scoTit="
  1925. chapInfoList[courseType].chapterInfo[0]
  1926. .taskJson[taskCount].eList
  1927. "
  1928. >
  1929. </markScore>
  1930. <div
  1931. @click="
  1932. markScoreDig2(
  1933. w.sName,
  1934. worksStudent,
  1935. w.userid,
  1936. toolIndex,
  1937. chapInfoList[courseType].chapterInfo[0]
  1938. .taskJson[taskCount].eList,
  1939. AIloading[toolIndex][wIndex].loading,
  1940. tool
  1941. )
  1942. "
  1943. slot="reference"
  1944. >
  1945. <span v-if="AIloading[toolIndex][wIndex].sco">
  1946. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1947. </span>
  1948. <span v-else>
  1949. 评分
  1950. </span>
  1951. </div>
  1952. </el-popover>
  1953. </div>
  1954. <img
  1955. class="deleteImg"
  1956. src="../../assets/deleteworks.png"
  1957. v-if="
  1958. w.userid == userid || tType == 1 || tType == 4
  1959. "
  1960. @click.stop="deleteWorks(w.wid)"
  1961. alt
  1962. />
  1963. </div>
  1964. <div class="workImg" v-if="w.type == 12">
  1965. <img
  1966. style="cursor: pointer"
  1967. :src="word2"
  1968. @click="downloadFile(w.works)"
  1969. alt
  1970. />
  1971. <div
  1972. class="answerScore"
  1973. v-if="w.score"
  1974. @click.stop="openScore(w)"
  1975. :class="{
  1976. rightW:
  1977. w.userid == userid || tType == 1 || tType == 4
  1978. }"
  1979. >
  1980. {{ JSON.parse(w.score).wScore }}分
  1981. </div>
  1982. <div
  1983. class="answerScore"
  1984. @click.stop="openScore(w)"
  1985. v-else-if="courseDetail.userid == userid"
  1986. :class="{
  1987. rightW:
  1988. w.userid == userid || tType == 1 || tType == 4
  1989. }"
  1990. >
  1991. 评分
  1992. </div>
  1993. <div
  1994. class="stuLookScore"
  1995. v-if="
  1996. w.userid == userid ||
  1997. (tType == 1 &&
  1998. courseDetail.state == 5 &&
  1999. ((chapInfoList[courseType].chapterInfo[0]
  2000. .taskJson[taskCount].eList &&
  2001. chapInfoList[courseType].chapterInfo[0]
  2002. .taskJson[taskCount].eList.length) ||
  2003. (tool.eList && tool.eList.length)))
  2004. "
  2005. >
  2006. <el-popover
  2007. placement="top"
  2008. width="318"
  2009. trigger="hover"
  2010. >
  2011. <markScore
  2012. :loading="AIloading[toolIndex][wIndex].loading"
  2013. :markScoreVisible="markScoreVisible"
  2014. :ref="`markSco${toolIndex}${wIndex}`"
  2015. @updateLoading="updateLoading"
  2016. @updateDocSco="updateDocSco"
  2017. @refreshOther="refreshOther"
  2018. @markScoreDig="markScoreDig"
  2019. :tool="tool"
  2020. :wIndex="wIndex"
  2021. :scoCon="w"
  2022. :toolIndex="toolIndex"
  2023. :key="refreshKey"
  2024. :stage="courseType"
  2025. :task="taskCount"
  2026. :scoTit="
  2027. chapInfoList[courseType].chapterInfo[0]
  2028. .taskJson[taskCount].eList
  2029. "
  2030. >
  2031. </markScore>
  2032. <div
  2033. @click="
  2034. markScoreDig2(
  2035. w.sName,
  2036. worksStudent,
  2037. w.userid,
  2038. toolIndex,
  2039. chapInfoList[courseType].chapterInfo[0]
  2040. .taskJson[taskCount].eList,
  2041. AIloading[toolIndex][wIndex].loading,
  2042. tool
  2043. )
  2044. "
  2045. slot="reference"
  2046. >
  2047. <span v-if="AIloading[toolIndex][wIndex].sco">
  2048. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2049. </span>
  2050. <span v-else>
  2051. 评分
  2052. </span>
  2053. </div>
  2054. </el-popover>
  2055. </div>
  2056. <img
  2057. class="deleteImg"
  2058. src="../../assets/deleteworks.png"
  2059. v-if="
  2060. w.userid == userid || tType == 1 || tType == 4
  2061. "
  2062. @click.stop="deleteWorks(w.wid)"
  2063. alt
  2064. />
  2065. </div>
  2066. <div class="worksName">
  2067. <div>{{ w.sName }}</div>
  2068. </div>
  2069. </div>
  2070. </div>
  2071. </div>
  2072. <div
  2073. v-if="
  2074. tType &&
  2075. tType == 2 &&
  2076. !sIsOpen &&
  2077. tool.tool.indexOf(32) != -1
  2078. "
  2079. class="worksBox"
  2080. >
  2081. <div
  2082. class="zuoyeYulan"
  2083. v-if="workStudent[toolIndex].length > 0"
  2084. >
  2085. <span class="worksTitle">作业预览</span>
  2086. </div>
  2087. <div
  2088. class="worksDetailBox"
  2089. v-if="workStudent[toolIndex].length > 0"
  2090. >
  2091. <div
  2092. class="works"
  2093. style="
  2094. width: 200px;
  2095. height: 140px;
  2096. margin: 10px 10px 10px 0;
  2097. box-shadow: 0 0 6px 1px #dfdada;
  2098. "
  2099. v-for="(w, wIndex) in workStudent[toolIndex]"
  2100. :key="wIndex"
  2101. >
  2102. <div class="workImg">
  2103. <img
  2104. :src="word2"
  2105. @click="downloadFile(w.works)"
  2106. alt
  2107. />
  2108. <div
  2109. class="answerScore"
  2110. v-if="w.score"
  2111. @click.stop="openScore(w)"
  2112. :class="{
  2113. rightW:
  2114. w.userid == userid || tType == 1 || tType == 4
  2115. }"
  2116. >
  2117. {{ JSON.parse(w.score).wScore }}分
  2118. </div>
  2119. <div
  2120. class="answerScore"
  2121. @click.stop="openScore(w)"
  2122. v-else-if="courseDetail.userid == userid"
  2123. :class="{
  2124. rightW:
  2125. w.userid == userid || tType == 1 || tType == 4
  2126. }"
  2127. >
  2128. 评分
  2129. </div>
  2130. <img
  2131. class="deleteImg"
  2132. src="../../assets/deleteworks.png"
  2133. v-if="
  2134. w.userid == userid || tType == 1 || tType == 4
  2135. "
  2136. @click.stop="deleteWorks(w.wid)"
  2137. alt
  2138. />
  2139. </div>
  2140. <div class="worksName">
  2141. <div>{{ w.sName }}</div>
  2142. </div>
  2143. </div>
  2144. </div>
  2145. </div>
  2146. <div
  2147. v-if="
  2148. tType &&
  2149. tType == 2 &&
  2150. !sIsOpen &&
  2151. tool.tool.indexOf(57) != -1
  2152. "
  2153. class="worksBox"
  2154. >
  2155. <div
  2156. class="zuoyeYulan"
  2157. v-if="workStudent[toolIndex].length > 0"
  2158. >
  2159. <span class="worksTitle">作业预览</span>
  2160. </div>
  2161. <div
  2162. class="worksDetailBox"
  2163. v-if="workStudent[toolIndex].length > 0"
  2164. >
  2165. <div
  2166. class="works"
  2167. style="
  2168. width: 200px;
  2169. height: 140px;
  2170. margin: 10px 10px 10px 0;
  2171. box-shadow: 0 0 6px 1px #dfdada;
  2172. "
  2173. v-for="(w, wIndex) in workStudent[toolIndex]"
  2174. :key="wIndex"
  2175. >
  2176. <div class="workImg">
  2177. <img
  2178. :src="word2"
  2179. @click="downloadFile(w.works)"
  2180. v-if="w.type == 12"
  2181. alt
  2182. />
  2183. <img
  2184. :src="word2"
  2185. @click="
  2186. openCocoPi(57, toolIndex, w.userid, w.sName)
  2187. "
  2188. v-else-if="w.type == 15"
  2189. alt
  2190. />
  2191. <div
  2192. class="answerScore"
  2193. v-if="w.score"
  2194. @click.stop="openScore(w)"
  2195. :class="{
  2196. rightW:
  2197. w.userid == userid || tType == 1 || tType == 4
  2198. }"
  2199. >
  2200. {{ JSON.parse(w.score).wScore }}分
  2201. </div>
  2202. <div
  2203. class="answerScore"
  2204. @click.stop="openScore(w)"
  2205. v-else-if="courseDetail.userid == userid"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid || tType == 1 || tType == 4
  2209. }"
  2210. >
  2211. 评分
  2212. </div>
  2213. <img
  2214. class="deleteImg"
  2215. src="../../assets/deleteworks.png"
  2216. v-if="
  2217. w.userid == userid || tType == 1 || tType == 4
  2218. "
  2219. @click.stop="deleteWorks(w.wid)"
  2220. alt
  2221. />
  2222. </div>
  2223. <div class="worksName">
  2224. <div>{{ w.sName }}</div>
  2225. </div>
  2226. </div>
  2227. </div>
  2228. </div>
  2229. <div
  2230. v-if="
  2231. tType &&
  2232. tType == 2 &&
  2233. !sIsOpen &&
  2234. tool.tool.indexOf(4) != -1
  2235. "
  2236. class="worksBox"
  2237. >
  2238. <div
  2239. class="zuoyeYulan"
  2240. v-if="workStudent[toolIndex].length > 0"
  2241. >
  2242. <span class="worksTitle">作业预览</span>
  2243. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2244. </div>
  2245. <div
  2246. class="worksDetailBox"
  2247. v-if="workStudent[toolIndex].length > 0"
  2248. >
  2249. <div
  2250. class="isWorksName2"
  2251. v-for="(w, wIndex) in workStudent[toolIndex]"
  2252. :key="wIndex"
  2253. @click="
  2254. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2255. "
  2256. >
  2257. {{ w.sName }}
  2258. <img
  2259. class="deleteImg deleteImg2"
  2260. src="../../assets/deleteworks.png"
  2261. v-if="w.userid == userid || tType == 1 || tType == 4"
  2262. @click.stop="deleteWorks(w.wid)"
  2263. alt
  2264. />
  2265. </div>
  2266. <!-- <div
  2267. class="works"
  2268. style="
  2269. width: 200px;
  2270. height: 140px;
  2271. border-radius: 10px;
  2272. box-shadow: 0 0 6px 1px #dfdada;
  2273. overflow: hidden;
  2274. "
  2275. v-for="(w, wIndex) in workStudent[toolIndex]"
  2276. :key="wIndex"
  2277. >
  2278. <div class="workImg">
  2279. <img
  2280. src="../../assets/icon/works/noImg.png"
  2281. @click="
  2282. openTools(
  2283. 4,
  2284. toolIndex,
  2285. taskCount,
  2286. w.works,
  2287. w.sName
  2288. )
  2289. "
  2290. alt
  2291. />
  2292. </div>
  2293. <div class="worksName">
  2294. <div>{{ w.sName }}</div>
  2295. <div>{{ w.time }}</div>
  2296. </div>
  2297. </div> -->
  2298. </div>
  2299. </div>
  2300. <div
  2301. v-if="
  2302. tType &&
  2303. ((tType == 2 && sIsOpen == true) ||
  2304. tType == 1 ||
  2305. tType == 4) &&
  2306. tool.tool.indexOf(62) != -1
  2307. "
  2308. class="worksBox"
  2309. >
  2310. <div
  2311. class="zuoyeYulan"
  2312. v-if="
  2313. worksStudent.length &&
  2314. worksStudent[toolIndex].length > 0
  2315. "
  2316. >
  2317. <div class="worksTop">
  2318. <div>作业预览</div>
  2319. <div
  2320. class="corOpen"
  2321. @click="contract(toolIndex)"
  2322. v-if="
  2323. isCloseList[toolIndex].isCloseBoolean &&
  2324. isCloseList[toolIndex].isClose == 0
  2325. "
  2326. >
  2327. 折叠
  2328. </div>
  2329. <div
  2330. class="corOpen"
  2331. @click="contract(toolIndex)"
  2332. v-if="isCloseList[toolIndex].isClose == 1"
  2333. >
  2334. 展开
  2335. </div>
  2336. </div>
  2337. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2338. </div>
  2339. <div>
  2340. <div
  2341. :id="'tool-' + toolIndex"
  2342. :style="{
  2343. height:
  2344. isCloseList[toolIndex].isClose == 1
  2345. ? retrnToolHeight('tool-' + toolIndex)
  2346. : 'auto',
  2347. overflow:
  2348. isCloseList[toolIndex].isClose == 1
  2349. ? 'hidden'
  2350. : 'unset'
  2351. }"
  2352. class="worksDetailBox"
  2353. v-if="
  2354. worksStudent.length &&
  2355. worksStudent[toolIndex].length > 0
  2356. "
  2357. >
  2358. <div
  2359. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2360. :key="wIndex"
  2361. class="isWorksName2"
  2362. @click="
  2363. openTools(
  2364. 62,
  2365. toolIndex,
  2366. taskCount,
  2367. w.works,
  2368. w.sName
  2369. )
  2370. "
  2371. >
  2372. {{ w.sName }}
  2373. <img
  2374. class="deleteImg deleteImg2"
  2375. src="../../assets/deleteworks.png"
  2376. v-if="
  2377. w.userid == userid || tType == 1 || tType == 4
  2378. "
  2379. @click.stop="deleteWorks(w.wid)"
  2380. alt
  2381. />
  2382. </div>
  2383. </div>
  2384. </div>
  2385. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2386. 未提交
  2387. </div>
  2388. <div
  2389. class="noWorksS"
  2390. v-if="noWorksS && noWorksS[toolIndex].length"
  2391. >
  2392. <div
  2393. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2394. :key="sIndex"
  2395. class="noWorksName"
  2396. >
  2397. <el-tooltip
  2398. effect="dark"
  2399. :content="s.student"
  2400. placement="top"
  2401. >
  2402. <span>{{ s.student }}</span>
  2403. </el-tooltip>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. <div
  2408. v-if="
  2409. tType &&
  2410. tType == 2 &&
  2411. !sIsOpen &&
  2412. tool.tool.indexOf(62) != -1
  2413. "
  2414. class="worksBox"
  2415. >
  2416. <div
  2417. class="zuoyeYulan"
  2418. v-if="workStudent[toolIndex].length > 0"
  2419. >
  2420. <span class="worksTitle">作业预览</span>
  2421. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2422. </div>
  2423. <div
  2424. class="worksDetailBox"
  2425. v-if="workStudent[toolIndex].length > 0"
  2426. >
  2427. <div
  2428. class="isWorksName2"
  2429. v-for="(w, wIndex) in workStudent[toolIndex]"
  2430. :key="wIndex"
  2431. @click="
  2432. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2433. "
  2434. >
  2435. {{ w.sName }}
  2436. <img
  2437. class="deleteImg deleteImg2"
  2438. src="../../assets/deleteworks.png"
  2439. v-if="w.userid == userid || tType == 1 || tType == 4"
  2440. @click.stop="deleteWorks(w.wid)"
  2441. alt
  2442. />
  2443. </div>
  2444. </div>
  2445. </div>
  2446. <div
  2447. v-if="
  2448. tType &&
  2449. tType == 2 &&
  2450. !sIsOpen &&
  2451. tool.tool.indexOf(45) != -1
  2452. "
  2453. class="worksBox"
  2454. >
  2455. <div
  2456. class="zuoyeYulan"
  2457. v-if="workStudent[toolIndex].length > 0"
  2458. >
  2459. <span class="worksTitle">作业预览</span>
  2460. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2461. </div>
  2462. <div
  2463. class="worksDetailBox"
  2464. v-if="workStudent[toolIndex].length > 0"
  2465. >
  2466. <div
  2467. class="isWorksName2"
  2468. v-for="(w, wIndex) in workStudent[toolIndex]"
  2469. :key="wIndex"
  2470. @click="
  2471. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2472. "
  2473. >
  2474. {{ w.sName }}
  2475. <img
  2476. class="deleteImg deleteImg2"
  2477. src="../../assets/deleteworks.png"
  2478. v-if="w.userid == userid || tType == 1 || tType == 4"
  2479. @click.stop="deleteWorks(w.wid)"
  2480. alt
  2481. />
  2482. </div>
  2483. </div>
  2484. </div>
  2485. <div
  2486. v-if="
  2487. tType &&
  2488. tType == 2 &&
  2489. !sIsOpen &&
  2490. tool.tool.indexOf(69) != -1
  2491. "
  2492. class="worksBox"
  2493. >
  2494. <div
  2495. class="zuoyeYulan"
  2496. v-if="workStudent[toolIndex].length > 0"
  2497. >
  2498. <span class="worksTitle">作业预览</span>
  2499. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2500. </div>
  2501. <div
  2502. class="worksDetailBox"
  2503. v-if="workStudent[toolIndex].length > 0"
  2504. >
  2505. <div
  2506. class="isWorksName2"
  2507. v-for="(w, wIndex) in workStudent[toolIndex]"
  2508. :key="wIndex"
  2509. @click="
  2510. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2511. "
  2512. >
  2513. {{ w.sName }}
  2514. <img
  2515. class="deleteImg deleteImg2"
  2516. src="../../assets/deleteworks.png"
  2517. v-if="w.userid == userid || tType == 1 || tType == 4"
  2518. @click.stop="deleteWorks(w.wid)"
  2519. alt
  2520. />
  2521. </div>
  2522. </div>
  2523. </div>
  2524. <div
  2525. v-if="
  2526. tType &&
  2527. tType == 2 &&
  2528. !sIsOpen &&
  2529. tool.tool.indexOf(15) != -1
  2530. "
  2531. class="worksBox"
  2532. >
  2533. <div
  2534. class="zuoyeYulan"
  2535. v-if="workStudent[toolIndex].length > 0"
  2536. >
  2537. <span class="worksTitle">作业预览</span>
  2538. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2539. </div>
  2540. <div
  2541. class="worksDetailBox"
  2542. v-if="workStudent[toolIndex].length > 0"
  2543. >
  2544. <div
  2545. class="works"
  2546. v-for="(w, wIndex) in workStudent[toolIndex]"
  2547. :key="wIndex"
  2548. >
  2549. <div class="workImg">
  2550. <!-- <img
  2551. src="../../assets/icon/works/noImg.png"
  2552. @click="openTools(15, toolIndex, taskCount, w.works)"
  2553. alt=""
  2554. />-->
  2555. <div class="answerBg">
  2556. <!-- <div>{{ w.sName }}</div> -->
  2557. <el-tooltip
  2558. class="item"
  2559. effect="light"
  2560. :content="JSON.parse(w.works)[0].answer"
  2561. placement="top"
  2562. >
  2563. <div class="answerContent">
  2564. {{ JSON.parse(w.works)[0].answer }}
  2565. </div>
  2566. </el-tooltip>
  2567. <div
  2568. class="answerScore"
  2569. v-if="w.score"
  2570. @click.stop="openScore(w)"
  2571. :class="{
  2572. rightW:
  2573. w.userid == userid || tType == 1 || tType == 4
  2574. }"
  2575. >
  2576. {{ JSON.parse(w.score).wScore }}分
  2577. </div>
  2578. <div
  2579. class="answerScore"
  2580. @click.stop="openScore(w)"
  2581. v-else-if="courseDetail.userid == userid"
  2582. :class="{
  2583. rightW:
  2584. w.userid == userid || tType == 1 || tType == 4
  2585. }"
  2586. >
  2587. 评分
  2588. </div>
  2589. <img
  2590. class="deleteImg"
  2591. src="../../assets/deleteworks.png"
  2592. v-if="
  2593. w.userid == userid || tType == 1 || tType == 4
  2594. "
  2595. @click.stop="deleteWorks(w.wid)"
  2596. alt
  2597. />
  2598. </div>
  2599. <div class="comment">
  2600. <div class="worksName">
  2601. <div>{{ w.sName }}</div>
  2602. </div>
  2603. </div>
  2604. </div>
  2605. </div>
  2606. </div>
  2607. </div>
  2608. <div
  2609. v-if="
  2610. tType &&
  2611. tType == 2 &&
  2612. !sIsOpen &&
  2613. tool.tool.indexOf(1) != -1
  2614. "
  2615. class="worksBox"
  2616. >
  2617. <div
  2618. class="zuoyeYulan"
  2619. v-if="workStudent[toolIndex].length > 0"
  2620. >
  2621. <span class="worksTitle">作业预览</span>
  2622. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2623. </div>
  2624. <div
  2625. class="worksDetailBox"
  2626. v-if="workStudent[toolIndex].length > 0"
  2627. >
  2628. <div
  2629. class="works"
  2630. style="
  2631. width: 200px;
  2632. height: 140px;
  2633. margin: 10px 10px 10px 0;
  2634. box-shadow: 0 0 6px 1px #dfdada;
  2635. "
  2636. v-for="(w, wIndex) in workStudent[toolIndex]"
  2637. :key="wIndex"
  2638. >
  2639. <div class="workImg">
  2640. <img
  2641. :src="w.works"
  2642. @click="previewImg(w.works, w)"
  2643. alt
  2644. />
  2645. <div
  2646. class="answerScore"
  2647. v-if="w.score"
  2648. @click.stop="openScore(w)"
  2649. :class="{
  2650. rightW:
  2651. w.userid == userid || tType == 1 || tType == 4
  2652. }"
  2653. >
  2654. {{ JSON.parse(w.score).wScore }}分
  2655. </div>
  2656. <div
  2657. class="answerScore"
  2658. @click.stop="openScore(w)"
  2659. v-else-if="courseDetail.userid == userid"
  2660. :class="{
  2661. rightW:
  2662. w.userid == userid || tType == 1 || tType == 4
  2663. }"
  2664. >
  2665. 评分
  2666. </div>
  2667. <div
  2668. class="stuLookScore"
  2669. v-if="
  2670. w.userid == userid ||
  2671. (tType == 1 &&
  2672. courseDetail.state == 5 &&
  2673. ((chapInfoList[courseType].chapterInfo[0]
  2674. .taskJson[taskCount].eList &&
  2675. chapInfoList[courseType].chapterInfo[0]
  2676. .taskJson[taskCount].eList.length) ||
  2677. (tool.eList && tool.eList.length)))
  2678. "
  2679. >
  2680. <el-popover
  2681. placement="top"
  2682. width="318"
  2683. trigger="hover"
  2684. >
  2685. <markScore
  2686. :loading="AIloading[toolIndex][wIndex].loading"
  2687. :markScoreVisible="markScoreVisible"
  2688. :ref="`markSco${toolIndex}${wIndex}`"
  2689. @updateLoading="updateLoading"
  2690. @updateDocSco="updateDocSco"
  2691. @refreshOther="refreshOther"
  2692. @markScoreDig="markScoreDig"
  2693. :tool="tool"
  2694. :wIndex="wIndex"
  2695. :scoCon="w"
  2696. :toolIndex="toolIndex"
  2697. :key="refreshKey"
  2698. :stage="courseType"
  2699. :task="taskCount"
  2700. :scoTit="
  2701. chapInfoList[courseType].chapterInfo[0]
  2702. .taskJson[taskCount].eList
  2703. "
  2704. >
  2705. </markScore>
  2706. <div
  2707. @click="
  2708. markScoreDig2(
  2709. w.sName,
  2710. worksStudent,
  2711. w.userid,
  2712. toolIndex,
  2713. chapInfoList[courseType].chapterInfo[0]
  2714. .taskJson[taskCount].eList,
  2715. AIloading[toolIndex][wIndex].loading,
  2716. tool
  2717. )
  2718. "
  2719. slot="reference"
  2720. >
  2721. <span v-if="AIloading[toolIndex][wIndex].sco">
  2722. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2723. </span>
  2724. <span v-else>
  2725. 评分
  2726. </span>
  2727. </div>
  2728. </el-popover>
  2729. </div>
  2730. <img
  2731. class="deleteImg"
  2732. src="../../assets/deleteworks.png"
  2733. v-if="
  2734. w.userid == userid || tType == 1 || tType == 4
  2735. "
  2736. @click.stop="deleteWorks(w.wid)"
  2737. alt
  2738. />
  2739. </div>
  2740. <div class="worksName">
  2741. <div>{{ w.sName }}</div>
  2742. </div>
  2743. </div>
  2744. </div>
  2745. </div>
  2746. <div
  2747. v-if="
  2748. tType &&
  2749. tType == 2 &&
  2750. !sIsOpen &&
  2751. tool.tool.indexOf(3) != -1
  2752. "
  2753. class="worksBox"
  2754. >
  2755. <div
  2756. class="zuoyeYulan"
  2757. v-if="workStudent[toolIndex].length > 0"
  2758. >
  2759. <span class="worksTitle">作业预览</span>
  2760. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2761. </div>
  2762. <div
  2763. class="worksDetailBox"
  2764. v-if="workStudent[toolIndex].length > 0"
  2765. >
  2766. <div
  2767. class="works"
  2768. style="
  2769. width: 200px;
  2770. height: 140px;
  2771. margin: 10px 10px 10px 0;
  2772. box-shadow: 0 0 6px 1px #dfdada;
  2773. "
  2774. v-for="(w, wIndex) in workStudent[toolIndex]"
  2775. :key="wIndex"
  2776. >
  2777. <div class="workImg">
  2778. <img
  2779. :src="w.works"
  2780. @click="previewImg(w.works, w)"
  2781. alt
  2782. />
  2783. <div
  2784. class="answerScore"
  2785. v-if="w.score"
  2786. @click.stop="openScore(w)"
  2787. :class="{
  2788. rightW:
  2789. w.userid == userid || tType == 1 || tType == 4
  2790. }"
  2791. >
  2792. {{ JSON.parse(w.score).wScore }}分
  2793. </div>
  2794. <div
  2795. class="answerScore"
  2796. @click.stop="openScore(w)"
  2797. v-else-if="courseDetail.userid == userid"
  2798. :class="{
  2799. rightW:
  2800. w.userid == userid || tType == 1 || tType == 4
  2801. }"
  2802. >
  2803. 评分
  2804. </div>
  2805. <div
  2806. class="stuLookScore"
  2807. v-if="
  2808. w.userid == userid ||
  2809. (tType == 1 &&
  2810. courseDetail.state == 5 &&
  2811. ((chapInfoList[courseType].chapterInfo[0]
  2812. .taskJson[taskCount].eList &&
  2813. chapInfoList[courseType].chapterInfo[0]
  2814. .taskJson[taskCount].eList.length) ||
  2815. (tool.eList && tool.eList.length)))
  2816. "
  2817. >
  2818. <el-popover
  2819. placement="top"
  2820. width="318"
  2821. trigger="hover"
  2822. >
  2823. <markScore
  2824. :loading="AIloading[toolIndex][wIndex].loading"
  2825. :markScoreVisible="markScoreVisible"
  2826. :ref="`markSco${toolIndex}${wIndex}`"
  2827. @updateLoading="updateLoading"
  2828. @updateDocSco="updateDocSco"
  2829. @refreshOther="refreshOther"
  2830. @markScoreDig="markScoreDig"
  2831. :tool="tool"
  2832. :wIndex="wIndex"
  2833. :scoCon="w"
  2834. :toolIndex="toolIndex"
  2835. :key="refreshKey"
  2836. :stage="courseType"
  2837. :task="taskCount"
  2838. :scoTit="
  2839. chapInfoList[courseType].chapterInfo[0]
  2840. .taskJson[taskCount].eList
  2841. "
  2842. >
  2843. </markScore>
  2844. <div
  2845. @click="
  2846. markScoreDig2(
  2847. w.sName,
  2848. worksStudent,
  2849. w.userid,
  2850. toolIndex,
  2851. chapInfoList[courseType].chapterInfo[0]
  2852. .taskJson[taskCount].eList,
  2853. AIloading[toolIndex][wIndex].loading,
  2854. tool
  2855. )
  2856. "
  2857. slot="reference"
  2858. >
  2859. <span v-if="AIloading[toolIndex][wIndex].sco">
  2860. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2861. </span>
  2862. <span v-else>
  2863. 评分
  2864. </span>
  2865. </div>
  2866. </el-popover>
  2867. </div>
  2868. <img
  2869. class="deleteImg"
  2870. src="../../assets/deleteworks.png"
  2871. v-if="
  2872. w.userid == userid || tType == 1 || tType == 4
  2873. "
  2874. @click.stop="deleteWorks(w.wid)"
  2875. alt
  2876. />
  2877. </div>
  2878. <div class="worksName">
  2879. <div>{{ w.sName }}</div>
  2880. </div>
  2881. </div>
  2882. </div>
  2883. </div>
  2884. <div
  2885. v-if="
  2886. tType &&
  2887. tType == 2 &&
  2888. !sIsOpen &&
  2889. tool.tool.indexOf(6) != -1
  2890. "
  2891. class="worksBox"
  2892. >
  2893. <div
  2894. class="zuoyeYulan"
  2895. v-if="workStudent[toolIndex].length > 0"
  2896. >
  2897. <span class="worksTitle">作业预览</span>
  2898. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2899. </div>
  2900. <div
  2901. class="worksDetailBox"
  2902. v-if="workStudent[toolIndex].length > 0"
  2903. >
  2904. <div
  2905. class="works"
  2906. style="
  2907. width: 200px;
  2908. height: 140px;
  2909. margin: 10px 10px 10px 0;
  2910. box-shadow: 0 0 6px 1px #dfdada;
  2911. "
  2912. v-for="(w, wIndex) in workStudent[toolIndex]"
  2913. :key="wIndex"
  2914. >
  2915. <div class="workImg">
  2916. <img
  2917. :src="w.works"
  2918. @click="previewImg(w.works, w)"
  2919. alt
  2920. />
  2921. <div
  2922. class="answerScore"
  2923. v-if="w.score"
  2924. @click.stop="openScore(w)"
  2925. :class="{
  2926. rightW:
  2927. w.userid == userid || tType == 1 || tType == 4
  2928. }"
  2929. >
  2930. {{ JSON.parse(w.score).wScore }}分
  2931. </div>
  2932. <div
  2933. class="answerScore"
  2934. @click.stop="openScore(w)"
  2935. v-else-if="courseDetail.userid == userid"
  2936. :class="{
  2937. rightW:
  2938. w.userid == userid || tType == 1 || tType == 4
  2939. }"
  2940. >
  2941. 评分
  2942. </div>
  2943. <img
  2944. class="deleteImg"
  2945. src="../../assets/deleteworks.png"
  2946. v-if="
  2947. w.userid == userid || tType == 1 || tType == 4
  2948. "
  2949. @click.stop="deleteWorks(w.wid)"
  2950. alt
  2951. />
  2952. </div>
  2953. <div class="worksName">
  2954. <div>{{ w.sName }}</div>
  2955. </div>
  2956. </div>
  2957. </div>
  2958. </div>
  2959. <div
  2960. v-if="
  2961. tType &&
  2962. tType == 2 &&
  2963. !sIsOpen &&
  2964. tool.tool.indexOf(7) != -1
  2965. "
  2966. class="worksBox"
  2967. >
  2968. <div
  2969. class="zuoyeYulan"
  2970. v-if="workStudent[toolIndex].length > 0"
  2971. >
  2972. <span class="worksTitle">作业预览</span>
  2973. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2974. </div>
  2975. <div
  2976. class="worksDetailBox"
  2977. v-if="workStudent[toolIndex].length > 0"
  2978. >
  2979. <div
  2980. class="works"
  2981. style="
  2982. width: 200px;
  2983. height: 140px;
  2984. margin: 10px 10px 10px 0;
  2985. box-shadow: 0 0 6px 1px #dfdada;
  2986. "
  2987. v-for="(w, wIndex) in workStudent[toolIndex]"
  2988. :key="wIndex"
  2989. >
  2990. <div class="workImg">
  2991. <img
  2992. :src="w.works"
  2993. @click="previewImg(w.works, w)"
  2994. alt
  2995. />
  2996. <div
  2997. class="answerScore"
  2998. v-if="w.score"
  2999. @click.stop="openScore(w)"
  3000. :class="{
  3001. rightW:
  3002. w.userid == userid || tType == 1 || tType == 4
  3003. }"
  3004. >
  3005. {{ JSON.parse(w.score).wScore }}分
  3006. </div>
  3007. <div
  3008. class="answerScore"
  3009. @click.stop="openScore(w)"
  3010. v-else-if="courseDetail.userid == userid"
  3011. :class="{
  3012. rightW:
  3013. w.userid == userid || tType == 1 || tType == 4
  3014. }"
  3015. >
  3016. 评分
  3017. </div>
  3018. <div
  3019. class="stuLookScore"
  3020. v-if="
  3021. w.userid == userid ||
  3022. (tType == 1 &&
  3023. courseDetail.state == 5 &&
  3024. ((chapInfoList[courseType].chapterInfo[0]
  3025. .taskJson[taskCount].eList &&
  3026. chapInfoList[courseType].chapterInfo[0]
  3027. .taskJson[taskCount].eList.length) ||
  3028. (tool.eList && tool.eList.length)))
  3029. "
  3030. >
  3031. <el-popover
  3032. placement="top"
  3033. width="318"
  3034. trigger="hover"
  3035. >
  3036. <markScore
  3037. :loading="AIloading[toolIndex][wIndex].loading"
  3038. :markScoreVisible="markScoreVisible"
  3039. :ref="`markSco${toolIndex}${wIndex}`"
  3040. @updateLoading="updateLoading"
  3041. @updateDocSco="updateDocSco"
  3042. @refreshOther="refreshOther"
  3043. @markScoreDig="markScoreDig"
  3044. :tool="tool"
  3045. :wIndex="wIndex"
  3046. :scoCon="w"
  3047. :toolIndex="toolIndex"
  3048. :key="refreshKey"
  3049. :stage="courseType"
  3050. :task="taskCount"
  3051. :scoTit="
  3052. chapInfoList[courseType].chapterInfo[0]
  3053. .taskJson[taskCount].eList
  3054. "
  3055. >
  3056. </markScore>
  3057. <div
  3058. @click="
  3059. markScoreDig2(
  3060. w.sName,
  3061. worksStudent,
  3062. w.userid,
  3063. toolIndex,
  3064. chapInfoList[courseType].chapterInfo[0]
  3065. .taskJson[taskCount].eList,
  3066. AIloading[toolIndex][wIndex].loading,
  3067. tool
  3068. )
  3069. "
  3070. slot="reference"
  3071. >
  3072. <span v-if="AIloading[toolIndex][wIndex].sco">
  3073. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3074. </span>
  3075. <span v-else>
  3076. 评分
  3077. </span>
  3078. </div>
  3079. </el-popover>
  3080. </div>
  3081. <img
  3082. class="deleteImg"
  3083. src="../../assets/deleteworks.png"
  3084. v-if="
  3085. w.userid == userid || tType == 1 || tType == 4
  3086. "
  3087. @click.stop="deleteWorks(w.wid)"
  3088. alt
  3089. />
  3090. </div>
  3091. <div class="worksName">
  3092. <div>{{ w.sName }}</div>
  3093. </div>
  3094. </div>
  3095. </div>
  3096. </div>
  3097. <div
  3098. v-if="
  3099. tType &&
  3100. tType == 2 &&
  3101. !sIsOpen &&
  3102. tool.tool.indexOf(26) != -1
  3103. "
  3104. class="worksBox"
  3105. >
  3106. <div
  3107. class="zuoyeYulan"
  3108. v-if="workStudent[toolIndex].length > 0"
  3109. >
  3110. <span class="worksTitle">作业预览</span>
  3111. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3112. </div>
  3113. <div
  3114. class="worksDetailBox"
  3115. v-if="workStudent[toolIndex].length > 0"
  3116. >
  3117. <div
  3118. class="works"
  3119. style="
  3120. width: 200px;
  3121. height: 140px;
  3122. margin: 10px 10px 10px 0;
  3123. box-shadow: 0 0 6px 1px #dfdada;
  3124. "
  3125. v-for="(w, wIndex) in workStudent[toolIndex]"
  3126. :key="wIndex"
  3127. >
  3128. <div class="workImg">
  3129. <img
  3130. :src="w.works"
  3131. @click="previewImg(w.works, w)"
  3132. alt
  3133. />
  3134. <img
  3135. class="deleteImg"
  3136. src="../../assets/deleteworks.png"
  3137. v-if="
  3138. w.userid == userid || tType == 1 || tType == 4
  3139. "
  3140. @click.stop="deleteWorks(w.wid)"
  3141. alt
  3142. />
  3143. </div>
  3144. <div class="worksName">
  3145. <div>{{ w.sName }}</div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. <div
  3151. v-if="
  3152. tType &&
  3153. ((tType == 2 && sIsOpen == true) ||
  3154. tType == 1 ||
  3155. tType == 4) &&
  3156. tool.tool.indexOf(16) != -1
  3157. "
  3158. class="worksBox"
  3159. >
  3160. <div
  3161. class="zuoyeYulan"
  3162. style="display: flex;justify-content: space-between;align-items: center;"
  3163. v-if="
  3164. (worksStudent.length &&
  3165. worksStudent[toolIndex].length > 0) ||
  3166. (courseGroup.group && courseGroup.group.length)
  3167. "
  3168. >
  3169. <div class="worksTop">
  3170. <div>作业预览</div>
  3171. <div
  3172. class="corOpen"
  3173. @click="contract(toolIndex)"
  3174. v-if="
  3175. isCloseList[toolIndex].isCloseBoolean &&
  3176. isCloseList[toolIndex].isClose == 0
  3177. "
  3178. >
  3179. 折叠
  3180. </div>
  3181. <div
  3182. class="corOpen"
  3183. @click="contract(toolIndex)"
  3184. v-if="isCloseList[toolIndex].isClose == 1"
  3185. >
  3186. 展开
  3187. </div>
  3188. </div>
  3189. <div
  3190. style="display: flex;"
  3191. v-if="
  3192. (courseDetail.userid == userid ||
  3193. (courseDetail.course_teacher &&
  3194. courseDetail.course_teacher.indexOf(userid) !=
  3195. -1)) &&
  3196. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3197. taskCount
  3198. ].eList &&
  3199. chapInfoList[courseType].chapterInfo[0].taskJson[
  3200. taskCount
  3201. ].eList.length) ||
  3202. (tool.eList && tool.eList.length)) &&
  3203. courseDetail.state == 5
  3204. "
  3205. >
  3206. <!-- <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"> -->
  3207. <div
  3208. style="margin-right:10px"
  3209. class="ScoreBtn"
  3210. @click="
  3211. resetLoopEva(
  3212. worksStudent[toolIndex],
  3213. chapInfoList[courseType].chapterInfo[0].taskJson[
  3214. taskCount
  3215. ].eList,
  3216. courseType,
  3217. taskCount,
  3218. toolIndex,
  3219. tool.toolDetail,
  3220. worksStudent
  3221. )
  3222. "
  3223. >
  3224. 一键重置
  3225. </div>
  3226. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3227. <img
  3228. src="../../assets/icon/newIcons/rootImg.png"
  3229. alt=""
  3230. />
  3231. AI评分
  3232. </div>
  3233. <div
  3234. class="ScoreBtn"
  3235. v-else-if="!loopLoading[toolIndex].loading"
  3236. @click="
  3237. loopEva(
  3238. worksStudent[toolIndex],
  3239. chapInfoList[courseType].chapterInfo[0].taskJson[
  3240. taskCount
  3241. ].eList,
  3242. courseType,
  3243. taskCount,
  3244. toolIndex,
  3245. tool.toolDetail,
  3246. chapInfoList[courseType].chapterInfo[0].taskJson[
  3247. taskCount
  3248. ].taskDetail,
  3249. tool
  3250. )
  3251. "
  3252. >
  3253. <img
  3254. src="../../assets/icon/newIcons/rootImg.png"
  3255. alt=""
  3256. />
  3257. AI评分
  3258. </div>
  3259. <div class="ScoreBtn" v-else>
  3260. <img
  3261. src="../../assets/icon/newIcons/rootImg.png"
  3262. alt=""
  3263. />
  3264. 正在评分
  3265. </div>
  3266. </div>
  3267. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3268. </div>
  3269. <div
  3270. class="group_workBox"
  3271. v-for="(g, gindex) in courseGroup.group"
  3272. :key="gindex"
  3273. >
  3274. <div class="group_box">
  3275. <div class="group_title">
  3276. <el-tooltip
  3277. class="item"
  3278. effect="light"
  3279. :content="g.name"
  3280. placement="top"
  3281. >
  3282. <div class="group_name">{{ g.name }}</div>
  3283. </el-tooltip>
  3284. </div>
  3285. <div
  3286. class="group_work"
  3287. v-if="
  3288. g.works &&
  3289. g.works.length &&
  3290. g.works[toolIndex].length
  3291. "
  3292. >
  3293. <div
  3294. class="works"
  3295. style="
  3296. width: 200px;
  3297. height: 140px;
  3298. margin: 10px 10px 10px 0;
  3299. border-radius: 15px;
  3300. box-shadow: 0 0 6px 1px #dfdada;
  3301. "
  3302. v-for="(w, wIndex) in g.works[toolIndex]"
  3303. :key="wIndex"
  3304. :class="w.type == 1 ? 'isTypeOne' : ''"
  3305. >
  3306. <div class="workImg" v-if="w.type == 0">
  3307. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3308. <img
  3309. :src="w.works"
  3310. @click="previewImg(w.works, w)"
  3311. alt
  3312. />
  3313. <div
  3314. class="answerScore"
  3315. v-if="w.score"
  3316. @click.stop="openScore(w)"
  3317. :class="{
  3318. rightW:
  3319. w.userid == userid ||
  3320. tType == 1 ||
  3321. tType == 4 ||
  3322. w.ateacher == userid
  3323. }"
  3324. >
  3325. {{ JSON.parse(w.score).wScore }}分
  3326. </div>
  3327. <div
  3328. class="answerScore"
  3329. @click.stop="openScore(w)"
  3330. v-else-if="courseDetail.userid == userid"
  3331. :class="{
  3332. rightW:
  3333. w.userid == userid ||
  3334. tType == 1 ||
  3335. tType == 4 ||
  3336. w.ateacher == userid
  3337. }"
  3338. >
  3339. 评分
  3340. </div>
  3341. <img
  3342. class="deleteImg"
  3343. src="../../assets/deleteworks.png"
  3344. v-if="
  3345. w.userid == userid || tType == 1 || tType == 4
  3346. "
  3347. @click.stop="deleteWorks(w.wid)"
  3348. alt
  3349. />
  3350. </div>
  3351. <div class="workImg" v-if="w.type == 1">
  3352. <img :src="word" @click="openFile(w.works)" alt />
  3353. <!-- @click="openFile(w.works)" -->
  3354. <div
  3355. class="answerScore"
  3356. v-if="w.score"
  3357. @click.stop="openScore(w)"
  3358. :class="{
  3359. rightW:
  3360. w.userid == userid ||
  3361. tType == 1 ||
  3362. tType == 4 ||
  3363. w.ateacher == userid
  3364. }"
  3365. >
  3366. {{ JSON.parse(w.score).wScore }}分
  3367. </div>
  3368. <div
  3369. class="answerScore"
  3370. @click.stop="openScore(w)"
  3371. v-else-if="courseDetail.userid == userid"
  3372. :class="{
  3373. rightW:
  3374. w.userid == userid ||
  3375. tType == 1 ||
  3376. tType == 4 ||
  3377. w.ateacher == userid
  3378. }"
  3379. >
  3380. 评分
  3381. </div>
  3382. <img
  3383. class="deleteImg"
  3384. src="../../assets/deleteworks.png"
  3385. v-if="
  3386. w.userid == userid || tType == 1 || tType == 4
  3387. "
  3388. @click.stop="deleteWorks(w.wid)"
  3389. alt
  3390. />
  3391. </div>
  3392. <div class="workImg" v-if="w.type == 3">
  3393. <img
  3394. style="cursor: pointer"
  3395. :src="video"
  3396. @click="openVideo(w)"
  3397. alt
  3398. />
  3399. <!-- @click="openVideo(w.works)" -->
  3400. <div
  3401. class="answerScore"
  3402. v-if="w.score"
  3403. @click.stop="openScore(w)"
  3404. :class="{
  3405. rightW:
  3406. w.userid == userid ||
  3407. tType == 1 ||
  3408. tType == 4 ||
  3409. w.ateacher == userid
  3410. }"
  3411. >
  3412. {{ JSON.parse(w.score).wScore }}分
  3413. </div>
  3414. <div
  3415. class="answerScore"
  3416. @click.stop="openScore(w)"
  3417. v-else-if="courseDetail.userid == userid"
  3418. :class="{
  3419. rightW:
  3420. w.userid == userid ||
  3421. tType == 1 ||
  3422. tType == 4 ||
  3423. w.ateacher == userid
  3424. }"
  3425. >
  3426. 评分
  3427. </div>
  3428. <img
  3429. class="deleteImg"
  3430. src="../../assets/deleteworks.png"
  3431. v-if="
  3432. w.userid == userid || tType == 1 || tType == 4
  3433. "
  3434. @click.stop="deleteWorks(w.wid)"
  3435. alt
  3436. />
  3437. </div>
  3438. <div class="workImg" v-if="w.type == 12">
  3439. <img
  3440. style="cursor: pointer"
  3441. :src="word2"
  3442. @click="downloadFile(w.works)"
  3443. alt
  3444. />
  3445. <!-- @click="openVideo(w.works)" -->
  3446. <div
  3447. class="answerScore"
  3448. v-if="w.score"
  3449. @click.stop="openScore(w)"
  3450. :class="{
  3451. rightW:
  3452. w.userid == userid ||
  3453. tType == 1 ||
  3454. tType == 4 ||
  3455. w.ateacher == userid
  3456. }"
  3457. >
  3458. {{ JSON.parse(w.score).wScore }}分
  3459. </div>
  3460. <div
  3461. class="answerScore"
  3462. @click.stop="openScore(w)"
  3463. v-else-if="courseDetail.userid == userid"
  3464. :class="{
  3465. rightW:
  3466. w.userid == userid ||
  3467. tType == 1 ||
  3468. tType == 4 ||
  3469. w.ateacher == userid
  3470. }"
  3471. >
  3472. 评分
  3473. </div>
  3474. <img
  3475. class="deleteImg"
  3476. src="../../assets/deleteworks.png"
  3477. v-if="
  3478. w.userid == userid || tType == 1 || tType == 4
  3479. "
  3480. @click.stop="deleteWorks(w.wid)"
  3481. alt
  3482. />
  3483. </div>
  3484. <div class="comment" style="min-width: 200px">
  3485. <div class="worksName">
  3486. <div>{{ w.sName }}</div>
  3487. </div>
  3488. <div class="commentList">
  3489. <div class="commentList">
  3490. <div
  3491. class="commentImg"
  3492. @click="
  3493. isLikes(
  3494. w.wid,
  3495. userid,
  3496. 1,
  3497. null,
  3498. w.isLikes,
  3499. w.sName
  3500. )
  3501. "
  3502. >
  3503. <img
  3504. :src="w.isLikes == true ? likes : noLikes"
  3505. alt=""
  3506. />
  3507. </div>
  3508. <div>{{ w.likesCount }}</div>
  3509. </div>
  3510. <div
  3511. class="commentList"
  3512. style="margin-right: 15px"
  3513. >
  3514. <div
  3515. class="commentImg"
  3516. @click="
  3517. commentOther(
  3518. w,
  3519. toolIndex,
  3520. wIndex,
  3521. null,
  3522. g.id
  3523. )
  3524. "
  3525. >
  3526. <img
  3527. src="../../assets/icon/comment/comment.png"
  3528. alt=""
  3529. />
  3530. </div>
  3531. <div>{{ w.commentCount }}</div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. <div class="group_work" v-else>暂无提交作业</div>
  3538. </div>
  3539. </div>
  3540. <div
  3541. :id="'tool-' + toolIndex"
  3542. :style="{
  3543. height:
  3544. isCloseList[toolIndex].isClose == 1
  3545. ? retrnToolHeight('tool-' + toolIndex)
  3546. : 'auto',
  3547. overflow:
  3548. isCloseList[toolIndex].isClose == 1
  3549. ? 'hidden'
  3550. : 'unset'
  3551. }"
  3552. class="worksDetailBox"
  3553. v-if="
  3554. worksStudent.length &&
  3555. worksStudent[toolIndex].length > 0
  3556. "
  3557. >
  3558. <div
  3559. class="works"
  3560. style="
  3561. width: 200px;
  3562. height: 140px;
  3563. margin: 10px 10px 10px 0;
  3564. border-radius: 15px;
  3565. box-shadow: 0 0 6px 1px #dfdada;
  3566. "
  3567. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3568. :key="wIndex"
  3569. :class="w.type == 1 ? 'isTypeOne' : ''"
  3570. >
  3571. <div class="workImg" v-if="w.type == 0">
  3572. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3573. <img
  3574. :src="w.works"
  3575. @click="previewImg(w.works, w)"
  3576. alt
  3577. />
  3578. <div
  3579. class="answerScore"
  3580. v-if="w.score"
  3581. @click.stop="openScore(w)"
  3582. :class="{
  3583. rightW:
  3584. w.userid == userid ||
  3585. tType == 1 ||
  3586. tType == 4 ||
  3587. w.ateacher == userid
  3588. }"
  3589. >
  3590. {{ JSON.parse(w.score).wScore }}分
  3591. </div>
  3592. <div
  3593. class="answerScore"
  3594. @click.stop="openScore(w)"
  3595. v-else-if="
  3596. courseDetail.userid == userid &&
  3597. courseDetail.state != 5 &&
  3598. chapInfoList[courseType].chapterInfo[0]
  3599. .taskJson[taskCount].eList &&
  3600. chapInfoList[courseType].chapterInfo[0]
  3601. .taskJson[taskCount].eList.length
  3602. "
  3603. :class="{
  3604. rightW:
  3605. w.userid == userid ||
  3606. tType == 1 ||
  3607. tType == 4 ||
  3608. w.ateacher == userid
  3609. }"
  3610. >
  3611. 评分
  3612. </div>
  3613. <!-- <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"> -->
  3614. <div
  3615. v-else-if="
  3616. (courseDetail.userid == userid ||
  3617. (courseDetail.course_teacher &&
  3618. courseDetail.course_teacher.indexOf(userid) !=
  3619. -1) ||
  3620. (w.userid == userid && sIsOpen)) &&
  3621. courseDetail.state == 5 &&
  3622. ((chapInfoList[courseType].chapterInfo[0]
  3623. .taskJson[taskCount].eList &&
  3624. chapInfoList[courseType].chapterInfo[0]
  3625. .taskJson[taskCount].eList.length) ||
  3626. (tool.eList && tool.eList.length))
  3627. "
  3628. >
  3629. <el-popover
  3630. placement="top"
  3631. width="318"
  3632. :disabled="AIloading[toolIndex][wIndex].loading"
  3633. trigger="hover"
  3634. >
  3635. <markScore
  3636. :loading="AIloading[toolIndex][wIndex].loading"
  3637. :markScoreVisible="markScoreVisible"
  3638. :ref="`markSco${toolIndex}${wIndex}`"
  3639. @updateLoading="updateLoading"
  3640. @updateDocSco="updateDocSco"
  3641. @refreshOther="refreshOther"
  3642. @markScoreDig="markScoreDig"
  3643. :tool="tool"
  3644. :wIndex="wIndex"
  3645. :scoCon="w"
  3646. :toolIndex="toolIndex"
  3647. :key="refreshKey"
  3648. :stage="courseType"
  3649. :task="taskCount"
  3650. :scoTit="
  3651. chapInfoList[courseType].chapterInfo[0]
  3652. .taskJson[taskCount].eList
  3653. "
  3654. >
  3655. </markScore>
  3656. <div
  3657. class="answerScore"
  3658. @click="
  3659. markScoreDig2(
  3660. w.sName,
  3661. worksStudent,
  3662. w.userid,
  3663. toolIndex,
  3664. chapInfoList[courseType].chapterInfo[0]
  3665. .taskJson[taskCount].eList,
  3666. AIloading[toolIndex][wIndex].loading,
  3667. tool
  3668. )
  3669. "
  3670. slot="reference"
  3671. :class="{
  3672. rightW:
  3673. w.userid == userid ||
  3674. tType == 1 ||
  3675. tType == 4 ||
  3676. w.ateacher == userid
  3677. }"
  3678. >
  3679. <span v-if="AIloading[toolIndex][wIndex].sco">
  3680. {{
  3681. AIloading[toolIndex][wIndex].loading
  3682. ? "评分中"
  3683. : AIloading[toolIndex][wIndex].sco + "分"
  3684. }}
  3685. </span>
  3686. <span v-else>
  3687. {{
  3688. AIloading[toolIndex][wIndex].loading
  3689. ? "评分中"
  3690. : "评分"
  3691. }}
  3692. </span>
  3693. </div>
  3694. </el-popover>
  3695. </div>
  3696. <img
  3697. class="deleteImg"
  3698. src="../../assets/deleteworks.png"
  3699. v-if="
  3700. w.userid == userid || tType == 1 || tType == 4
  3701. "
  3702. @click.stop="deleteWorks(w.wid)"
  3703. alt
  3704. />
  3705. </div>
  3706. <div class="workImg" v-if="w.type == 1">
  3707. <img :src="word" @click="openFile(w.works)" alt />
  3708. <!-- @click="openFile(w.works)" -->
  3709. <div
  3710. class="answerScore"
  3711. v-if="w.score"
  3712. @click.stop="openScore(w)"
  3713. :class="{
  3714. rightW:
  3715. w.userid == userid ||
  3716. tType == 1 ||
  3717. tType == 4 ||
  3718. w.ateacher == userid
  3719. }"
  3720. >
  3721. {{ JSON.parse(w.score).wScore }}分
  3722. </div>
  3723. <div
  3724. class="answerScore"
  3725. @click.stop="openScore(w)"
  3726. v-else-if="
  3727. courseDetail.userid == userid &&
  3728. courseDetail.state != 5 &&
  3729. chapInfoList[courseType].chapterInfo[0]
  3730. .taskJson[taskCount].eList &&
  3731. chapInfoList[courseType].chapterInfo[0]
  3732. .taskJson[taskCount].eList.length
  3733. "
  3734. :class="{
  3735. rightW:
  3736. w.userid == userid ||
  3737. tType == 1 ||
  3738. tType == 4 ||
  3739. w.ateacher == userid
  3740. }"
  3741. >
  3742. 评分
  3743. </div>
  3744. <!-- <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"> -->
  3745. <div
  3746. v-else-if="
  3747. (courseDetail.userid == userid ||
  3748. (courseDetail.course_teacher &&
  3749. courseDetail.course_teacher.indexOf(userid) !=
  3750. -1) ||
  3751. (w.userid == userid && sIsOpen)) &&
  3752. courseDetail.state == 5 &&
  3753. ((chapInfoList[courseType].chapterInfo[0]
  3754. .taskJson[taskCount].eList &&
  3755. chapInfoList[courseType].chapterInfo[0]
  3756. .taskJson[taskCount].eList.length) ||
  3757. (tool.eList && tool.eList.length))
  3758. "
  3759. >
  3760. <el-popover
  3761. placement="top"
  3762. width="318"
  3763. :disabled="AIloading[toolIndex][wIndex].loading"
  3764. trigger="hover"
  3765. >
  3766. <markScore
  3767. :loading="AIloading[toolIndex][wIndex].loading"
  3768. :markScoreVisible="markScoreVisible"
  3769. :ref="`markSco${toolIndex}${wIndex}`"
  3770. @updateLoading="updateLoading"
  3771. @updateDocSco="updateDocSco"
  3772. @refreshOther="refreshOther"
  3773. @markScoreDig="markScoreDig"
  3774. :tool="tool"
  3775. :wIndex="wIndex"
  3776. :scoCon="w"
  3777. :toolIndex="toolIndex"
  3778. :key="refreshKey"
  3779. :stage="courseType"
  3780. :task="taskCount"
  3781. :scoTit="
  3782. chapInfoList[courseType].chapterInfo[0]
  3783. .taskJson[taskCount].eList
  3784. "
  3785. >
  3786. </markScore>
  3787. <div
  3788. class="answerScore"
  3789. @click="
  3790. markScoreDig2(
  3791. w.sName,
  3792. worksStudent,
  3793. w.userid,
  3794. toolIndex,
  3795. chapInfoList[courseType].chapterInfo[0]
  3796. .taskJson[taskCount].eList,
  3797. AIloading[toolIndex][wIndex].loading,
  3798. tool
  3799. )
  3800. "
  3801. slot="reference"
  3802. :class="{
  3803. rightW:
  3804. w.userid == userid ||
  3805. tType == 1 ||
  3806. tType == 4 ||
  3807. w.ateacher == userid
  3808. }"
  3809. >
  3810. <span v-if="AIloading[toolIndex][wIndex].sco">
  3811. {{
  3812. AIloading[toolIndex][wIndex].loading
  3813. ? "评分中"
  3814. : AIloading[toolIndex][wIndex].sco + "分"
  3815. }}
  3816. </span>
  3817. <span v-else>
  3818. {{
  3819. AIloading[toolIndex][wIndex].loading
  3820. ? "评分中"
  3821. : "评分"
  3822. }}
  3823. </span>
  3824. </div>
  3825. </el-popover>
  3826. </div>
  3827. <img
  3828. class="deleteImg"
  3829. src="../../assets/deleteworks.png"
  3830. v-if="
  3831. w.userid == userid || tType == 1 || tType == 4
  3832. "
  3833. @click.stop="deleteWorks(w.wid)"
  3834. alt
  3835. />
  3836. </div>
  3837. <div class="workImg" v-if="w.type == 3">
  3838. <img
  3839. style="cursor: pointer"
  3840. :src="video"
  3841. @click="openVideo(w)"
  3842. alt
  3843. />
  3844. <!-- @click="openVideo(w.works)" -->
  3845. <div
  3846. class="answerScore"
  3847. v-if="w.score"
  3848. @click.stop="openScore(w)"
  3849. :class="{
  3850. rightW:
  3851. w.userid == userid ||
  3852. tType == 1 ||
  3853. tType == 4 ||
  3854. w.ateacher == userid
  3855. }"
  3856. >
  3857. {{ JSON.parse(w.score).wScore }}分
  3858. </div>
  3859. <div
  3860. class="answerScore"
  3861. @click.stop="openScore(w)"
  3862. v-else-if="
  3863. courseDetail.userid == userid &&
  3864. courseDetail.state != 5 &&
  3865. chapInfoList[courseType].chapterInfo[0]
  3866. .taskJson[taskCount].eList &&
  3867. chapInfoList[courseType].chapterInfo[0]
  3868. .taskJson[taskCount].eList.length
  3869. "
  3870. :class="{
  3871. rightW:
  3872. w.userid == userid ||
  3873. tType == 1 ||
  3874. tType == 4 ||
  3875. w.ateacher == userid
  3876. }"
  3877. >
  3878. 评分
  3879. </div>
  3880. <!-- <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"> -->
  3881. <div
  3882. v-else-if="
  3883. (courseDetail.userid == userid ||
  3884. (courseDetail.course_teacher &&
  3885. courseDetail.course_teacher.indexOf(userid) !=
  3886. -1) ||
  3887. (w.userid == userid && sIsOpen)) &&
  3888. courseDetail.state == 5 &&
  3889. ((chapInfoList[courseType].chapterInfo[0]
  3890. .taskJson[taskCount].eList &&
  3891. chapInfoList[courseType].chapterInfo[0]
  3892. .taskJson[taskCount].eList.length) ||
  3893. (tool.eList && tool.eList.length))
  3894. "
  3895. >
  3896. <el-popover
  3897. placement="top"
  3898. width="318"
  3899. :disabled="AIloading[toolIndex][wIndex].loading"
  3900. trigger="hover"
  3901. >
  3902. <markScore
  3903. :loading="AIloading[toolIndex][wIndex].loading"
  3904. :markScoreVisible="markScoreVisible"
  3905. :ref="`markSco${toolIndex}${wIndex}`"
  3906. @updateLoading="updateLoading"
  3907. @updateDocSco="updateDocSco"
  3908. @refreshOther="refreshOther"
  3909. @markScoreDig="markScoreDig"
  3910. :tool="tool"
  3911. :wIndex="wIndex"
  3912. :scoCon="w"
  3913. :toolIndex="toolIndex"
  3914. :key="refreshKey"
  3915. :stage="courseType"
  3916. :task="taskCount"
  3917. :scoTit="
  3918. chapInfoList[courseType].chapterInfo[0]
  3919. .taskJson[taskCount].eList
  3920. "
  3921. >
  3922. </markScore>
  3923. <div
  3924. class="answerScore"
  3925. @click="
  3926. markScoreDig2(
  3927. w.sName,
  3928. worksStudent,
  3929. w.userid,
  3930. toolIndex,
  3931. chapInfoList[courseType].chapterInfo[0]
  3932. .taskJson[taskCount].eList,
  3933. AIloading[toolIndex][wIndex].loading,
  3934. tool
  3935. )
  3936. "
  3937. slot="reference"
  3938. :class="{
  3939. rightW:
  3940. w.userid == userid ||
  3941. tType == 1 ||
  3942. tType == 4 ||
  3943. w.ateacher == userid
  3944. }"
  3945. >
  3946. <span v-if="AIloading[toolIndex][wIndex].sco">
  3947. {{
  3948. AIloading[toolIndex][wIndex].loading
  3949. ? "评分中"
  3950. : AIloading[toolIndex][wIndex].sco + "分"
  3951. }}
  3952. </span>
  3953. <span v-else>
  3954. {{
  3955. AIloading[toolIndex][wIndex].loading
  3956. ? "评分中"
  3957. : "评分"
  3958. }}
  3959. </span>
  3960. </div>
  3961. </el-popover>
  3962. </div>
  3963. <img
  3964. class="deleteImg"
  3965. src="../../assets/deleteworks.png"
  3966. v-if="
  3967. w.userid == userid || tType == 1 || tType == 4
  3968. "
  3969. @click.stop="deleteWorks(w.wid)"
  3970. alt
  3971. />
  3972. </div>
  3973. <div class="workImg" v-if="w.type == 12">
  3974. <img
  3975. style="cursor: pointer"
  3976. :src="word2"
  3977. @click="downloadFile(w.works)"
  3978. alt
  3979. />
  3980. <!-- @click="openVideo(w.works)" -->
  3981. <div
  3982. class="answerScore"
  3983. v-if="w.score"
  3984. @click.stop="openScore(w)"
  3985. :class="{
  3986. rightW:
  3987. w.userid == userid ||
  3988. tType == 1 ||
  3989. tType == 4 ||
  3990. w.ateacher == userid
  3991. }"
  3992. >
  3993. {{ JSON.parse(w.score).wScore }}分
  3994. </div>
  3995. <div
  3996. class="answerScore"
  3997. @click.stop="openScore(w)"
  3998. v-else-if="
  3999. courseDetail.userid == userid &&
  4000. courseDetail.state != 5 &&
  4001. chapInfoList[courseType].chapterInfo[0]
  4002. .taskJson[taskCount].eList &&
  4003. chapInfoList[courseType].chapterInfo[0]
  4004. .taskJson[taskCount].eList.length
  4005. "
  4006. :class="{
  4007. rightW:
  4008. w.userid == userid ||
  4009. tType == 1 ||
  4010. tType == 4 ||
  4011. w.ateacher == userid
  4012. }"
  4013. >
  4014. 评分
  4015. </div>
  4016. <!-- <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"> -->
  4017. <div
  4018. v-else-if="
  4019. (courseDetail.userid == userid ||
  4020. (courseDetail.course_teacher &&
  4021. courseDetail.course_teacher.indexOf(userid) !=
  4022. -1) ||
  4023. (w.userid == userid && sIsOpen)) &&
  4024. courseDetail.state == 5 &&
  4025. ((chapInfoList[courseType].chapterInfo[0]
  4026. .taskJson[taskCount].eList &&
  4027. chapInfoList[courseType].chapterInfo[0]
  4028. .taskJson[taskCount].eList.length) ||
  4029. (tool.eList && tool.eList.length))
  4030. "
  4031. >
  4032. <el-popover
  4033. placement="top"
  4034. width="318"
  4035. :disabled="AIloading[toolIndex][wIndex].loading"
  4036. trigger="hover"
  4037. >
  4038. <markScore
  4039. :loading="AIloading[toolIndex][wIndex].loading"
  4040. :markScoreVisible="markScoreVisible"
  4041. :ref="`markSco${toolIndex}${wIndex}`"
  4042. @updateLoading="updateLoading"
  4043. @updateDocSco="updateDocSco"
  4044. @refreshOther="refreshOther"
  4045. @markScoreDig="markScoreDig"
  4046. :tool="tool"
  4047. :wIndex="wIndex"
  4048. :scoCon="w"
  4049. :toolIndex="toolIndex"
  4050. :key="refreshKey"
  4051. :stage="courseType"
  4052. :task="taskCount"
  4053. :scoTit="
  4054. chapInfoList[courseType].chapterInfo[0]
  4055. .taskJson[taskCount].eList
  4056. "
  4057. >
  4058. </markScore>
  4059. <div
  4060. class="answerScore"
  4061. @click="
  4062. markScoreDig2(
  4063. w.sName,
  4064. worksStudent,
  4065. w.userid,
  4066. toolIndex,
  4067. chapInfoList[courseType].chapterInfo[0]
  4068. .taskJson[taskCount].eList,
  4069. AIloading[toolIndex][wIndex].loading,
  4070. tool
  4071. )
  4072. "
  4073. slot="reference"
  4074. :class="{
  4075. rightW:
  4076. w.userid == userid ||
  4077. tType == 1 ||
  4078. tType == 4 ||
  4079. w.ateacher == userid
  4080. }"
  4081. >
  4082. <span v-if="AIloading[toolIndex][wIndex].sco">
  4083. {{
  4084. AIloading[toolIndex][wIndex].loading
  4085. ? "评分中"
  4086. : AIloading[toolIndex][wIndex].sco + "分"
  4087. }}
  4088. </span>
  4089. <span v-else>
  4090. {{
  4091. AIloading[toolIndex][wIndex].loading
  4092. ? "评分中"
  4093. : "评分"
  4094. }}
  4095. </span>
  4096. </div>
  4097. </el-popover>
  4098. </div>
  4099. <img
  4100. class="deleteImg"
  4101. src="../../assets/deleteworks.png"
  4102. v-if="
  4103. w.userid == userid || tType == 1 || tType == 4
  4104. "
  4105. @click.stop="deleteWorks(w.wid)"
  4106. alt
  4107. />
  4108. </div>
  4109. <div class="comment" style="min-width: 200px">
  4110. <div class="worksName">
  4111. <div>{{ w.sName }}</div>
  4112. </div>
  4113. <div class="commentList">
  4114. <div class="commentList">
  4115. <div
  4116. class="commentImg"
  4117. @click="
  4118. isLikes(
  4119. w.wid,
  4120. userid,
  4121. 1,
  4122. null,
  4123. w.isLikes,
  4124. w.sName
  4125. )
  4126. "
  4127. >
  4128. <img
  4129. :src="w.isLikes == true ? likes : noLikes"
  4130. alt=""
  4131. />
  4132. </div>
  4133. <div>{{ w.likesCount }}</div>
  4134. </div>
  4135. <div class="commentList" style="margin-right: 15px">
  4136. <div
  4137. class="commentImg"
  4138. @click="commentOther(w, toolIndex, wIndex)"
  4139. >
  4140. <img
  4141. src="../../assets/icon/comment/comment.png"
  4142. alt=""
  4143. />
  4144. </div>
  4145. <div>{{ w.commentCount }}</div>
  4146. </div>
  4147. </div>
  4148. </div>
  4149. </div>
  4150. </div>
  4151. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4152. 未提交
  4153. </div>
  4154. <div
  4155. class="noWorksS"
  4156. v-if="noWorksS && noWorksS[toolIndex].length"
  4157. >
  4158. <div
  4159. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4160. :key="sIndex"
  4161. class="noWorksName"
  4162. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4163. >
  4164. <el-tooltip
  4165. effect="dark"
  4166. :content="s.student"
  4167. placement="top"
  4168. >
  4169. <span>{{ s.student }}</span>
  4170. </el-tooltip>
  4171. </div>
  4172. </div>
  4173. </div>
  4174. <div
  4175. v-if="
  4176. tType &&
  4177. ((tType == 2 && sIsOpen == true) ||
  4178. tType == 1 ||
  4179. tType == 4) &&
  4180. tool.tool.indexOf(70) != -1
  4181. "
  4182. class="worksBox"
  4183. >
  4184. <div
  4185. class="zuoyeYulan"
  4186. v-if="
  4187. worksStudent.length &&
  4188. worksStudent[toolIndex].length > 0
  4189. "
  4190. >
  4191. <div class="worksTop">
  4192. <div>作业预览</div>
  4193. <div
  4194. class="corOpen"
  4195. @click="contract(toolIndex)"
  4196. v-if="
  4197. isCloseList[toolIndex].isCloseBoolean &&
  4198. isCloseList[toolIndex].isClose == 0
  4199. "
  4200. >
  4201. 折叠
  4202. </div>
  4203. <div
  4204. class="corOpen"
  4205. @click="contract(toolIndex)"
  4206. v-if="isCloseList[toolIndex].isClose == 1"
  4207. >
  4208. 展开
  4209. </div>
  4210. </div>
  4211. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4212. </div>
  4213. <div
  4214. :id="'tool-' + toolIndex"
  4215. :style="{
  4216. height:
  4217. isCloseList[toolIndex].isClose == 1
  4218. ? retrnToolHeight('tool-' + toolIndex)
  4219. : 'auto',
  4220. overflow:
  4221. isCloseList[toolIndex].isClose == 1
  4222. ? 'hidden'
  4223. : 'unset'
  4224. }"
  4225. class="worksDetailBox"
  4226. v-if="
  4227. worksStudent.length &&
  4228. worksStudent[toolIndex].length > 0
  4229. "
  4230. >
  4231. <div
  4232. class="works"
  4233. style="
  4234. width: 200px;
  4235. height: 140px;
  4236. margin: 10px 10px 10px 0;
  4237. border-radius: 15px;
  4238. box-shadow: 0 0 6px 1px #dfdada;
  4239. "
  4240. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4241. :key="wIndex"
  4242. :class="w.type == 1 ? 'isTypeOne' : ''"
  4243. >
  4244. <div
  4245. class="workImg"
  4246. @click.stop="openScore(w, toolIndex)"
  4247. >
  4248. <img :src="word" alt />
  4249. <img
  4250. class="deleteImg"
  4251. src="../../assets/deleteworks.png"
  4252. v-if="
  4253. w.userid == userid || tType == 1 || tType == 4
  4254. "
  4255. @click.stop="deleteWorks(w.wid)"
  4256. alt
  4257. />
  4258. </div>
  4259. <div class="comment" style="min-width: 200px">
  4260. <div class="worksName">
  4261. <div>{{ w.sName }}</div>
  4262. </div>
  4263. </div>
  4264. </div>
  4265. </div>
  4266. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4267. 未提交
  4268. </div>
  4269. <div
  4270. class="noWorksS"
  4271. v-if="noWorksS && noWorksS[toolIndex].length"
  4272. >
  4273. <div
  4274. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4275. :key="sIndex"
  4276. class="noWorksName"
  4277. >
  4278. <el-tooltip
  4279. effect="dark"
  4280. :content="s.student"
  4281. placement="top"
  4282. >
  4283. <span>{{ s.student }}</span>
  4284. </el-tooltip>
  4285. </div>
  4286. </div>
  4287. </div>
  4288. <div
  4289. v-if="
  4290. tType &&
  4291. tType == 2 &&
  4292. !sIsOpen &&
  4293. tool.tool.indexOf(70) != -1
  4294. "
  4295. class="worksBox"
  4296. >
  4297. <div
  4298. class="zuoyeYulan"
  4299. v-if="workStudent[toolIndex].length > 0"
  4300. >
  4301. <span class="worksTitle">作业预览</span>
  4302. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4303. </div>
  4304. <div
  4305. class="worksDetailBox"
  4306. v-if="workStudent[toolIndex].length > 0"
  4307. >
  4308. <div
  4309. class="works"
  4310. style="
  4311. width: 200px;
  4312. height: 140px;
  4313. margin: 10px 10px 10px 0;
  4314. box-shadow: 0 0 6px 1px #dfdada;
  4315. "
  4316. v-for="(w, wIndex) in workStudent[toolIndex]"
  4317. :key="wIndex"
  4318. >
  4319. <div
  4320. class="workImg"
  4321. @click.stop="openScore(w, toolIndex)"
  4322. >
  4323. <img :src="word" alt />
  4324. <img
  4325. class="deleteImg"
  4326. src="../../assets/deleteworks.png"
  4327. v-if="
  4328. w.userid == userid || tType == 1 || tType == 4
  4329. "
  4330. @click.stop="deleteWorks(w.wid)"
  4331. alt
  4332. />
  4333. </div>
  4334. <div class="worksName">
  4335. <div>{{ w.sName }}</div>
  4336. </div>
  4337. </div>
  4338. </div>
  4339. </div>
  4340. <div
  4341. v-if="
  4342. tType &&
  4343. ((tType == 2 && sIsOpen == true) ||
  4344. tType == 1 ||
  4345. tType == 4) &&
  4346. tool.tool.indexOf(32) != -1
  4347. "
  4348. class="worksBox"
  4349. >
  4350. <div
  4351. class="zuoyeYulan"
  4352. v-if="
  4353. worksStudent.length &&
  4354. worksStudent[toolIndex].length > 0
  4355. "
  4356. >
  4357. <div class="worksTop">
  4358. <div>作业预览</div>
  4359. <div
  4360. class="corOpen"
  4361. @click="contract(toolIndex)"
  4362. v-if="
  4363. isCloseList[toolIndex].isCloseBoolean &&
  4364. isCloseList[toolIndex].isClose == 0
  4365. "
  4366. >
  4367. 折叠
  4368. </div>
  4369. <div
  4370. class="corOpen"
  4371. @click="contract(toolIndex)"
  4372. v-if="isCloseList[toolIndex].isClose == 1"
  4373. >
  4374. 展开
  4375. </div>
  4376. </div>
  4377. </div>
  4378. <div
  4379. :id="'tool-' + toolIndex"
  4380. :style="{
  4381. height:
  4382. isCloseList[toolIndex].isClose == 1
  4383. ? retrnToolHeight('tool-' + toolIndex)
  4384. : 'auto',
  4385. overflow:
  4386. isCloseList[toolIndex].isClose == 1
  4387. ? 'hidden'
  4388. : 'unset'
  4389. }"
  4390. class="worksDetailBox"
  4391. v-if="
  4392. worksStudent.length &&
  4393. worksStudent[toolIndex].length > 0
  4394. "
  4395. >
  4396. <div
  4397. class="works"
  4398. style="
  4399. width: 200px;
  4400. height: 140px;
  4401. margin: 10px 10px 10px 0;
  4402. border-radius: 15px;
  4403. box-shadow: 0 0 6px 1px #dfdada;
  4404. "
  4405. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4406. :key="wIndex"
  4407. :class="w.type == 1 ? 'isTypeOne' : ''"
  4408. >
  4409. <div class="workImg">
  4410. <img
  4411. :src="word2"
  4412. @click="downloadFile(w.works)"
  4413. alt
  4414. />
  4415. <div
  4416. class="answerScore"
  4417. v-if="w.score"
  4418. @click.stop="openScore(w)"
  4419. :class="{
  4420. rightW:
  4421. w.userid == userid ||
  4422. tType == 1 ||
  4423. tType == 4 ||
  4424. w.ateacher == userid
  4425. }"
  4426. >
  4427. {{ JSON.parse(w.score).wScore }}分
  4428. </div>
  4429. <div
  4430. class="answerScore"
  4431. @click.stop="openScore(w)"
  4432. v-else-if="courseDetail.userid == userid"
  4433. :class="{
  4434. rightW:
  4435. w.userid == userid ||
  4436. tType == 1 ||
  4437. tType == 4 ||
  4438. w.ateacher == userid
  4439. }"
  4440. >
  4441. 评分
  4442. </div>
  4443. <img
  4444. class="deleteImg"
  4445. src="../../assets/deleteworks.png"
  4446. v-if="
  4447. w.userid == userid || tType == 1 || tType == 4
  4448. "
  4449. @click.stop="deleteWorks(w.wid)"
  4450. alt
  4451. />
  4452. </div>
  4453. <div class="comment" style="min-width: 200px">
  4454. <div class="worksName">
  4455. <div>{{ w.sName }}</div>
  4456. </div>
  4457. <div class="commentList">
  4458. <div class="commentList">
  4459. <div
  4460. class="commentImg"
  4461. @click="
  4462. isLikes(
  4463. w.wid,
  4464. userid,
  4465. 1,
  4466. null,
  4467. w.isLikes,
  4468. w.sName
  4469. )
  4470. "
  4471. >
  4472. <img
  4473. :src="w.isLikes == true ? likes : noLikes"
  4474. alt=""
  4475. />
  4476. </div>
  4477. <div>{{ w.likesCount }}</div>
  4478. </div>
  4479. <div class="commentList" style="margin-right: 15px">
  4480. <div
  4481. class="commentImg"
  4482. @click="commentOther(w, toolIndex, wIndex)"
  4483. >
  4484. <img
  4485. src="../../assets/icon/comment/comment.png"
  4486. alt=""
  4487. />
  4488. </div>
  4489. <div>{{ w.commentCount }}</div>
  4490. </div>
  4491. </div>
  4492. </div>
  4493. </div>
  4494. </div>
  4495. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4496. 未提交
  4497. </div>
  4498. <div
  4499. class="noWorksS"
  4500. v-if="noWorksS && noWorksS[toolIndex].length"
  4501. >
  4502. <div
  4503. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4504. :key="sIndex"
  4505. class="noWorksName"
  4506. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4507. >
  4508. <el-tooltip
  4509. effect="dark"
  4510. :content="s.student"
  4511. placement="top"
  4512. >
  4513. <span>{{ s.student }}</span>
  4514. </el-tooltip>
  4515. </div>
  4516. </div>
  4517. </div>
  4518. <div
  4519. v-if="
  4520. tType &&
  4521. ((tType == 2 && sIsOpen == true) ||
  4522. tType == 1 ||
  4523. tType == 4) &&
  4524. tool.tool.indexOf(57) != -1
  4525. "
  4526. class="worksBox"
  4527. >
  4528. <div
  4529. class="zuoyeYulan"
  4530. v-if="
  4531. worksStudent.length &&
  4532. worksStudent[toolIndex].length > 0
  4533. "
  4534. >
  4535. <div class="worksTop">
  4536. <div>作业预览</div>
  4537. <div
  4538. class="corOpen"
  4539. @click="contract(toolIndex)"
  4540. v-if="
  4541. isCloseList[toolIndex].isCloseBoolean &&
  4542. isCloseList[toolIndex].isClose == 0
  4543. "
  4544. >
  4545. 折叠
  4546. </div>
  4547. <div
  4548. class="corOpen"
  4549. @click="contract(toolIndex)"
  4550. v-if="isCloseList[toolIndex].isClose == 1"
  4551. >
  4552. 展开
  4553. </div>
  4554. </div>
  4555. </div>
  4556. <div
  4557. :id="'tool-' + toolIndex"
  4558. :style="{
  4559. height:
  4560. isCloseList[toolIndex].isClose == 1
  4561. ? retrnToolHeight('tool-' + toolIndex)
  4562. : 'auto',
  4563. overflow:
  4564. isCloseList[toolIndex].isClose == 1
  4565. ? 'hidden'
  4566. : 'unset'
  4567. }"
  4568. class="worksDetailBox"
  4569. v-if="
  4570. worksStudent.length &&
  4571. worksStudent[toolIndex].length > 0
  4572. "
  4573. >
  4574. <div
  4575. class="works"
  4576. style="
  4577. width: 200px;
  4578. height: 140px;
  4579. margin: 10px 10px 10px 0;
  4580. border-radius: 15px;
  4581. box-shadow: 0 0 6px 1px #dfdada;
  4582. "
  4583. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4584. :key="wIndex"
  4585. :class="w.type == 1 ? 'isTypeOne' : ''"
  4586. >
  4587. <div class="workImg">
  4588. <img
  4589. :src="word2"
  4590. @click="downloadFile(w.works)"
  4591. v-if="w.type == 12"
  4592. alt
  4593. />
  4594. <img
  4595. :src="word2"
  4596. @click="
  4597. openCocoPi(57, toolIndex, w.userid, w.sName)
  4598. "
  4599. v-else-if="w.type == 15"
  4600. alt
  4601. />
  4602. <div
  4603. class="answerScore"
  4604. v-if="w.score"
  4605. @click.stop="openScore(w)"
  4606. :class="{
  4607. rightW:
  4608. w.userid == userid ||
  4609. tType == 1 ||
  4610. tType == 4 ||
  4611. w.ateacher == userid
  4612. }"
  4613. >
  4614. {{ JSON.parse(w.score).wScore }}分
  4615. </div>
  4616. <div
  4617. class="answerScore"
  4618. @click.stop="openScore(w)"
  4619. v-else-if="
  4620. courseDetail.userid == userid &&
  4621. courseDetail.state != 5 &&
  4622. chapInfoList[courseType].chapterInfo[0]
  4623. .taskJson[taskCount].eList &&
  4624. chapInfoList[courseType].chapterInfo[0]
  4625. .taskJson[taskCount].eList.length
  4626. "
  4627. :class="{
  4628. rightW:
  4629. w.userid == userid ||
  4630. tType == 1 ||
  4631. tType == 4 ||
  4632. w.ateacher == userid
  4633. }"
  4634. >
  4635. 评分
  4636. </div>
  4637. <!-- <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"> -->
  4638. <div
  4639. v-else-if="
  4640. (courseDetail.userid == userid ||
  4641. (courseDetail.course_teacher &&
  4642. courseDetail.course_teacher.indexOf(userid) !=
  4643. -1) ||
  4644. (w.userid == userid && sIsOpen)) &&
  4645. courseDetail.state == 5 &&
  4646. ((chapInfoList[courseType].chapterInfo[0]
  4647. .taskJson[taskCount].eList &&
  4648. chapInfoList[courseType].chapterInfo[0]
  4649. .taskJson[taskCount].eList.length) ||
  4650. (tool.eList && tool.eList.length))
  4651. "
  4652. >
  4653. <el-popover
  4654. placement="top"
  4655. width="318"
  4656. :disabled="AIloading[toolIndex][wIndex].loading"
  4657. trigger="hover"
  4658. >
  4659. <markScore
  4660. :loading="AIloading[toolIndex][wIndex].loading"
  4661. :markScoreVisible="markScoreVisible"
  4662. :ref="`markSco${toolIndex}${wIndex}`"
  4663. @updateLoading="updateLoading"
  4664. @updateDocSco="updateDocSco"
  4665. @refreshOther="refreshOther"
  4666. @markScoreDig="markScoreDig"
  4667. :tool="tool"
  4668. :wIndex="wIndex"
  4669. :scoCon="w"
  4670. :toolIndex="toolIndex"
  4671. :key="refreshKey"
  4672. :stage="courseType"
  4673. :task="taskCount"
  4674. :scoTit="
  4675. chapInfoList[courseType].chapterInfo[0]
  4676. .taskJson[taskCount].eList
  4677. "
  4678. >
  4679. </markScore>
  4680. <div
  4681. class="answerScore"
  4682. @click="
  4683. markScoreDig2(
  4684. w.sName,
  4685. worksStudent,
  4686. w.userid,
  4687. toolIndex,
  4688. chapInfoList[courseType].chapterInfo[0]
  4689. .taskJson[taskCount].eList,
  4690. AIloading[toolIndex][wIndex].loading,
  4691. tool
  4692. )
  4693. "
  4694. slot="reference"
  4695. :class="{
  4696. rightW:
  4697. w.userid == userid ||
  4698. tType == 1 ||
  4699. tType == 4 ||
  4700. w.ateacher == userid
  4701. }"
  4702. >
  4703. <span v-if="AIloading[toolIndex][wIndex].sco">
  4704. {{
  4705. AIloading[toolIndex][wIndex].loading
  4706. ? "评分中"
  4707. : AIloading[toolIndex][wIndex].sco + "分"
  4708. }}
  4709. </span>
  4710. <span v-else>
  4711. {{
  4712. AIloading[toolIndex][wIndex].loading
  4713. ? "评分中"
  4714. : "评分"
  4715. }}
  4716. </span>
  4717. </div>
  4718. </el-popover>
  4719. </div>
  4720. <img
  4721. class="deleteImg"
  4722. src="../../assets/deleteworks.png"
  4723. v-if="
  4724. w.userid == userid || tType == 1 || tType == 4
  4725. "
  4726. @click.stop="deleteWorks(w.wid)"
  4727. alt
  4728. />
  4729. </div>
  4730. <div class="comment" style="min-width: 200px">
  4731. <div class="worksName">
  4732. <div>{{ w.sName }}</div>
  4733. </div>
  4734. <div class="commentList">
  4735. <div class="commentList">
  4736. <div
  4737. class="commentImg"
  4738. @click="
  4739. isLikes(
  4740. w.wid,
  4741. userid,
  4742. 1,
  4743. null,
  4744. w.isLikes,
  4745. w.sName
  4746. )
  4747. "
  4748. >
  4749. <img
  4750. :src="w.isLikes == true ? likes : noLikes"
  4751. alt=""
  4752. />
  4753. </div>
  4754. <div>{{ w.likesCount }}</div>
  4755. </div>
  4756. <div class="commentList" style="margin-right: 15px">
  4757. <div
  4758. class="commentImg"
  4759. @click="commentOther(w, toolIndex, wIndex)"
  4760. >
  4761. <img
  4762. src="../../assets/icon/comment/comment.png"
  4763. alt=""
  4764. />
  4765. </div>
  4766. <div>{{ w.commentCount }}</div>
  4767. </div>
  4768. </div>
  4769. </div>
  4770. </div>
  4771. </div>
  4772. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4773. 未提交
  4774. </div>
  4775. <div
  4776. class="noWorksS"
  4777. v-if="noWorksS && noWorksS[toolIndex].length"
  4778. >
  4779. <div
  4780. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4781. :key="sIndex"
  4782. class="noWorksName"
  4783. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4784. >
  4785. <el-tooltip
  4786. effect="dark"
  4787. :content="s.student"
  4788. placement="top"
  4789. >
  4790. <span>{{ s.student }}</span>
  4791. </el-tooltip>
  4792. </div>
  4793. </div>
  4794. </div>
  4795. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4796. <div
  4797. style="display: flex;justify-content: space-between;align-items: center;"
  4798. >
  4799. <div
  4800. class="zuoyeYulan"
  4801. v-if="
  4802. worksStudent.length &&
  4803. worksStudent[toolIndex].length > 0
  4804. "
  4805. >
  4806. <span class="worksTitle">作业预览</span>
  4807. <div
  4808. class="corOpen"
  4809. @click="contract(toolIndex)"
  4810. v-if="
  4811. isCloseList[toolIndex].isCloseBoolean &&
  4812. isCloseList[toolIndex].isClose == 0
  4813. "
  4814. >
  4815. 折叠
  4816. </div>
  4817. <div
  4818. class="corOpen"
  4819. @click="contract(toolIndex)"
  4820. v-if="isCloseList[toolIndex].isClose == 1"
  4821. >
  4822. 展开
  4823. </div>
  4824. </div>
  4825. <div
  4826. style="display: flex;"
  4827. v-if="
  4828. (courseDetail.userid == userid ||
  4829. (courseDetail.course_teacher &&
  4830. courseDetail.course_teacher.indexOf(userid) !=
  4831. -1)) &&
  4832. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4833. taskCount
  4834. ].eList &&
  4835. chapInfoList[courseType].chapterInfo[0].taskJson[
  4836. taskCount
  4837. ].eList.length) ||
  4838. (tool.eList && tool.eList.length)) &&
  4839. courseDetail.state == 5
  4840. "
  4841. >
  4842. <!-- <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 "> -->
  4843. <div
  4844. style="margin-right:10px"
  4845. class="ScoreBtn"
  4846. @click="
  4847. resetLoopEva(
  4848. worksStudent[toolIndex],
  4849. chapInfoList[courseType].chapterInfo[0].taskJson[
  4850. taskCount
  4851. ].eList,
  4852. courseType,
  4853. taskCount,
  4854. toolIndex,
  4855. tool.toolDetail,
  4856. worksStudent
  4857. )
  4858. "
  4859. >
  4860. 一键重置
  4861. </div>
  4862. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4863. <img
  4864. src="../../assets/icon/newIcons/rootImg.png"
  4865. alt=""
  4866. />
  4867. AI评分
  4868. </div>
  4869. <div
  4870. class="ScoreBtn"
  4871. v-else-if="!loopLoading[toolIndex].loading"
  4872. @click="
  4873. loopEva(
  4874. worksStudent[toolIndex],
  4875. chapInfoList[courseType].chapterInfo[0].taskJson[
  4876. taskCount
  4877. ].eList,
  4878. courseType,
  4879. taskCount,
  4880. toolIndex,
  4881. tool.toolDetail,
  4882. chapInfoList[courseType].chapterInfo[0].taskJson[
  4883. taskCount
  4884. ].taskDetail,
  4885. tool
  4886. )
  4887. "
  4888. >
  4889. <img
  4890. src="../../assets/icon/newIcons/rootImg.png"
  4891. alt=""
  4892. />
  4893. AI评分
  4894. </div>
  4895. <div class="ScoreBtn" v-else>
  4896. <img
  4897. src="../../assets/icon/newIcons/rootImg.png"
  4898. alt=""
  4899. />
  4900. 正在评分
  4901. </div>
  4902. </div>
  4903. </div>
  4904. <div
  4905. :id="'tool-' + toolIndex"
  4906. :style="{
  4907. height:
  4908. isCloseList[toolIndex].isClose == 1
  4909. ? retrnToolHeight('tool-' + toolIndex)
  4910. : 'auto',
  4911. overflow:
  4912. isCloseList[toolIndex].isClose == 1
  4913. ? 'hidden'
  4914. : 'unset'
  4915. }"
  4916. class="worksDetailBox"
  4917. v-if="
  4918. worksStudent.length &&
  4919. worksStudent[toolIndex].length > 0
  4920. "
  4921. >
  4922. <div
  4923. class="works"
  4924. style="
  4925. width: 200px;
  4926. height: 140px;
  4927. margin: 10px 10px 10px 0;
  4928. border-radius: 15px;
  4929. box-shadow: 0 0 6px 1px #dfdada;
  4930. "
  4931. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4932. :key="wIndex"
  4933. :class="w.type == 1 ? 'isTypeOne' : ''"
  4934. >
  4935. <div class="workImg" v-if="w.type == 0">
  4936. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4937. <img
  4938. :src="w.works"
  4939. @click="previewImg(w.works, w)"
  4940. alt
  4941. />
  4942. <div
  4943. class="answerScore"
  4944. v-if="w.score"
  4945. @click.stop="openScore(w)"
  4946. :class="{
  4947. rightW:
  4948. w.userid == userid ||
  4949. tType == 1 ||
  4950. tType == 4 ||
  4951. w.ateacher == userid
  4952. }"
  4953. >
  4954. {{ JSON.parse(w.score).wScore }}分
  4955. </div>
  4956. <div
  4957. class="answerScore"
  4958. @click.stop="openScore(w)"
  4959. v-else-if="
  4960. courseDetail.userid == userid &&
  4961. courseDetail.state != 5 &&
  4962. chapInfoList[courseType].chapterInfo[0]
  4963. .taskJson[taskCount].eList &&
  4964. chapInfoList[courseType].chapterInfo[0]
  4965. .taskJson[taskCount].eList.length
  4966. "
  4967. :class="{
  4968. rightW:
  4969. w.userid == userid ||
  4970. tType == 1 ||
  4971. tType == 4 ||
  4972. w.ateacher == userid
  4973. }"
  4974. >
  4975. 评分
  4976. </div>
  4977. <!-- <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"> -->
  4978. <div
  4979. v-else-if="
  4980. (courseDetail.userid == userid ||
  4981. (courseDetail.course_teacher &&
  4982. courseDetail.course_teacher.indexOf(userid) !=
  4983. -1) ||
  4984. (w.userid == userid && sIsOpen)) &&
  4985. courseDetail.state == 5 &&
  4986. ((chapInfoList[courseType].chapterInfo[0]
  4987. .taskJson[taskCount].eList &&
  4988. chapInfoList[courseType].chapterInfo[0]
  4989. .taskJson[taskCount].eList.length) ||
  4990. (tool.eList && tool.eList.length))
  4991. "
  4992. >
  4993. <el-popover
  4994. placement="top"
  4995. width="318"
  4996. :disabled="AIloading[toolIndex][wIndex].loading"
  4997. trigger="hover"
  4998. >
  4999. <markScore
  5000. :loading="AIloading[toolIndex][wIndex].loading"
  5001. :markScoreVisible="markScoreVisible"
  5002. :ref="`markSco${toolIndex}${wIndex}`"
  5003. @updateLoading="updateLoading"
  5004. @updateDocSco="updateDocSco"
  5005. @refreshOther="refreshOther"
  5006. @markScoreDig="markScoreDig"
  5007. :tool="tool"
  5008. :wIndex="wIndex"
  5009. :scoCon="w"
  5010. :toolIndex="toolIndex"
  5011. :key="refreshKey"
  5012. :stage="courseType"
  5013. :task="taskCount"
  5014. :scoTit="
  5015. chapInfoList[courseType].chapterInfo[0]
  5016. .taskJson[taskCount].eList
  5017. "
  5018. >
  5019. </markScore>
  5020. <div
  5021. class="answerScore"
  5022. @click="
  5023. markScoreDig2(
  5024. w.sName,
  5025. worksStudent,
  5026. w.userid,
  5027. toolIndex,
  5028. chapInfoList[courseType].chapterInfo[0]
  5029. .taskJson[taskCount].eList,
  5030. AIloading[toolIndex][wIndex].loading,
  5031. tool
  5032. )
  5033. "
  5034. slot="reference"
  5035. :class="{
  5036. rightW:
  5037. w.userid == userid ||
  5038. tType == 1 ||
  5039. tType == 4 ||
  5040. w.ateacher == userid
  5041. }"
  5042. >
  5043. <span v-if="AIloading[toolIndex][wIndex].sco">
  5044. {{
  5045. AIloading[toolIndex][wIndex].loading
  5046. ? "评分中"
  5047. : AIloading[toolIndex][wIndex].sco + "分"
  5048. }}
  5049. </span>
  5050. <span v-else>
  5051. {{
  5052. AIloading[toolIndex][wIndex].loading
  5053. ? "评分中"
  5054. : "评分"
  5055. }}
  5056. </span>
  5057. </div>
  5058. </el-popover>
  5059. </div>
  5060. <img
  5061. class="deleteImg"
  5062. src="../../assets/deleteworks.png"
  5063. v-if="
  5064. w.userid == userid || tType == 1 || tType == 4
  5065. "
  5066. @click.stop="deleteWorks(w.wid)"
  5067. alt
  5068. />
  5069. </div>
  5070. <div
  5071. class="workImg"
  5072. style="cursor: pointer"
  5073. v-if="w.type == 1"
  5074. >
  5075. <img :src="word" @click="openFile(w.works)" alt />
  5076. <!-- @click="openFile(w.works)" -->
  5077. <div
  5078. class="answerScore"
  5079. v-if="w.score"
  5080. @click.stop="openScore(w)"
  5081. :class="{
  5082. rightW:
  5083. w.userid == userid ||
  5084. tType == 1 ||
  5085. tType == 4 ||
  5086. w.ateacher == userid
  5087. }"
  5088. >
  5089. {{ JSON.parse(w.score).wScore }}分
  5090. </div>
  5091. <div
  5092. class="answerScore"
  5093. @click.stop="openScore(w)"
  5094. v-else-if="
  5095. courseDetail.userid == userid &&
  5096. courseDetail.state != 5 &&
  5097. chapInfoList[courseType].chapterInfo[0]
  5098. .taskJson[taskCount].eList &&
  5099. chapInfoList[courseType].chapterInfo[0]
  5100. .taskJson[taskCount].eList.length
  5101. "
  5102. :class="{
  5103. rightW:
  5104. w.userid == userid ||
  5105. tType == 1 ||
  5106. tType == 4 ||
  5107. w.ateacher == userid
  5108. }"
  5109. >
  5110. 评分
  5111. </div>
  5112. <!-- <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"> -->
  5113. <div
  5114. v-else-if="
  5115. (courseDetail.userid == userid ||
  5116. (courseDetail.course_teacher &&
  5117. courseDetail.course_teacher.indexOf(userid) !=
  5118. -1) ||
  5119. (w.userid == userid && sIsOpen)) &&
  5120. courseDetail.state == 5 &&
  5121. ((chapInfoList[courseType].chapterInfo[0]
  5122. .taskJson[taskCount].eList &&
  5123. chapInfoList[courseType].chapterInfo[0]
  5124. .taskJson[taskCount].eList.length) ||
  5125. (tool.eList && tool.eList.length))
  5126. "
  5127. >
  5128. <el-popover
  5129. placement="top"
  5130. width="318"
  5131. :disabled="AIloading[toolIndex][wIndex].loading"
  5132. trigger="hover"
  5133. >
  5134. <markScore
  5135. :loading="AIloading[toolIndex][wIndex].loading"
  5136. :markScoreVisible="markScoreVisible"
  5137. :ref="`markSco${toolIndex}${wIndex}`"
  5138. @updateLoading="updateLoading"
  5139. @updateDocSco="updateDocSco"
  5140. @refreshOther="refreshOther"
  5141. @markScoreDig="markScoreDig"
  5142. :tool="tool"
  5143. :wIndex="wIndex"
  5144. :scoCon="w"
  5145. :toolIndex="toolIndex"
  5146. :key="refreshKey"
  5147. :stage="courseType"
  5148. :task="taskCount"
  5149. :scoTit="
  5150. chapInfoList[courseType].chapterInfo[0]
  5151. .taskJson[taskCount].eList
  5152. "
  5153. >
  5154. </markScore>
  5155. <div
  5156. class="answerScore"
  5157. @click="
  5158. markScoreDig2(
  5159. w.sName,
  5160. worksStudent,
  5161. w.userid,
  5162. toolIndex,
  5163. chapInfoList[courseType].chapterInfo[0]
  5164. .taskJson[taskCount].eList,
  5165. AIloading[toolIndex][wIndex].loading,
  5166. tool
  5167. )
  5168. "
  5169. slot="reference"
  5170. :class="{
  5171. rightW:
  5172. w.userid == userid ||
  5173. tType == 1 ||
  5174. tType == 4 ||
  5175. w.ateacher == userid
  5176. }"
  5177. >
  5178. <span v-if="AIloading[toolIndex][wIndex].sco">
  5179. {{
  5180. AIloading[toolIndex][wIndex].loading
  5181. ? "评分中"
  5182. : AIloading[toolIndex][wIndex].sco + "分"
  5183. }}
  5184. </span>
  5185. <span v-else>
  5186. {{
  5187. AIloading[toolIndex][wIndex].loading
  5188. ? "评分中"
  5189. : "评分"
  5190. }}
  5191. </span>
  5192. </div>
  5193. </el-popover>
  5194. </div>
  5195. <img
  5196. class="deleteImg"
  5197. src="../../assets/deleteworks.png"
  5198. v-if="
  5199. w.userid == userid || tType == 1 || tType == 4
  5200. "
  5201. @click.stop="deleteWorks(w.wid)"
  5202. alt
  5203. />
  5204. </div>
  5205. <div class="workImg" v-if="w.type == 3">
  5206. <img
  5207. style="cursor: pointer"
  5208. :src="video"
  5209. @click="openVideo(w)"
  5210. alt
  5211. />
  5212. <!-- @click="openVideo(w.works)" -->
  5213. <div
  5214. class="answerScore"
  5215. v-if="w.score"
  5216. @click.stop="openScore(w)"
  5217. :class="{
  5218. rightW:
  5219. w.userid == userid ||
  5220. tType == 1 ||
  5221. tType == 4 ||
  5222. w.ateacher == userid
  5223. }"
  5224. >
  5225. {{ JSON.parse(w.score).wScore }}分
  5226. </div>
  5227. <div
  5228. class="answerScore"
  5229. @click.stop="openScore(w)"
  5230. v-else-if="
  5231. courseDetail.userid == userid &&
  5232. courseDetail.state != 5 &&
  5233. chapInfoList[courseType].chapterInfo[0]
  5234. .taskJson[taskCount].eList &&
  5235. chapInfoList[courseType].chapterInfo[0]
  5236. .taskJson[taskCount].eList.length
  5237. "
  5238. :class="{
  5239. rightW:
  5240. w.userid == userid ||
  5241. tType == 1 ||
  5242. tType == 4 ||
  5243. w.ateacher == userid
  5244. }"
  5245. >
  5246. 评分
  5247. </div>
  5248. <!-- <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"> -->
  5249. <div
  5250. v-else-if="
  5251. (courseDetail.userid == userid ||
  5252. (courseDetail.course_teacher &&
  5253. courseDetail.course_teacher.indexOf(userid) !=
  5254. -1) ||
  5255. (w.userid == userid && sIsOpen)) &&
  5256. courseDetail.state == 5 &&
  5257. ((chapInfoList[courseType].chapterInfo[0]
  5258. .taskJson[taskCount].eList &&
  5259. chapInfoList[courseType].chapterInfo[0]
  5260. .taskJson[taskCount].eList.length) ||
  5261. (tool.eList && tool.eList.length))
  5262. "
  5263. >
  5264. <el-popover
  5265. placement="top"
  5266. width="318"
  5267. :disabled="AIloading[toolIndex][wIndex].loading"
  5268. trigger="hover"
  5269. >
  5270. <markScore
  5271. :loading="AIloading[toolIndex][wIndex].loading"
  5272. :markScoreVisible="markScoreVisible"
  5273. :ref="`markSco${toolIndex}${wIndex}`"
  5274. @updateLoading="updateLoading"
  5275. @updateDocSco="updateDocSco"
  5276. @refreshOther="refreshOther"
  5277. @markScoreDig="markScoreDig"
  5278. :tool="tool"
  5279. :wIndex="wIndex"
  5280. :scoCon="w"
  5281. :toolIndex="toolIndex"
  5282. :key="refreshKey"
  5283. :stage="courseType"
  5284. :task="taskCount"
  5285. :scoTit="
  5286. chapInfoList[courseType].chapterInfo[0]
  5287. .taskJson[taskCount].eList
  5288. "
  5289. >
  5290. </markScore>
  5291. <div
  5292. class="answerScore"
  5293. @click="
  5294. markScoreDig2(
  5295. w.sName,
  5296. worksStudent,
  5297. w.userid,
  5298. toolIndex,
  5299. chapInfoList[courseType].chapterInfo[0]
  5300. .taskJson[taskCount].eList,
  5301. AIloading[toolIndex][wIndex].loading,
  5302. tool
  5303. )
  5304. "
  5305. slot="reference"
  5306. :class="{
  5307. rightW:
  5308. w.userid == userid ||
  5309. tType == 1 ||
  5310. tType == 4 ||
  5311. w.ateacher == userid
  5312. }"
  5313. >
  5314. <span v-if="AIloading[toolIndex][wIndex].sco">
  5315. {{
  5316. AIloading[toolIndex][wIndex].loading
  5317. ? "评分中"
  5318. : AIloading[toolIndex][wIndex].sco + "分"
  5319. }}
  5320. </span>
  5321. <span v-else>
  5322. {{
  5323. AIloading[toolIndex][wIndex].loading
  5324. ? "评分中"
  5325. : "评分"
  5326. }}
  5327. </span>
  5328. </div>
  5329. </el-popover>
  5330. </div>
  5331. <img
  5332. class="deleteImg"
  5333. src="../../assets/deleteworks.png"
  5334. v-if="
  5335. w.userid == userid || tType == 1 || tType == 4
  5336. "
  5337. @click.stop="deleteWorks(w.wid)"
  5338. alt
  5339. />
  5340. </div>
  5341. <div class="comment" style="min-width: 200px">
  5342. <div class="worksName">
  5343. <div
  5344. style="cursor: pointer"
  5345. @click="
  5346. openSname(w.sName, w.wid, toolIndex, w.userid)
  5347. "
  5348. >
  5349. {{ w.sName }}
  5350. </div>
  5351. </div>
  5352. <div class="commentList">
  5353. <div class="commentList">
  5354. <div
  5355. class="commentImg"
  5356. @click="
  5357. isLikes(
  5358. w.wid,
  5359. userid,
  5360. 1,
  5361. null,
  5362. w.isLikes,
  5363. w.sName
  5364. )
  5365. "
  5366. >
  5367. <img
  5368. :src="w.isLikes == true ? likes : noLikes"
  5369. alt=""
  5370. />
  5371. </div>
  5372. <div>{{ w.likesCount }}</div>
  5373. </div>
  5374. <div class="commentList" style="margin-right: 15px">
  5375. <div
  5376. class="commentImg"
  5377. @click="commentOther(w, toolIndex, wIndex)"
  5378. >
  5379. <img
  5380. src="../../assets/icon/comment/comment.png"
  5381. alt=""
  5382. />
  5383. </div>
  5384. <div>{{ w.commentCount }}</div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. </div>
  5389. </div>
  5390. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5391. 未提交
  5392. </div>
  5393. <div
  5394. class="noWorksS"
  5395. v-if="noWorksS && noWorksS[toolIndex].length"
  5396. >
  5397. <div
  5398. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5399. :key="sIndex"
  5400. class="noWorksName"
  5401. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5402. >
  5403. <el-tooltip
  5404. effect="dark"
  5405. :content="s.student"
  5406. placement="top"
  5407. >
  5408. <span>{{ s.student }}</span>
  5409. </el-tooltip>
  5410. </div>
  5411. </div>
  5412. </div>
  5413. <div
  5414. v-if="
  5415. tType &&
  5416. ((tType == 2 && sIsOpen == true) ||
  5417. tType == 1 ||
  5418. tType == 4) &&
  5419. tool.tool.indexOf(4) != -1 &&
  5420. (tool.askJson[0].answer ||
  5421. tool.askJson[0].answer === 0) &&
  5422. checkJson[toolIndex].length
  5423. "
  5424. class="xuan_right_box"
  5425. >
  5426. <div
  5427. class="tool_right_box"
  5428. v-for="(item, index) in tool.askJson"
  5429. :key="index"
  5430. >
  5431. <div style="width: calc(100% - 30px);">
  5432. <el-tooltip
  5433. effect="light"
  5434. :content="index + 1 + '、' + item.askstitle"
  5435. placement="top"
  5436. popper-class="text_tooltip"
  5437. >
  5438. <div
  5439. style="
  5440. width: calc(100% - 130px);
  5441. display: block;
  5442. white-space: nowrap;
  5443. overflow: hidden;
  5444. text-overflow: ellipsis;
  5445. word-break: break-word;
  5446. cursor: pointer;
  5447. "
  5448. >
  5449. {{ index + 1 + "、" + item.askstitle }}
  5450. </div>
  5451. </el-tooltip>
  5452. </div>
  5453. <div class="right_box_xuan">
  5454. <span>正确率</span>
  5455. <span>{{
  5456. (checkJson[toolIndex][index].right
  5457. ? checkJson[toolIndex][index].right
  5458. : 0) + "%"
  5459. }}</span>
  5460. </div>
  5461. </div>
  5462. </div>
  5463. <div
  5464. class="xuan_right_box"
  5465. style="background: unset; padding: 0 10px"
  5466. v-if="
  5467. tType &&
  5468. ((tType == 2 && sIsOpen == true) ||
  5469. tType == 1 ||
  5470. tType == 4) &&
  5471. tool.tool.indexOf(4) != -1
  5472. "
  5473. >
  5474. <AskStatic
  5475. v-if="
  5476. worksStudent.length &&
  5477. worksStudent[toolIndex].length > 0
  5478. "
  5479. :askJSON="tool"
  5480. :checkJson="checkJson[toolIndex]"
  5481. ></AskStatic>
  5482. </div>
  5483. <div
  5484. v-if="
  5485. tType &&
  5486. ((tType == 2 && sIsOpen == true) ||
  5487. tType == 1 ||
  5488. tType == 4) &&
  5489. tool.tool.indexOf(4) != -1
  5490. "
  5491. class="worksBox"
  5492. >
  5493. <div
  5494. class="zuoyeYulan"
  5495. v-if="
  5496. worksStudent.length &&
  5497. worksStudent[toolIndex].length > 0
  5498. "
  5499. >
  5500. <div class="worksTop">
  5501. <div>作业预览</div>
  5502. <div
  5503. class="corOpen"
  5504. @click="contract(toolIndex)"
  5505. v-if="
  5506. isCloseList[toolIndex].isCloseBoolean &&
  5507. isCloseList[toolIndex].isClose == 0
  5508. "
  5509. >
  5510. 折叠
  5511. </div>
  5512. <div
  5513. class="corOpen"
  5514. @click="contract(toolIndex)"
  5515. v-if="isCloseList[toolIndex].isClose == 1"
  5516. >
  5517. 展开
  5518. </div>
  5519. </div>
  5520. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5521. </div>
  5522. <div>
  5523. <div
  5524. :id="'tool-' + toolIndex"
  5525. :style="{
  5526. height:
  5527. isCloseList[toolIndex].isClose == 1
  5528. ? retrnToolHeight('tool-' + toolIndex)
  5529. : 'auto',
  5530. overflow:
  5531. isCloseList[toolIndex].isClose == 1
  5532. ? 'hidden'
  5533. : 'unset'
  5534. }"
  5535. class="worksDetailBox"
  5536. v-if="
  5537. worksStudent.length &&
  5538. worksStudent[toolIndex].length > 0
  5539. "
  5540. >
  5541. <div
  5542. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5543. :key="wIndex"
  5544. class="isWorksName2"
  5545. @click="
  5546. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5547. "
  5548. >
  5549. {{ w.sName }}
  5550. <img
  5551. class="deleteImg deleteImg2"
  5552. src="../../assets/deleteworks.png"
  5553. v-if="
  5554. w.userid == userid || tType == 1 || tType == 4
  5555. "
  5556. @click.stop="deleteWorks(w.wid)"
  5557. alt
  5558. />
  5559. </div>
  5560. <!-- <div class="works" style="
  5561. width: 200px;
  5562. height: 140px;
  5563. border-radius: 10px;
  5564. box-shadow: 0 0 6px 1px #dfdada;
  5565. overflow: hidden;
  5566. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5567. <div class="workImg">
  5568. <img src="../../assets/icon/works/noImg.png" @click="
  5569. openTools(
  5570. 4,
  5571. toolIndex,
  5572. taskCount,
  5573. w.works,
  5574. w.sName
  5575. )
  5576. " alt />
  5577. </div>
  5578. <div class="worksName">
  5579. <div>{{ w.sName }}</div>
  5580. <div>{{ w.time }}</div>
  5581. </div>
  5582. </div> -->
  5583. </div>
  5584. </div>
  5585. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5586. 未提交
  5587. </div>
  5588. <div
  5589. class="noWorksS"
  5590. v-if="noWorksS && noWorksS[toolIndex].length"
  5591. >
  5592. <div
  5593. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5594. :key="sIndex"
  5595. class="noWorksName"
  5596. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5597. >
  5598. <el-tooltip
  5599. effect="dark"
  5600. :content="s.student"
  5601. placement="top"
  5602. >
  5603. <span>{{ s.student }}</span>
  5604. </el-tooltip>
  5605. </div>
  5606. </div>
  5607. </div>
  5608. <div
  5609. v-if="
  5610. tType &&
  5611. ((tType == 2 && sIsOpen == true) ||
  5612. tType == 1 ||
  5613. tType == 4) &&
  5614. tool.tool.indexOf(45) != -1 &&
  5615. (tool.testJson.testJson[0].answer ||
  5616. tool.testJson.testJson[0].answer === 0) &&
  5617. checkJson[toolIndex].length
  5618. "
  5619. class="xuan_right_box"
  5620. >
  5621. <div
  5622. class="tool_right_box"
  5623. v-for="(item, index) in tool.testJson.testJson"
  5624. :key="index"
  5625. >
  5626. <div class="right_box_xuan" style="margin-right: 10px">
  5627. <span>正确率</span>
  5628. <span>{{
  5629. (checkJson[toolIndex][index].right
  5630. ? checkJson[toolIndex][index].right
  5631. : 0) + "%"
  5632. }}</span>
  5633. </div>
  5634. <div style="width: calc(100% - 30px);">
  5635. <el-tooltip
  5636. effect="light"
  5637. :content="index + 1 + '、' + item.teststitle"
  5638. placement="top"
  5639. popper-class="text_tooltip"
  5640. >
  5641. <div
  5642. style="
  5643. width: calc(100% - 130px);
  5644. display: block;
  5645. white-space: nowrap;
  5646. overflow: hidden;
  5647. text-overflow: ellipsis;
  5648. word-break: break-word;
  5649. cursor: pointer;
  5650. "
  5651. >
  5652. {{ index + 1 + "、" + item.teststitle }}
  5653. </div>
  5654. </el-tooltip>
  5655. </div>
  5656. </div>
  5657. </div>
  5658. <div
  5659. class="xuan_right_box"
  5660. style="background: unset; padding: 0 10px; width: 91.5%"
  5661. v-if="
  5662. tType &&
  5663. ((tType == 2 && sIsOpen == true) ||
  5664. tType == 1 ||
  5665. tType == 4) &&
  5666. tool.tool.indexOf(45) != -1
  5667. "
  5668. >
  5669. <AskStatic2
  5670. v-if="
  5671. worksStudent.length &&
  5672. worksStudent[toolIndex].length > 0
  5673. "
  5674. :askJSON="tool"
  5675. :checkJson="checkJson[toolIndex]"
  5676. ></AskStatic2>
  5677. </div>
  5678. <div
  5679. v-if="
  5680. tType &&
  5681. ((tType == 2 && sIsOpen == true) ||
  5682. tType == 1 ||
  5683. tType == 4) &&
  5684. tool.tool.indexOf(45) != -1
  5685. "
  5686. class="worksBox"
  5687. >
  5688. <div
  5689. class="zuoyeYulan"
  5690. v-if="
  5691. worksStudent.length &&
  5692. worksStudent[toolIndex].length > 0
  5693. "
  5694. >
  5695. <div class="worksTop">
  5696. <div>作业预览</div>
  5697. <div
  5698. class="corOpen"
  5699. @click="contract(toolIndex)"
  5700. v-if="
  5701. isCloseList[toolIndex].isCloseBoolean &&
  5702. isCloseList[toolIndex].isClose == 0
  5703. "
  5704. >
  5705. 折叠
  5706. </div>
  5707. <div
  5708. class="corOpen"
  5709. @click="contract(toolIndex)"
  5710. v-if="isCloseList[toolIndex].isClose == 1"
  5711. >
  5712. 展开
  5713. </div>
  5714. </div>
  5715. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5716. </div>
  5717. <div>
  5718. <div
  5719. :id="'tool-' + toolIndex"
  5720. :style="{
  5721. height:
  5722. isCloseList[toolIndex].isClose == 1
  5723. ? retrnToolHeight('tool-' + toolIndex)
  5724. : 'auto',
  5725. overflow:
  5726. isCloseList[toolIndex].isClose == 1
  5727. ? 'hidden'
  5728. : 'unset'
  5729. }"
  5730. class="worksDetailBox"
  5731. v-if="
  5732. worksStudent.length &&
  5733. worksStudent[toolIndex].length > 0
  5734. "
  5735. >
  5736. <div
  5737. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5738. :key="wIndex"
  5739. class="isWorksName2"
  5740. @click="
  5741. openTools(
  5742. 45,
  5743. toolIndex,
  5744. taskCount,
  5745. w.works,
  5746. w.sName
  5747. )
  5748. "
  5749. >
  5750. {{ w.sName }}
  5751. <img
  5752. class="deleteImg deleteImg2"
  5753. src="../../assets/deleteworks.png"
  5754. v-if="
  5755. w.userid == userid || tType == 1 || tType == 4
  5756. "
  5757. @click.stop="deleteWorks(w.wid)"
  5758. alt
  5759. />
  5760. </div>
  5761. </div>
  5762. </div>
  5763. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5764. 未提交
  5765. </div>
  5766. <div
  5767. class="noWorksS"
  5768. v-if="noWorksS && noWorksS[toolIndex].length"
  5769. >
  5770. <div
  5771. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5772. :key="sIndex"
  5773. class="noWorksName"
  5774. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  5775. >
  5776. <el-tooltip
  5777. effect="dark"
  5778. :content="s.student"
  5779. placement="top"
  5780. >
  5781. <span>{{ s.student }}</span>
  5782. </el-tooltip>
  5783. </div>
  5784. </div>
  5785. </div>
  5786. <div
  5787. v-if="
  5788. tType &&
  5789. ((tType == 2 && sIsOpen == true) ||
  5790. tType == 1 ||
  5791. tType == 4) &&
  5792. tool.tool.indexOf(69) != -1
  5793. "
  5794. class="worksBox"
  5795. >
  5796. <div
  5797. class="zuoyeYulan"
  5798. v-if="
  5799. worksStudent.length &&
  5800. worksStudent[toolIndex].length > 0
  5801. "
  5802. >
  5803. <div class="worksTop">
  5804. <div>作业预览</div>
  5805. <div
  5806. class="corOpen"
  5807. @click="contract(toolIndex)"
  5808. v-if="
  5809. isCloseList[toolIndex].isCloseBoolean &&
  5810. isCloseList[toolIndex].isClose == 0
  5811. "
  5812. >
  5813. 折叠
  5814. </div>
  5815. <div
  5816. class="corOpen"
  5817. @click="contract(toolIndex)"
  5818. v-if="isCloseList[toolIndex].isClose == 1"
  5819. >
  5820. 展开
  5821. </div>
  5822. </div>
  5823. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5824. </div>
  5825. <div>
  5826. <div
  5827. :id="'tool-' + toolIndex"
  5828. :style="{
  5829. height:
  5830. isCloseList[toolIndex].isClose == 1
  5831. ? retrnToolHeight('tool-' + toolIndex)
  5832. : 'auto',
  5833. overflow:
  5834. isCloseList[toolIndex].isClose == 1
  5835. ? 'hidden'
  5836. : 'unset'
  5837. }"
  5838. class="worksDetailBox"
  5839. v-if="
  5840. worksStudent.length &&
  5841. worksStudent[toolIndex].length > 0
  5842. "
  5843. >
  5844. <div
  5845. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5846. :key="wIndex"
  5847. class="isWorksName2"
  5848. style="width: 160px;height: 65px;line-height: 65px;"
  5849. @click="
  5850. openTools(
  5851. 69,
  5852. toolIndex,
  5853. taskCount,
  5854. w.works,
  5855. w.sName,
  5856. w.wid
  5857. )
  5858. "
  5859. >
  5860. {{ w.sName }}
  5861. <img
  5862. class="deleteImg1"
  5863. src="../../assets/evaEnglish.png"
  5864. @click.stop="openEnglishEva(w.wid, toolIndex)"
  5865. alt
  5866. v-if="
  5867. (courseDetail &&
  5868. (courseDetail.userid == userid ||
  5869. (courseDetail.course_teacher &&
  5870. courseDetail.course_teacher.indexOf(
  5871. userid
  5872. ) != -1))) ||
  5873. w.aiCode || w.teacherCode
  5874. "
  5875. />
  5876. <img
  5877. class="deleteImg deleteImg2"
  5878. src="../../assets/deleteworks.png"
  5879. v-if="
  5880. w.userid == userid || tType == 1 || tType == 4
  5881. "
  5882. @click.stop="deleteWorks(w.wid)"
  5883. alt
  5884. />
  5885. </div>
  5886. </div>
  5887. </div>
  5888. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5889. 未提交
  5890. </div>
  5891. <div
  5892. class="noWorksS"
  5893. v-if="noWorksS && noWorksS[toolIndex].length"
  5894. >
  5895. <div
  5896. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5897. :key="sIndex"
  5898. class="noWorksName"
  5899. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  5900. >
  5901. <el-tooltip
  5902. effect="dark"
  5903. :content="s.student"
  5904. placement="top"
  5905. >
  5906. <span>{{ s.student }}</span>
  5907. </el-tooltip>
  5908. </div>
  5909. </div>
  5910. </div>
  5911. <div
  5912. v-if="
  5913. tType &&
  5914. ((tType == 2 && sIsOpen == true) ||
  5915. tType == 1 ||
  5916. tType == 4) &&
  5917. tool.tool.indexOf(15) != -1
  5918. "
  5919. class="worksBox"
  5920. >
  5921. <div
  5922. class="zuoyeYulan"
  5923. v-if="
  5924. (worksStudent.length &&
  5925. worksStudent[toolIndex].length > 0) ||
  5926. (courseGroup.group && courseGroup.group.length)
  5927. "
  5928. >
  5929. <div class="worksTop">
  5930. <div>作业预览</div>
  5931. <div
  5932. class="corOpen"
  5933. @click="contract(toolIndex)"
  5934. v-if="
  5935. isCloseList[toolIndex].isCloseBoolean &&
  5936. isCloseList[toolIndex].isClose == 0
  5937. "
  5938. >
  5939. 折叠
  5940. </div>
  5941. <div
  5942. class="corOpen"
  5943. @click="contract(toolIndex)"
  5944. v-if="isCloseList[toolIndex].isClose == 1"
  5945. >
  5946. 展开
  5947. </div>
  5948. </div>
  5949. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5950. </div>
  5951. <div
  5952. class="group_workBox"
  5953. v-for="(g, gindex) in courseGroup.group"
  5954. :key="gindex"
  5955. >
  5956. <div class="group_box">
  5957. <div class="group_title">
  5958. <el-tooltip
  5959. class="item"
  5960. effect="light"
  5961. :content="g.name"
  5962. placement="top"
  5963. >
  5964. <div class="group_name">{{ g.name }}</div>
  5965. </el-tooltip>
  5966. </div>
  5967. <div
  5968. class="group_work"
  5969. v-if="
  5970. g.works &&
  5971. g.works.length &&
  5972. g.works[toolIndex].length
  5973. "
  5974. >
  5975. <div
  5976. class="works"
  5977. v-for="(w, wIndex) in g.works[toolIndex]"
  5978. :key="wIndex"
  5979. >
  5980. <div
  5981. class="workImg"
  5982. style="
  5983. border-radius: 15px;
  5984. box-shadow: 0px 0px 5px 5px #eee;
  5985. "
  5986. >
  5987. <div
  5988. class="answerBg"
  5989. style="border-radius: 15px 15px 0 0"
  5990. @click="
  5991. commentOther(w, toolIndex, wIndex, null, g.id)
  5992. "
  5993. >
  5994. <div class="answerContent">
  5995. {{ JSON.parse(w.works)[0].answer }}
  5996. </div>
  5997. <div
  5998. class="answerScore"
  5999. v-if="w.score"
  6000. @click.stop="openScore(w)"
  6001. :class="{
  6002. rightW:
  6003. w.userid == userid ||
  6004. tType == 1 ||
  6005. tType == 4
  6006. }"
  6007. >
  6008. {{ JSON.parse(w.score).wScore }}分
  6009. </div>
  6010. <div
  6011. class="answerScore"
  6012. @click.stop="openScore(w)"
  6013. v-else-if="
  6014. courseDetail.userid == userid &&
  6015. courseDetail.state != 5 &&
  6016. chapInfoList[courseType].chapterInfo[0]
  6017. .taskJson[taskCount].eList &&
  6018. chapInfoList[courseType].chapterInfo[0]
  6019. .taskJson[taskCount].eList.length
  6020. "
  6021. :class="{
  6022. rightW:
  6023. w.userid == userid ||
  6024. tType == 1 ||
  6025. tType == 4
  6026. }"
  6027. >
  6028. 评分
  6029. </div>
  6030. <!-- <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"> -->
  6031. <div
  6032. v-else-if="
  6033. (courseDetail.userid == userid ||
  6034. (courseDetail.course_teacher &&
  6035. courseDetail.course_teacher.indexOf(
  6036. userid
  6037. ) != -1) ||
  6038. (w.userid == userid && sIsOpen)) &&
  6039. courseDetail.state == 5 &&
  6040. ((chapInfoList[courseType].chapterInfo[0]
  6041. .taskJson[taskCount].eList &&
  6042. chapInfoList[courseType].chapterInfo[0]
  6043. .taskJson[taskCount].eList.length) ||
  6044. (tool.eList && tool.eList.length))
  6045. "
  6046. >
  6047. <el-popover
  6048. placement="top"
  6049. width="318"
  6050. :disabled="
  6051. AIloading[toolIndex][wIndex].loading
  6052. "
  6053. trigger="hover"
  6054. >
  6055. <markScore
  6056. :loading="
  6057. AIloading[toolIndex][wIndex].loading
  6058. "
  6059. :markScoreVisible="markScoreVisible"
  6060. :ref="`markSco${toolIndex}${wIndex}`"
  6061. @updateLoading="updateLoading"
  6062. @updateDocSco="updateDocSco"
  6063. @refreshOther="refreshOther"
  6064. @markScoreDig="markScoreDig"
  6065. :tool="tool"
  6066. :wIndex="wIndex"
  6067. :scoCon="w"
  6068. :toolIndex="toolIndex"
  6069. :key="refreshKey"
  6070. :stage="courseType"
  6071. :task="taskCount"
  6072. :scoTit="
  6073. chapInfoList[courseType].chapterInfo[0]
  6074. .taskJson[taskCount].eList
  6075. "
  6076. >
  6077. </markScore>
  6078. <div
  6079. class="answerScore"
  6080. @click.stop="
  6081. markScoreDig2(
  6082. w.sName,
  6083. worksStudent,
  6084. w.userid,
  6085. toolIndex,
  6086. chapInfoList[courseType]
  6087. .chapterInfo[0].taskJson[taskCount]
  6088. .eList,
  6089. AIloading[toolIndex][wIndex].loading,
  6090. tool
  6091. )
  6092. "
  6093. slot="reference"
  6094. :class="{
  6095. rightW:
  6096. w.userid == userid ||
  6097. tType == 1 ||
  6098. tType == 4 ||
  6099. w.ateacher == userid
  6100. }"
  6101. >
  6102. <span
  6103. v-if="AIloading[toolIndex][wIndex].sco"
  6104. >
  6105. {{
  6106. AIloading[toolIndex][wIndex].loading
  6107. ? "评分中"
  6108. : AIloading[toolIndex][wIndex].sco +
  6109. "分"
  6110. }}
  6111. </span>
  6112. <span v-else>
  6113. {{
  6114. AIloading[toolIndex][wIndex].loading
  6115. ? "评分中"
  6116. : "评分"
  6117. }}
  6118. </span>
  6119. </div>
  6120. </el-popover>
  6121. </div>
  6122. <img
  6123. class="deleteImg"
  6124. src="../../assets/deleteworks.png"
  6125. v-if="
  6126. w.userid == userid ||
  6127. tType == 1 ||
  6128. tType == 4
  6129. "
  6130. @click.stop="deleteWorks(w.wid)"
  6131. alt
  6132. />
  6133. </div>
  6134. <div class="comment">
  6135. <div class="worksName">
  6136. <div>{{ w.sName }}</div>
  6137. </div>
  6138. <div class="commentList">
  6139. <div
  6140. class="commentImg"
  6141. @click="
  6142. isLikes(
  6143. w.wid,
  6144. userid,
  6145. 1,
  6146. null,
  6147. w.isLikes,
  6148. w.sName
  6149. )
  6150. "
  6151. >
  6152. <img
  6153. :src="w.isLikes == true ? likes : noLikes"
  6154. alt=""
  6155. />
  6156. </div>
  6157. <div>{{ w.likesCount }}</div>
  6158. </div>
  6159. <div
  6160. class="commentList"
  6161. style="margin-right: 15px"
  6162. >
  6163. <div
  6164. class="commentImg"
  6165. @click="
  6166. commentOther(
  6167. w,
  6168. toolIndex,
  6169. wIndex,
  6170. null,
  6171. g.id
  6172. )
  6173. "
  6174. >
  6175. <img
  6176. src="../../assets/icon/comment/comment.png"
  6177. alt=""
  6178. />
  6179. </div>
  6180. <div>{{ w.commentCount }}</div>
  6181. </div>
  6182. </div>
  6183. </div>
  6184. </div>
  6185. </div>
  6186. <div class="group_work" v-else>暂无提交作业</div>
  6187. </div>
  6188. </div>
  6189. <div
  6190. :id="'tool-' + toolIndex"
  6191. :style="{
  6192. height:
  6193. isCloseList[toolIndex].isClose == 1
  6194. ? retrnToolHeight('tool-' + toolIndex)
  6195. : 'auto',
  6196. overflow:
  6197. isCloseList[toolIndex].isClose == 1
  6198. ? 'hidden'
  6199. : 'unset'
  6200. }"
  6201. class="worksDetailBox"
  6202. v-if="
  6203. worksStudent.length &&
  6204. worksStudent[toolIndex].length > 0
  6205. "
  6206. >
  6207. <div
  6208. class="works"
  6209. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6210. :key="wIndex"
  6211. >
  6212. <div
  6213. class="workImg"
  6214. style="
  6215. border-radius: 15px;
  6216. box-shadow: 0px 0px 5px 5px #eee;
  6217. "
  6218. >
  6219. <!-- <img
  6220. src="../../assets/icon/works/noImg.png"
  6221. @click="openTools(15, toolIndex, taskCount, w.works)"
  6222. alt=""
  6223. />-->
  6224. <div
  6225. class="answerBg"
  6226. style="border-radius: 15px 15px 0 0"
  6227. @click="commentOther(w, toolIndex, wIndex)"
  6228. >
  6229. <!-- <div>{{ w.sName }}</div> -->
  6230. <div class="answerContent">
  6231. {{ JSON.parse(w.works)[0].answer }}
  6232. </div>
  6233. <div
  6234. class="answerScore"
  6235. v-if="w.score"
  6236. @click.stop="openScore(w)"
  6237. :class="{
  6238. rightW:
  6239. w.userid == userid || tType == 1 || tType == 4
  6240. }"
  6241. >
  6242. {{ JSON.parse(w.score).wScore }}分
  6243. </div>
  6244. <div
  6245. class="answerScore"
  6246. @click.stop="openScore(w)"
  6247. v-else-if="
  6248. courseDetail.userid == userid &&
  6249. courseDetail.state != 5 &&
  6250. chapInfoList[courseType].chapterInfo[0]
  6251. .taskJson[taskCount].eList &&
  6252. chapInfoList[courseType].chapterInfo[0]
  6253. .taskJson[taskCount].eList.length
  6254. "
  6255. :class="{
  6256. rightW:
  6257. w.userid == userid || tType == 1 || tType == 4
  6258. }"
  6259. >
  6260. 评分
  6261. </div>
  6262. <!-- <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"> -->
  6263. <div
  6264. v-else-if="
  6265. (courseDetail.userid == userid ||
  6266. (courseDetail.course_teacher &&
  6267. courseDetail.course_teacher.indexOf(
  6268. userid
  6269. ) != -1) ||
  6270. (w.userid == userid && sIsOpen)) &&
  6271. courseDetail.state == 5 &&
  6272. ((chapInfoList[courseType].chapterInfo[0]
  6273. .taskJson[taskCount].eList &&
  6274. chapInfoList[courseType].chapterInfo[0]
  6275. .taskJson[taskCount].eList.length) ||
  6276. (tool.eList && tool.eList.length))
  6277. "
  6278. >
  6279. <el-popover
  6280. placement="top"
  6281. width="318"
  6282. :disabled="AIloading[toolIndex][wIndex].loading"
  6283. trigger="hover"
  6284. >
  6285. <markScore
  6286. :loading="
  6287. AIloading[toolIndex][wIndex].loading
  6288. "
  6289. :markScoreVisible="markScoreVisible"
  6290. :ref="`markSco${toolIndex}${wIndex}`"
  6291. @updateLoading="updateLoading"
  6292. @updateDocSco="updateDocSco"
  6293. @refreshOther="refreshOther"
  6294. @markScoreDig="markScoreDig"
  6295. :tool="tool"
  6296. :wIndex="wIndex"
  6297. :scoCon="w"
  6298. :toolIndex="toolIndex"
  6299. :key="refreshKey"
  6300. :stage="courseType"
  6301. :task="taskCount"
  6302. :scoTit="
  6303. chapInfoList[courseType].chapterInfo[0]
  6304. .taskJson[taskCount].eList
  6305. "
  6306. >
  6307. </markScore>
  6308. <div
  6309. class="answerScore"
  6310. @click.stop="
  6311. markScoreDig2(
  6312. w.sName,
  6313. worksStudent,
  6314. w.userid,
  6315. toolIndex,
  6316. chapInfoList[courseType].chapterInfo[0]
  6317. .taskJson[taskCount].eList,
  6318. AIloading[toolIndex][wIndex].loading,
  6319. tool
  6320. )
  6321. "
  6322. slot="reference"
  6323. :class="{
  6324. rightW:
  6325. w.userid == userid ||
  6326. tType == 1 ||
  6327. tType == 4 ||
  6328. w.ateacher == userid
  6329. }"
  6330. >
  6331. <span v-if="AIloading[toolIndex][wIndex].sco">
  6332. {{
  6333. AIloading[toolIndex][wIndex].loading
  6334. ? "评分中"
  6335. : AIloading[toolIndex][wIndex].sco +
  6336. "分"
  6337. }}
  6338. </span>
  6339. <span v-else>
  6340. {{
  6341. AIloading[toolIndex][wIndex].loading
  6342. ? "评分中"
  6343. : "评分"
  6344. }}
  6345. </span>
  6346. </div>
  6347. </el-popover>
  6348. </div>
  6349. <img
  6350. class="deleteImg"
  6351. src="../../assets/deleteworks.png"
  6352. v-if="
  6353. w.userid == userid || tType == 1 || tType == 4
  6354. "
  6355. @click.stop="deleteWorks(w.wid)"
  6356. alt
  6357. />
  6358. </div>
  6359. <div class="comment">
  6360. <div class="worksName">
  6361. <div>{{ w.sName }}</div>
  6362. </div>
  6363. <div class="commentList">
  6364. <div
  6365. class="commentImg"
  6366. @click="
  6367. isLikes(
  6368. w.wid,
  6369. userid,
  6370. 1,
  6371. null,
  6372. w.isLikes,
  6373. w.sName
  6374. )
  6375. "
  6376. >
  6377. <img
  6378. :src="w.isLikes == true ? likes : noLikes"
  6379. alt=""
  6380. />
  6381. </div>
  6382. <div>{{ w.likesCount }}</div>
  6383. </div>
  6384. <div class="commentList" style="margin-right: 15px">
  6385. <div
  6386. class="commentImg"
  6387. @click="commentOther(w, toolIndex, wIndex)"
  6388. >
  6389. <img
  6390. src="../../assets/icon/comment/comment.png"
  6391. alt=""
  6392. />
  6393. </div>
  6394. <div>{{ w.commentCount }}</div>
  6395. </div>
  6396. </div>
  6397. </div>
  6398. </div>
  6399. </div>
  6400. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6401. 未提交
  6402. </div>
  6403. <div
  6404. class="noWorksS"
  6405. v-if="noWorksS && noWorksS[toolIndex].length"
  6406. >
  6407. <div
  6408. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6409. :key="sIndex"
  6410. class="noWorksName"
  6411. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6412. >
  6413. <el-tooltip
  6414. effect="dark"
  6415. :content="s.student"
  6416. placement="top"
  6417. >
  6418. <span>{{ s.student }}</span>
  6419. </el-tooltip>
  6420. </div>
  6421. </div>
  6422. </div>
  6423. <div
  6424. v-if="
  6425. tType &&
  6426. ((tType == 2 && sIsOpen == true) ||
  6427. tType == 1 ||
  6428. tType == 4) &&
  6429. tool.tool.indexOf(1) != -1
  6430. "
  6431. class="worksBox"
  6432. >
  6433. <div
  6434. class="zuoyeYulan"
  6435. style="display: flex;justify-content: space-between;align-items: center;"
  6436. v-if="
  6437. (worksStudent.length &&
  6438. worksStudent[toolIndex].length > 0) ||
  6439. (courseGroup.group && courseGroup.group.length)
  6440. "
  6441. >
  6442. <div class="worksTop">
  6443. <div>作业预览</div>
  6444. <div
  6445. class="corOpen"
  6446. @click="contract(toolIndex)"
  6447. v-if="
  6448. isCloseList[toolIndex].isCloseBoolean &&
  6449. isCloseList[toolIndex].isClose == 0
  6450. "
  6451. >
  6452. 折叠
  6453. </div>
  6454. <div
  6455. class="corOpen"
  6456. @click="contract(toolIndex)"
  6457. v-if="isCloseList[toolIndex].isClose == 1"
  6458. >
  6459. 展开
  6460. </div>
  6461. </div>
  6462. <div
  6463. style="display: flex;"
  6464. v-if="
  6465. (courseDetail.userid == userid ||
  6466. (courseDetail.course_teacher &&
  6467. courseDetail.course_teacher.indexOf(userid) !=
  6468. -1)) &&
  6469. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6470. taskCount
  6471. ].eList &&
  6472. chapInfoList[courseType].chapterInfo[0].taskJson[
  6473. taskCount
  6474. ].eList.length) ||
  6475. (tool.eList && tool.eList.length)) &&
  6476. courseDetail.state == 5
  6477. "
  6478. >
  6479. <div
  6480. style="margin-right:10px"
  6481. class="ScoreBtn"
  6482. @click="
  6483. resetLoopEva(
  6484. worksStudent[toolIndex],
  6485. chapInfoList[courseType].chapterInfo[0].taskJson[
  6486. taskCount
  6487. ].eList,
  6488. courseType,
  6489. taskCount,
  6490. toolIndex,
  6491. tool.toolDetail,
  6492. worksStudent
  6493. )
  6494. "
  6495. >
  6496. 一键重置
  6497. </div>
  6498. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6499. <img
  6500. src="../../assets/icon/newIcons/rootImg.png"
  6501. alt=""
  6502. />
  6503. AI评分
  6504. </div>
  6505. <div
  6506. class="ScoreBtn"
  6507. v-else-if="!loopLoading[toolIndex].loading"
  6508. @click="
  6509. loopEva(
  6510. worksStudent[toolIndex],
  6511. chapInfoList[courseType].chapterInfo[0].taskJson[
  6512. taskCount
  6513. ].eList,
  6514. courseType,
  6515. taskCount,
  6516. toolIndex,
  6517. tool.toolDetail,
  6518. chapInfoList[courseType].chapterInfo[0].taskJson[
  6519. taskCount
  6520. ].taskDetail,
  6521. tool
  6522. )
  6523. "
  6524. >
  6525. <img
  6526. src="../../assets/icon/newIcons/rootImg.png"
  6527. alt=""
  6528. />
  6529. AI评分
  6530. </div>
  6531. <div class="ScoreBtn" v-else>
  6532. <img
  6533. src="../../assets/icon/newIcons/rootImg.png"
  6534. alt=""
  6535. />
  6536. 正在评分
  6537. </div>
  6538. </div>
  6539. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6540. </div>
  6541. <div
  6542. class="group_workBox"
  6543. v-for="(g, gindex) in courseGroup.group"
  6544. :key="gindex"
  6545. >
  6546. <div class="group_box">
  6547. <div class="group_title">
  6548. <el-tooltip
  6549. class="item"
  6550. effect="light"
  6551. :content="g.name"
  6552. placement="top"
  6553. >
  6554. <div class="group_name">{{ g.name }}</div>
  6555. </el-tooltip>
  6556. </div>
  6557. <div
  6558. class="group_work"
  6559. v-if="
  6560. g.works &&
  6561. g.works.length &&
  6562. g.works[toolIndex].length
  6563. "
  6564. >
  6565. <div
  6566. class="works"
  6567. style="
  6568. width: 200px;
  6569. height: 140px;
  6570. margin: 10px 10px 10px 0;
  6571. border-radius: 15px;
  6572. box-shadow: 0 0 6px 1px #dfdada;
  6573. "
  6574. v-for="(w, wIndex) in g.works[toolIndex]"
  6575. :key="wIndex"
  6576. :class="w.type == 1 ? 'isTypeOne' : ''"
  6577. >
  6578. <div class="workImg">
  6579. <img
  6580. :src="w.works"
  6581. @click="previewImg(w.works, w)"
  6582. alt
  6583. />
  6584. <div
  6585. class="answerScore"
  6586. v-if="w.score"
  6587. @click.stop="openScore(w)"
  6588. :class="{
  6589. rightW:
  6590. w.userid == userid ||
  6591. tType == 1 ||
  6592. tType == 4
  6593. }"
  6594. >
  6595. {{ JSON.parse(w.score).wScore }}分
  6596. </div>
  6597. <div
  6598. class="answerScore"
  6599. @click.stop="openScore(w)"
  6600. v-else-if="courseDetail.userid == userid"
  6601. :class="{
  6602. rightW:
  6603. w.userid == userid ||
  6604. tType == 1 ||
  6605. tType == 4
  6606. }"
  6607. >
  6608. 评分
  6609. </div>
  6610. <img
  6611. class="deleteImg"
  6612. src="../../assets/deleteworks.png"
  6613. v-if="
  6614. w.userid == userid || tType == 1 || tType == 4
  6615. "
  6616. @click.stop="deleteWorks(w.wid)"
  6617. alt
  6618. />
  6619. </div>
  6620. <div class="comment" style="min-width: 200px">
  6621. <div class="worksName">
  6622. <div>{{ w.sName }}</div>
  6623. </div>
  6624. <div class="commentList">
  6625. <div class="commentList">
  6626. <div
  6627. class="commentImg"
  6628. @click="
  6629. isLikes(
  6630. w.wid,
  6631. userid,
  6632. 1,
  6633. null,
  6634. w.isLikes,
  6635. w.sName
  6636. )
  6637. "
  6638. >
  6639. <img
  6640. :src="w.isLikes == true ? likes : noLikes"
  6641. alt=""
  6642. />
  6643. </div>
  6644. <div>{{ w.likesCount }}</div>
  6645. </div>
  6646. <div
  6647. class="commentList"
  6648. style="margin-right: 15px"
  6649. >
  6650. <div
  6651. class="commentImg"
  6652. @click="
  6653. commentOther(
  6654. w,
  6655. toolIndex,
  6656. wIndex,
  6657. null,
  6658. g.id
  6659. )
  6660. "
  6661. >
  6662. <img
  6663. src="../../assets/icon/comment/comment.png"
  6664. alt=""
  6665. />
  6666. </div>
  6667. <div>{{ w.commentCount }}</div>
  6668. </div>
  6669. </div>
  6670. </div>
  6671. </div>
  6672. </div>
  6673. <div class="group_work" v-else>暂无提交作业</div>
  6674. </div>
  6675. </div>
  6676. <div
  6677. :id="'tool-' + toolIndex"
  6678. :style="{
  6679. height:
  6680. isCloseList[toolIndex].isClose == 1
  6681. ? retrnToolHeight('tool-' + toolIndex)
  6682. : 'auto',
  6683. overflow:
  6684. isCloseList[toolIndex].isClose == 1
  6685. ? 'hidden'
  6686. : 'unset'
  6687. }"
  6688. class="worksDetailBox"
  6689. v-if="
  6690. worksStudent.length &&
  6691. worksStudent[toolIndex].length > 0
  6692. "
  6693. >
  6694. <div
  6695. class="works"
  6696. style="
  6697. width: 200px;
  6698. height: 140px;
  6699. margin: 10px 10px 10px 0;
  6700. border-radius: 15px;
  6701. box-shadow: 0 0 6px 1px #dfdada;
  6702. "
  6703. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6704. :key="wIndex"
  6705. >
  6706. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6707. <div class="workImg">
  6708. <img
  6709. :src="w.works"
  6710. @click="previewImg(w.works, w)"
  6711. alt
  6712. />
  6713. <div
  6714. class="answerScore"
  6715. v-if="w.score"
  6716. @click.stop="openScore(w)"
  6717. :class="{
  6718. rightW:
  6719. w.userid == userid || tType == 1 || tType == 4
  6720. }"
  6721. >
  6722. {{ JSON.parse(w.score).wScore }}分
  6723. </div>
  6724. <div
  6725. class="answerScore"
  6726. @click.stop="openScore(w)"
  6727. v-else-if="
  6728. courseDetail.userid == userid &&
  6729. courseDetail.state != 5 &&
  6730. chapInfoList[courseType].chapterInfo[0]
  6731. .taskJson[taskCount].eList &&
  6732. chapInfoList[courseType].chapterInfo[0]
  6733. .taskJson[taskCount].eList.length
  6734. "
  6735. :class="{
  6736. rightW:
  6737. w.userid == userid || tType == 1 || tType == 4
  6738. }"
  6739. >
  6740. 评分
  6741. </div>
  6742. <div
  6743. v-else-if="
  6744. (courseDetail.userid == userid ||
  6745. (courseDetail.course_teacher &&
  6746. courseDetail.course_teacher.indexOf(userid) !=
  6747. -1) ||
  6748. (courseDetail.course_teacher &&
  6749. courseDetail.course_teacher.indexOf(userid) !=
  6750. -1) ||
  6751. (courseDetail.course_teacher &&
  6752. courseDetail.course_teacher.indexOf(userid) !=
  6753. -1) ||
  6754. (w.userid == userid && sIsOpen)) &&
  6755. courseDetail.state == 5 &&
  6756. ((chapInfoList[courseType].chapterInfo[0]
  6757. .taskJson[taskCount].eList &&
  6758. chapInfoList[courseType].chapterInfo[0]
  6759. .taskJson[taskCount].eList.length) ||
  6760. (tool.eList && tool.eList.length))
  6761. "
  6762. >
  6763. <el-popover
  6764. placement="top"
  6765. width="318"
  6766. :disabled="AIloading[toolIndex][wIndex].loading"
  6767. trigger="hover"
  6768. >
  6769. <markScore
  6770. :loading="AIloading[toolIndex][wIndex].loading"
  6771. :markScoreVisible="markScoreVisible"
  6772. :ref="`markSco${toolIndex}${wIndex}`"
  6773. @updateLoading="updateLoading"
  6774. @updateDocSco="updateDocSco"
  6775. @refreshOther="refreshOther"
  6776. @markScoreDig="markScoreDig"
  6777. :tool="tool"
  6778. :wIndex="wIndex"
  6779. :scoCon="w"
  6780. :toolIndex="toolIndex"
  6781. :key="refreshKey"
  6782. :stage="courseType"
  6783. :task="taskCount"
  6784. :scoTit="
  6785. chapInfoList[courseType].chapterInfo[0]
  6786. .taskJson[taskCount].eList
  6787. "
  6788. >
  6789. </markScore>
  6790. <div
  6791. class="answerScore"
  6792. @click="
  6793. markScoreDig2(
  6794. w.sName,
  6795. worksStudent,
  6796. w.userid,
  6797. toolIndex,
  6798. chapInfoList[courseType].chapterInfo[0]
  6799. .taskJson[taskCount].eList,
  6800. AIloading[toolIndex][wIndex].loading,
  6801. tool
  6802. )
  6803. "
  6804. slot="reference"
  6805. :class="{
  6806. rightW:
  6807. w.userid == userid ||
  6808. tType == 1 ||
  6809. tType == 4 ||
  6810. w.ateacher == userid
  6811. }"
  6812. >
  6813. <span v-if="AIloading[toolIndex][wIndex].sco">
  6814. {{
  6815. AIloading[toolIndex][wIndex].loading
  6816. ? "评分中"
  6817. : AIloading[toolIndex][wIndex].sco + "分"
  6818. }}
  6819. </span>
  6820. <span v-else>
  6821. {{
  6822. AIloading[toolIndex][wIndex].loading
  6823. ? "评分中"
  6824. : "评分"
  6825. }}
  6826. </span>
  6827. </div>
  6828. </el-popover>
  6829. </div>
  6830. <img
  6831. class="deleteImg"
  6832. src="../../assets/deleteworks.png"
  6833. v-if="
  6834. w.userid == userid || tType == 1 || tType == 4
  6835. "
  6836. @click.stop="deleteWorks(w.wid)"
  6837. alt
  6838. />
  6839. </div>
  6840. <div class="comment" style="min-width: 200px">
  6841. <div class="worksName">
  6842. <div>{{ w.sName }}</div>
  6843. </div>
  6844. <div class="commentList">
  6845. <div class="commentList">
  6846. <div
  6847. class="commentImg"
  6848. @click="
  6849. isLikes(
  6850. w.wid,
  6851. userid,
  6852. 1,
  6853. null,
  6854. w.isLikes,
  6855. w.sName
  6856. )
  6857. "
  6858. >
  6859. <img
  6860. :src="w.isLikes == true ? likes : noLikes"
  6861. alt=""
  6862. />
  6863. </div>
  6864. <div>{{ w.likesCount }}</div>
  6865. </div>
  6866. <div class="commentList" style="margin-right: 15px">
  6867. <div
  6868. class="commentImg"
  6869. @click="commentOther(w, toolIndex, wIndex)"
  6870. >
  6871. <img
  6872. src="../../assets/icon/comment/comment.png"
  6873. alt=""
  6874. />
  6875. </div>
  6876. <div>{{ w.commentCount }}</div>
  6877. </div>
  6878. </div>
  6879. </div>
  6880. </div>
  6881. </div>
  6882. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6883. 未提交
  6884. </div>
  6885. <div
  6886. class="noWorksS"
  6887. v-if="noWorksS && noWorksS[toolIndex].length"
  6888. >
  6889. <div
  6890. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6891. :key="sIndex"
  6892. class="noWorksName"
  6893. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6894. >
  6895. <el-tooltip
  6896. effect="dark"
  6897. :content="s.student"
  6898. placement="top"
  6899. >
  6900. <span>{{ s.student }}</span>
  6901. </el-tooltip>
  6902. </div>
  6903. </div>
  6904. </div>
  6905. <div
  6906. v-if="
  6907. tType &&
  6908. ((tType == 2 && sIsOpen == true) ||
  6909. tType == 1 ||
  6910. tType == 4) &&
  6911. tool.tool.indexOf(3) != -1
  6912. "
  6913. class="worksBox"
  6914. >
  6915. <div
  6916. class="zuoyeYulan"
  6917. style="display: flex;justify-content: space-between;align-items: center;"
  6918. v-if="
  6919. (worksStudent.length &&
  6920. worksStudent[toolIndex].length > 0) ||
  6921. (courseGroup.group && courseGroup.group.length)
  6922. "
  6923. >
  6924. <div class="worksTop">
  6925. <div>作业预览</div>
  6926. <div
  6927. class="corOpen"
  6928. @click="contract(toolIndex)"
  6929. v-if="
  6930. isCloseList[toolIndex].isCloseBoolean &&
  6931. isCloseList[toolIndex].isClose == 0
  6932. "
  6933. >
  6934. 折叠
  6935. </div>
  6936. <div
  6937. class="corOpen"
  6938. @click="contract(toolIndex)"
  6939. v-if="isCloseList[toolIndex].isClose == 1"
  6940. >
  6941. 展开
  6942. </div>
  6943. </div>
  6944. <div
  6945. style="display: flex;"
  6946. v-if="
  6947. (courseDetail.userid == userid ||
  6948. (courseDetail.course_teacher &&
  6949. courseDetail.course_teacher.indexOf(userid) !=
  6950. -1)) &&
  6951. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6952. taskCount
  6953. ].eList &&
  6954. chapInfoList[courseType].chapterInfo[0].taskJson[
  6955. taskCount
  6956. ].eList.length) ||
  6957. (tool.eList && tool.eList.length)) &&
  6958. courseDetail.state == 5
  6959. "
  6960. >
  6961. <div
  6962. style="margin-right:10px"
  6963. class="ScoreBtn"
  6964. @click="
  6965. resetLoopEva(
  6966. worksStudent[toolIndex],
  6967. chapInfoList[courseType].chapterInfo[0].taskJson[
  6968. taskCount
  6969. ].eList,
  6970. courseType,
  6971. taskCount,
  6972. toolIndex,
  6973. tool.toolDetail,
  6974. worksStudent
  6975. )
  6976. "
  6977. >
  6978. 一键重置
  6979. </div>
  6980. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6981. <img
  6982. src="../../assets/icon/newIcons/rootImg.png"
  6983. alt=""
  6984. />
  6985. AI评分
  6986. </div>
  6987. <div
  6988. class="ScoreBtn"
  6989. v-else-if="!loopLoading[toolIndex].loading"
  6990. @click="
  6991. loopEva(
  6992. worksStudent[toolIndex],
  6993. chapInfoList[courseType].chapterInfo[0].taskJson[
  6994. taskCount
  6995. ].eList,
  6996. courseType,
  6997. taskCount,
  6998. toolIndex,
  6999. tool.toolDetail,
  7000. chapInfoList[courseType].chapterInfo[0].taskJson[
  7001. taskCount
  7002. ].taskDetail,
  7003. tool
  7004. )
  7005. "
  7006. >
  7007. <img
  7008. src="../../assets/icon/newIcons/rootImg.png"
  7009. alt=""
  7010. />
  7011. AI评分
  7012. </div>
  7013. <div class="ScoreBtn" v-else>
  7014. <img
  7015. src="../../assets/icon/newIcons/rootImg.png"
  7016. alt=""
  7017. />
  7018. 正在评分
  7019. </div>
  7020. </div>
  7021. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7022. </div>
  7023. <div
  7024. class="group_workBox"
  7025. v-for="(g, gindex) in courseGroup.group"
  7026. :key="gindex"
  7027. >
  7028. <div class="group_box">
  7029. <div class="group_title">
  7030. <el-tooltip
  7031. class="item"
  7032. effect="light"
  7033. :content="g.name"
  7034. placement="top"
  7035. >
  7036. <div class="group_name">{{ g.name }}</div>
  7037. </el-tooltip>
  7038. </div>
  7039. <div
  7040. class="group_work"
  7041. v-if="
  7042. g.works &&
  7043. g.works.length &&
  7044. g.works[toolIndex].length
  7045. "
  7046. >
  7047. <div
  7048. class="works"
  7049. style="
  7050. width: 200px;
  7051. height: 140px;
  7052. margin: 10px 10px 10px 0;
  7053. border-radius: 15px;
  7054. box-shadow: 0 0 6px 1px #dfdada;
  7055. "
  7056. v-for="(w, wIndex) in g.works[toolIndex]"
  7057. :key="wIndex"
  7058. :class="w.type == 1 ? 'isTypeOne' : ''"
  7059. >
  7060. <div class="workImg">
  7061. <img
  7062. :src="w.works"
  7063. @click="previewImg(w.works, w)"
  7064. alt
  7065. />
  7066. <div
  7067. class="answerScore"
  7068. v-if="w.score"
  7069. @click.stop="openScore(w)"
  7070. :class="{
  7071. rightW:
  7072. w.userid == userid ||
  7073. tType == 1 ||
  7074. tType == 4
  7075. }"
  7076. >
  7077. {{ JSON.parse(w.score).wScore }}分
  7078. </div>
  7079. <div
  7080. class="answerScore"
  7081. @click.stop="openScore(w)"
  7082. v-else-if="courseDetail.userid == userid"
  7083. :class="{
  7084. rightW:
  7085. w.userid == userid ||
  7086. tType == 1 ||
  7087. tType == 4
  7088. }"
  7089. >
  7090. 评分
  7091. </div>
  7092. <img
  7093. class="deleteImg"
  7094. src="../../assets/deleteworks.png"
  7095. v-if="
  7096. w.userid == userid || tType == 1 || tType == 4
  7097. "
  7098. @click.stop="deleteWorks(w.wid)"
  7099. alt
  7100. />
  7101. </div>
  7102. <div class="comment" style="min-width: 200px">
  7103. <div class="worksName">
  7104. <div>{{ w.sName }}</div>
  7105. </div>
  7106. <div class="commentList">
  7107. <div class="commentList">
  7108. <div
  7109. class="commentImg"
  7110. @click="
  7111. isLikes(
  7112. w.wid,
  7113. userid,
  7114. 1,
  7115. null,
  7116. w.isLikes,
  7117. w.sName
  7118. )
  7119. "
  7120. >
  7121. <img
  7122. :src="w.isLikes == true ? likes : noLikes"
  7123. alt=""
  7124. />
  7125. </div>
  7126. <div>{{ w.likesCount }}</div>
  7127. </div>
  7128. <div
  7129. class="commentList"
  7130. style="margin-right: 15px"
  7131. >
  7132. <div
  7133. class="commentImg"
  7134. @click="
  7135. commentOther(
  7136. w,
  7137. toolIndex,
  7138. wIndex,
  7139. null,
  7140. g.id
  7141. )
  7142. "
  7143. >
  7144. <img
  7145. src="../../assets/icon/comment/comment.png"
  7146. alt=""
  7147. />
  7148. </div>
  7149. <div>{{ w.commentCount }}</div>
  7150. </div>
  7151. </div>
  7152. </div>
  7153. </div>
  7154. </div>
  7155. <div class="group_work" v-else>暂无提交作业</div>
  7156. </div>
  7157. </div>
  7158. <div
  7159. :id="'tool-' + toolIndex"
  7160. :style="{
  7161. height:
  7162. isCloseList[toolIndex].isClose == 1
  7163. ? retrnToolHeight('tool-' + toolIndex)
  7164. : 'auto',
  7165. overflow:
  7166. isCloseList[toolIndex].isClose == 1
  7167. ? 'hidden'
  7168. : 'unset'
  7169. }"
  7170. class="worksDetailBox"
  7171. v-if="
  7172. worksStudent.length &&
  7173. worksStudent[toolIndex].length > 0
  7174. "
  7175. >
  7176. <div
  7177. class="works"
  7178. style="
  7179. width: 200px;
  7180. height: 140px;
  7181. margin: 10px 10px 10px 0;
  7182. border-radius: 15px;
  7183. box-shadow: 0 0 6px 1px #dfdada;
  7184. "
  7185. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7186. :key="wIndex"
  7187. >
  7188. <!-- @click="previewImg(w.works)" -->
  7189. <div class="workImg">
  7190. <img
  7191. :src="w.works"
  7192. @click="previewImg(w.works, w)"
  7193. alt
  7194. />
  7195. <div
  7196. class="answerScore"
  7197. v-if="w.score"
  7198. @click.stop="openScore(w)"
  7199. :class="{
  7200. rightW:
  7201. w.userid == userid || tType == 1 || tType == 4
  7202. }"
  7203. >
  7204. {{ JSON.parse(w.score).wScore }}分
  7205. </div>
  7206. <div
  7207. class="answerScore"
  7208. @click.stop="openScore(w)"
  7209. v-else-if="
  7210. courseDetail.userid == userid &&
  7211. courseDetail.state != 5 &&
  7212. chapInfoList[courseType].chapterInfo[0]
  7213. .taskJson[taskCount].eList &&
  7214. chapInfoList[courseType].chapterInfo[0]
  7215. .taskJson[taskCount].eList.length
  7216. "
  7217. :class="{
  7218. rightW:
  7219. w.userid == userid || tType == 1 || tType == 4
  7220. }"
  7221. >
  7222. 评分
  7223. </div>
  7224. <!-- <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"> -->
  7225. <div
  7226. v-else-if="
  7227. (courseDetail.userid == userid ||
  7228. (courseDetail.course_teacher &&
  7229. courseDetail.course_teacher.indexOf(userid) !=
  7230. -1) ||
  7231. (w.userid == userid && sIsOpen)) &&
  7232. courseDetail.state == 5 &&
  7233. ((chapInfoList[courseType].chapterInfo[0]
  7234. .taskJson[taskCount].eList &&
  7235. chapInfoList[courseType].chapterInfo[0]
  7236. .taskJson[taskCount].eList.length) ||
  7237. (tool.eList && tool.eList.length))
  7238. "
  7239. >
  7240. <el-popover
  7241. placement="top"
  7242. width="318"
  7243. :disabled="AIloading[toolIndex][wIndex].loading"
  7244. trigger="hover"
  7245. >
  7246. <markScore
  7247. :loading="AIloading[toolIndex][wIndex].loading"
  7248. :markScoreVisible="markScoreVisible"
  7249. :ref="`markSco${toolIndex}${wIndex}`"
  7250. @updateLoading="updateLoading"
  7251. @updateDocSco="updateDocSco"
  7252. @refreshOther="refreshOther"
  7253. @markScoreDig="markScoreDig"
  7254. :tool="tool"
  7255. :wIndex="wIndex"
  7256. :scoCon="w"
  7257. :toolIndex="toolIndex"
  7258. :key="refreshKey"
  7259. :stage="courseType"
  7260. :task="taskCount"
  7261. :scoTit="
  7262. chapInfoList[courseType].chapterInfo[0]
  7263. .taskJson[taskCount].eList
  7264. "
  7265. >
  7266. </markScore>
  7267. <div
  7268. class="answerScore"
  7269. @click="
  7270. markScoreDig2(
  7271. w.sName,
  7272. worksStudent,
  7273. w.userid,
  7274. toolIndex,
  7275. chapInfoList[courseType].chapterInfo[0]
  7276. .taskJson[taskCount].eList,
  7277. AIloading[toolIndex][wIndex].loading,
  7278. tool
  7279. )
  7280. "
  7281. slot="reference"
  7282. :class="{
  7283. rightW:
  7284. w.userid == userid ||
  7285. tType == 1 ||
  7286. tType == 4 ||
  7287. w.ateacher == userid
  7288. }"
  7289. >
  7290. <span v-if="AIloading[toolIndex][wIndex].sco">
  7291. {{
  7292. AIloading[toolIndex][wIndex].loading
  7293. ? "评分中"
  7294. : AIloading[toolIndex][wIndex].sco + "分"
  7295. }}
  7296. </span>
  7297. <span v-else>
  7298. {{
  7299. AIloading[toolIndex][wIndex].loading
  7300. ? "评分中"
  7301. : "评分"
  7302. }}
  7303. </span>
  7304. </div>
  7305. </el-popover>
  7306. </div>
  7307. <img
  7308. class="deleteImg"
  7309. src="../../assets/deleteworks.png"
  7310. v-if="
  7311. w.userid == userid || tType == 1 || tType == 4
  7312. "
  7313. @click.stop="deleteWorks(w.wid)"
  7314. alt
  7315. />
  7316. </div>
  7317. <div class="comment" style="min-width: 200px">
  7318. <div class="worksName">
  7319. <div>{{ w.sName }}</div>
  7320. </div>
  7321. <div class="commentList">
  7322. <div class="commentList">
  7323. <div
  7324. class="commentImg"
  7325. @click="
  7326. isLikes(
  7327. w.wid,
  7328. userid,
  7329. 1,
  7330. null,
  7331. w.isLikes,
  7332. w.sName
  7333. )
  7334. "
  7335. >
  7336. <img
  7337. :src="w.isLikes == true ? likes : noLikes"
  7338. alt=""
  7339. />
  7340. </div>
  7341. <div>{{ w.likesCount }}</div>
  7342. </div>
  7343. <div class="commentList" style="margin-right: 15px">
  7344. <div
  7345. class="commentImg"
  7346. @click="commentOther(w, toolIndex, wIndex)"
  7347. >
  7348. <img
  7349. src="../../assets/icon/comment/comment.png"
  7350. alt=""
  7351. />
  7352. </div>
  7353. <div>{{ w.commentCount }}</div>
  7354. </div>
  7355. </div>
  7356. </div>
  7357. </div>
  7358. </div>
  7359. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7360. 未提交
  7361. </div>
  7362. <div
  7363. class="noWorksS"
  7364. v-if="noWorksS && noWorksS[toolIndex].length"
  7365. >
  7366. <div
  7367. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7368. :key="sIndex"
  7369. class="noWorksName"
  7370. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7371. >
  7372. <el-tooltip
  7373. effect="dark"
  7374. :content="s.student"
  7375. placement="top"
  7376. >
  7377. <span>{{ s.student }}</span>
  7378. </el-tooltip>
  7379. </div>
  7380. </div>
  7381. </div>
  7382. <div
  7383. v-if="
  7384. tType &&
  7385. ((tType == 2 && sIsOpen == true) ||
  7386. tType == 1 ||
  7387. tType == 4) &&
  7388. tool.tool.indexOf(6) != -1
  7389. "
  7390. class="worksBox"
  7391. >
  7392. <div
  7393. class="zuoyeYulan"
  7394. v-if="
  7395. (worksStudent.length &&
  7396. worksStudent[toolIndex].length > 0) ||
  7397. (courseGroup.group && courseGroup.group.length)
  7398. "
  7399. >
  7400. <div class="worksTop">
  7401. <div>作业预览</div>
  7402. <div
  7403. class="corOpen"
  7404. @click="contract(toolIndex)"
  7405. v-if="
  7406. isCloseList[toolIndex].isCloseBoolean &&
  7407. isCloseList[toolIndex].isClose == 0
  7408. "
  7409. >
  7410. 折叠
  7411. </div>
  7412. <div
  7413. class="corOpen"
  7414. @click="contract(toolIndex)"
  7415. v-if="isCloseList[toolIndex].isClose == 1"
  7416. >
  7417. 展开
  7418. </div>
  7419. </div>
  7420. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7421. </div>
  7422. <div
  7423. class="group_workBox"
  7424. v-for="(g, gindex) in courseGroup.group"
  7425. :key="gindex"
  7426. >
  7427. <div class="group_box">
  7428. <div class="group_title">
  7429. <el-tooltip
  7430. class="item"
  7431. effect="light"
  7432. :content="g.name"
  7433. placement="top"
  7434. >
  7435. <div class="group_name">{{ g.name }}</div>
  7436. </el-tooltip>
  7437. </div>
  7438. <div
  7439. class="group_work"
  7440. v-if="
  7441. g.works &&
  7442. g.works.length &&
  7443. g.works[toolIndex].length
  7444. "
  7445. >
  7446. <div
  7447. class="works"
  7448. style="
  7449. width: 200px;
  7450. height: 140px;
  7451. margin: 10px 10px 10px 0;
  7452. border-radius: 15px;
  7453. box-shadow: 0 0 6px 1px #dfdada;
  7454. "
  7455. v-for="(w, wIndex) in g.works[toolIndex]"
  7456. :key="wIndex"
  7457. :class="w.type == 1 ? 'isTypeOne' : ''"
  7458. >
  7459. <div class="workImg">
  7460. <img
  7461. :src="w.works"
  7462. @click="previewImg(w.works, w)"
  7463. alt
  7464. />
  7465. <div
  7466. class="answerScore"
  7467. v-if="w.score"
  7468. @click.stop="openScore(w)"
  7469. :class="{
  7470. rightW:
  7471. w.userid == userid ||
  7472. tType == 1 ||
  7473. tType == 4
  7474. }"
  7475. >
  7476. {{ JSON.parse(w.score).wScore }}分
  7477. </div>
  7478. <div
  7479. class="answerScore"
  7480. @click.stop="openScore(w)"
  7481. v-else-if="courseDetail.userid == userid"
  7482. :class="{
  7483. rightW:
  7484. w.userid == userid ||
  7485. tType == 1 ||
  7486. tType == 4
  7487. }"
  7488. >
  7489. 评分
  7490. </div>
  7491. <img
  7492. class="deleteImg"
  7493. src="../../assets/deleteworks.png"
  7494. v-if="
  7495. w.userid == userid || tType == 1 || tType == 4
  7496. "
  7497. @click.stop="deleteWorks(w.wid)"
  7498. alt
  7499. />
  7500. </div>
  7501. <div class="comment" style="min-width: 200px">
  7502. <div class="worksName">
  7503. <div>{{ w.sName }}</div>
  7504. </div>
  7505. <div class="commentList">
  7506. <div class="commentList">
  7507. <div
  7508. class="commentImg"
  7509. @click="
  7510. isLikes(
  7511. w.wid,
  7512. userid,
  7513. 1,
  7514. null,
  7515. w.isLikes,
  7516. w.sName
  7517. )
  7518. "
  7519. >
  7520. <img
  7521. :src="w.isLikes == true ? likes : noLikes"
  7522. alt=""
  7523. />
  7524. </div>
  7525. <div>{{ w.likesCount }}</div>
  7526. </div>
  7527. <div
  7528. class="commentList"
  7529. style="margin-right: 15px"
  7530. >
  7531. <div
  7532. class="commentImg"
  7533. @click="
  7534. commentOther(
  7535. w,
  7536. toolIndex,
  7537. wIndex,
  7538. null,
  7539. g.id
  7540. )
  7541. "
  7542. >
  7543. <img
  7544. src="../../assets/icon/comment/comment.png"
  7545. alt=""
  7546. />
  7547. </div>
  7548. <div>{{ w.commentCount }}</div>
  7549. </div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. <div class="group_work" v-else>暂无提交作业</div>
  7555. </div>
  7556. </div>
  7557. <div
  7558. :id="'tool-' + toolIndex"
  7559. :style="{
  7560. height:
  7561. isCloseList[toolIndex].isClose == 1
  7562. ? retrnToolHeight('tool-' + toolIndex)
  7563. : 'auto',
  7564. overflow:
  7565. isCloseList[toolIndex].isClose == 1
  7566. ? 'hidden'
  7567. : 'unset'
  7568. }"
  7569. class="worksDetailBox"
  7570. v-if="
  7571. worksStudent.length &&
  7572. worksStudent[toolIndex].length > 0
  7573. "
  7574. >
  7575. <div
  7576. class="works"
  7577. style="
  7578. width: 200px;
  7579. height: 140px;
  7580. margin: 10px 10px 10px 0;
  7581. border-radius: 15px;
  7582. box-shadow: 0 0 6px 1px #dfdada;
  7583. "
  7584. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7585. :key="wIndex"
  7586. >
  7587. <!-- @click="previewImg(w.works)" -->
  7588. <div class="workImg">
  7589. <img
  7590. :src="w.works"
  7591. @click="previewImg(w.works, w)"
  7592. alt
  7593. />
  7594. <div
  7595. class="answerScore"
  7596. v-if="w.score"
  7597. @click.stop="openScore(w)"
  7598. :class="{
  7599. rightW:
  7600. w.userid == userid || tType == 1 || tType == 4
  7601. }"
  7602. >
  7603. {{ JSON.parse(w.score).wScore }}分
  7604. </div>
  7605. <div
  7606. class="answerScore"
  7607. @click.stop="openScore(w)"
  7608. v-else-if="courseDetail.userid == userid"
  7609. :class="{
  7610. rightW:
  7611. w.userid == userid || tType == 1 || tType == 4
  7612. }"
  7613. >
  7614. 评分
  7615. </div>
  7616. <img
  7617. class="deleteImg"
  7618. src="../../assets/deleteworks.png"
  7619. v-if="
  7620. w.userid == userid || tType == 1 || tType == 4
  7621. "
  7622. @click.stop="deleteWorks(w.wid)"
  7623. alt
  7624. />
  7625. </div>
  7626. <div class="comment" style="min-width: 200px">
  7627. <div class="worksName">
  7628. <div>{{ w.sName }}</div>
  7629. </div>
  7630. <div class="commentList">
  7631. <div class="commentList">
  7632. <div
  7633. class="commentImg"
  7634. @click="
  7635. isLikes(
  7636. w.wid,
  7637. userid,
  7638. 1,
  7639. null,
  7640. w.isLikes,
  7641. w.sName
  7642. )
  7643. "
  7644. >
  7645. <img
  7646. :src="w.isLikes == true ? likes : noLikes"
  7647. alt=""
  7648. />
  7649. </div>
  7650. <div>{{ w.likesCount }}</div>
  7651. </div>
  7652. <div class="commentList" style="margin-right: 15px">
  7653. <div
  7654. class="commentImg"
  7655. @click="commentOther(w, toolIndex, wIndex)"
  7656. >
  7657. <img
  7658. src="../../assets/icon/comment/comment.png"
  7659. alt=""
  7660. />
  7661. </div>
  7662. <div>{{ w.commentCount }}</div>
  7663. </div>
  7664. </div>
  7665. </div>
  7666. </div>
  7667. </div>
  7668. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7669. 未提交
  7670. </div>
  7671. <div
  7672. class="noWorksS"
  7673. v-if="noWorksS && noWorksS[toolIndex].length"
  7674. >
  7675. <div
  7676. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7677. :key="sIndex"
  7678. class="noWorksName"
  7679. >
  7680. <el-tooltip
  7681. effect="dark"
  7682. :content="s.student"
  7683. placement="top"
  7684. >
  7685. <span>{{ s.student }}</span>
  7686. </el-tooltip>
  7687. </div>
  7688. </div>
  7689. </div>
  7690. <div
  7691. v-if="
  7692. tType &&
  7693. ((tType == 2 && sIsOpen == true) ||
  7694. tType == 1 ||
  7695. tType == 4) &&
  7696. tool.tool.indexOf(7) != -1
  7697. "
  7698. class="worksBox"
  7699. >
  7700. <div
  7701. class="zuoyeYulan"
  7702. style="display: flex;justify-content: space-between;align-items: center;"
  7703. v-if="
  7704. (worksStudent.length &&
  7705. worksStudent[toolIndex].length > 0) ||
  7706. (courseGroup.group && courseGroup.group.length)
  7707. "
  7708. >
  7709. <div class="worksTop">
  7710. <div>作业预览</div>
  7711. <div
  7712. class="corOpen"
  7713. @click="contract(toolIndex)"
  7714. v-if="
  7715. isCloseList[toolIndex].isCloseBoolean &&
  7716. isCloseList[toolIndex].isClose == 0
  7717. "
  7718. >
  7719. 折叠
  7720. </div>
  7721. <div
  7722. class="corOpen"
  7723. @click="contract(toolIndex)"
  7724. v-if="isCloseList[toolIndex].isClose == 1"
  7725. >
  7726. 展开
  7727. </div>
  7728. </div>
  7729. <div
  7730. style="display: flex;"
  7731. v-if="
  7732. (courseDetail.userid == userid ||
  7733. (courseDetail.course_teacher &&
  7734. courseDetail.course_teacher.indexOf(userid) !=
  7735. -1)) &&
  7736. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7737. taskCount
  7738. ].eList &&
  7739. chapInfoList[courseType].chapterInfo[0].taskJson[
  7740. taskCount
  7741. ].eList.length) ||
  7742. (tool.eList && tool.eList.length)) &&
  7743. courseDetail.state == 5
  7744. "
  7745. >
  7746. <div
  7747. style="margin-right:10px"
  7748. class="ScoreBtn"
  7749. @click="
  7750. resetLoopEva(
  7751. worksStudent[toolIndex],
  7752. chapInfoList[courseType].chapterInfo[0].taskJson[
  7753. taskCount
  7754. ].eList,
  7755. courseType,
  7756. taskCount,
  7757. toolIndex,
  7758. tool.toolDetail,
  7759. worksStudent
  7760. )
  7761. "
  7762. >
  7763. 一键重置
  7764. </div>
  7765. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7766. <img
  7767. src="../../assets/icon/newIcons/rootImg.png"
  7768. alt=""
  7769. />
  7770. AI评分
  7771. </div>
  7772. <div
  7773. class="ScoreBtn"
  7774. v-else-if="!loopLoading[toolIndex].loading"
  7775. @click="
  7776. loopEva(
  7777. worksStudent[toolIndex],
  7778. chapInfoList[courseType].chapterInfo[0].taskJson[
  7779. taskCount
  7780. ].eList,
  7781. courseType,
  7782. taskCount,
  7783. toolIndex,
  7784. tool.toolDetail,
  7785. chapInfoList[courseType].chapterInfo[0].taskJson[
  7786. taskCount
  7787. ].taskDetail,
  7788. tool
  7789. )
  7790. "
  7791. >
  7792. <img
  7793. src="../../assets/icon/newIcons/rootImg.png"
  7794. alt=""
  7795. />
  7796. AI评分
  7797. </div>
  7798. <div class="ScoreBtn" v-else>
  7799. <img
  7800. src="../../assets/icon/newIcons/rootImg.png"
  7801. alt=""
  7802. />
  7803. 正在评分
  7804. </div>
  7805. </div>
  7806. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7807. </div>
  7808. <div
  7809. class="group_workBox"
  7810. v-for="(g, gindex) in courseGroup.group"
  7811. :key="gindex"
  7812. >
  7813. <div class="group_box">
  7814. <div class="group_title">
  7815. <el-tooltip
  7816. class="item"
  7817. effect="light"
  7818. :content="g.name"
  7819. placement="top"
  7820. >
  7821. <div class="group_name">{{ g.name }}</div>
  7822. </el-tooltip>
  7823. </div>
  7824. <div
  7825. class="group_work"
  7826. v-if="
  7827. g.works &&
  7828. g.works.length &&
  7829. g.works[toolIndex].length
  7830. "
  7831. >
  7832. <div
  7833. class="works"
  7834. style="
  7835. width: 200px;
  7836. height: 140px;
  7837. margin: 10px 10px 10px 0;
  7838. border-radius: 15px;
  7839. box-shadow: 0 0 6px 1px #dfdada;
  7840. "
  7841. v-for="(w, wIndex) in g.works[toolIndex]"
  7842. :key="wIndex"
  7843. :class="w.type == 1 ? 'isTypeOne' : ''"
  7844. >
  7845. <div class="workImg">
  7846. <img
  7847. :src="w.works"
  7848. @click="previewImg(w.works, w)"
  7849. alt
  7850. />
  7851. <div
  7852. class="answerScore"
  7853. v-if="w.score"
  7854. @click.stop="openScore(w)"
  7855. :class="{
  7856. rightW:
  7857. w.userid == userid ||
  7858. tType == 1 ||
  7859. tType == 4
  7860. }"
  7861. >
  7862. {{ JSON.parse(w.score).wScore }}分
  7863. </div>
  7864. <div
  7865. class="answerScore"
  7866. @click.stop="openScore(w)"
  7867. v-else-if="courseDetail.userid == userid"
  7868. :class="{
  7869. rightW:
  7870. w.userid == userid ||
  7871. tType == 1 ||
  7872. tType == 4
  7873. }"
  7874. >
  7875. 评分
  7876. </div>
  7877. <img
  7878. class="deleteImg"
  7879. src="../../assets/deleteworks.png"
  7880. v-if="
  7881. w.userid == userid || tType == 1 || tType == 4
  7882. "
  7883. @click.stop="deleteWorks(w.wid)"
  7884. alt
  7885. />
  7886. </div>
  7887. <div class="comment" style="min-width: 200px">
  7888. <div class="worksName">
  7889. <div>{{ w.sName }}</div>
  7890. </div>
  7891. <div class="commentList">
  7892. <div class="commentList">
  7893. <div
  7894. class="commentImg"
  7895. @click="
  7896. isLikes(
  7897. w.wid,
  7898. userid,
  7899. 1,
  7900. null,
  7901. w.isLikes,
  7902. w.sName
  7903. )
  7904. "
  7905. >
  7906. <img
  7907. :src="w.isLikes == true ? likes : noLikes"
  7908. alt=""
  7909. />
  7910. </div>
  7911. <div>{{ w.likesCount }}</div>
  7912. </div>
  7913. <div
  7914. class="commentList"
  7915. style="margin-right: 15px"
  7916. >
  7917. <div
  7918. class="commentImg"
  7919. @click="
  7920. commentOther(
  7921. w,
  7922. toolIndex,
  7923. wIndex,
  7924. null,
  7925. g.id
  7926. )
  7927. "
  7928. >
  7929. <img
  7930. src="../../assets/icon/comment/comment.png"
  7931. alt=""
  7932. />
  7933. </div>
  7934. <div>{{ w.commentCount }}</div>
  7935. </div>
  7936. </div>
  7937. </div>
  7938. </div>
  7939. </div>
  7940. <div class="group_work" v-else>暂无提交作业</div>
  7941. </div>
  7942. </div>
  7943. <div
  7944. :id="'tool-' + toolIndex"
  7945. :style="{
  7946. height:
  7947. isCloseList[toolIndex].isClose == 1
  7948. ? retrnToolHeight('tool-' + toolIndex)
  7949. : 'auto',
  7950. overflow:
  7951. isCloseList[toolIndex].isClose == 1
  7952. ? 'hidden'
  7953. : 'unset'
  7954. }"
  7955. class="worksDetailBox"
  7956. v-if="
  7957. worksStudent.length &&
  7958. worksStudent[toolIndex].length > 0
  7959. "
  7960. >
  7961. <div
  7962. class="works"
  7963. style="
  7964. width: 200px;
  7965. height: 140px;
  7966. margin: 10px 10px 10px 0;
  7967. border-radius: 15px;
  7968. box-shadow: 0 0 6px 1px #dfdada;
  7969. "
  7970. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7971. :key="wIndex"
  7972. >
  7973. <!-- @click="previewImg(w.works)" -->
  7974. <div class="workImg">
  7975. <img
  7976. :src="w.works"
  7977. @click="previewImg(w.works, w)"
  7978. alt
  7979. />
  7980. <div
  7981. class="answerScore"
  7982. v-if="w.score"
  7983. @click.stop="openScore(w)"
  7984. :class="{
  7985. rightW:
  7986. w.userid == userid || tType == 1 || tType == 4
  7987. }"
  7988. >
  7989. {{ JSON.parse(w.score).wScore }}分
  7990. </div>
  7991. <div
  7992. class="answerScore"
  7993. @click.stop="openScore(w)"
  7994. v-else-if="
  7995. courseDetail.userid == userid &&
  7996. courseDetail.state != 5 &&
  7997. chapInfoList[courseType].chapterInfo[0]
  7998. .taskJson[taskCount].eList &&
  7999. chapInfoList[courseType].chapterInfo[0]
  8000. .taskJson[taskCount].eList.length
  8001. "
  8002. :class="{
  8003. rightW:
  8004. w.userid == userid || tType == 1 || tType == 4
  8005. }"
  8006. >
  8007. 评分
  8008. </div>
  8009. <!-- <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"> -->
  8010. <div
  8011. v-else-if="
  8012. (courseDetail.userid == userid ||
  8013. (courseDetail.course_teacher &&
  8014. courseDetail.course_teacher.indexOf(userid) !=
  8015. -1) ||
  8016. (w.userid == userid && sIsOpen)) &&
  8017. courseDetail.state == 5 &&
  8018. ((chapInfoList[courseType].chapterInfo[0]
  8019. .taskJson[taskCount].eList &&
  8020. chapInfoList[courseType].chapterInfo[0]
  8021. .taskJson[taskCount].eList.length) ||
  8022. (tool.eList && tool.eList.length))
  8023. "
  8024. >
  8025. <el-popover
  8026. placement="top"
  8027. width="318"
  8028. :disabled="AIloading[toolIndex][wIndex].loading"
  8029. trigger="hover"
  8030. >
  8031. <markScore
  8032. :loading="AIloading[toolIndex][wIndex].loading"
  8033. :markScoreVisible="markScoreVisible"
  8034. :ref="`markSco${toolIndex}${wIndex}`"
  8035. @updateLoading="updateLoading"
  8036. @updateDocSco="updateDocSco"
  8037. @refreshOther="refreshOther"
  8038. @markScoreDig="markScoreDig"
  8039. :tool="tool"
  8040. :wIndex="wIndex"
  8041. :scoCon="w"
  8042. :toolIndex="toolIndex"
  8043. :key="refreshKey"
  8044. :stage="courseType"
  8045. :task="taskCount"
  8046. :scoTit="
  8047. chapInfoList[courseType].chapterInfo[0]
  8048. .taskJson[taskCount].eList
  8049. "
  8050. >
  8051. </markScore>
  8052. <div
  8053. class="answerScore"
  8054. @click="
  8055. markScoreDig2(
  8056. w.sName,
  8057. worksStudent,
  8058. w.userid,
  8059. toolIndex,
  8060. chapInfoList[courseType].chapterInfo[0]
  8061. .taskJson[taskCount].eList,
  8062. AIloading[toolIndex][wIndex].loading,
  8063. tool
  8064. )
  8065. "
  8066. slot="reference"
  8067. :class="{
  8068. rightW:
  8069. w.userid == userid ||
  8070. tType == 1 ||
  8071. tType == 4 ||
  8072. w.ateacher == userid
  8073. }"
  8074. >
  8075. <span v-if="AIloading[toolIndex][wIndex].sco">
  8076. {{
  8077. AIloading[toolIndex][wIndex].loading
  8078. ? "评分中"
  8079. : AIloading[toolIndex][wIndex].sco + "分"
  8080. }}
  8081. </span>
  8082. <span v-else>
  8083. {{
  8084. AIloading[toolIndex][wIndex].loading
  8085. ? "评分中"
  8086. : "评分"
  8087. }}
  8088. </span>
  8089. </div>
  8090. </el-popover>
  8091. </div>
  8092. <img
  8093. class="deleteImg"
  8094. src="../../assets/deleteworks.png"
  8095. v-if="
  8096. w.userid == userid || tType == 1 || tType == 4
  8097. "
  8098. @click.stop="deleteWorks(w.wid)"
  8099. alt
  8100. />
  8101. </div>
  8102. <div class="comment" style="min-width: 200px">
  8103. <div class="worksName">
  8104. <div>{{ w.sName }}</div>
  8105. </div>
  8106. <div class="commentList">
  8107. <div class="commentList">
  8108. <div
  8109. class="commentImg"
  8110. @click="
  8111. isLikes(
  8112. w.wid,
  8113. userid,
  8114. 1,
  8115. null,
  8116. w.isLikes,
  8117. w.sName
  8118. )
  8119. "
  8120. >
  8121. <img
  8122. :src="w.isLikes == true ? likes : noLikes"
  8123. alt=""
  8124. />
  8125. </div>
  8126. <div>{{ w.likesCount }}</div>
  8127. </div>
  8128. <div class="commentList" style="margin-right: 15px">
  8129. <div
  8130. class="commentImg"
  8131. @click="commentOther(w, toolIndex, wIndex)"
  8132. >
  8133. <img
  8134. src="../../assets/icon/comment/comment.png"
  8135. alt=""
  8136. />
  8137. </div>
  8138. <div>{{ w.commentCount }}</div>
  8139. </div>
  8140. </div>
  8141. </div>
  8142. </div>
  8143. </div>
  8144. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8145. 未提交
  8146. </div>
  8147. <div
  8148. class="noWorksS"
  8149. v-if="noWorksS && noWorksS[toolIndex].length"
  8150. >
  8151. <div
  8152. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8153. :key="sIndex"
  8154. class="noWorksName"
  8155. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8156. >
  8157. <el-tooltip
  8158. effect="dark"
  8159. :content="s.student"
  8160. placement="top"
  8161. >
  8162. <span>{{ s.student }}</span>
  8163. </el-tooltip>
  8164. </div>
  8165. </div>
  8166. </div>
  8167. <div
  8168. v-if="
  8169. tType &&
  8170. ((tType == 2 && sIsOpen == true) ||
  8171. tType == 1 ||
  8172. tType == 4) &&
  8173. tool.tool.indexOf(26) != -1
  8174. "
  8175. class="worksBox"
  8176. >
  8177. <div
  8178. class="zuoyeYulan"
  8179. v-if="
  8180. worksStudent.length &&
  8181. worksStudent[toolIndex].length > 0
  8182. "
  8183. >
  8184. <div class="worksTop">
  8185. <div>作业预览</div>
  8186. <div
  8187. class="corOpen"
  8188. @click="contract(toolIndex)"
  8189. v-if="
  8190. isCloseList[toolIndex].isCloseBoolean &&
  8191. isCloseList[toolIndex].isClose == 0
  8192. "
  8193. >
  8194. 折叠
  8195. </div>
  8196. <div
  8197. class="corOpen"
  8198. @click="contract(toolIndex)"
  8199. v-if="isCloseList[toolIndex].isClose == 1"
  8200. >
  8201. 展开
  8202. </div>
  8203. </div>
  8204. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8205. </div>
  8206. <div
  8207. :id="'tool-' + toolIndex"
  8208. :style="{
  8209. height:
  8210. isCloseList[toolIndex].isClose == 1
  8211. ? retrnToolHeight('tool-' + toolIndex)
  8212. : 'auto',
  8213. overflow:
  8214. isCloseList[toolIndex].isClose == 1
  8215. ? 'hidden'
  8216. : 'unset'
  8217. }"
  8218. class="worksDetailBox"
  8219. v-if="
  8220. worksStudent.length &&
  8221. worksStudent[toolIndex].length > 0
  8222. "
  8223. >
  8224. <div
  8225. class="works"
  8226. style="width: 240px; height: 140px; overflow: hidden"
  8227. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8228. :key="wIndex"
  8229. :class="w.type == 1 ? 'isTypeOne' : ''"
  8230. >
  8231. <div class="workImg" v-if="w.type == 0">
  8232. <img
  8233. :src="w.works"
  8234. @click="previewImg(w.works, w)"
  8235. alt
  8236. />
  8237. <img
  8238. class="deleteImg"
  8239. src="../../assets/deleteworks.png"
  8240. v-if="
  8241. w.userid == userid || tType == 1 || tType == 4
  8242. "
  8243. @click.stop="deleteWorks(w.wid)"
  8244. alt
  8245. />
  8246. </div>
  8247. <div class="workImg" v-if="w.type == 1">
  8248. <img :src="word" @click="openFile(w.works)" alt />
  8249. <img
  8250. class="deleteImg"
  8251. src="../../assets/deleteworks.png"
  8252. v-if="
  8253. w.userid == userid || tType == 1 || tType == 4
  8254. "
  8255. @click.stop="deleteWorks(w.wid)"
  8256. alt
  8257. />
  8258. </div>
  8259. <div class="worksName">
  8260. <div>{{ w.sName }}</div>
  8261. </div>
  8262. </div>
  8263. </div>
  8264. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8265. 未提交
  8266. </div>
  8267. <div
  8268. class="noWorksS"
  8269. v-if="noWorksS && noWorksS[toolIndex].length"
  8270. >
  8271. <div
  8272. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8273. :key="sIndex"
  8274. class="noWorksName"
  8275. >
  8276. <el-tooltip
  8277. effect="dark"
  8278. :content="s.student"
  8279. placement="top"
  8280. >
  8281. <span>{{ s.student }}</span>
  8282. </el-tooltip>
  8283. </div>
  8284. </div>
  8285. </div>
  8286. <div
  8287. v-if="
  8288. tType &&
  8289. ((tType == 2 && sIsOpen == true) ||
  8290. tType == 1 ||
  8291. tType == 4) &&
  8292. tool.tool.indexOf(40) != -1
  8293. "
  8294. class="worksBox"
  8295. >
  8296. <div
  8297. class="zuoyeYulan"
  8298. v-if="
  8299. worksStudent.length &&
  8300. worksStudent[toolIndex].length > 0
  8301. "
  8302. >
  8303. <div class="worksTop">
  8304. <div>作业预览</div>
  8305. <div
  8306. class="corOpen"
  8307. @click="contract(toolIndex)"
  8308. v-if="
  8309. isCloseList[toolIndex].isCloseBoolean &&
  8310. isCloseList[toolIndex].isClose == 0
  8311. "
  8312. >
  8313. 折叠
  8314. </div>
  8315. <div
  8316. class="corOpen"
  8317. @click="contract(toolIndex)"
  8318. v-if="isCloseList[toolIndex].isClose == 1"
  8319. >
  8320. 展开
  8321. </div>
  8322. </div>
  8323. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8324. </div>
  8325. <div
  8326. :id="'tool-' + toolIndex"
  8327. :style="{
  8328. height:
  8329. isCloseList[toolIndex].isClose == 1
  8330. ? retrnToolHeight('tool-' + toolIndex)
  8331. : 'auto',
  8332. overflow:
  8333. isCloseList[toolIndex].isClose == 1
  8334. ? 'hidden'
  8335. : 'unset'
  8336. }"
  8337. class="worksDetailBox"
  8338. v-if="
  8339. worksStudent.length &&
  8340. worksStudent[toolIndex].length > 0
  8341. "
  8342. >
  8343. <div
  8344. class="works"
  8345. style="
  8346. width: 200px;
  8347. height: 140px;
  8348. margin: 10px 10px 10px 0;
  8349. border-radius: 15px;
  8350. box-shadow: 0 0 6px 1px #dfdada;
  8351. "
  8352. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8353. :key="wIndex"
  8354. :class="w.type == 1 ? 'isTypeOne' : ''"
  8355. >
  8356. <div class="workImg">
  8357. <img
  8358. src="../../assets/icon/works/noImg.png"
  8359. @click="openPj(w.works, toolIndex)"
  8360. alt
  8361. />
  8362. <img
  8363. class="deleteImg"
  8364. src="../../assets/deleteworks.png"
  8365. v-if="
  8366. w.userid == userid || tType == 1 || tType == 4
  8367. "
  8368. @click.stop="deleteWorks(w.wid)"
  8369. alt
  8370. />
  8371. </div>
  8372. <div class="comment" style="min-width: 200px">
  8373. <div class="worksName">
  8374. <div>{{ w.sName }}</div>
  8375. </div>
  8376. <div class="commentList">
  8377. <div class="commentList">
  8378. <div
  8379. class="commentImg"
  8380. @click="
  8381. isLikes(
  8382. w.wid,
  8383. userid,
  8384. 1,
  8385. null,
  8386. w.isLikes,
  8387. w.sName
  8388. )
  8389. "
  8390. >
  8391. <img
  8392. :src="w.isLikes == true ? likes : noLikes"
  8393. alt=""
  8394. />
  8395. </div>
  8396. <div>{{ w.likesCount }}</div>
  8397. </div>
  8398. <div class="commentList" style="margin-right: 15px">
  8399. <div
  8400. class="commentImg"
  8401. @click="commentOther(w, toolIndex, wIndex)"
  8402. >
  8403. <img
  8404. src="../../assets/icon/comment/comment.png"
  8405. alt=""
  8406. />
  8407. </div>
  8408. <div>{{ w.commentCount }}</div>
  8409. </div>
  8410. </div>
  8411. </div>
  8412. </div>
  8413. </div>
  8414. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8415. 未提交
  8416. </div>
  8417. <div
  8418. class="noWorksS"
  8419. v-if="noWorksS && noWorksS[toolIndex].length"
  8420. >
  8421. <div
  8422. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8423. :key="sIndex"
  8424. class="noWorksName"
  8425. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8426. >
  8427. <el-tooltip
  8428. effect="dark"
  8429. :content="s.student"
  8430. placement="top"
  8431. >
  8432. <span>{{ s.student }}</span>
  8433. </el-tooltip>
  8434. </div>
  8435. </div>
  8436. </div>
  8437. <div
  8438. v-if="
  8439. tType &&
  8440. tType == 2 &&
  8441. !sIsOpen &&
  8442. tool.tool.indexOf(40) != -1
  8443. "
  8444. class="worksBox"
  8445. >
  8446. <div
  8447. class="zuoyeYulan"
  8448. v-if="workStudent[toolIndex].length > 0"
  8449. >
  8450. <span class="worksTitle">作业预览</span>
  8451. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8452. </div>
  8453. <div
  8454. class="worksDetailBox"
  8455. v-if="workStudent[toolIndex].length > 0"
  8456. >
  8457. <div
  8458. class="works"
  8459. style="
  8460. width: 200px;
  8461. height: 140px;
  8462. margin: 10px 10px 10px 0;
  8463. "
  8464. v-for="(w, wIndex) in workStudent[toolIndex]"
  8465. :key="wIndex"
  8466. >
  8467. <div class="workImg">
  8468. <img
  8469. src="../../assets/icon/works/noImg.png"
  8470. @click="openPj(w.works, toolIndex)"
  8471. alt
  8472. />
  8473. <img
  8474. class="deleteImg"
  8475. src="../../assets/deleteworks.png"
  8476. v-if="
  8477. w.userid == userid || tType == 1 || tType == 4
  8478. "
  8479. @click.stop="deleteWorks(w.wid)"
  8480. alt
  8481. />
  8482. </div>
  8483. <div class="worksName">
  8484. <div>{{ w.sName }}</div>
  8485. </div>
  8486. </div>
  8487. </div>
  8488. </div>
  8489. <div
  8490. v-if="
  8491. tType &&
  8492. ((tType == 2 && sIsOpen == true) ||
  8493. tType == 1 ||
  8494. tType == 4) &&
  8495. tool.tool.indexOf(41) != -1
  8496. "
  8497. >
  8498. <AnswerData2
  8499. v-if="
  8500. worksStudent.length &&
  8501. worksStudent[toolIndex].length > 0
  8502. "
  8503. :problemJson="tool.selectJson.answer"
  8504. :people="worksStudent[toolIndex]"
  8505. ></AnswerData2>
  8506. </div>
  8507. <div
  8508. v-if="
  8509. tType &&
  8510. ((tType == 2 && sIsOpen == true) ||
  8511. tType == 1 ||
  8512. tType == 4) &&
  8513. tool.tool.indexOf(41) != -1
  8514. "
  8515. class="worksBox"
  8516. >
  8517. <div
  8518. class="zuoyeYulan"
  8519. v-if="
  8520. worksStudent.length &&
  8521. worksStudent[toolIndex].length > 0
  8522. "
  8523. >
  8524. <div class="worksTop">
  8525. <div>作业预览</div>
  8526. <div
  8527. class="corOpen"
  8528. @click="contract(toolIndex)"
  8529. v-if="
  8530. isCloseList[toolIndex].isCloseBoolean &&
  8531. isCloseList[toolIndex].isClose == 0
  8532. "
  8533. >
  8534. 折叠
  8535. </div>
  8536. <div
  8537. class="corOpen"
  8538. @click="contract(toolIndex)"
  8539. v-if="isCloseList[toolIndex].isClose == 1"
  8540. >
  8541. 展开
  8542. </div>
  8543. </div>
  8544. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8545. </div>
  8546. <div
  8547. :id="'tool-' + toolIndex"
  8548. :style="{
  8549. height:
  8550. isCloseList[toolIndex].isClose == 1
  8551. ? retrnToolHeight('tool-' + toolIndex)
  8552. : 'auto',
  8553. overflow:
  8554. isCloseList[toolIndex].isClose == 1
  8555. ? 'hidden'
  8556. : 'unset'
  8557. }"
  8558. class="worksDetailBox"
  8559. v-if="
  8560. worksStudent.length &&
  8561. worksStudent[toolIndex].length > 0
  8562. "
  8563. >
  8564. <div
  8565. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8566. :key="wIndex"
  8567. class="isWorksName2"
  8568. @click="openXz(w, toolIndex)"
  8569. >
  8570. {{ w.sName }}
  8571. <img
  8572. class="deleteImg deleteImg2"
  8573. src="../../assets/deleteworks.png"
  8574. v-if="w.userid == userid || tType == 1 || tType == 4"
  8575. @click.stop="deleteWorks(w.wid)"
  8576. alt
  8577. />
  8578. </div>
  8579. <!-- <div
  8580. class="works"
  8581. style="
  8582. width: 200px;
  8583. height: 140px;
  8584. margin: 10px 10px 10px 0;
  8585. border-radius: 15px;
  8586. box-shadow: 0 0 6px 1px #dfdada;
  8587. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8588. :class="w.type == 5 ? 'isTypeOne' : ''">
  8589. <div class="workImg">
  8590. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8591. </div>
  8592. <div class="worksName">
  8593. <div>{{ w.sName }}</div>
  8594. </div>
  8595. </div> -->
  8596. </div>
  8597. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8598. 未提交
  8599. </div>
  8600. <div
  8601. class="noWorksS"
  8602. v-if="noWorksS && noWorksS[toolIndex].length"
  8603. >
  8604. <div
  8605. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8606. :key="sIndex"
  8607. class="noWorksName"
  8608. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8609. >
  8610. <el-tooltip
  8611. effect="dark"
  8612. :content="s.student"
  8613. placement="top"
  8614. >
  8615. <span>{{ s.student }}</span>
  8616. </el-tooltip>
  8617. </div>
  8618. </div>
  8619. </div>
  8620. <div
  8621. v-if="
  8622. tType &&
  8623. tType == 2 &&
  8624. !sIsOpen &&
  8625. tool.tool.indexOf(41) != -1
  8626. "
  8627. class="worksBox"
  8628. >
  8629. <div
  8630. class="zuoyeYulan"
  8631. v-if="workStudent[toolIndex].length > 0"
  8632. >
  8633. <span class="worksTitle">作业预览</span>
  8634. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8635. </div>
  8636. <div
  8637. class="worksDetailBox"
  8638. v-if="workStudent[toolIndex].length > 0"
  8639. >
  8640. <div
  8641. class="works"
  8642. style="
  8643. width: 200px;
  8644. height: 140px;
  8645. margin: 10px 10px 10px 0;
  8646. "
  8647. v-for="(w, wIndex) in workStudent[toolIndex]"
  8648. :key="wIndex"
  8649. >
  8650. <div class="workImg">
  8651. <img
  8652. src="../../assets/icon/works/noImg.png"
  8653. @click="openXz(w, toolIndex)"
  8654. alt
  8655. />
  8656. <img
  8657. class="deleteImg"
  8658. src="../../assets/deleteworks.png"
  8659. v-if="
  8660. w.userid == userid || tType == 1 || tType == 4
  8661. "
  8662. @click.stop="deleteWorks(w.wid)"
  8663. alt
  8664. />
  8665. </div>
  8666. <div class="worksName">
  8667. <div>{{ w.sName }}</div>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. </div>
  8672. <div v-if="false" class="xuan_right_box">
  8673. <div
  8674. class="tool_right_box"
  8675. v-for="(item, index) in tool.sentenceList"
  8676. :key="index"
  8677. >
  8678. <div>
  8679. <span
  8680. style="word-break: break-all; white-space: normal"
  8681. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8682. >
  8683. </div>
  8684. <div class="right_box_xuan">
  8685. <span>正确率</span>
  8686. <span>{{
  8687. (checkJson[toolIndex][index].right
  8688. ? checkJson[toolIndex][index].right
  8689. : 0) + "%"
  8690. }}</span>
  8691. </div>
  8692. <div class="right_box_xuan">
  8693. <span>答对人数</span>
  8694. <span>{{
  8695. checkJson[toolIndex][index].rightPerson.length
  8696. }}</span>
  8697. </div>
  8698. </div>
  8699. </div>
  8700. <div
  8701. v-if="
  8702. tType &&
  8703. ((tType == 2 && sIsOpen == true) ||
  8704. tType == 1 ||
  8705. tType == 4) &&
  8706. tool.tool.indexOf(47) != -1
  8707. "
  8708. >
  8709. <AnswerData
  8710. v-if="
  8711. checkJson[toolIndex].length &&
  8712. (tool.sentenceList || tool.sentenceList.length > 0)
  8713. "
  8714. :people="checkJson[toolIndex]"
  8715. ></AnswerData>
  8716. </div>
  8717. <div
  8718. v-if="
  8719. tType &&
  8720. tType == 2 &&
  8721. !sIsOpen &&
  8722. tool.tool.indexOf(47) != -1
  8723. "
  8724. class="worksBox"
  8725. >
  8726. <div
  8727. class="zuoyeYulan"
  8728. v-if="workStudent[toolIndex].length > 0"
  8729. >
  8730. <span class="worksTitle">作业预览</span>
  8731. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8732. </div>
  8733. <div
  8734. class="worksDetailBox"
  8735. v-if="workStudent[toolIndex].length > 0"
  8736. >
  8737. <div
  8738. class="works"
  8739. style="
  8740. width: 200px;
  8741. height: 140px;
  8742. margin: 10px 10px 10px 0;
  8743. "
  8744. v-for="(w, wIndex) in workStudent[toolIndex]"
  8745. :key="wIndex"
  8746. >
  8747. <!-- @click="openXz(w, toolIndex)" -->
  8748. <div class="workImg" @click="openSen(w, toolIndex)">
  8749. <img src="../../assets/icon/works/noImg.png" alt />
  8750. <img
  8751. class="deleteImg"
  8752. src="../../assets/deleteworks.png"
  8753. v-if="
  8754. w.userid == userid || tType == 1 || tType == 4
  8755. "
  8756. @click.stop="deleteWorks(w.wid)"
  8757. alt
  8758. />
  8759. </div>
  8760. <div class="worksName">
  8761. <div>
  8762. {{ w.sName }}
  8763. </div>
  8764. </div>
  8765. </div>
  8766. </div>
  8767. </div>
  8768. <div
  8769. v-if="
  8770. tType &&
  8771. ((tType == 2 && sIsOpen == true) ||
  8772. tType == 1 ||
  8773. tType == 4) &&
  8774. tool.tool.indexOf(47) != -1
  8775. "
  8776. class="worksBox"
  8777. >
  8778. <div
  8779. class="zuoyeYulan"
  8780. v-if="
  8781. worksStudent.length &&
  8782. worksStudent[toolIndex].length > 0
  8783. "
  8784. >
  8785. <div class="worksTop">
  8786. <div>作业预览</div>
  8787. <div
  8788. class="corOpen"
  8789. @click="contract(toolIndex)"
  8790. v-if="
  8791. isCloseList[toolIndex].isCloseBoolean &&
  8792. isCloseList[toolIndex].isClose == 0
  8793. "
  8794. >
  8795. 折叠
  8796. </div>
  8797. <div
  8798. class="corOpen"
  8799. @click="contract(toolIndex)"
  8800. v-if="isCloseList[toolIndex].isClose == 1"
  8801. >
  8802. 展开
  8803. </div>
  8804. </div>
  8805. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8806. </div>
  8807. <div
  8808. :id="'tool-' + toolIndex"
  8809. :style="{
  8810. height:
  8811. isCloseList[toolIndex].isClose == 1
  8812. ? retrnToolHeight('tool-' + toolIndex)
  8813. : 'auto',
  8814. overflow:
  8815. isCloseList[toolIndex].isClose == 1
  8816. ? 'hidden'
  8817. : 'unset'
  8818. }"
  8819. class="worksDetailBox"
  8820. v-if="
  8821. worksStudent.length &&
  8822. worksStudent[toolIndex].length > 0
  8823. "
  8824. >
  8825. <!-- @click="openXz(w, toolIndex)" -->
  8826. <div
  8827. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8828. :key="wIndex"
  8829. class="isWorksName2"
  8830. @click="openSen(w, toolIndex)"
  8831. >
  8832. {{ w.sName }}
  8833. <img
  8834. class="deleteImg deleteImg2"
  8835. src="../../assets/deleteworks.png"
  8836. v-if="w.userid == userid || tType == 1 || tType == 4"
  8837. @click.stop="deleteWorks(w.wid)"
  8838. alt
  8839. />
  8840. </div>
  8841. </div>
  8842. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8843. 未提交
  8844. </div>
  8845. <div
  8846. class="noWorksS"
  8847. v-if="noWorksS && noWorksS[toolIndex].length"
  8848. >
  8849. <div
  8850. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8851. :key="sIndex"
  8852. class="noWorksName"
  8853. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8854. >
  8855. <el-tooltip
  8856. effect="dark"
  8857. :content="s.student"
  8858. placement="top"
  8859. >
  8860. <span>{{ s.student }}</span>
  8861. </el-tooltip>
  8862. </div>
  8863. </div>
  8864. </div>
  8865. <div
  8866. v-if="
  8867. tType &&
  8868. ((tType == 2 && sIsOpen == true) ||
  8869. tType == 1 ||
  8870. tType == 4) &&
  8871. tool.tool.indexOf(48) != -1
  8872. "
  8873. class="worksBox"
  8874. >
  8875. <div
  8876. class="zuoyeYulan"
  8877. style="display: flex;justify-content: space-between;align-items: center;"
  8878. v-if="
  8879. worksStudent.length &&
  8880. worksStudent[toolIndex].length > 0
  8881. "
  8882. >
  8883. <div class="worksTop">
  8884. <div>作业预览</div>
  8885. <div
  8886. class="corOpen"
  8887. @click="contract(toolIndex)"
  8888. v-if="
  8889. isCloseList[toolIndex].isCloseBoolean &&
  8890. isCloseList[toolIndex].isClose == 0
  8891. "
  8892. >
  8893. 折叠
  8894. </div>
  8895. <div
  8896. class="corOpen"
  8897. @click="contract(toolIndex)"
  8898. v-if="isCloseList[toolIndex].isClose == 1"
  8899. >
  8900. 展开
  8901. </div>
  8902. </div>
  8903. <div
  8904. style="display: flex;"
  8905. v-if="
  8906. (courseDetail.userid == userid ||
  8907. (courseDetail.course_teacher &&
  8908. courseDetail.course_teacher.indexOf(userid) !=
  8909. -1)) &&
  8910. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8911. taskCount
  8912. ].eList &&
  8913. chapInfoList[courseType].chapterInfo[0].taskJson[
  8914. taskCount
  8915. ].eList.length) ||
  8916. (tool.eList && tool.eList.length)) &&
  8917. courseDetail.state == 5
  8918. "
  8919. >
  8920. <div
  8921. style="margin-right:10px"
  8922. class="ScoreBtn"
  8923. @click="
  8924. resetLoopEva(
  8925. worksStudent[toolIndex],
  8926. chapInfoList[courseType].chapterInfo[0].taskJson[
  8927. taskCount
  8928. ].eList,
  8929. courseType,
  8930. taskCount,
  8931. toolIndex,
  8932. tool.toolDetail,
  8933. worksStudent
  8934. )
  8935. "
  8936. >
  8937. 一键重置
  8938. </div>
  8939. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8940. <img
  8941. src="../../assets/icon/newIcons/rootImg.png"
  8942. alt=""
  8943. />
  8944. AI评分
  8945. </div>
  8946. <div
  8947. class="ScoreBtn"
  8948. v-else-if="!loopLoading[toolIndex].loading"
  8949. @click="
  8950. loopEva(
  8951. worksStudent[toolIndex],
  8952. chapInfoList[courseType].chapterInfo[0].taskJson[
  8953. taskCount
  8954. ].eList,
  8955. courseType,
  8956. taskCount,
  8957. toolIndex,
  8958. tool.toolDetail,
  8959. chapInfoList[courseType].chapterInfo[0].taskJson[
  8960. taskCount
  8961. ].taskDetail,
  8962. tool
  8963. )
  8964. "
  8965. >
  8966. <img
  8967. src="../../assets/icon/newIcons/rootImg.png"
  8968. alt=""
  8969. />
  8970. AI评分
  8971. </div>
  8972. <div class="ScoreBtn" v-else>
  8973. <img
  8974. src="../../assets/icon/newIcons/rootImg.png"
  8975. alt=""
  8976. />
  8977. 正在评分
  8978. </div>
  8979. </div>
  8980. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8981. </div>
  8982. <div
  8983. :id="'tool-' + toolIndex"
  8984. :style="{
  8985. height:
  8986. isCloseList[toolIndex].isClose == 1
  8987. ? retrnToolHeight('tool-' + toolIndex)
  8988. : 'auto',
  8989. overflow:
  8990. isCloseList[toolIndex].isClose == 1
  8991. ? 'hidden'
  8992. : 'unset'
  8993. }"
  8994. class="worksDetailBox"
  8995. v-if="
  8996. worksStudent.length &&
  8997. worksStudent[toolIndex].length > 0
  8998. "
  8999. >
  9000. <div
  9001. class="works"
  9002. style="
  9003. width: 200px;
  9004. height: 140px;
  9005. margin: 10px 10px 10px 0;
  9006. border-radius: 15px;
  9007. box-shadow: 0 0 6px 1px #dfdada;
  9008. "
  9009. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9010. :key="wIndex"
  9011. :class="w.type == 1 ? 'isTypeOne' : ''"
  9012. >
  9013. <div class="workImg">
  9014. <img :src="word" @click="openTable(w)" alt />
  9015. <!-- @click="openFile(w.works)" -->
  9016. <div
  9017. class="answerScore"
  9018. v-if="w.score"
  9019. @click.stop="openScore(w)"
  9020. :class="{
  9021. rightW:
  9022. w.userid == userid ||
  9023. tType == 1 ||
  9024. tType == 4 ||
  9025. w.ateacher == userid
  9026. }"
  9027. >
  9028. {{ JSON.parse(w.score).wScore }}分
  9029. </div>
  9030. <div
  9031. class="answerScore"
  9032. @click.stop="openScore(w)"
  9033. v-else-if="
  9034. courseDetail.userid == userid &&
  9035. courseDetail.state != 5 &&
  9036. chapInfoList[courseType].chapterInfo[0]
  9037. .taskJson[taskCount].eList &&
  9038. chapInfoList[courseType].chapterInfo[0]
  9039. .taskJson[taskCount].eList.length
  9040. "
  9041. :class="{
  9042. rightW:
  9043. w.userid == userid ||
  9044. tType == 1 ||
  9045. tType == 4 ||
  9046. w.ateacher == userid
  9047. }"
  9048. >
  9049. 评分
  9050. </div>
  9051. <!-- <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"> -->
  9052. <div
  9053. v-else-if="
  9054. (courseDetail.userid == userid ||
  9055. (courseDetail.course_teacher &&
  9056. courseDetail.course_teacher.indexOf(userid) !=
  9057. -1) ||
  9058. (w.userid == userid && sIsOpen)) &&
  9059. courseDetail.state == 5 &&
  9060. ((chapInfoList[courseType].chapterInfo[0]
  9061. .taskJson[taskCount].eList &&
  9062. chapInfoList[courseType].chapterInfo[0]
  9063. .taskJson[taskCount].eList.length) ||
  9064. (tool.eList && tool.eList.length))
  9065. "
  9066. >
  9067. <el-popover
  9068. placement="top"
  9069. width="318"
  9070. :disabled="AIloading[toolIndex][wIndex].loading"
  9071. trigger="hover"
  9072. >
  9073. <markScore
  9074. :loading="AIloading[toolIndex][wIndex].loading"
  9075. :markScoreVisible="markScoreVisible"
  9076. :ref="`markSco${toolIndex}${wIndex}`"
  9077. @updateLoading="updateLoading"
  9078. @updateDocSco="updateDocSco"
  9079. @refreshOther="refreshOther"
  9080. @markScoreDig="markScoreDig"
  9081. :tool="tool"
  9082. :wIndex="wIndex"
  9083. :scoCon="w"
  9084. :toolIndex="toolIndex"
  9085. :key="refreshKey"
  9086. :stage="courseType"
  9087. :task="taskCount"
  9088. :scoTit="
  9089. chapInfoList[courseType].chapterInfo[0]
  9090. .taskJson[taskCount].eList
  9091. "
  9092. >
  9093. </markScore>
  9094. <div
  9095. class="answerScore"
  9096. @click="
  9097. markScoreDig2(
  9098. w.sName,
  9099. worksStudent,
  9100. w.userid,
  9101. toolIndex,
  9102. chapInfoList[courseType].chapterInfo[0]
  9103. .taskJson[taskCount].eList,
  9104. AIloading[toolIndex][wIndex].loading,
  9105. tool
  9106. )
  9107. "
  9108. slot="reference"
  9109. :class="{
  9110. rightW:
  9111. w.userid == userid ||
  9112. tType == 1 ||
  9113. tType == 4 ||
  9114. w.ateacher == userid
  9115. }"
  9116. >
  9117. <span v-if="AIloading[toolIndex][wIndex].sco">
  9118. {{
  9119. AIloading[toolIndex][wIndex].loading
  9120. ? "评分中"
  9121. : AIloading[toolIndex][wIndex].sco + "分"
  9122. }}
  9123. </span>
  9124. <span v-else>
  9125. {{
  9126. AIloading[toolIndex][wIndex].loading
  9127. ? "评分中"
  9128. : "评分"
  9129. }}
  9130. </span>
  9131. </div>
  9132. </el-popover>
  9133. </div>
  9134. <img
  9135. class="deleteImg"
  9136. src="../../assets/deleteworks.png"
  9137. v-if="
  9138. w.userid == userid || tType == 1 || tType == 4
  9139. "
  9140. @click.stop="deleteWorks(w.wid)"
  9141. alt
  9142. />
  9143. </div>
  9144. <div class="comment" style="min-width: 200px">
  9145. <div class="worksName">
  9146. <div>{{ w.sName }}</div>
  9147. </div>
  9148. <div class="commentList">
  9149. <div class="commentList">
  9150. <div
  9151. class="commentImg"
  9152. @click="
  9153. isLikes(
  9154. w.wid,
  9155. userid,
  9156. 1,
  9157. null,
  9158. w.isLikes,
  9159. w.sName
  9160. )
  9161. "
  9162. >
  9163. <img
  9164. :src="w.isLikes == true ? likes : noLikes"
  9165. alt=""
  9166. />
  9167. </div>
  9168. <div>{{ w.likesCount }}</div>
  9169. </div>
  9170. <div class="commentList" style="margin-right: 15px">
  9171. <div
  9172. class="commentImg"
  9173. @click="commentOther(w, toolIndex, wIndex)"
  9174. >
  9175. <img
  9176. src="../../assets/icon/comment/comment.png"
  9177. alt=""
  9178. />
  9179. </div>
  9180. <div>{{ w.commentCount }}</div>
  9181. </div>
  9182. </div>
  9183. </div>
  9184. </div>
  9185. </div>
  9186. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9187. 未提交
  9188. </div>
  9189. <div
  9190. class="noWorksS"
  9191. v-if="noWorksS && noWorksS[toolIndex].length"
  9192. >
  9193. <div
  9194. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9195. :key="sIndex"
  9196. class="noWorksName"
  9197. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9198. >
  9199. <el-tooltip
  9200. effect="dark"
  9201. :content="s.student"
  9202. placement="top"
  9203. >
  9204. <span>{{ s.student }}</span>
  9205. </el-tooltip>
  9206. </div>
  9207. </div>
  9208. </div>
  9209. <div
  9210. v-if="
  9211. tType &&
  9212. tType == 2 &&
  9213. !sIsOpen &&
  9214. tool.tool.indexOf(48) != -1
  9215. "
  9216. class="worksBox"
  9217. >
  9218. <div
  9219. class="zuoyeYulan"
  9220. v-if="workStudent[toolIndex].length > 0"
  9221. >
  9222. <span class="worksTitle">作业预览</span>
  9223. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9224. </div>
  9225. <div
  9226. class="worksDetailBox"
  9227. v-if="workStudent[toolIndex].length > 0"
  9228. >
  9229. <div
  9230. class="works"
  9231. style="
  9232. width: 200px;
  9233. height: 140px;
  9234. margin: 10px 10px 10px 0;
  9235. box-shadow: 0 0 6px 1px #dfdada;
  9236. "
  9237. v-for="(w, wIndex) in workStudent[toolIndex]"
  9238. :key="wIndex"
  9239. >
  9240. <div class="workImg">
  9241. <img :src="word" @click="openTable(w)" alt />
  9242. <div
  9243. class="answerScore"
  9244. v-if="w.score"
  9245. @click.stop="openScore(w)"
  9246. :class="{
  9247. rightW:
  9248. w.userid == userid || tType == 1 || tType == 4
  9249. }"
  9250. >
  9251. {{ JSON.parse(w.score).wScore }}分
  9252. </div>
  9253. <div
  9254. class="answerScore"
  9255. @click.stop="openScore(w)"
  9256. v-else-if="courseDetail.userid == userid"
  9257. :class="{
  9258. rightW:
  9259. w.userid == userid || tType == 1 || tType == 4
  9260. }"
  9261. >
  9262. 评分
  9263. </div>
  9264. <div
  9265. class="stuLookScore"
  9266. v-if="
  9267. w.userid == userid ||
  9268. (tType == 1 &&
  9269. courseDetail.state == 5 &&
  9270. ((chapInfoList[courseType].chapterInfo[0]
  9271. .taskJson[taskCount].eList &&
  9272. chapInfoList[courseType].chapterInfo[0]
  9273. .taskJson[taskCount].eList.length) ||
  9274. (tool.eList && tool.eList.length)))
  9275. "
  9276. >
  9277. <el-popover
  9278. placement="top"
  9279. width="318"
  9280. trigger="hover"
  9281. >
  9282. <markScore
  9283. :loading="AIloading[toolIndex][wIndex].loading"
  9284. :markScoreVisible="markScoreVisible"
  9285. :ref="`markSco${toolIndex}${wIndex}`"
  9286. @updateLoading="updateLoading"
  9287. @updateDocSco="updateDocSco"
  9288. @refreshOther="refreshOther"
  9289. @markScoreDig="markScoreDig"
  9290. :tool="tool"
  9291. :wIndex="wIndex"
  9292. :scoCon="w"
  9293. :toolIndex="toolIndex"
  9294. :key="refreshKey"
  9295. :stage="courseType"
  9296. :task="taskCount"
  9297. :scoTit="
  9298. chapInfoList[courseType].chapterInfo[0]
  9299. .taskJson[taskCount].eList
  9300. "
  9301. >
  9302. </markScore>
  9303. <div
  9304. @click="
  9305. markScoreDig2(
  9306. w.sName,
  9307. worksStudent,
  9308. w.userid,
  9309. toolIndex,
  9310. chapInfoList[courseType].chapterInfo[0]
  9311. .taskJson[taskCount].eList,
  9312. AIloading[toolIndex][wIndex].loading,
  9313. tool
  9314. )
  9315. "
  9316. slot="reference"
  9317. >
  9318. <span v-if="AIloading[toolIndex][wIndex].sco">
  9319. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9320. </span>
  9321. <span v-else>
  9322. 评分
  9323. </span>
  9324. </div>
  9325. </el-popover>
  9326. </div>
  9327. <img
  9328. class="deleteImg"
  9329. src="../../assets/deleteworks.png"
  9330. v-if="
  9331. w.userid == userid || tType == 1 || tType == 4
  9332. "
  9333. @click.stop="deleteWorks(w.wid)"
  9334. alt
  9335. />
  9336. </div>
  9337. <div class="worksName">
  9338. <div>{{ w.sName }}</div>
  9339. </div>
  9340. </div>
  9341. </div>
  9342. </div>
  9343. <div
  9344. v-if="
  9345. tType &&
  9346. ((tType == 2 && sIsOpen == true) ||
  9347. tType == 1 ||
  9348. tType == 4) &&
  9349. tool.tool.indexOf(52) != -1
  9350. "
  9351. class="worksBox"
  9352. >
  9353. <div
  9354. class="zuoyeYulan"
  9355. style="display: flex;justify-content: space-between;align-items: center;"
  9356. v-if="
  9357. worksStudent.length &&
  9358. worksStudent[toolIndex].length > 0
  9359. "
  9360. >
  9361. <div class="worksTop">
  9362. <div>作业预览</div>
  9363. <div
  9364. class="corOpen"
  9365. @click="contract(toolIndex)"
  9366. v-if="
  9367. isCloseList[toolIndex].isCloseBoolean &&
  9368. isCloseList[toolIndex].isClose == 0
  9369. "
  9370. >
  9371. 折叠
  9372. </div>
  9373. <div
  9374. class="corOpen"
  9375. @click="contract(toolIndex)"
  9376. v-if="isCloseList[toolIndex].isClose == 1"
  9377. >
  9378. 展开
  9379. </div>
  9380. </div>
  9381. <div
  9382. style="display: flex;"
  9383. v-if="
  9384. (courseDetail.userid == userid ||
  9385. (courseDetail.course_teacher &&
  9386. courseDetail.course_teacher.indexOf(userid) !=
  9387. -1)) &&
  9388. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9389. taskCount
  9390. ].eList &&
  9391. chapInfoList[courseType].chapterInfo[0].taskJson[
  9392. taskCount
  9393. ].eList.length) ||
  9394. (tool.eList && tool.eList.length)) &&
  9395. courseDetail.state == 5
  9396. "
  9397. >
  9398. <!-- <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"> -->
  9399. <div
  9400. @click="
  9401. resetLoopEva(
  9402. worksStudent[toolIndex],
  9403. chapInfoList[courseType].chapterInfo[0].taskJson[
  9404. taskCount
  9405. ].eList,
  9406. courseType,
  9407. taskCount,
  9408. toolIndex,
  9409. tool.toolDetail,
  9410. tool
  9411. )
  9412. "
  9413. style="margin-right:10px"
  9414. class="ScoreBtn"
  9415. >
  9416. 一键重置
  9417. </div>
  9418. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9419. <img
  9420. src="../../assets/icon/newIcons/rootImg.png"
  9421. alt=""
  9422. />
  9423. AI评分
  9424. </div>
  9425. <div
  9426. class="ScoreBtn"
  9427. v-else-if="!loopLoading[toolIndex].loading"
  9428. @click="
  9429. loopEva(
  9430. worksStudent[toolIndex],
  9431. chapInfoList[courseType].chapterInfo[0].taskJson[
  9432. taskCount
  9433. ].eList,
  9434. courseType,
  9435. taskCount,
  9436. toolIndex,
  9437. tool.toolDetail,
  9438. chapInfoList[courseType].chapterInfo[0].taskJson[
  9439. taskCount
  9440. ].taskDetail,
  9441. tool
  9442. )
  9443. "
  9444. >
  9445. <img
  9446. src="../../assets/icon/newIcons/rootImg.png"
  9447. alt=""
  9448. />
  9449. AI评分
  9450. </div>
  9451. <div class="ScoreBtn" v-else>
  9452. <img
  9453. src="../../assets/icon/newIcons/rootImg.png"
  9454. alt=""
  9455. />
  9456. 正在评分
  9457. </div>
  9458. </div>
  9459. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9460. </div>
  9461. <div
  9462. :id="'tool-' + toolIndex"
  9463. :style="{
  9464. height:
  9465. isCloseList[toolIndex].isClose == 1
  9466. ? retrnToolHeight('tool-' + toolIndex)
  9467. : 'auto',
  9468. overflow:
  9469. isCloseList[toolIndex].isClose == 1
  9470. ? 'hidden'
  9471. : 'unset'
  9472. }"
  9473. class="worksDetailBox"
  9474. v-if="
  9475. worksStudent.length &&
  9476. worksStudent[toolIndex].length > 0
  9477. "
  9478. >
  9479. <div
  9480. class="works"
  9481. style="
  9482. width: 200px;
  9483. height: 140px;
  9484. margin: 10px 10px 10px 0;
  9485. border-radius: 15px;
  9486. box-shadow: 0 0 6px 1px #dfdada;
  9487. "
  9488. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9489. :key="wIndex"
  9490. :class="w.type == 1 ? 'isTypeOne' : ''"
  9491. >
  9492. <div class="workImg">
  9493. <img :src="word" @click="openWord(w)" alt />
  9494. <!-- @click="openFile(w.works)" -->
  9495. <div
  9496. class="answerScore"
  9497. v-if="w.score"
  9498. @click.stop="openScore(w)"
  9499. :class="{
  9500. rightW:
  9501. w.userid == userid ||
  9502. tType == 1 ||
  9503. tType == 4 ||
  9504. w.ateacher == userid
  9505. }"
  9506. >
  9507. {{ JSON.parse(w.score).wScore }}分
  9508. </div>
  9509. <div
  9510. class="answerScore"
  9511. @click.stop="openScore(w)"
  9512. v-else-if="
  9513. courseDetail.userid == userid &&
  9514. courseDetail.state != 5 &&
  9515. chapInfoList[courseType].chapterInfo[0]
  9516. .taskJson[taskCount].eList &&
  9517. chapInfoList[courseType].chapterInfo[0]
  9518. .taskJson[taskCount].eList.length
  9519. "
  9520. :class="{
  9521. rightW:
  9522. w.userid == userid ||
  9523. tType == 1 ||
  9524. tType == 4 ||
  9525. w.ateacher == userid
  9526. }"
  9527. >
  9528. 评分
  9529. </div>
  9530. <!-- <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"> -->
  9531. <div
  9532. v-else-if="
  9533. (courseDetail.userid == userid ||
  9534. (courseDetail.course_teacher &&
  9535. courseDetail.course_teacher.indexOf(userid) !=
  9536. -1) ||
  9537. (w.userid == userid && sIsOpen)) &&
  9538. courseDetail.state == 5 &&
  9539. ((chapInfoList[courseType].chapterInfo[0]
  9540. .taskJson[taskCount].eList &&
  9541. chapInfoList[courseType].chapterInfo[0]
  9542. .taskJson[taskCount].eList.length) ||
  9543. (tool.eList && tool.eList.length))
  9544. "
  9545. >
  9546. <!-- <div
  9547. class="answerScore"
  9548. @click="markScoreDig(w.userid,toolIndex)"
  9549. :class="{
  9550. rightW:
  9551. w.userid == userid ||
  9552. tType == 1 ||
  9553. tType == 4 ||
  9554. w.ateacher == userid,
  9555. }"
  9556. >
  9557. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9558. </div> -->
  9559. <!-- @show="handleShow(toolIndex,wIndex)"
  9560. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9561. <el-popover
  9562. placement="top"
  9563. width="318"
  9564. :disabled="AIloading[toolIndex][wIndex].loading"
  9565. trigger="hover"
  9566. >
  9567. <markScore
  9568. :loading="AIloading[toolIndex][wIndex].loading"
  9569. :markScoreVisible="markScoreVisible"
  9570. :ref="`markSco${toolIndex}${wIndex}`"
  9571. @updateLoading="updateLoading"
  9572. @updateDocSco="updateDocSco"
  9573. @refreshOther="refreshOther"
  9574. @markScoreDig="markScoreDig"
  9575. :tool="tool"
  9576. :wIndex="wIndex"
  9577. :scoCon="w"
  9578. :toolIndex="toolIndex"
  9579. :key="refreshKey"
  9580. :stage="courseType"
  9581. :task="taskCount"
  9582. :scoTit="
  9583. chapInfoList[courseType].chapterInfo[0]
  9584. .taskJson[taskCount].eList
  9585. "
  9586. >
  9587. </markScore>
  9588. <div
  9589. class="answerScore"
  9590. @click="
  9591. markScoreDig2(
  9592. w.sName,
  9593. worksStudent,
  9594. w.userid,
  9595. toolIndex,
  9596. chapInfoList[courseType].chapterInfo[0]
  9597. .taskJson[taskCount].eList,
  9598. AIloading[toolIndex][wIndex].loading,
  9599. tool
  9600. )
  9601. "
  9602. slot="reference"
  9603. :class="{
  9604. rightW:
  9605. w.userid == userid ||
  9606. tType == 1 ||
  9607. tType == 4 ||
  9608. w.ateacher == userid
  9609. }"
  9610. >
  9611. <span v-if="AIloading[toolIndex][wIndex].sco">
  9612. {{
  9613. AIloading[toolIndex][wIndex].loading
  9614. ? "评分中"
  9615. : AIloading[toolIndex][wIndex].sco + "分"
  9616. }}
  9617. </span>
  9618. <span v-else>
  9619. {{
  9620. AIloading[toolIndex][wIndex].loading
  9621. ? "评分中"
  9622. : "评分"
  9623. }}
  9624. </span>
  9625. </div>
  9626. </el-popover>
  9627. </div>
  9628. <img
  9629. class="deleteImg"
  9630. src="../../assets/deleteworks.png"
  9631. v-if="
  9632. w.userid == userid || tType == 1 || tType == 4
  9633. "
  9634. @click.stop="deleteWorks(w.wid)"
  9635. alt
  9636. />
  9637. </div>
  9638. <div class="comment" style="min-width: 200px">
  9639. <div class="worksName">
  9640. <div>{{ w.sName }}</div>
  9641. </div>
  9642. <div class="commentList">
  9643. <div class="commentList">
  9644. <div
  9645. class="commentImg"
  9646. @click="
  9647. isLikes(
  9648. w.wid,
  9649. userid,
  9650. 1,
  9651. null,
  9652. w.isLikes,
  9653. w.sName
  9654. )
  9655. "
  9656. >
  9657. <img
  9658. :src="w.isLikes == true ? likes : noLikes"
  9659. alt=""
  9660. />
  9661. </div>
  9662. <div>{{ w.likesCount }}</div>
  9663. </div>
  9664. <div class="commentList" style="margin-right: 15px">
  9665. <div
  9666. class="commentImg"
  9667. @click="commentOther(w, toolIndex, wIndex)"
  9668. >
  9669. <img
  9670. src="../../assets/icon/comment/comment.png"
  9671. alt=""
  9672. />
  9673. </div>
  9674. <div>{{ w.commentCount }}</div>
  9675. </div>
  9676. </div>
  9677. </div>
  9678. </div>
  9679. </div>
  9680. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9681. 未提交
  9682. </div>
  9683. <div
  9684. class="noWorksS"
  9685. v-if="noWorksS && noWorksS[toolIndex].length"
  9686. >
  9687. <div
  9688. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9689. :key="sIndex"
  9690. class="noWorksName"
  9691. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9692. >
  9693. <el-tooltip
  9694. effect="dark"
  9695. :content="s.student"
  9696. placement="top"
  9697. >
  9698. <span>{{ s.student }}</span>
  9699. </el-tooltip>
  9700. </div>
  9701. </div>
  9702. </div>
  9703. <div
  9704. v-if="
  9705. tType &&
  9706. tType == 2 &&
  9707. !sIsOpen &&
  9708. tool.tool.indexOf(52) != -1
  9709. "
  9710. class="worksBox"
  9711. >
  9712. <div
  9713. class="zuoyeYulan"
  9714. v-if="workStudent[toolIndex].length > 0"
  9715. >
  9716. <span class="worksTitle">作业预览</span>
  9717. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9718. </div>
  9719. <div
  9720. class="worksDetailBox"
  9721. v-if="workStudent[toolIndex].length > 0"
  9722. >
  9723. <div
  9724. class="works"
  9725. style="
  9726. width: 200px;
  9727. height: 140px;
  9728. margin: 10px 10px 10px 0;
  9729. box-shadow: 0 0 6px 1px #dfdada;
  9730. "
  9731. v-for="(w, wIndex) in workStudent[toolIndex]"
  9732. :key="wIndex"
  9733. >
  9734. <div class="workImg">
  9735. <img :src="word" @click="openWord(w)" alt />
  9736. <div
  9737. class="answerScore"
  9738. v-if="w.score"
  9739. @click.stop="openScore(w)"
  9740. :class="{
  9741. rightW:
  9742. w.userid == userid || tType == 1 || tType == 4
  9743. }"
  9744. >
  9745. {{ JSON.parse(w.score).wScore }}分
  9746. </div>
  9747. <div
  9748. class="answerScore"
  9749. @click.stop="openScore(w)"
  9750. v-else-if="courseDetail.userid == userid"
  9751. :class="{
  9752. rightW:
  9753. w.userid == userid || tType == 1 || tType == 4
  9754. }"
  9755. >
  9756. 评分
  9757. </div>
  9758. <div
  9759. class="stuLookScore"
  9760. v-if="
  9761. w.userid == userid ||
  9762. (tType == 1 &&
  9763. courseDetail.state == 5 &&
  9764. ((chapInfoList[courseType].chapterInfo[0]
  9765. .taskJson[taskCount].eList &&
  9766. chapInfoList[courseType].chapterInfo[0]
  9767. .taskJson[taskCount].eList.length) ||
  9768. (tool.eList && tool.eList.length)))
  9769. "
  9770. >
  9771. <el-popover
  9772. placement="top"
  9773. width="318"
  9774. trigger="hover"
  9775. >
  9776. <markScore
  9777. :loading="AIloading[toolIndex][wIndex].loading"
  9778. :markScoreVisible="markScoreVisible"
  9779. :ref="`markSco${toolIndex}${wIndex}`"
  9780. @updateLoading="updateLoading"
  9781. @updateDocSco="updateDocSco"
  9782. @refreshOther="refreshOther"
  9783. @markScoreDig="markScoreDig"
  9784. :tool="tool"
  9785. :wIndex="wIndex"
  9786. :scoCon="w"
  9787. :toolIndex="toolIndex"
  9788. :key="refreshKey"
  9789. :stage="courseType"
  9790. :task="taskCount"
  9791. :scoTit="
  9792. chapInfoList[courseType].chapterInfo[0]
  9793. .taskJson[taskCount].eList
  9794. "
  9795. >
  9796. </markScore>
  9797. <div
  9798. @click="
  9799. markScoreDig2(
  9800. w.sName,
  9801. worksStudent,
  9802. w.userid,
  9803. toolIndex,
  9804. chapInfoList[courseType].chapterInfo[0]
  9805. .taskJson[taskCount].eList,
  9806. AIloading[toolIndex][wIndex].loading,
  9807. tool
  9808. )
  9809. "
  9810. slot="reference"
  9811. >
  9812. <span v-if="AIloading[toolIndex][wIndex].sco">
  9813. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9814. </span>
  9815. <span v-else>
  9816. 评分
  9817. </span>
  9818. </div>
  9819. </el-popover>
  9820. </div>
  9821. <img
  9822. class="deleteImg"
  9823. src="../../assets/deleteworks.png"
  9824. v-if="
  9825. w.userid == userid || tType == 1 || tType == 4
  9826. "
  9827. @click.stop="deleteWorks(w.wid)"
  9828. alt
  9829. />
  9830. </div>
  9831. <div class="worksName">
  9832. <div>{{ w.sName }}</div>
  9833. </div>
  9834. </div>
  9835. </div>
  9836. </div>
  9837. <div
  9838. v-if="tool.tool.indexOf(49) != -1"
  9839. class="xuan_right_box"
  9840. style="margin: 0 15px 0 25px; width: 93%"
  9841. >
  9842. <div
  9843. v-if="courseDetail.userid == userid"
  9844. style="
  9845. display: flex;
  9846. justify-content: flex-end;
  9847. margin-right: 10px;
  9848. "
  9849. >
  9850. <el-button
  9851. type="primary"
  9852. size="small"
  9853. @click="addTools(49, toolIndex, taskCount)"
  9854. >分组设置</el-button
  9855. >
  9856. </div>
  9857. <div
  9858. v-if="groupStudentUid[toolIndex]"
  9859. class="group_staic_box"
  9860. >
  9861. <div
  9862. v-for="(gp, gd) in tool.groupJson.group"
  9863. :key="gd"
  9864. class="group_staic"
  9865. >
  9866. <span> {{ gp.name }}</span>
  9867. <span>
  9868. 目前人数{{
  9869. groupStudentUid[toolIndex][gd].length
  9870. }}人</span
  9871. >
  9872. </div>
  9873. </div>
  9874. </div>
  9875. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  9876. <div
  9877. class="zuoyeYulan"
  9878. v-if="
  9879. worksStudent.length &&
  9880. worksStudent[toolIndex].length > 0
  9881. "
  9882. >
  9883. <span class="worksTitle">作业预览</span>
  9884. </div>
  9885. <div>
  9886. <div
  9887. class="group_workBox"
  9888. v-for="(g, gindex) in tool.groupJson.group"
  9889. :key="gindex"
  9890. >
  9891. <div
  9892. class="group_box"
  9893. v-if="
  9894. groupStudentUid[toolIndex] &&
  9895. worksStudent[toolIndex] &&
  9896. (worksStudent[toolIndex][gindex].length ||
  9897. groupStudentUid[toolIndex][gindex].indexOf(
  9898. userid
  9899. ) != -1)
  9900. "
  9901. >
  9902. <div class="group_title">
  9903. <el-tooltip
  9904. class="item"
  9905. effect="light"
  9906. :content="g.name"
  9907. placement="top"
  9908. >
  9909. <div class="group_name">{{ g.name }}</div>
  9910. </el-tooltip>
  9911. <el-button
  9912. type="primary"
  9913. v-if="
  9914. groupStudentUid[toolIndex][gindex].indexOf(
  9915. userid
  9916. ) != -1
  9917. "
  9918. @click="groupUpload(toolIndex, taskCount, gindex)"
  9919. >上传作业</el-button
  9920. >
  9921. </div>
  9922. <div class="group_work">
  9923. <div
  9924. class="works"
  9925. style="
  9926. width: 200px;
  9927. height: 140px;
  9928. margin: 10px 10px 10px 0;
  9929. border-radius: 15px;
  9930. box-shadow: 0 0 6px 1px #dfdada;
  9931. "
  9932. v-for="(w, wIndex) in worksStudent[toolIndex][
  9933. gindex
  9934. ]"
  9935. :key="wIndex"
  9936. :class="w.type == 1 ? 'isTypeOne' : ''"
  9937. >
  9938. <div class="workImg" v-if="w.type == 0">
  9939. <img
  9940. :src="w.works"
  9941. @click="previewImg(w.works, w)"
  9942. alt
  9943. />
  9944. <div
  9945. class="answerScore"
  9946. v-if="w.score"
  9947. @click.stop="openScore(w)"
  9948. :class="{
  9949. rightW:
  9950. w.userid == userid ||
  9951. tType == 1 ||
  9952. tType == 4 ||
  9953. w.ateacher == userid
  9954. }"
  9955. >
  9956. {{ JSON.parse(w.score).wScore }}分
  9957. </div>
  9958. <div
  9959. class="answerScore"
  9960. @click.stop="openScore(w)"
  9961. v-else-if="courseDetail.userid == userid"
  9962. :class="{
  9963. rightW:
  9964. w.userid == userid ||
  9965. tType == 1 ||
  9966. tType == 4 ||
  9967. w.ateacher == userid
  9968. }"
  9969. >
  9970. 评分
  9971. </div>
  9972. <img
  9973. class="deleteImg"
  9974. src="../../assets/deleteworks.png"
  9975. v-if="
  9976. w.userid == userid ||
  9977. tType == 1 ||
  9978. tType == 4
  9979. "
  9980. @click.stop="deleteWorks(w.wid)"
  9981. alt
  9982. />
  9983. </div>
  9984. <div class="workImg" v-if="w.type == 1">
  9985. <img
  9986. :src="word"
  9987. @click="openFile(w.works)"
  9988. alt
  9989. />
  9990. <!-- @click="openFile(w.works)" -->
  9991. <div
  9992. class="answerScore"
  9993. v-if="w.score"
  9994. @click.stop="openScore(w)"
  9995. :class="{
  9996. rightW:
  9997. w.userid == userid ||
  9998. tType == 1 ||
  9999. tType == 4 ||
  10000. w.ateacher == userid
  10001. }"
  10002. >
  10003. {{ JSON.parse(w.score).wScore }}分
  10004. </div>
  10005. <div
  10006. class="answerScore"
  10007. @click.stop="openScore(w)"
  10008. v-else-if="courseDetail.userid == userid"
  10009. :class="{
  10010. rightW:
  10011. w.userid == userid ||
  10012. tType == 1 ||
  10013. tType == 4 ||
  10014. w.ateacher == userid
  10015. }"
  10016. >
  10017. 评分
  10018. </div>
  10019. <img
  10020. class="deleteImg"
  10021. src="../../assets/deleteworks.png"
  10022. v-if="
  10023. w.userid == userid ||
  10024. tType == 1 ||
  10025. tType == 4
  10026. "
  10027. @click.stop="deleteWorks(w.wid)"
  10028. alt
  10029. />
  10030. </div>
  10031. <div class="workImg" v-if="w.type == 3">
  10032. <img
  10033. style="cursor: pointer"
  10034. :src="video"
  10035. @click="openVideo(w)"
  10036. alt
  10037. />
  10038. <!-- @click="openVideo(w.works)" -->
  10039. <div
  10040. class="answerScore"
  10041. v-if="w.score"
  10042. @click.stop="openScore(w)"
  10043. :class="{
  10044. rightW:
  10045. w.userid == userid ||
  10046. tType == 1 ||
  10047. tType == 4 ||
  10048. w.ateacher == userid
  10049. }"
  10050. >
  10051. {{ JSON.parse(w.score).wScore }}分
  10052. </div>
  10053. <div
  10054. class="answerScore"
  10055. @click.stop="openScore(w)"
  10056. v-else-if="courseDetail.userid == userid"
  10057. :class="{
  10058. rightW:
  10059. w.userid == userid ||
  10060. tType == 1 ||
  10061. tType == 4 ||
  10062. w.ateacher == userid
  10063. }"
  10064. >
  10065. 评分
  10066. </div>
  10067. <img
  10068. class="deleteImg"
  10069. src="../../assets/deleteworks.png"
  10070. v-if="
  10071. w.userid == userid ||
  10072. tType == 1 ||
  10073. tType == 4
  10074. "
  10075. @click.stop="deleteWorks(w.wid)"
  10076. alt
  10077. />
  10078. </div>
  10079. <div class="workImg" v-if="w.type == 12">
  10080. <img
  10081. style="cursor: pointer"
  10082. :src="word2"
  10083. @click="downloadFile(w.works)"
  10084. alt
  10085. />
  10086. <!-- @click="openVideo(w.works)" -->
  10087. <div
  10088. class="answerScore"
  10089. v-if="w.score"
  10090. @click.stop="openScore(w)"
  10091. :class="{
  10092. rightW:
  10093. w.userid == userid ||
  10094. tType == 1 ||
  10095. tType == 4 ||
  10096. w.ateacher == userid
  10097. }"
  10098. >
  10099. {{ JSON.parse(w.score).wScore }}分
  10100. </div>
  10101. <div
  10102. class="answerScore"
  10103. @click.stop="openScore(w)"
  10104. v-else-if="courseDetail.userid == userid"
  10105. :class="{
  10106. rightW:
  10107. w.userid == userid ||
  10108. tType == 1 ||
  10109. tType == 4 ||
  10110. w.ateacher == userid
  10111. }"
  10112. >
  10113. 评分
  10114. </div>
  10115. <img
  10116. class="deleteImg"
  10117. src="../../assets/deleteworks.png"
  10118. v-if="
  10119. w.userid == userid ||
  10120. tType == 1 ||
  10121. tType == 4
  10122. "
  10123. @click.stop="deleteWorks(w.wid)"
  10124. alt
  10125. />
  10126. </div>
  10127. <div class="comment" style="min-width: 200px">
  10128. <div class="worksName">
  10129. <div>{{ w.sName }}</div>
  10130. </div>
  10131. <div class="commentList">
  10132. <div class="commentList">
  10133. <div
  10134. class="commentImg"
  10135. @click="
  10136. isLikes(
  10137. w.wid,
  10138. userid,
  10139. 1,
  10140. null,
  10141. w.isLikes,
  10142. w.sName
  10143. )
  10144. "
  10145. >
  10146. <img
  10147. :src="
  10148. w.isLikes == true ? likes : noLikes
  10149. "
  10150. alt=""
  10151. />
  10152. </div>
  10153. <div>{{ w.likesCount }}</div>
  10154. </div>
  10155. <div
  10156. class="commentList"
  10157. style="margin-right: 15px"
  10158. >
  10159. <div
  10160. class="commentImg"
  10161. @click="
  10162. commentOther(
  10163. w,
  10164. toolIndex,
  10165. wIndex,
  10166. gindex
  10167. )
  10168. "
  10169. >
  10170. <img
  10171. src="../../assets/icon/comment/comment.png"
  10172. alt=""
  10173. />
  10174. </div>
  10175. <div>{{ w.commentCount }}</div>
  10176. </div>
  10177. </div>
  10178. </div>
  10179. </div>
  10180. </div>
  10181. </div>
  10182. </div>
  10183. </div>
  10184. </div>
  10185. <div
  10186. style="width:92%;margin: 0 0 0 40px;"
  10187. v-if="
  10188. courseDetail.state == 5 && tool.eList && tool.eList.length
  10189. "
  10190. >
  10191. <evaTable :eList="tool.eList"></evaTable>
  10192. </div>
  10193. </div>
  10194. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10195. 上传文件
  10196. <input
  10197. type="file"
  10198. accept="image/png, image/gif, image/jpeg"
  10199. style="display: none"
  10200. @change="beforeUpload1($event, 2, index)"
  10201. />
  10202. </div>-->
  10203. </div>
  10204. </div>
  10205. <!-- <div
  10206. class="vedioBox"
  10207. style="margin-top: 10px"
  10208. v-if="
  10209. courseDetail.userid == userid ||
  10210. (courseDetail.course_teacher &&
  10211. courseDetail.course_teacher.indexOf(userid) != -1)
  10212. "
  10213. :style="{
  10214. borderRadius:
  10215. !(
  10216. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10217. .toolChoose[0].tool &&
  10218. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10219. .toolChoose[0].tool.length > 0
  10220. ) &&
  10221. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10222. .taskDetail == '' &&
  10223. vChapterData[taskCount].length == 0 &&
  10224. fileC[taskCount].length == 0
  10225. ? '0 0 20px 20px'
  10226. : '20px',
  10227. }"
  10228. >
  10229. <div
  10230. class="queTop"
  10231. @click="isClose = !isClose"
  10232. style="
  10233. padding: 15px 0 15px 37px;
  10234. justify-content: space-between;
  10235. "
  10236. >
  10237. <div class="queTopTitle">新增工具</div>
  10238. <div class="queTopRight">
  10239. <div class="queTopClose" v-if="isClose == 0">
  10240. 展开
  10241. <div class="closeImg">
  10242. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10243. </div>
  10244. </div>
  10245. <div class="queTopClose" v-if="isClose == 1">
  10246. 折叠
  10247. <div class="openImg">
  10248. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10249. </div>
  10250. </div>
  10251. <el-button
  10252. style="margin: 0 30px 0 auto"
  10253. type="primary"
  10254. size="small"
  10255. v-if="isClose == 1 && checktoolArray.length > 0"
  10256. @click.stop="addToolChoose"
  10257. >确定</el-button
  10258. >
  10259. </div>
  10260. </div>
  10261. <div
  10262. class="tool_work_box"
  10263. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10264. >
  10265. <div class="tool_box">
  10266. <div class="tool_type_box">
  10267. <div class="chooseWho">
  10268. <div
  10269. :class="toolType == 0 ? 'isChooseActive' : ''"
  10270. @click="(toolType = 0), $forceUpdate()"
  10271. >
  10272. 互动类
  10273. </div>
  10274. <div
  10275. :class="toolType == 1 ? 'isChooseActive' : ''"
  10276. @click="(toolType = 1), $forceUpdate()"
  10277. >
  10278. 思维类
  10279. </div>
  10280. <div
  10281. :class="toolType == 2 ? 'isChooseActive' : ''"
  10282. @click="(toolType = 2), $forceUpdate()"
  10283. >
  10284. 测评类
  10285. </div>
  10286. <div
  10287. :class="toolType == 3 ? 'isChooseActive' : ''"
  10288. @click="(toolType = 3), $forceUpdate()"
  10289. >
  10290. 编程类
  10291. </div>
  10292. <div
  10293. :class="toolType == 5 ? 'isChooseActive' : ''"
  10294. @click="(toolType = 5), $forceUpdate()"
  10295. >
  10296. 学科类
  10297. </div>
  10298. </div>
  10299. </div>
  10300. <div>
  10301. <div class="toolSort" v-if="toolType == 0">
  10302. <div class="tool">
  10303. <div class="whiteBIcon" @click="addTools2(10)">
  10304. <img
  10305. src="../../assets/icon/thirdToolList/time.png"
  10306. alt
  10307. />
  10308. <div style="margin: 5px 0">倒计时</div>
  10309. </div>
  10310. <div class="check" @click="addTools2(10)">
  10311. <img
  10312. src="../../assets/icon/checkNo.png"
  10313. alt
  10314. v-if="checktoolArray.indexOf(10) == -1"
  10315. />
  10316. <div class="checkDiv" v-else>
  10317. <img src="../../assets/icon/checkedIs.png" alt /><span
  10318. >已选择</span
  10319. >
  10320. </div>
  10321. </div>
  10322. </div>
  10323. <div class="tool">
  10324. <div class="whiteBIcon" @click="addTools2(65)">
  10325. <img
  10326. src="../../assets/icon/firstToolList/pickPeople.png"
  10327. alt
  10328. />
  10329. <div style="margin: 5px 0">挑人</div>
  10330. </div>
  10331. <div class="check" @click="addTools2(65)">
  10332. <img
  10333. src="../../assets/icon/checkNo.png"
  10334. alt
  10335. v-if="checktoolArray.indexOf(65) == -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>
  10345. <div class="toolSort" v-if="toolType == 1">
  10346. <div class="tool">
  10347. <div class="whiteBIcon" @click="addTools2(7)">
  10348. <img
  10349. src="../../assets/icon/secondToolList/mindNetwork.png"
  10350. alt
  10351. />
  10352. <div style="margin: 5px 0">思维网格</div>
  10353. </div>
  10354. <div class="check" @click="addTools2(7)">
  10355. <img
  10356. src="../../assets/icon/checkNo.png"
  10357. alt
  10358. v-if="checktoolArray.indexOf(7) == -1"
  10359. />
  10360. <div class="checkDiv" v-else>
  10361. <img src="../../assets/icon/checkedIs.png" alt /><span
  10362. >已选择</span
  10363. >
  10364. </div>
  10365. </div>
  10366. </div>
  10367. <div class="tool">
  10368. <div class="whiteBIcon" @click="addTools2(1)">
  10369. <img
  10370. src="../../assets/icon/secondToolList/whiteBoard.png"
  10371. alt
  10372. />
  10373. <div style="margin: 5px 0">电子白板</div>
  10374. </div>
  10375. <div class="check" @click="addTools2(1)">
  10376. <img
  10377. src="../../assets/icon/checkNo.png"
  10378. alt
  10379. v-if="checktoolArray.indexOf(1) == -1"
  10380. />
  10381. <div class="checkDiv" v-else>
  10382. <img src="../../assets/icon/checkedIs.png" alt /><span
  10383. >已选择</span
  10384. >
  10385. </div>
  10386. </div>
  10387. </div>
  10388. <div class="tool">
  10389. <div class="whiteBIcon" @click="addTools2(52)">
  10390. <img
  10391. src="../../assets/icon/fourthToolList/text.png"
  10392. alt
  10393. />
  10394. <div style="margin: 5px 0">文档</div>
  10395. </div>
  10396. <div class="check" @click="addTools2(52)">
  10397. <img
  10398. src="../../assets/icon/checkNo.png"
  10399. alt
  10400. v-if="checktoolArray.indexOf(52) == -1"
  10401. />
  10402. <div class="checkDiv" v-else>
  10403. <img src="../../assets/icon/checkedIs.png" alt /><span
  10404. >已选择</span
  10405. >
  10406. </div>
  10407. </div>
  10408. </div>
  10409. <div class="tool">
  10410. <div class="whiteBIcon" @click="addTools2(3)">
  10411. <img
  10412. src="../../assets/icon/secondToolList/mindMapping.png"
  10413. alt
  10414. />
  10415. <div style="margin: 5px 0">思维导图</div>
  10416. </div>
  10417. <div class="check" @click="addTools2(3)">
  10418. <img
  10419. src="../../assets/icon/checkNo.png"
  10420. alt
  10421. v-if="checktoolArray.indexOf(3) == -1"
  10422. />
  10423. <div class="checkDiv" v-else>
  10424. <img src="../../assets/icon/checkedIs.png" alt /><span
  10425. >已选择</span
  10426. >
  10427. </div>
  10428. </div>
  10429. </div>
  10430. <div class="tool">
  10431. <div class="whiteBIcon" @click="addTools2(48)">
  10432. <img
  10433. src="../../assets/icon/fourthToolList/table.png"
  10434. alt
  10435. />
  10436. <div style="margin: 5px 0">表格</div>
  10437. </div>
  10438. <div class="check" @click="addTools2(48)">
  10439. <img
  10440. src="../../assets/icon/checkNo.png"
  10441. alt
  10442. v-if="checktoolArray.indexOf(48) == -1"
  10443. />
  10444. <div class="checkDiv" v-else>
  10445. <img src="../../assets/icon/checkedIs.png" alt /><span
  10446. >已选择</span
  10447. >
  10448. </div>
  10449. </div>
  10450. </div>
  10451. </div>
  10452. <div class="toolSort" v-if="toolType == 6">
  10453. <div v-show="tooC == 49">
  10454. <img
  10455. @click="addTools(tooC, toolIndex, taskCount)"
  10456. src="../../assets/icon/fourthToolList/group.png"
  10457. alt
  10458. />
  10459. <div style="margin: 5px 0">学生分组</div>
  10460. </div>
  10461. </div>
  10462. <div class="toolSort" v-if="toolType == 2">
  10463. <div class="tool">
  10464. <div class="whiteBIcon" @click="addTools2(16)">
  10465. <img
  10466. src="../../assets/icon/thirdToolList/work.png"
  10467. alt
  10468. />
  10469. <div style="margin: 5px 0">作业提交</div>
  10470. </div>
  10471. <div class="check" @click="addTools2(16)">
  10472. <img
  10473. src="../../assets/icon/checkNo.png"
  10474. alt
  10475. v-if="checktoolArray.indexOf(16) == -1"
  10476. />
  10477. <div class="checkDiv" v-else>
  10478. <img src="../../assets/icon/checkedIs.png" alt /><span
  10479. >已选择</span
  10480. >
  10481. </div>
  10482. </div>
  10483. </div>
  10484. <div class="tool">
  10485. <div class="whiteBIcon" @click="addTools2(50)">
  10486. <img
  10487. src="../../assets/icon/thirdToolList/plwork.png"
  10488. alt
  10489. />
  10490. <div style="margin: 5px 0">批量上传</div>
  10491. </div>
  10492. <div class="check" @click="addTools2(50)">
  10493. <img
  10494. src="../../assets/icon/checkNo.png"
  10495. alt
  10496. v-if="checktoolArray.indexOf(50) == -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>
  10506. <div class="toolSort" v-if="toolType == 3">
  10507. <div class="tool">
  10508. <div class="whiteBIcon" @click="addTools2(18)">
  10509. <img
  10510. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10511. alt
  10512. />
  10513. <div style="margin: 5px 0">训练平台</div>
  10514. </div>
  10515. <div class="check" @click="addTools2(18)">
  10516. <img
  10517. src="../../assets/icon/checkNo.png"
  10518. alt
  10519. v-if="checktoolArray.indexOf(18) == -1"
  10520. />
  10521. <div class="checkDiv" v-else>
  10522. <img src="../../assets/icon/checkedIs.png" alt /><span
  10523. >已选择</span
  10524. >
  10525. </div>
  10526. </div>
  10527. </div>
  10528. <div class="tool">
  10529. <div class="whiteBIcon" @click="addTools2(21)">
  10530. <img
  10531. src="../../assets/icon/fourthToolList/program.png"
  10532. alt
  10533. />
  10534. <div style="margin: 5px 0">AIoT Blockly</div>
  10535. </div>
  10536. <div class="check" @click="addTools2(21)">
  10537. <img
  10538. src="../../assets/icon/checkNo.png"
  10539. alt
  10540. v-if="checktoolArray.indexOf(21) == -1"
  10541. />
  10542. <div class="checkDiv" v-else>
  10543. <img src="../../assets/icon/checkedIs.png" alt /><span
  10544. >已选择</span
  10545. >
  10546. </div>
  10547. </div>
  10548. </div>
  10549. <div class="tool">
  10550. <div class="whiteBIcon" @click="addTools2(23)">
  10551. <img
  10552. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10553. alt
  10554. />
  10555. <div style="margin: 5px 0">AI Python</div>
  10556. </div>
  10557. <div class="check" @click="addTools2(23)">
  10558. <img
  10559. src="../../assets/icon/checkNo.png"
  10560. alt
  10561. v-if="checktoolArray.indexOf(23) == -1"
  10562. />
  10563. <div class="checkDiv" v-else>
  10564. <img src="../../assets/icon/checkedIs.png" alt /><span
  10565. >已选择</span
  10566. >
  10567. </div>
  10568. </div>
  10569. </div>
  10570. <div class="tool">
  10571. <div class="whiteBIcon" @click="addTools2(24)">
  10572. <img
  10573. src="../../assets/icon/fourthToolList/AIprogram.png"
  10574. alt
  10575. />
  10576. <div style="margin: 5px 0">AI Blockly</div>
  10577. </div>
  10578. <div class="check" @click="addTools2(24)">
  10579. <img
  10580. src="../../assets/icon/checkNo.png"
  10581. alt
  10582. v-if="checktoolArray.indexOf(24) == -1"
  10583. />
  10584. <div class="checkDiv" v-else>
  10585. <img src="../../assets/icon/checkedIs.png" alt /><span
  10586. >已选择</span
  10587. >
  10588. </div>
  10589. </div>
  10590. </div>
  10591. <div class="tool">
  10592. <div class="whiteBIcon" @click="addTools2(32)">
  10593. <img
  10594. src="../../assets/icon/thirdToolList/code.png"
  10595. alt
  10596. />
  10597. <div style="margin: 5px 0">源码编辑</div>
  10598. </div>
  10599. <div class="check" @click="addTools2(32)">
  10600. <img
  10601. src="../../assets/icon/checkNo.png"
  10602. alt
  10603. v-if="checktoolArray.indexOf(32) == -1"
  10604. />
  10605. <div class="checkDiv" v-else>
  10606. <img src="../../assets/icon/checkedIs.png" alt /><span
  10607. >已选择</span
  10608. >
  10609. </div>
  10610. </div>
  10611. </div>
  10612. <div class="tool">
  10613. <div class="whiteBIcon" @click="addTools2(57)">
  10614. <img
  10615. src="../../assets/icon/fourthToolList/cocopi.png"
  10616. alt
  10617. />
  10618. <div style="margin: 5px 0">CocoPi</div>
  10619. </div>
  10620. <div class="check" @click="addTools2(57)">
  10621. <img
  10622. src="../../assets/icon/checkNo.png"
  10623. alt
  10624. v-if="checktoolArray.indexOf(57) == -1"
  10625. />
  10626. <div class="checkDiv" v-else>
  10627. <img src="../../assets/icon/checkedIs.png" alt /><span
  10628. >已选择</span
  10629. >
  10630. </div>
  10631. </div>
  10632. </div>
  10633. <div class="tool">
  10634. <div class="whiteBIcon" @click="addTools2(63)">
  10635. <img
  10636. src="../../assets/icon/fourthToolList/Wood.png"
  10637. alt
  10638. />
  10639. <div style="margin: 5px 0">海龟编程</div>
  10640. </div>
  10641. <div class="check" @click="addTools2(63)">
  10642. <img
  10643. src="../../assets/icon/checkNo.png"
  10644. alt
  10645. v-if="checktoolArray.indexOf(63) == -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>
  10655. <div class="toolSort" v-if="toolType == 5">
  10656. <div class="tool">
  10657. <div class="whiteBIcon" @click="addTools2(28)">
  10658. <img
  10659. src="../../assets/icon/secondToolList/translation.png"
  10660. alt
  10661. />
  10662. <div style="margin: 5px 0">翻译</div>
  10663. </div>
  10664. <div class="check" @click="addTools2(28)">
  10665. <img
  10666. src="../../assets/icon/checkNo.png"
  10667. alt
  10668. v-if="checktoolArray.indexOf(28) == -1"
  10669. />
  10670. <div class="checkDiv" v-else>
  10671. <img src="../../assets/icon/checkedIs.png" alt /><span
  10672. >已选择</span
  10673. >
  10674. </div>
  10675. </div>
  10676. </div>
  10677. <div class="tool">
  10678. <div class="whiteBIcon" @click="addTools2(31)">
  10679. <img
  10680. src="../../assets/icon/secondToolList/networkPanel.png"
  10681. alt
  10682. />
  10683. <div style="margin: 5px 0">数字画板</div>
  10684. </div>
  10685. <div class="check" @click="addTools2(31)">
  10686. <img
  10687. src="../../assets/icon/checkNo.png"
  10688. alt
  10689. v-if="checktoolArray.indexOf(31) == -1"
  10690. />
  10691. <div class="checkDiv" v-else>
  10692. <img src="../../assets/icon/checkedIs.png" alt /><span
  10693. >已选择</span
  10694. >
  10695. </div>
  10696. </div>
  10697. </div>
  10698. <div class="tool">
  10699. <div class="whiteBIcon" @click="addTools2(39)">
  10700. <img
  10701. src="../../assets/icon/secondToolList/GeoGebra.png"
  10702. alt
  10703. />
  10704. <div style="margin: 5px 0">GeoGebra</div>
  10705. </div>
  10706. <div class="check" @click="addTools2(39)">
  10707. <img
  10708. src="../../assets/icon/checkNo.png"
  10709. alt
  10710. v-if="checktoolArray.indexOf(39) == -1"
  10711. />
  10712. <div class="checkDiv" v-else>
  10713. <img src="../../assets/icon/checkedIs.png" alt /><span
  10714. >已选择</span
  10715. >
  10716. </div>
  10717. </div>
  10718. </div>
  10719. <div class="tool">
  10720. <div class="whiteBIcon" @click="addTools2(66)">
  10721. <img
  10722. src="../../assets/icon/secondToolList/formulaEdi.png"
  10723. alt
  10724. />
  10725. <div style="margin: 5px 0">公式编辑</div>
  10726. </div>
  10727. <div class="check" @click="addTools2(66)">
  10728. <img
  10729. src="../../assets/icon/checkNo.png"
  10730. alt
  10731. v-if="checktoolArray.indexOf(66) == -1"
  10732. />
  10733. <div class="checkDiv" v-else>
  10734. <img src="../../assets/icon/checkedIs.png" alt /><span
  10735. >已选择</span
  10736. >
  10737. </div>
  10738. </div>
  10739. </div>
  10740. <div class="tool">
  10741. <div class="whiteBIcon" @click="addTools2(67)">
  10742. <img
  10743. src="../../assets/icon/secondToolList/molStr.png"
  10744. alt
  10745. />
  10746. <div style="margin: 5px 0">分子结构</div>
  10747. </div>
  10748. <div class="check" @click="addTools2(67)">
  10749. <img
  10750. src="../../assets/icon/checkNo.png"
  10751. alt
  10752. v-if="checktoolArray.indexOf(67) == -1"
  10753. />
  10754. <div class="checkDiv" v-else>
  10755. <img src="../../assets/icon/checkedIs.png" alt /><span
  10756. >已选择</span
  10757. >
  10758. </div>
  10759. </div>
  10760. </div>
  10761. <div class="tool">
  10762. <div class="whiteBIcon" @click="addTools2(68)">
  10763. <img
  10764. src="../../assets/icon/secondToolList/timeAxis.png"
  10765. alt
  10766. />
  10767. <div style="margin: 5px 0">时间轴</div>
  10768. </div>
  10769. <div class="check" @click="addTools2(68)">
  10770. <img
  10771. src="../../assets/icon/checkNo.png"
  10772. alt
  10773. v-if="checktoolArray.indexOf(68) == -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 == 7">
  10784. <div class="tool">
  10785. <div class="whiteBIcon" @click="addTools2(40)">
  10786. <img
  10787. src="../../assets/icon/secondToolList/eval.png"
  10788. alt
  10789. />
  10790. <div style="margin: 5px 0">个人评价</div>
  10791. </div>
  10792. <div class="check" @click="addTools2(40)">
  10793. <img
  10794. src="../../assets/icon/checkNo.png"
  10795. alt
  10796. v-if="checktoolArray.indexOf(40) == -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>
  10806. <div class="toolSort" v-if="toolType == 4">
  10807. <div class="tool">
  10808. <div class="whiteBIcon" @click="addTools2(26)">
  10809. <img
  10810. src="../../assets/icon/thirdToolList/courseDesign.png"
  10811. alt
  10812. />
  10813. <div style="margin: 5px 0">课程设计</div>
  10814. </div>
  10815. <div class="check" @click="addTools2(26)">
  10816. <img
  10817. src="../../assets/icon/checkNo.png"
  10818. alt
  10819. v-if="checktoolArray.indexOf(26) == -1"
  10820. />
  10821. <div class="checkDiv" v-else>
  10822. <img src="../../assets/icon/checkedIs.png" alt /><span
  10823. >已选择</span
  10824. >
  10825. </div>
  10826. </div>
  10827. </div>
  10828. <div class="tool">
  10829. <div class="whiteBIcon" @click="addTools2(25)">
  10830. <img
  10831. src="../../assets/icon/thirdToolList/evalua.png"
  10832. alt
  10833. />
  10834. <div style="margin: 5px 0">目标管理</div>
  10835. </div>
  10836. <div class="check" @click="addTools2(25)">
  10837. <img
  10838. src="../../assets/icon/checkNo.png"
  10839. alt
  10840. v-if="checktoolArray.indexOf(25) == -1"
  10841. />
  10842. <div class="checkDiv" v-else>
  10843. <img src="../../assets/icon/checkedIs.png" alt /><span
  10844. >已选择</span
  10845. >
  10846. </div>
  10847. </div>
  10848. </div>
  10849. </div>
  10850. </div>
  10851. </div>
  10852. </div>
  10853. </div> -->
  10854. <div
  10855. class="vedioBox"
  10856. style="margin-top: 10px; border-radius: 20px"
  10857. v-if="
  10858. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10859. .eList &&
  10860. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10861. .eList.length &&
  10862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10863. .eList.length > 0 &&
  10864. tType != 2
  10865. "
  10866. >
  10867. <div
  10868. class="queTop"
  10869. style="
  10870. font-size: 20px;
  10871. padding: 15px 0 15px 37px;
  10872. font-weight: bold;
  10873. "
  10874. >
  10875. <!-- <div class="question" style="width: 30px">
  10876. <img src="../assets/icon/toolIcon.png" alt />
  10877. </div>
  10878. <div class="queTitle">
  10879. <div>工具</div>
  10880. </div>-->
  10881. 评一评
  10882. </div>
  10883. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10884. <div
  10885. class="elist_input"
  10886. :style="{
  10887. marginLeft: '20px',
  10888. width: evalua
  10889. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  10890. taskCount
  10891. ].isEvaFold2
  10892. ? '45%'
  10893. : 'calc(100% - 180px)'
  10894. : 'calc(100% - 20px)'
  10895. }"
  10896. >
  10897. <el-table
  10898. :data="
  10899. chapInfoList[courseType].chapterInfo[0].taskJson[
  10900. taskCount
  10901. ].eList
  10902. "
  10903. :header-cell-style="{ background: '#F0F4FA' }"
  10904. :row-class-name="tableRowClassName"
  10905. border
  10906. stripe
  10907. style="width: 100%"
  10908. >
  10909. <el-table-column
  10910. :width="courseDetail.state == 5 ? '230' : '150'"
  10911. label="目标"
  10912. align="center"
  10913. >
  10914. <template slot-scope="scope">
  10915. <div
  10916. style="display:flex;justify-content: center;align-items: center;"
  10917. >
  10918. <img
  10919. class="blueRootCss"
  10920. v-if="
  10921. scope.row.isai == 1 ||
  10922. (!scope.row.isai && courseDetail.state == 5)
  10923. "
  10924. src="../../assets/icon/newIcons/blueRoot.png"
  10925. alt=""
  10926. />
  10927. <div v-if="courseDetail.state == 5">
  10928. {{ scope.row.target ? scope.row.target : "-" }}
  10929. </div>
  10930. <div v-else>
  10931. {{
  10932. scope.row.target
  10933. ? scope.row.target[scope.row.target.length - 1]
  10934. : "-"
  10935. }}
  10936. </div>
  10937. </div>
  10938. </template></el-table-column
  10939. >
  10940. <el-table-column
  10941. label="评价维度"
  10942. align="center"
  10943. v-if="courseDetail.state != 5"
  10944. >
  10945. <template slot-scope="scope"
  10946. ><div>{{ scope.row.value }}</div></template
  10947. >
  10948. </el-table-column>
  10949. <el-table-column
  10950. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  10951. align="center"
  10952. >
  10953. <template slot-scope="scope"
  10954. ><div>
  10955. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10956. </div></template
  10957. >
  10958. </el-table-column>
  10959. <el-table-column
  10960. label="细则"
  10961. align="center"
  10962. v-if="courseDetail.state == 5"
  10963. >
  10964. <template slot-scope="scope"
  10965. ><div
  10966. style="display:flex;justify-content: space-around;margin:auto"
  10967. v-if="scope.row.rule"
  10968. >
  10969. <el-popover
  10970. placement="top"
  10971. width="350"
  10972. trigger="hover"
  10973. >
  10974. <div
  10975. v-html="scope.row.rule"
  10976. style="white-space:pre-wrap"
  10977. ></div>
  10978. <div
  10979. slot="reference"
  10980. style="color:#4383FF;cursor: pointer;"
  10981. >
  10982. 查看
  10983. </div>
  10984. </el-popover>
  10985. </div>
  10986. <div v-else>-</div>
  10987. </template>
  10988. </el-table-column>
  10989. </el-table>
  10990. <!-- <div
  10991. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10992. .chapterInfo[0].taskJson[taskCount].eList"
  10993. :key="eIndex"
  10994. class="elist_input_box"
  10995. >
  10996. <div style="width: 95%">
  10997. <div
  10998. style="
  10999. display: flex;
  11000. flex-direction: row;
  11001. flex-wrap: nowrap;
  11002. align-items: center;
  11003. "
  11004. >
  11005. <div style="max-width: calc(100% - 285px)">
  11006. <span>{{ eItem.value }}</span>
  11007. </div>
  11008. <div
  11009. style="
  11010. padding-left: 25px;
  11011. display: flex;
  11012. flex-direction: row;
  11013. align-items: center;
  11014. "
  11015. >
  11016. <el-rate
  11017. v-model="eItem.score"
  11018. :colors="colors"
  11019. disabled
  11020. ></el-rate>
  11021. </div>
  11022. </div>
  11023. <div class="elist_inptu_text" style="padding-left: 10px">
  11024. <span v-if="eItem.detail != ''">{{
  11025. eItem.detail
  11026. }}</span>
  11027. <span v-else style="color: #b2b1b3; font-size: 14px"
  11028. >暂无描述...</span
  11029. >
  11030. </div>
  11031. </div>
  11032. </div> -->
  11033. </div>
  11034. <div
  11035. v-if="evalua"
  11036. style="
  11037. border: 1px solid #e5e5e5;
  11038. max-width: 650px;
  11039. width: 100%;
  11040. margin-top: 20px;
  11041. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11042. "
  11043. :style="{
  11044. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  11045. taskCount
  11046. ].isEvaFold2
  11047. ? '100%'
  11048. : '116px'
  11049. }"
  11050. >
  11051. <div class="e_add_top">
  11052. <div class="e_add_title" style="width: 100%">
  11053. <!-- <span>目标管理名称</span> -->
  11054. <span
  11055. v-if="
  11056. chapInfoList[courseType].chapterInfo[0].taskJson[
  11057. taskCount
  11058. ].isEvaFold2
  11059. "
  11060. >{{ eTitle }}</span
  11061. >
  11062. <img
  11063. v-if="
  11064. chapInfoList[courseType].chapterInfo[0].taskJson[
  11065. taskCount
  11066. ].isEvaFold2
  11067. "
  11068. src="../../assets/line.png"
  11069. class="cru_line"
  11070. style="
  11071. width: 125px;
  11072. height: 20px;
  11073. bottom: -10px;
  11074. left: 5px;
  11075. "
  11076. />
  11077. <!-- <el-input
  11078. v-model="eTitle"
  11079. placeholder="请输入名称"
  11080. @change="setMindData"
  11081. ></el-input>-->
  11082. <div
  11083. v-show="
  11084. chapInfoList[courseType].chapterInfo[0].taskJson[
  11085. taskCount
  11086. ].isEvaFold2
  11087. "
  11088. class="show_taskD show"
  11089. style="margin:0 0 0 auto"
  11090. @click="foldEva()"
  11091. >
  11092. <img
  11093. src="../../assets/icon/newIcon/icon-slide.png"
  11094. />收起目标
  11095. </div>
  11096. <div
  11097. v-show="
  11098. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11099. taskCount
  11100. ].isEvaFold2
  11101. "
  11102. style="margin:0 0 0 auto"
  11103. class="show_taskD"
  11104. @click="foldEva()"
  11105. >
  11106. <img
  11107. src="../../assets/icon/newIcon/icon-slide.png"
  11108. />展开目标
  11109. </div>
  11110. </div>
  11111. </div>
  11112. <div
  11113. class="e_add_content"
  11114. v-if="
  11115. chapInfoList[courseType].chapterInfo[0].taskJson[
  11116. taskCount
  11117. ].isEvaFold2
  11118. "
  11119. >
  11120. <div class="e_add_list_pbox">
  11121. <div class="e_add_list_pbox_title">
  11122. <!-- <span class="type_title">切换模式</span> -->
  11123. <div class="type_content">
  11124. <span
  11125. :class="{ active: typeMode == 1 }"
  11126. @click="typeMode = 1"
  11127. >目标树</span
  11128. >
  11129. <span
  11130. :class="{ active: typeMode == 2 }"
  11131. @click="typeMode = 2"
  11132. >目标罗盘</span
  11133. >
  11134. <!-- <span
  11135. :class="{ active: typeMode == 3 }"
  11136. @click="typeMode = 3"
  11137. >目标看板</span
  11138. > -->
  11139. </div>
  11140. </div>
  11141. <div
  11142. class="e_add_list_pbox_content"
  11143. style="min-height: 200px;"
  11144. >
  11145. <Mind
  11146. :showBar="false"
  11147. :mindData="data"
  11148. style="width: 100%"
  11149. v-show="typeMode == 1"
  11150. ></Mind>
  11151. <Sunburst
  11152. :Josn="eJson"
  11153. :num="eJSONNum"
  11154. style="width: 100%"
  11155. v-if="typeMode == 2"
  11156. ></Sunburst>
  11157. <SeeBoard
  11158. :Josn="eJson"
  11159. :num="eJSONNum"
  11160. :ename="eTitle"
  11161. style="width: 100%"
  11162. v-if="typeMode == 3"
  11163. >
  11164. </SeeBoard>
  11165. </div>
  11166. </div>
  11167. </div>
  11168. </div>
  11169. </div>
  11170. </div>
  11171. <!-- <div
  11172. class="project_box"
  11173. style="margin-top: 15px; padding-bottom: 30px"
  11174. >
  11175. <div
  11176. style="
  11177. display: flex;
  11178. flex-wrap: nowrap;
  11179. flex-direction: column;
  11180. position: relative;
  11181. "
  11182. >
  11183. <div class="queTop">
  11184. <div class="question">
  11185. <img src="../../assets/icon/homeWork.png" alt="" />
  11186. </div>
  11187. <div class="queTitle">
  11188. <div>作业提交<span>(提交图文视频等)</span></div>
  11189. <div>:任务:{{ task.task }}</div>
  11190. </div>
  11191. </div>
  11192. <div class="ediBottom">
  11193. <div
  11194. class="addEditor"
  11195. style="margin-top: 23px"
  11196. @click="openAddWork"
  11197. v-if="!isNoHomeWork"
  11198. >
  11199. 选择文件
  11200. </div>
  11201. <div
  11202. class="addEditor"
  11203. style="margin-top: 23px"
  11204. @click="openAddWork"
  11205. v-else
  11206. >
  11207. 已提交
  11208. </div>
  11209. </div>
  11210. </div>
  11211. </div>-->
  11212. </div>
  11213. </div>
  11214. <el-dialog
  11215. title="作业提交"
  11216. :visible.sync="dialogVisible"
  11217. :append-to-body="true"
  11218. width="500px"
  11219. :before-close="handleClose"
  11220. class="dialog_change"
  11221. >
  11222. <div class="marginT">
  11223. <div>上传文件</div>
  11224. <div
  11225. class="chapter_add"
  11226. @click="addImg($event)"
  11227. v-if="studyJuri[0].cover.length == 0"
  11228. >
  11229. <div class="up_photo">
  11230. <img src="../../assets/icon/uploadImg.png" alt />
  11231. </div>
  11232. <!-- <input
  11233. type="file"
  11234. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11235. style="display: none"
  11236. @change="beforeUpload1($event, 1)"
  11237. /> -->
  11238. <input
  11239. type="file"
  11240. accept="*"
  11241. style="display: none"
  11242. @change="beforeUpload1($event, 1)"
  11243. />
  11244. <!-- <input
  11245. type="file"
  11246. accept="image/*"
  11247. capture="camera"
  11248. style="display: none"
  11249. @change="beforeUpload1($event, 1)"
  11250. /> -->
  11251. </div>
  11252. <div
  11253. class="chapter_add"
  11254. style="
  11255. display: flex;
  11256. width: 100%;
  11257. flex-direction: row;
  11258. flex-wrap: wrap;
  11259. justify-content: flex-start;
  11260. padding: 15px 0;
  11261. "
  11262. v-if="studyJuri[0].cover.length > 0"
  11263. >
  11264. <div class="upCover">
  11265. <img
  11266. :src="studyJuri[0].cover[0].url"
  11267. alt
  11268. v-if="fileType == 0"
  11269. />
  11270. <img :src="word" alt v-else-if="fileType == 1" />
  11271. <img :src="video" alt v-else-if="fileType == 2" />
  11272. <img :src="word2" alt v-else-if="fileType == 3" />
  11273. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11274. <div class="deleteWord" @click="clean(1)">
  11275. <img src="../../assets/icon/deleteWorks.png" alt />
  11276. </div>
  11277. </div>
  11278. </div>
  11279. </div>
  11280. <div
  11281. class="upload_send"
  11282. @click="addCourseWorksCopy(taskCount)"
  11283. v-if="!proVisible"
  11284. >
  11285. 提交
  11286. </div>
  11287. </el-dialog>
  11288. </div>
  11289. </div>
  11290. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11291. <classRoomHelper
  11292. v-if="!['2'].includes(tType)"
  11293. @studentFreePreview="studentFreePreview"
  11294. @OpenJobPreview="OpenJobPreview"
  11295. :videoStart="videoStart"
  11296. :IsFollow="IsFollow"
  11297. :sIsOpen="sIsOpen"
  11298. :IsLookOpen="IsLookOpen"
  11299. :splitScreenData="splitScreenData"
  11300. @splitScreenBehavior="splitScreenBehavior"
  11301. @startRecording="startRecording"
  11302. @stopRecording="stopRecording"
  11303. :fileList="vChapterData[taskCount]"
  11304. :worksStudent="worksStudent"
  11305. :courseType="parseInt(courseType)"
  11306. :taskCount="taskCount"
  11307. :tcid="tcid"
  11308. :navList="navList"
  11309. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11310. ref="classRoomHelperRef"
  11311. :courseDetail="courseDetail"
  11312. :tType="tType"
  11313. @setWidth="setClassRoomHelperWidth"
  11314. @refresh="refreshCourse"
  11315. @goStep="nextOrpreSteps"
  11316. @authority="juriVisible = true"
  11317. @review="setPz"
  11318. @backPage="
  11319. goTo(
  11320. '/courseDetail?userid=' +
  11321. userid +
  11322. '&oid=' +
  11323. oid +
  11324. '&org=' +
  11325. org +
  11326. '&cid=' +
  11327. classId +
  11328. '&courseId=' +
  11329. id +
  11330. '&tType=' +
  11331. tType +
  11332. '&screenType=' +
  11333. screenType
  11334. )
  11335. "
  11336. ></classRoomHelper>
  11337. <div
  11338. class="pButton"
  11339. @click="(pzDialog = true), selectPz()"
  11340. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11341. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11342. >
  11343. <!-- 批 -->
  11344. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11345. </div>
  11346. <div
  11347. v-if="pzDialog == true"
  11348. class="newDialogCss"
  11349. :style="`right:${commentRight}`"
  11350. >
  11351. <div class="pzTop2">
  11352. <!-- <div>评论</div>
  11353. <div @click="pzDialog = false">
  11354. <img src="../../assets/close1.png" alt="" />
  11355. </div> -->
  11356. <div class="checkbox">
  11357. <!-- <div class="check" style="font-size: 25px; position: unset">
  11358. 评论
  11359. </div> -->
  11360. <div class="cb-tabList">
  11361. <div
  11362. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11363. @click="commentTagShow = 0"
  11364. >
  11365. 评论
  11366. </div>
  11367. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11368. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11369. <div
  11370. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11371. @click="commentTagShow = 2"
  11372. >
  11373. 总评
  11374. </div>
  11375. </div>
  11376. <el-select
  11377. v-model="pzStype"
  11378. @change="selectPz"
  11379. class="selectBox"
  11380. v-show="commentTagShow == 0"
  11381. >
  11382. <el-option label="时间降序" :value="1"></el-option>
  11383. <el-option label="时间升序" :value="2"></el-option>
  11384. <el-option label="我的评课" :value="3"></el-option>
  11385. </el-select>
  11386. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11387. </div>
  11388. </div>
  11389. <div
  11390. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11391. v-if="commentTagShow == 0"
  11392. >
  11393. <div class="pzListBox" v-if="pzList && pzList.length">
  11394. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11395. <div class="pzNavTop">
  11396. <div>评</div>
  11397. <div>
  11398. {{
  11399. pz.username && pz.username.length > 5
  11400. ? pz.username.substring(0, 5) + "..."
  11401. : pz.username
  11402. }}的评论
  11403. </div>
  11404. <div
  11405. class="pzDelete"
  11406. v-if="pz.userid == userid"
  11407. @click="deletePz(pz.id)"
  11408. >
  11409. 删除
  11410. </div>
  11411. </div>
  11412. <div
  11413. @click="checkImg(getImgList(pz.content))"
  11414. class="pzContent cont"
  11415. v-html="pz.content"
  11416. v-if="pz.type == '1'"
  11417. ></div>
  11418. <div class="pzContent" v-if="pz.type == '2'">
  11419. <audio :src="pz.content" controls="controls" ref="audio">
  11420. Your browser does not support the audio element.
  11421. </audio>
  11422. </div>
  11423. <div class="pzContent" v-if="pz.type == '3'">
  11424. <img
  11425. :src="pz.content"
  11426. style="width: 90%; margin: 0 auto; display: block"
  11427. @click="previewImg(pz.content)"
  11428. />
  11429. </div>
  11430. <div class="timeAndReply">
  11431. <div class="time">
  11432. {{ pz.time }}
  11433. </div>
  11434. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11435. </div>
  11436. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11437. <div
  11438. v-for="(h, hIndex) in pz.hfList"
  11439. :key="hIndex"
  11440. class="hfItem"
  11441. >
  11442. <div class="whoReplyWho">
  11443. <div class="hfName">{{ h.username }}</div>
  11444. <div class="hfImg">
  11445. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11446. </div>
  11447. <div class="hfName">{{ pz.username }}</div>
  11448. </div>
  11449. <div class="hfContent" v-html="h.content"></div>
  11450. <div class="hfBottom">
  11451. <div class="hfTime">{{ h.time }}</div>
  11452. <div
  11453. class="deleteHfItem"
  11454. @click="deleteReply(h.id)"
  11455. v-if="userid == h.userid"
  11456. >
  11457. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11458. </div>
  11459. </div>
  11460. </div>
  11461. </div>
  11462. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11463. <div class="replyInput">
  11464. <el-input v-model="reply[pzIndex]"></el-input>
  11465. </div>
  11466. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11467. </div> -->
  11468. </div>
  11469. </div>
  11470. <div class="noPz" v-else>
  11471. <img src="../../assets/icon/noPz.png" alt="" />
  11472. </div>
  11473. <div class="addPzButton">
  11474. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11475. 添加评论
  11476. </div>
  11477. <!-- <div class="img1">
  11478. <div @click="(addPzDialog = true), (pzType = 2)">
  11479. <img src="../../assets/audio.png" /><span>音频</span>
  11480. </div>
  11481. </div> -->
  11482. </div>
  11483. </div>
  11484. <div class="scoreList" v-if="commentTagShow == 1">
  11485. <scoreItem
  11486. v-for="item in scoreList.datalist"
  11487. @refresh="getScoreList"
  11488. :data="item"
  11489. :isScore="
  11490. scoreList.isScoreList.filter(
  11491. i => i.userid == item.userid && i.courseid == item.courseId
  11492. )
  11493. "
  11494. :key="item.courseId"
  11495. />
  11496. </div>
  11497. <div
  11498. class="scoreList"
  11499. v-if="commentTagShow == 2"
  11500. style="position: relative"
  11501. >
  11502. <scoreZong
  11503. :courseid="id"
  11504. :userid="userid"
  11505. @insertMemorandum="insertMemorandum"
  11506. ></scoreZong>
  11507. </div>
  11508. </div>
  11509. <div
  11510. v-if="toolDialogVisible == true"
  11511. class="toolMask"
  11512. @click="toolDialogVisible = false"
  11513. ></div>
  11514. <div v-if="toolDialogVisible == true" class="addToolCss">
  11515. <div class="toolTop">
  11516. <div style="font-weight: bold">新增工具</div>
  11517. <div @click="toolDialogVisible = false">
  11518. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11519. </div>
  11520. </div>
  11521. <div class="tool_box">
  11522. <div class="tool_type_box">
  11523. <div class="chooseWho">
  11524. <div
  11525. :class="toolType == 0 ? 'isChooseActive' : ''"
  11526. @click="(toolType = 0), $forceUpdate()"
  11527. >
  11528. 互动类
  11529. </div>
  11530. <div
  11531. :class="toolType == 1 ? 'isChooseActive' : ''"
  11532. @click="(toolType = 1), $forceUpdate()"
  11533. >
  11534. 思维类
  11535. </div>
  11536. <div
  11537. :class="toolType == 2 ? 'isChooseActive' : ''"
  11538. @click="(toolType = 2), $forceUpdate()"
  11539. >
  11540. 测评类
  11541. </div>
  11542. <div
  11543. :class="toolType == 3 ? 'isChooseActive' : ''"
  11544. @click="(toolType = 3), $forceUpdate()"
  11545. >
  11546. 编程类
  11547. </div>
  11548. <div
  11549. :class="toolType == 5 ? 'isChooseActive' : ''"
  11550. @click="(toolType = 5), $forceUpdate()"
  11551. >
  11552. 学科类
  11553. </div>
  11554. </div>
  11555. </div>
  11556. <div>
  11557. <div class="toolSort" v-if="toolType == 0">
  11558. <div
  11559. class="tool"
  11560. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11561. @click="addTools2(10)"
  11562. >
  11563. <div class="whiteBIcon">
  11564. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11565. <div style="margin: 5px 0">倒计时</div>
  11566. </div>
  11567. <div class="check">
  11568. <div
  11569. v-if="checktoolArray.indexOf(10) == -1"
  11570. class="noChoose"
  11571. ></div>
  11572. <div v-else class="isChoose"></div>
  11573. </div>
  11574. </div>
  11575. <div
  11576. class="tool"
  11577. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11578. @click="addTools2(65)"
  11579. >
  11580. <div class="whiteBIcon">
  11581. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11582. <div style="margin: 5px 0">挑人</div>
  11583. </div>
  11584. <div class="check">
  11585. <div
  11586. v-if="checktoolArray.indexOf(65) == -1"
  11587. class="noChoose"
  11588. ></div>
  11589. <div v-else class="isChoose"></div>
  11590. </div>
  11591. </div>
  11592. </div>
  11593. <div class="toolSort" v-if="toolType == 1">
  11594. <div
  11595. class="tool"
  11596. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11597. @click="addTools2(7)"
  11598. >
  11599. <div class="whiteBIcon">
  11600. <img
  11601. src="../../assets/icon/secondToolList/mindNetwork.png"
  11602. alt
  11603. />
  11604. <div style="margin: 5px 0">思维网格</div>
  11605. </div>
  11606. <div class="check">
  11607. <div
  11608. v-if="checktoolArray.indexOf(7) == -1"
  11609. class="noChoose"
  11610. ></div>
  11611. <div v-else class="isChoose"></div>
  11612. </div>
  11613. </div>
  11614. <div
  11615. class="tool"
  11616. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11617. @click="addTools2(1)"
  11618. >
  11619. <div class="whiteBIcon">
  11620. <img
  11621. src="../../assets/icon/secondToolList/whiteBoard.png"
  11622. alt
  11623. />
  11624. <div style="margin: 5px 0">电子白板</div>
  11625. </div>
  11626. <div class="check">
  11627. <div
  11628. v-if="checktoolArray.indexOf(1) == -1"
  11629. class="noChoose"
  11630. ></div>
  11631. <div v-else class="isChoose"></div>
  11632. </div>
  11633. </div>
  11634. <div
  11635. class="tool"
  11636. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11637. @click="addTools2(52)"
  11638. >
  11639. <div class="whiteBIcon">
  11640. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11641. <div style="margin: 5px 0">文档</div>
  11642. </div>
  11643. <div class="check">
  11644. <div
  11645. v-if="checktoolArray.indexOf(52) == -1"
  11646. class="noChoose"
  11647. ></div>
  11648. <div v-else class="isChoose"></div>
  11649. </div>
  11650. </div>
  11651. <div
  11652. class="tool"
  11653. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11654. @click="addTools2(3)"
  11655. >
  11656. <div class="whiteBIcon">
  11657. <img
  11658. src="../../assets/icon/secondToolList/mindMapping.png"
  11659. alt
  11660. />
  11661. <div style="margin: 5px 0">思维导图</div>
  11662. </div>
  11663. <div class="check">
  11664. <div
  11665. v-if="checktoolArray.indexOf(3) == -1"
  11666. class="noChoose"
  11667. ></div>
  11668. <div v-else class="isChoose"></div>
  11669. </div>
  11670. </div>
  11671. <div
  11672. class="tool"
  11673. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11674. @click="addTools2(48)"
  11675. >
  11676. <div class="whiteBIcon">
  11677. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11678. <div style="margin: 5px 0">表格</div>
  11679. </div>
  11680. <div class="check">
  11681. <div
  11682. v-if="checktoolArray.indexOf(48) == -1"
  11683. class="noChoose"
  11684. ></div>
  11685. <div v-else class="isChoose"></div>
  11686. </div>
  11687. </div>
  11688. </div>
  11689. <div class="toolSort" v-if="toolType == 6">
  11690. <div v-show="tooC == 49">
  11691. <img
  11692. @click="addTools(tooC, toolIndex, taskCount)"
  11693. src="../../assets/icon/fourthToolList/group.png"
  11694. alt
  11695. />
  11696. <div style="margin: 5px 0">学生分组</div>
  11697. </div>
  11698. </div>
  11699. <div class="toolSort" v-if="toolType == 2">
  11700. <div
  11701. class="tool"
  11702. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11703. @click="addTools2(16)"
  11704. >
  11705. <div class="whiteBIcon">
  11706. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11707. <div style="margin: 5px 0">作业提交</div>
  11708. </div>
  11709. <div class="check">
  11710. <div
  11711. v-if="checktoolArray.indexOf(16) == -1"
  11712. class="noChoose"
  11713. ></div>
  11714. <div v-else class="isChoose"></div>
  11715. </div>
  11716. </div>
  11717. <div
  11718. class="tool"
  11719. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11720. @click="addTools2(50)"
  11721. >
  11722. <div class="whiteBIcon">
  11723. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11724. <div style="margin: 5px 0">批量上传</div>
  11725. </div>
  11726. <div class="check">
  11727. <div
  11728. v-if="checktoolArray.indexOf(50) == -1"
  11729. class="noChoose"
  11730. ></div>
  11731. <div v-else class="isChoose"></div>
  11732. </div>
  11733. </div>
  11734. </div>
  11735. <div class="toolSort" v-if="toolType == 3">
  11736. <div
  11737. class="tool"
  11738. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11739. @click="addTools2(18)"
  11740. >
  11741. <div class="whiteBIcon">
  11742. <img
  11743. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11744. alt
  11745. />
  11746. <div style="margin: 5px 0">训练平台</div>
  11747. </div>
  11748. <div class="check">
  11749. <div
  11750. v-if="checktoolArray.indexOf(18) == -1"
  11751. class="noChoose"
  11752. ></div>
  11753. <div v-else class="isChoose"></div>
  11754. </div>
  11755. </div>
  11756. <div
  11757. class="tool"
  11758. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11759. @click="addTools2(21)"
  11760. >
  11761. <div class="whiteBIcon">
  11762. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11763. <div style="margin: 5px 0">AIoT Blockly</div>
  11764. </div>
  11765. <div class="check">
  11766. <div
  11767. v-if="checktoolArray.indexOf(21) == -1"
  11768. class="noChoose"
  11769. ></div>
  11770. <div v-else class="isChoose"></div>
  11771. </div>
  11772. </div>
  11773. <div
  11774. class="tool"
  11775. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11776. @click="addTools2(23)"
  11777. >
  11778. <div class="whiteBIcon">
  11779. <img
  11780. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11781. alt
  11782. />
  11783. <div style="margin: 5px 0">AI Python</div>
  11784. </div>
  11785. <div class="check">
  11786. <div
  11787. v-if="checktoolArray.indexOf(23) == -1"
  11788. class="noChoose"
  11789. ></div>
  11790. <div v-else class="isChoose"></div>
  11791. </div>
  11792. </div>
  11793. <div
  11794. class="tool"
  11795. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11796. @click="addTools2(24)"
  11797. >
  11798. <div class="whiteBIcon">
  11799. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11800. <div style="margin: 5px 0">AI Blockly</div>
  11801. </div>
  11802. <div class="check">
  11803. <div
  11804. v-if="checktoolArray.indexOf(24) == -1"
  11805. class="noChoose"
  11806. ></div>
  11807. <div v-else class="isChoose"></div>
  11808. </div>
  11809. </div>
  11810. <div
  11811. class="tool"
  11812. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11813. @click="addTools2(32)"
  11814. >
  11815. <div class="whiteBIcon">
  11816. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11817. <div style="margin: 5px 0">源码编辑</div>
  11818. </div>
  11819. <div class="check">
  11820. <div
  11821. v-if="checktoolArray.indexOf(32) == -1"
  11822. class="noChoose"
  11823. ></div>
  11824. <div v-else class="isChoose"></div>
  11825. </div>
  11826. </div>
  11827. <div
  11828. class="tool"
  11829. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11830. @click="addTools2(57)"
  11831. >
  11832. <div class="whiteBIcon">
  11833. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11834. <div style="margin: 5px 0">CocoPi</div>
  11835. </div>
  11836. <div class="check">
  11837. <div
  11838. v-if="checktoolArray.indexOf(57) == -1"
  11839. class="noChoose"
  11840. ></div>
  11841. <div v-else class="isChoose"></div>
  11842. </div>
  11843. </div>
  11844. <div
  11845. class="tool"
  11846. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11847. @click="addTools2(63)"
  11848. >
  11849. <div class="whiteBIcon">
  11850. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11851. <div style="margin: 5px 0">海龟编程</div>
  11852. </div>
  11853. <div class="check">
  11854. <div
  11855. v-if="checktoolArray.indexOf(63) == -1"
  11856. class="noChoose"
  11857. ></div>
  11858. <div v-else class="isChoose"></div>
  11859. </div>
  11860. </div>
  11861. <div
  11862. class="tool"
  11863. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11864. @click="addTools2(71)"
  11865. >
  11866. <div class="whiteBIcon">
  11867. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11868. <div style="margin: 5px 0">AI智能体</div>
  11869. </div>
  11870. <div class="check">
  11871. <div
  11872. v-if="checktoolArray.indexOf(71) == -1"
  11873. class="noChoose"
  11874. ></div>
  11875. <div v-else class="isChoose"></div>
  11876. </div>
  11877. </div>
  11878. </div>
  11879. <div class="toolSort" v-if="toolType == 7">
  11880. <div
  11881. class="tool"
  11882. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11883. @click="addTools2(40)"
  11884. >
  11885. <div class="whiteBIcon">
  11886. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11887. <div style="margin: 5px 0">个人评价</div>
  11888. </div>
  11889. <div class="check">
  11890. <div
  11891. v-if="checktoolArray.indexOf(40) == -1"
  11892. class="noChoose"
  11893. ></div>
  11894. <div v-else class="isChoose"></div>
  11895. </div>
  11896. </div>
  11897. </div>
  11898. <div class="toolSort" v-if="toolType == 5">
  11899. <div
  11900. class="tool"
  11901. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11902. @click="addTools2(28)"
  11903. >
  11904. <div class="whiteBIcon">
  11905. <img
  11906. src="../../assets/icon/secondToolList/translation.png"
  11907. alt
  11908. />
  11909. <div style="margin: 5px 0">翻译</div>
  11910. </div>
  11911. <div class="check">
  11912. <div
  11913. v-if="checktoolArray.indexOf(28) == -1"
  11914. class="noChoose"
  11915. ></div>
  11916. <div v-else class="isChoose"></div>
  11917. </div>
  11918. </div>
  11919. <div
  11920. class="tool"
  11921. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11922. @click="addTools2(31)"
  11923. >
  11924. <div class="whiteBIcon">
  11925. <img
  11926. src="../../assets/icon/secondToolList/networkPanel.png"
  11927. alt
  11928. />
  11929. <div style="margin: 5px 0">数字画板</div>
  11930. </div>
  11931. <div class="check">
  11932. <div
  11933. v-if="checktoolArray.indexOf(31) == -1"
  11934. class="noChoose"
  11935. ></div>
  11936. <div v-else class="isChoose"></div>
  11937. </div>
  11938. </div>
  11939. <div
  11940. class="tool"
  11941. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11942. @click="addTools2(39)"
  11943. >
  11944. <div class="whiteBIcon">
  11945. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11946. <div style="margin: 5px 0">GeoGebra</div>
  11947. </div>
  11948. <div class="check">
  11949. <div
  11950. v-if="checktoolArray.indexOf(39) == -1"
  11951. class="noChoose"
  11952. ></div>
  11953. <div v-else class="isChoose"></div>
  11954. </div>
  11955. </div>
  11956. <div
  11957. class="tool"
  11958. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11959. @click="addTools2(66)"
  11960. >
  11961. <div class="whiteBIcon">
  11962. <img
  11963. src="../../assets/icon/secondToolList/formulaEdi.png"
  11964. alt
  11965. />
  11966. <div style="margin: 5px 0">公式编辑</div>
  11967. </div>
  11968. <div class="check">
  11969. <div
  11970. v-if="checktoolArray.indexOf(66) == -1"
  11971. class="noChoose"
  11972. ></div>
  11973. <div v-else class="isChoose"></div>
  11974. </div>
  11975. </div>
  11976. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11977. <div class="whiteBIcon" @click="addTools2(67)">
  11978. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11979. <div style="margin: 5px 0">分子结构</div>
  11980. </div>
  11981. <div class="check" @click="addTools2(67)">
  11982. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11983. <div v-else class="isChoose"></div>
  11984. </div>
  11985. </div> -->
  11986. <div
  11987. class="tool"
  11988. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11989. @click="addTools2(68)"
  11990. >
  11991. <div class="whiteBIcon">
  11992. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11993. <div style="margin: 5px 0">时间轴</div>
  11994. </div>
  11995. <div class="check">
  11996. <div
  11997. v-if="checktoolArray.indexOf(68) == -1"
  11998. class="noChoose"
  11999. ></div>
  12000. <div v-else class="isChoose"></div>
  12001. </div>
  12002. </div>
  12003. <!-- <div
  12004. class="tool"
  12005. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12006. @click="addTools2(69)"
  12007. >
  12008. <div class="whiteBIcon">
  12009. <img src="../../assets/icon/secondToolList/english.png" alt />
  12010. <div style="margin: 5px 0">英语写作</div>
  12011. </div>
  12012. <div class="check">
  12013. <div
  12014. v-if="checktoolArray.indexOf(69) == -1"
  12015. class="noChoose"
  12016. ></div>
  12017. <div v-else class="isChoose"></div>
  12018. </div>
  12019. </div> -->
  12020. </div>
  12021. <div class="toolSort" v-if="toolType == 4">
  12022. <div
  12023. class="tool"
  12024. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12025. @click="addTools2(26)"
  12026. >
  12027. <div class="whiteBIcon">
  12028. <img
  12029. src="../../assets/icon/thirdToolList/courseDesign.png"
  12030. alt
  12031. />
  12032. <div style="margin: 5px 0">课程设计</div>
  12033. </div>
  12034. <div class="check">
  12035. <div
  12036. v-if="checktoolArray.indexOf(26) == -1"
  12037. class="noChoose"
  12038. ></div>
  12039. <div v-else class="isChoose"></div>
  12040. </div>
  12041. </div>
  12042. <div
  12043. class="tool"
  12044. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12045. @click="addTools2(25)"
  12046. >
  12047. <div class="whiteBIcon">
  12048. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12049. <div style="margin: 5px 0">目标管理</div>
  12050. </div>
  12051. <div class="check">
  12052. <div
  12053. v-if="checktoolArray.indexOf(25) == -1"
  12054. class="noChoose"
  12055. ></div>
  12056. <div v-else class="isChoose"></div>
  12057. </div>
  12058. </div>
  12059. </div>
  12060. </div>
  12061. </div>
  12062. <span
  12063. slot="footer"
  12064. class="dialog-footer"
  12065. style="display: block; text-align: center; padding: 0 0 10px 0"
  12066. >
  12067. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12068. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12069. </span>
  12070. </div>
  12071. <div
  12072. v-if="replyDialogVisible == true"
  12073. class="addDialogCss"
  12074. v-el-drag-dialog
  12075. >
  12076. <div class="pzTop">
  12077. <div class="teacherPz">
  12078. <div class="teacherPzImg">
  12079. <img src="../../assets/icon/teacherPz.png" alt="" />
  12080. </div>
  12081. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12082. </div>
  12083. <div @click="replyDialogVisible = false">
  12084. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12085. </div>
  12086. </div>
  12087. <div class="addPzBox">
  12088. <!-- <div class="addPzCheck">
  12089. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12090. >文本</span
  12091. >
  12092. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12093. >音频</span
  12094. >
  12095. </div> -->
  12096. <div style="height: calc(100% - 50px)">
  12097. <editor-bar
  12098. class="binfo_input pzConText"
  12099. style="width: 100% !important; margin: 0 auto"
  12100. placeholder="请输入回复描述"
  12101. v-model="reply"
  12102. @change="change"
  12103. ></editor-bar>
  12104. </div>
  12105. <div class="addTextCss" @click="addHf">确定</div>
  12106. </div>
  12107. </div>
  12108. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12109. <div class="pzTop">
  12110. <div class="teacherPz">
  12111. <div class="teacherPzImg">
  12112. <img src="../../assets/icon/teacherPz.png" alt="" />
  12113. </div>
  12114. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12115. </div>
  12116. <div @click="addPzDialog = false">
  12117. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12118. </div>
  12119. </div>
  12120. <div class="addPzBox">
  12121. <div class="addPzCheck">
  12122. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12123. >文本</span
  12124. >
  12125. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12126. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12127. >音频</span
  12128. >
  12129. </div>
  12130. <div style="height: calc(100% - 95px)">
  12131. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12132. v-if="pzType == 1"></textarea> -->
  12133. <editor-bar
  12134. class="binfo_input pzConText"
  12135. style="width: 100% !important"
  12136. placeholder="请输入任务描述"
  12137. v-model="pzConText"
  12138. @change="change"
  12139. v-if="pzType == 1"
  12140. ></editor-bar>
  12141. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12142. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12143. <div @click="addImg($event)">
  12144. <el-button type="primary">上传图片</el-button>
  12145. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12146. @change="beforeUpload1($event, 4)" />
  12147. </div>
  12148. </div> -->
  12149. </div>
  12150. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12151. 确定
  12152. </div>
  12153. </div>
  12154. </div>
  12155. <div v-if="proVisible" class="mask">
  12156. <div class="progressBox">
  12157. <!-- <div id="closePro" class="closeCss">
  12158. <img src="../../assets/icon/close.png" alt />
  12159. </div> -->
  12160. <div class="lbox">
  12161. <img src="../../assets/loading.gif" />上传中,请稍后
  12162. </div>
  12163. <div style="margin-bottom: 10px">
  12164. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12165. </div>
  12166. <el-progress
  12167. :text-inside="true"
  12168. :stroke-width="20"
  12169. :percentage="progress"
  12170. style="width: 80%"
  12171. ></el-progress>
  12172. </div>
  12173. </div>
  12174. <div v-if="proVisible2" class="mask">
  12175. <div class="progressBox">
  12176. <div class="lbox">
  12177. <img src="../../assets/loading.gif" />上传中,请稍后
  12178. </div>
  12179. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12180. </div>
  12181. </div>
  12182. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12183. <img width="100%" :src="dialogImageUrl" alt />
  12184. </el-dialog>
  12185. <el-dialog
  12186. :title="noteName != '' ? noteName : '查看问卷'"
  12187. :visible.sync="dialogVisible5"
  12188. :append-to-body="true"
  12189. width="1000px"
  12190. :before-close="handleClose"
  12191. class="dialog_diy dialog_diy3"
  12192. >
  12193. <div>
  12194. <div
  12195. class="a_add_title"
  12196. style="
  12197. display: flex;
  12198. flex-direction: row;
  12199. align-items: center;
  12200. justify-content: center;
  12201. "
  12202. >
  12203. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12204. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12205. </div>
  12206. <div class="a_addBox">
  12207. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12208. 题目内容
  12209. </div>
  12210. <div
  12211. class="a_add_box"
  12212. v-for="(item1, index1) in askJson.askCount"
  12213. :key="index1"
  12214. >
  12215. <div class="a_add_head">
  12216. <div style="display: flex">
  12217. <span class="askIndex"> {{ index1 + 1 }}</span>
  12218. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12219. </div>
  12220. <img
  12221. v-if="askJson.askJson[index1].img"
  12222. :src="askJson.askJson[index1].img"
  12223. style="height: 300px; margin-top: 10px; max-width: 100%"
  12224. />
  12225. </div>
  12226. <div class="a_add_body">
  12227. <div class="a_add_input">
  12228. <el-radio-group
  12229. v-model="radio[index1]"
  12230. v-if="
  12231. askJson.askJson[index1].type == '1' ||
  12232. !askJson.askJson[index1].type
  12233. "
  12234. >
  12235. <el-radio
  12236. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12237. .checkList"
  12238. :key="checkIndex"
  12239. :label="checkIndex"
  12240. :disabled="isAnswer"
  12241. class="redioStyle"
  12242. ><span v-html="item2"></span
  12243. ></el-radio>
  12244. </el-radio-group>
  12245. <el-checkbox-group
  12246. v-model="radio[index1]"
  12247. v-if="askJson.askJson[index1].type == '2'"
  12248. >
  12249. <el-checkbox
  12250. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12251. .checkList"
  12252. :key="checkIndex1"
  12253. :label="checkIndex1"
  12254. :disabled="isAnswer"
  12255. class="redioStyle"
  12256. ><span v-html="item2"></span>
  12257. </el-checkbox>
  12258. </el-checkbox-group>
  12259. </div>
  12260. </div>
  12261. </div>
  12262. </div>
  12263. </div>
  12264. <span slot="footer" class="dialog-footer">
  12265. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12266. >取 消</el-button
  12267. >
  12268. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12269. >确 定</el-button
  12270. >
  12271. </span>
  12272. </el-dialog>
  12273. <el-dialog
  12274. :title="noteName != '' ? noteName : '查看问卷'"
  12275. :visible.sync="dialogVisible5Teacher"
  12276. :append-to-body="true"
  12277. width="1000px"
  12278. :before-close="handleClose"
  12279. class="dialog_diy dialog_diy3"
  12280. >
  12281. <div>
  12282. <div class="w_name">
  12283. 学生姓名:<span>{{ sStudent.student }}</span>
  12284. </div>
  12285. <div
  12286. class="a_add_title"
  12287. style="
  12288. display: flex;
  12289. flex-direction: row;
  12290. align-items: center;
  12291. justify-content: center;
  12292. "
  12293. >
  12294. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12295. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12296. </div>
  12297. <div class="a_addBox">
  12298. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12299. 题目内容
  12300. </div>
  12301. <div
  12302. class="a_add_box"
  12303. v-for="(item1, index1) in askJson.askCount"
  12304. :key="index1"
  12305. >
  12306. <div class="a_add_head">
  12307. <div style="display: flex">
  12308. <span class="askIndex">{{ index1 + 1 }}</span>
  12309. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12310. </div>
  12311. <img
  12312. v-if="askJson.askJson[index1].img"
  12313. :src="askJson.askJson[index1].img"
  12314. style="height: 300px; margin-top: 10px; max-width: 100%"
  12315. />
  12316. </div>
  12317. <div class="a_add_body">
  12318. <div class="a_add_input">
  12319. <el-radio-group
  12320. v-model="radio[index1]"
  12321. v-if="
  12322. askJson.askJson[index1].type == '1' ||
  12323. !askJson.askJson[index1].type
  12324. "
  12325. >
  12326. <el-radio
  12327. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12328. .checkList"
  12329. :key="checkIndex"
  12330. :label="checkIndex"
  12331. :disabled="isAnswer"
  12332. class="redioStyle"
  12333. ><span v-html="item2"></span
  12334. ></el-radio>
  12335. </el-radio-group>
  12336. <el-checkbox-group
  12337. v-model="radio[index1]"
  12338. v-if="askJson.askJson[index1].type == '2'"
  12339. >
  12340. <el-checkbox
  12341. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12342. .checkList"
  12343. :key="checkIndex1"
  12344. :label="checkIndex1"
  12345. :disabled="isAnswer"
  12346. class="redioStyle"
  12347. ><span v-html="item2"></span>
  12348. </el-checkbox>
  12349. </el-checkbox-group>
  12350. </div>
  12351. </div>
  12352. </div>
  12353. </div>
  12354. </div>
  12355. <span slot="footer" class="dialog-footer">
  12356. <el-button
  12357. @click="dialogVisible5Teacher = false"
  12358. v-show="noteName == ''"
  12359. >取 消</el-button
  12360. >
  12361. <el-button
  12362. type="primary"
  12363. @click="addStudentAskTeacher"
  12364. v-show="noteName == ''"
  12365. >确 定</el-button
  12366. >
  12367. </span>
  12368. </el-dialog>
  12369. <el-dialog
  12370. :title="noteName != '' ? noteName : '查看选择题'"
  12371. :visible.sync="dialogVisibleChoice"
  12372. :append-to-body="true"
  12373. width="1000px"
  12374. :before-close="handleClose"
  12375. class="dialog_diy dialog_diy3"
  12376. >
  12377. <div>
  12378. <!-- <div class="a_add_title" style="
  12379. display: flex;
  12380. flex-direction: row;
  12381. align-items: center;
  12382. justify-content: center;
  12383. ">
  12384. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12385. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12386. </div> -->
  12387. <div class="a_addBox">
  12388. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12389. 题目内容
  12390. </div>
  12391. <div
  12392. class="a_add_box"
  12393. v-for="(item1, index1) in testJson.testCount"
  12394. :key="index1"
  12395. >
  12396. <div class="a_add_head">
  12397. <div style="display: flex">
  12398. <span class="askIndex">{{ index1 + 1 }}</span>
  12399. <div
  12400. v-if="testJson.testJson[index1].type == '1'"
  12401. style="margin-right: 5px; min-width: 70px"
  12402. >
  12403. (单选题)
  12404. </div>
  12405. <div
  12406. v-if="testJson.testJson[index1].type == '2'"
  12407. style="margin-right: 5px; min-width: 70px"
  12408. >
  12409. (多选题)
  12410. </div>
  12411. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12412. </div>
  12413. <img
  12414. v-if="testJson.testJson[index1].img"
  12415. :src="testJson.testJson[index1].img"
  12416. style="height: 300px; margin-top: 10px; max-width: 100%"
  12417. />
  12418. </div>
  12419. <div
  12420. class="timuImgBox"
  12421. v-if="
  12422. testJson.testJson[index1].timuList &&
  12423. testJson.testJson[index1].timuList.length
  12424. "
  12425. >
  12426. <div
  12427. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12428. :key="tIndex"
  12429. class="timuImg"
  12430. @click.stop="previewImg(timg.src)"
  12431. >
  12432. <img :src="timg.src" alt="" />
  12433. </div>
  12434. </div>
  12435. <div class="a_add_body">
  12436. <div class="a_add_input">
  12437. <el-radio-group
  12438. v-model="radio[index1]"
  12439. v-if="testJson.testJson[index1].type == '1'"
  12440. >
  12441. <div class="radioBox">
  12442. <el-radio
  12443. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12444. .checkList"
  12445. :key="checkIndex"
  12446. :label="checkIndex"
  12447. :disabled="isAnswer"
  12448. class="redioStyle"
  12449. >
  12450. <div
  12451. style="margin-right: 10px"
  12452. v-if="item2 && item2.imgType && item2.imgType == 1"
  12453. >
  12454. <div class="inImg" @click.stop="previewImg(item2.src)">
  12455. <img :src="item2.src" alt="" />
  12456. </div>
  12457. </div>
  12458. <span v-else v-html="item2"></span>
  12459. </el-radio>
  12460. </div>
  12461. </el-radio-group>
  12462. <el-checkbox-group
  12463. v-model="radio[index1]"
  12464. v-if="testJson.testJson[index1].type == '2'"
  12465. >
  12466. <div class="radioBox">
  12467. <el-checkbox
  12468. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12469. .checkList"
  12470. :key="checkIndex"
  12471. :label="checkIndex"
  12472. :disabled="isAnswer"
  12473. class="redioStyle"
  12474. >
  12475. <div
  12476. style="margin-right: 10px"
  12477. v-if="item2 && item2.imgType && item2.imgType == 1"
  12478. >
  12479. <div class="inImg" @click.stop="previewImg(item2.src)">
  12480. <img :src="item2.src" alt="" />
  12481. </div>
  12482. </div>
  12483. <span v-else v-html="item2"></span>
  12484. </el-checkbox>
  12485. </div>
  12486. </el-checkbox-group>
  12487. </div>
  12488. </div>
  12489. </div>
  12490. </div>
  12491. </div>
  12492. <span slot="footer" class="dialog-footer">
  12493. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12494. >取 消</el-button
  12495. >
  12496. <el-button
  12497. type="primary"
  12498. @click="addStudentTest"
  12499. v-show="noteName == ''"
  12500. >确 定</el-button
  12501. >
  12502. </span>
  12503. </el-dialog>
  12504. <el-dialog
  12505. :title="noteName != '' ? noteName : '查看选择题'"
  12506. :visible.sync="dialogVisibleChoiceTeacher"
  12507. :append-to-body="true"
  12508. width="1000px"
  12509. :before-close="handleClose"
  12510. class="dialog_diy dialog_diy3"
  12511. >
  12512. <div>
  12513. <div class="w_name">
  12514. 学生姓名:<span>{{ sStudent.student }}</span>
  12515. </div>
  12516. <div class="a_addBox">
  12517. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12518. 题目内容
  12519. </div>
  12520. <div
  12521. class="a_add_box"
  12522. v-for="(item1, index1) in testJson.testCount"
  12523. :key="index1"
  12524. >
  12525. <div class="a_add_head">
  12526. <div style="display: flex">
  12527. <span class="askIndex">{{ index1 + 1 }}</span>
  12528. <div
  12529. v-if="testJson.testJson[index1].type == '1'"
  12530. style="margin-right: 5px; min-width: 70px"
  12531. >
  12532. (单选题)
  12533. </div>
  12534. <div
  12535. v-if="testJson.testJson[index1].type == '2'"
  12536. style="margin-right: 5px; min-width: 70px"
  12537. >
  12538. (多选题)
  12539. </div>
  12540. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12541. </div>
  12542. <img
  12543. v-if="testJson.testJson[index1].img"
  12544. :src="testJson.testJson[index1].img"
  12545. style="height: 300px; margin-top: 10px; max-width: 100%"
  12546. />
  12547. </div>
  12548. <div
  12549. class="timuImgBox"
  12550. v-if="
  12551. testJson.testJson[index1].timuList &&
  12552. testJson.testJson[index1].timuList.length
  12553. "
  12554. >
  12555. <div
  12556. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12557. :key="tIndex"
  12558. class="timuImg"
  12559. @click.stop="previewImg(timg.src)"
  12560. >
  12561. <img :src="timg.src" alt="" />
  12562. </div>
  12563. </div>
  12564. <div class="a_add_body">
  12565. <div class="a_add_input">
  12566. <el-radio-group
  12567. v-model="radio[index1]"
  12568. v-if="testJson.testJson[index1].type == '1'"
  12569. >
  12570. <div class="radioBox">
  12571. <el-radio
  12572. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12573. .checkList"
  12574. :key="checkIndex"
  12575. :label="checkIndex"
  12576. :disabled="isAnswer"
  12577. class="redioStyle"
  12578. >
  12579. <div
  12580. style="margin-right: 10px"
  12581. v-if="item2 && item2.imgType && item2.imgType == 1"
  12582. >
  12583. <div class="inImg" @click.stop="previewImg(item2.src)">
  12584. <img :src="item2.src" alt="" />
  12585. </div>
  12586. </div>
  12587. <span v-else v-html="item2"></span>
  12588. </el-radio>
  12589. </div>
  12590. </el-radio-group>
  12591. <el-checkbox-group
  12592. v-model="radio[index1]"
  12593. v-if="testJson.testJson[index1].type == '2'"
  12594. >
  12595. <div class="radioBox">
  12596. <el-checkbox
  12597. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12598. .checkList"
  12599. :key="checkIndex"
  12600. :label="checkIndex"
  12601. :disabled="isAnswer"
  12602. class="redioStyle"
  12603. >
  12604. <div
  12605. style="margin-right: 10px"
  12606. v-if="item2 && item2.imgType && item2.imgType == 1"
  12607. >
  12608. <div class="inImg" @click.stop="previewImg(item2.src)">
  12609. <img :src="item2.src" alt="" />
  12610. </div>
  12611. </div>
  12612. <span v-else v-html="item2"></span>
  12613. </el-checkbox>
  12614. </div>
  12615. </el-checkbox-group>
  12616. </div>
  12617. </div>
  12618. </div>
  12619. </div>
  12620. </div>
  12621. <span slot="footer" class="dialog-footer">
  12622. <el-button
  12623. @click="dialogVisibleChoiceTeacher = false"
  12624. v-show="noteName == ''"
  12625. >取 消</el-button
  12626. >
  12627. <el-button
  12628. type="primary"
  12629. @click="addStudentTestTeacher"
  12630. v-show="noteName == ''"
  12631. >确 定</el-button
  12632. >
  12633. </span>
  12634. </el-dialog>
  12635. <el-dialog
  12636. title="查看富文本"
  12637. :visible.sync="dialogVisible1"
  12638. :append-to-body="true"
  12639. width="500px"
  12640. :before-close="handleClose"
  12641. class="dialog_diy textCss"
  12642. >
  12643. <el-form style="font-size: 20px">
  12644. <el-form-item label="文本标题" class="textTitle">
  12645. <div style="font-size: 20px">{{ text.name }}</div>
  12646. </el-form-item>
  12647. <div>富文本内容</div>
  12648. <div
  12649. v-html="text.url"
  12650. style="font-size: 18px; padding: 40px 0 0 0"
  12651. ></div>
  12652. </el-form>
  12653. <span slot="footer" class="dialog-footer">
  12654. <el-button type="primary" @click="dialogVisible1 = false"
  12655. >确定</el-button
  12656. >
  12657. </span>
  12658. </el-dialog>
  12659. <el-dialog
  12660. title="文件预览"
  12661. :visible.sync="dialogVisible3"
  12662. width="50%"
  12663. :before-close="handleClose"
  12664. class="dialog_diy"
  12665. :class="{ fullStyle: full }"
  12666. >
  12667. <div slot="title" class="header-title">
  12668. <div style="color: #fff">文件预览</div>
  12669. <div style="position: absolute; top: 19px; right: 50px">
  12670. <img
  12671. src="../../assets/full.png"
  12672. style="height: 16px; cursor: pointer"
  12673. alt=""
  12674. @click="fullTools"
  12675. />
  12676. </div>
  12677. </div>
  12678. <pdf
  12679. v-if="showPDF"
  12680. :pdfUrl="pptImgUrl"
  12681. style="width: 100%; height: 520px; overflow: auto"
  12682. :class="{ fullStyle: full }"
  12683. ></pdf>
  12684. <iframe
  12685. v-else
  12686. :src="pptImgUrl"
  12687. frameborder="0"
  12688. width="100%"
  12689. height="600"
  12690. :class="{ fullStyle: full }"
  12691. ></iframe>
  12692. </el-dialog>
  12693. <el-dialog
  12694. title="文件预览"
  12695. :visible.sync="dialogVisible6"
  12696. width="50%"
  12697. :before-close="handleClose"
  12698. class="dialog_diy"
  12699. >
  12700. <iframe
  12701. :src="pptImgUrl1"
  12702. frameborder="0"
  12703. width="100%"
  12704. height="600"
  12705. ></iframe>
  12706. </el-dialog>
  12707. <el-dialog
  12708. title="提示"
  12709. :visible.sync="dialogVisible4"
  12710. :append-to-body="true"
  12711. width="800px"
  12712. :before-close="handleClose"
  12713. class="dialog_diy notice"
  12714. >
  12715. <div>此功能暂未开放!</div>
  12716. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12717. </el-dialog>
  12718. <el-dialog
  12719. title="问答"
  12720. :visible.sync="answerDialogVisible"
  12721. :append-to-body="true"
  12722. width="800px"
  12723. :before-close="handleClose"
  12724. class="dialog_diy"
  12725. >
  12726. <div>
  12727. <div
  12728. style="
  12729. display: flex;
  12730. flex-wrap: nowrap;
  12731. flex-direction: column;
  12732. position: relative;
  12733. "
  12734. >
  12735. <div class="queTop" style="padding: 20px 0 20px 0">
  12736. <div class="question">
  12737. <img src="../../assets/icon/question.png" alt />
  12738. </div>
  12739. <div class="queTitle">
  12740. <div style="width: 90px; min-width: 90px">提问:</div>
  12741. <div>{{ answerQ }}</div>
  12742. </div>
  12743. </div>
  12744. <div class="ediBottom">
  12745. <textarea
  12746. rows="6"
  12747. class="binfo_input"
  12748. cols
  12749. style="width: 95%; height: 120px"
  12750. v-model="questionAnswer"
  12751. ></textarea>
  12752. </div>
  12753. </div>
  12754. </div>
  12755. <div slot="footer">
  12756. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12757. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12758. </div>
  12759. </el-dialog>
  12760. <el-dialog
  12761. title="问答"
  12762. :visible.sync="answerDialogVisibleTeacher"
  12763. :append-to-body="true"
  12764. width="800px"
  12765. :before-close="handleClose"
  12766. class="dialog_diy"
  12767. >
  12768. <div>
  12769. <div class="w_name">
  12770. 学生姓名:<span>{{ sStudent.student }}</span>
  12771. </div>
  12772. <div
  12773. style="
  12774. display: flex;
  12775. flex-wrap: nowrap;
  12776. flex-direction: column;
  12777. position: relative;
  12778. "
  12779. >
  12780. <div class="queTop" style="padding: 20px 0 20px 0">
  12781. <div class="question">
  12782. <img src="../../assets/icon/question.png" alt />
  12783. </div>
  12784. <div class="queTitle">
  12785. <div style="width: 90px; min-width: 90px">提问:</div>
  12786. <div>{{ answerQ }}</div>
  12787. </div>
  12788. </div>
  12789. <div class="ediBottom">
  12790. <textarea
  12791. rows="6"
  12792. class="binfo_input"
  12793. cols
  12794. style="width: 95%; height: 120px"
  12795. v-model="questionAnswer"
  12796. ></textarea>
  12797. </div>
  12798. </div>
  12799. </div>
  12800. <div slot="footer">
  12801. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12802. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12803. </div>
  12804. </el-dialog>
  12805. <el-dialog
  12806. title="倒计时"
  12807. :visible.sync="timeDialogVisible"
  12808. :append-to-body="true"
  12809. width="800px"
  12810. :before-close="handleClose"
  12811. class="dialog_diy"
  12812. >
  12813. <div>
  12814. <div style="margin-bottom: 20px; color: #999">
  12815. 提示:点击“+”或“-”修改倒计时时长。
  12816. </div>
  12817. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12818. </div>
  12819. <div slot="footer">
  12820. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12821. </div>
  12822. </el-dialog>
  12823. <el-dialog
  12824. title="权限设置"
  12825. :visible.sync="juriVisible"
  12826. :append-to-body="true"
  12827. width="400px"
  12828. :before-close="handleClose"
  12829. class="dialog_diy"
  12830. >
  12831. <div>
  12832. <div class="open_box">
  12833. <div class="switch_box">
  12834. <span>允许学生查看所有作业</span>
  12835. <el-switch
  12836. v-model="sIsOpen"
  12837. active-text=""
  12838. class="switchCss"
  12839. @change="updateSLook"
  12840. ></el-switch>
  12841. </div>
  12842. <div
  12843. class="switch_box"
  12844. v-if="
  12845. courseDetail.userid == userid ||
  12846. (courseDetail.course_teacher &&
  12847. courseDetail.course_teacher.indexOf(userid) != -1)
  12848. "
  12849. >
  12850. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12851. <span>禁止学生查看阶段</span>
  12852. <el-switch
  12853. v-model="IsLookOpen"
  12854. active-text=""
  12855. class="switchCss"
  12856. @change="updateLookOpen"
  12857. ></el-switch>
  12858. </div>
  12859. <div class="switch_box" v-if="courseDetail.userid == userid">
  12860. <span>开启跟随模式</span>
  12861. <el-switch
  12862. v-model="IsFollow"
  12863. active-text=""
  12864. class="switchCss"
  12865. @change="updateFollow"
  12866. ></el-switch>
  12867. </div>
  12868. </div>
  12869. </div>
  12870. <div slot="footer">
  12871. <el-button
  12872. style="background: #409efe; color: #fff"
  12873. @click="juriVisible = false"
  12874. >关 闭</el-button
  12875. >
  12876. </div>
  12877. </el-dialog>
  12878. <el-dialog
  12879. title="查看视频"
  12880. :visible.sync="videoVisible"
  12881. :append-to-body="true"
  12882. width="1000px"
  12883. :before-close="handleClose"
  12884. class="dialog_diy1"
  12885. >
  12886. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12887. <video-player
  12888. class="video-player vjs-custom-skin"
  12889. :playsinline="true"
  12890. :options="videoDetail"
  12891. @play="onPlayerPlay($event)"
  12892. style="width: 100%; height: 100%"
  12893. ></video-player>
  12894. </div>
  12895. <div slot="footer">
  12896. <el-button
  12897. style="background: #409efe; color: #fff"
  12898. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12899. >
  12900. 关 闭</el-button
  12901. >
  12902. </div>
  12903. </el-dialog>
  12904. <el-dialog
  12905. title="查看详情"
  12906. :visible.sync="commentDialogVisible"
  12907. :append-to-body="true"
  12908. width="800px"
  12909. :before-close="handleClose"
  12910. class="dialog_diy"
  12911. >
  12912. <div class="commentTop">
  12913. <div class="studentDetail">
  12914. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12915. <div class="nameAndTime">
  12916. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12917. <div>{{ commentDetail.time }}</div>
  12918. </div>
  12919. <div
  12920. class="returnBtn"
  12921. style="margin-left: auto; width: 80px"
  12922. v-if="
  12923. commentDetail.works &&
  12924. commentDetail.type == 0 &&
  12925. (tType == 1 || tType == 4)
  12926. "
  12927. @click="
  12928. showPicturePaint(
  12929. commentDetail.img ? commentDetail.img : commentDetail.works
  12930. )
  12931. "
  12932. >
  12933. 教师批注
  12934. </div>
  12935. </div>
  12936. <div
  12937. class="worksAnswer"
  12938. v-if="commentDetail.works && commentDetail.type == 2"
  12939. >
  12940. {{ JSON.parse(commentDetail.works)[0].answer }}
  12941. </div>
  12942. <div
  12943. class="worksAnswer"
  12944. v-if="commentDetail.works && commentDetail.type == 1"
  12945. >
  12946. <img
  12947. src="../../assets/teacherWork.png"
  12948. v-if="commentDetail.ateacher"
  12949. class="w_teachert"
  12950. />
  12951. <pdf
  12952. v-if="showPDF"
  12953. :pdfUrl="pptImgUrl"
  12954. style="width: 100%; height: 520px; overflow: auto"
  12955. :class="{ fullStyle: full }"
  12956. ></pdf>
  12957. <iframe
  12958. v-else
  12959. :src="pptImgUrl"
  12960. frameborder="0"
  12961. width="100%"
  12962. height="600"
  12963. :class="{ fullStyle: full }"
  12964. ></iframe>
  12965. </div>
  12966. <div
  12967. class="worksAnswer"
  12968. v-if="commentDetail.works && commentDetail.type == 0"
  12969. >
  12970. <img
  12971. src="../../assets/teacherWork.png"
  12972. v-if="commentDetail.ateacher"
  12973. class="w_teachert"
  12974. style="right: 105px"
  12975. />
  12976. <img
  12977. :src="commentDetail.works"
  12978. alt=""
  12979. @click="previewImg(commentDetail.works)"
  12980. />
  12981. </div>
  12982. <div
  12983. class="worksAnswer"
  12984. v-if="commentDetail.works && commentDetail.type == 3"
  12985. >
  12986. <img
  12987. src="../../assets/teacherWork.png"
  12988. v-if="commentDetail.ateacher"
  12989. class="w_teachert"
  12990. />
  12991. <video-player
  12992. class="video-player vjs-custom-skin"
  12993. :playsinline="true"
  12994. :options="videoDetail"
  12995. @play="onPlayerPlay($event)"
  12996. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12997. ></video-player>
  12998. </div>
  12999. <div
  13000. class="worksAnswer"
  13001. v-if="commentDetail.works && commentDetail.type == 10"
  13002. >
  13003. <div class="cont" v-html="commentDetail.works.text"></div>
  13004. </div>
  13005. <div v-if="commentDetail.works && commentDetail.type == 12">
  13006. <!-- class="worksAnswer codeFileBox" -->
  13007. <!-- @click="downloadFile(commentDetail.works)" -->
  13008. <!-- <img src="../../assets/icon/codeFile.png" />
  13009. <div>点击下载文件</div> -->
  13010. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  13011. </div>
  13012. <div
  13013. class="worksAnswer codeFileBox"
  13014. v-if="commentDetail.works && commentDetail.type == 15"
  13015. @click="
  13016. openCocoPi(
  13017. 57,
  13018. commentIndexJson.toolIndex,
  13019. commentDetail.userid,
  13020. commentDetail.sName
  13021. )
  13022. "
  13023. >
  13024. <img src="../../assets/icon/codeFile.png" />
  13025. <div>点击打开CocoPi</div>
  13026. </div>
  13027. <div
  13028. class="worksAnswer"
  13029. v-if="commentDetail.works && commentDetail.type == 13"
  13030. >
  13031. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13032. </div>
  13033. <div
  13034. class="worksAnswer"
  13035. v-if="commentDetail.works && commentDetail.type == 4"
  13036. >
  13037. <div class="evalCss">
  13038. <div class="nav">请选择星星进行评分</div>
  13039. <div class="middleBox" v-if="eScore.eStar">
  13040. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13041. <div class="nameAndrate">
  13042. <div>{{ e.value }}</div>
  13043. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13044. </div>
  13045. <div v-if="e.detail">{{ e.detail }}</div>
  13046. </div>
  13047. <div class="bz">
  13048. <textarea
  13049. disabled
  13050. rows="4"
  13051. class="pj"
  13052. style="
  13053. padding: 10px 5px;
  13054. width: 70%;
  13055. background: #f7f6f9;
  13056. font-size: 14px;
  13057. text-indent: 10px;
  13058. color: #000;
  13059. "
  13060. cols
  13061. v-model="eScore.eBzText"
  13062. placeholder="请输入评价内容..."
  13063. ></textarea>
  13064. </div>
  13065. </div>
  13066. </div>
  13067. </div>
  13068. <div class="comment">
  13069. <div class="commentList">
  13070. <div class="commentImg">
  13071. <img
  13072. @click="
  13073. isLikes(
  13074. commentDetail.wid,
  13075. userid,
  13076. 1,
  13077. null,
  13078. commentDetail.isLikes,
  13079. commentDetail.sName
  13080. )
  13081. "
  13082. :src="commentDetail.isLikes == true ? likes : noLikes"
  13083. alt=""
  13084. />
  13085. </div>
  13086. <div>{{ commentDetail.likesCount }}</div>
  13087. </div>
  13088. <div class="commentList">
  13089. <div class="commentImg">
  13090. <img src="../../assets/icon/comment/comment.png" alt="" />
  13091. </div>
  13092. <div>{{ commentDetail.commentCount }}</div>
  13093. </div>
  13094. </div>
  13095. <div class="drawPBox" v-if="commentDetail.img">
  13096. <span>教师批注</span>
  13097. <img
  13098. :src="commentDetail.img"
  13099. alt=""
  13100. @click="previewImg(commentDetail.img)"
  13101. />
  13102. <span
  13103. class="deleteImg"
  13104. v-if="tType == 1 || tType == 4"
  13105. @click.stop="deletePicturePaint(commentDetail.wid)"
  13106. style="
  13107. font-size: 14px;
  13108. width: auto !important;
  13109. color: #b4b4b4;
  13110. top: unset;
  13111. bottom: 0;
  13112. border: none;
  13113. padding: 0;
  13114. height: auto !important;
  13115. margin: 0;
  13116. "
  13117. >删除</span
  13118. >
  13119. </div>
  13120. </div>
  13121. <div class="commentBox">
  13122. <div class="pl">评论:</div>
  13123. <div style="max-height: 200px; overflow: auto">
  13124. <div
  13125. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13126. style="padding: 10px 0 0 0"
  13127. >
  13128. <div
  13129. class="studentDetail"
  13130. style="padding-top: 10px"
  13131. v-for="(co, coIndex) in commentDetail.commentJson"
  13132. :key="coIndex"
  13133. >
  13134. <div class="tx" style="min-width: 50px">
  13135. <img src="../../assets/avatar.png" alt="" />
  13136. </div>
  13137. <div class="plPerson">
  13138. <div class="plName">
  13139. <div>{{ co.commentPeople }}</div>
  13140. <div style="margin-left: 5px">
  13141. {{ co.commentTime }}
  13142. </div>
  13143. <div
  13144. class="deleteComment"
  13145. v-if="userid == co.userid"
  13146. @click="deleteComment(co.wid)"
  13147. >
  13148. 删除
  13149. </div>
  13150. </div>
  13151. <div class="plContent">{{ co.commentText }}</div>
  13152. </div>
  13153. </div>
  13154. </div>
  13155. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13156. </div>
  13157. </div>
  13158. <div style="margin-top: 10px">
  13159. <div class="displayBox">
  13160. <div
  13161. style="
  13162. color: #556db4;
  13163. font-size: 14px;
  13164. font-weight: bold;
  13165. padding-bottom: 10px;
  13166. "
  13167. >
  13168. 评价
  13169. </div>
  13170. <div class="easy_comment" v-if="false">
  13171. <div
  13172. v-for="(p, pIndex) in PlTextList"
  13173. :key="pIndex"
  13174. @click="fastText(p, 1)"
  13175. >
  13176. {{ p }}
  13177. </div>
  13178. </div>
  13179. </div>
  13180. <div>
  13181. <textarea
  13182. rows="3"
  13183. class="pj"
  13184. style="padding: 10px 5px"
  13185. cols
  13186. v-model="commentText"
  13187. placeholder="请输入评论"
  13188. ></textarea>
  13189. </div>
  13190. </div>
  13191. <div slot="footer">
  13192. <el-button
  13193. @click="
  13194. (commentDialogVisible = false),
  13195. (commentIndexJson = {}),
  13196. videoDetail.sources && videoDetail.sources[0]
  13197. ? (videoDetail.sources[0].src = '')
  13198. : ''
  13199. "
  13200. >取 消</el-button
  13201. >
  13202. <el-button
  13203. type="primary"
  13204. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13205. >确 定</el-button
  13206. >
  13207. </div>
  13208. </el-dialog>
  13209. <el-dialog
  13210. :visible.sync="fullDialogVisible"
  13211. :append-to-body="true"
  13212. width="100%"
  13213. :before-close="handleClose"
  13214. :show-close="false"
  13215. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13216. >
  13217. <div slot="title" class="header-title">
  13218. <div style="color: #fff">查看文档</div>
  13219. <div
  13220. @click="
  13221. () => {
  13222. (fullDialogVisible = false),
  13223. changeSplitScreenBehavior({ code: 99 });
  13224. }
  13225. "
  13226. style="
  13227. cursor: pointer;
  13228. position: absolute;
  13229. top: 20px;
  13230. right: 20px;
  13231. color: #fff;
  13232. "
  13233. >
  13234. 退出全屏
  13235. </div>
  13236. </div>
  13237. <div style="height: 100%;position: relative;">
  13238. <el-button
  13239. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13240. size="medium"
  13241. type="primary"
  13242. @click="
  13243. () => {
  13244. (fullDialogVisible = false),
  13245. changeSplitScreenBehavior({ code: 99 });
  13246. }
  13247. "
  13248. style="
  13249. cursor: pointer;
  13250. position: absolute;
  13251. top: 10px;
  13252. right: 20px;
  13253. color: #fff;
  13254. "
  13255. >
  13256. 退出全屏
  13257. </el-button>
  13258. <div
  13259. class="wheel"
  13260. v-if="
  13261. fulltype == 2 &&
  13262. fullUrl.indexOf(
  13263. 'https://view.officeapps.live.com/op/view.aspx?src='
  13264. ) != -1
  13265. "
  13266. style="width: 100%;height:100%; margin: 0 auto"
  13267. >
  13268. <iframe
  13269. style="width: 100%; height: 100%; border: none"
  13270. :src="fullUrl"
  13271. ></iframe>
  13272. </div>
  13273. <iframe
  13274. v-else-if="fulltype == 2"
  13275. style="width: 100%; height: 100%; border: none"
  13276. :src="fullUrl"
  13277. security="restricted"
  13278. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13279. ></iframe>
  13280. <pdf
  13281. v-else-if="fulltype == 3"
  13282. :pdfUrl="fullUrl"
  13283. style="width: 100%; height: 100%; overflow: auto"
  13284. ></pdf>
  13285. <div
  13286. class="wheel"
  13287. v-if="fulltype == 1"
  13288. style="
  13289. box-shadow: 0 0 6px 1px #f2f2f2;
  13290. height:100%;
  13291. width: 100%;
  13292. background: #f1f1f1;
  13293. "
  13294. >
  13295. <div class="title" style="width: 100%; box-sizing: border-box">
  13296. 查看文档
  13297. </div>
  13298. <el-form class="textBox" style="height: 90%">
  13299. <el-form-item class="textTitle">
  13300. <div style="font-size: 22px">
  13301. {{ fullUrl.name }}
  13302. </div>
  13303. </el-form-item>
  13304. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13305. <div
  13306. v-html="fullUrl.url"
  13307. class="textContent"
  13308. style="height: auto"
  13309. ></div>
  13310. </el-form>
  13311. </div>
  13312. </div>
  13313. <!-- <div slot="footer">
  13314. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13315. </div> -->
  13316. </el-dialog>
  13317. <el-dialog
  13318. title="个人评价"
  13319. :visible.sync="studentEvalDialogVisible"
  13320. :append-to-body="true"
  13321. width="800px"
  13322. :before-close="handleClose"
  13323. class="dialog_diy"
  13324. >
  13325. <div class="evalCss">
  13326. <div class="nav">请选择星星进行评分</div>
  13327. <div class="middleBox" v-if="eScore.eStar">
  13328. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13329. <div class="nameAndrate">
  13330. <div>{{ e.value }}</div>
  13331. <el-rate
  13332. v-model="eScore.eStar[eIndex]"
  13333. :disabled="isStar"
  13334. ></el-rate>
  13335. </div>
  13336. <div v-if="e.detail">{{ e.detail }}</div>
  13337. </div>
  13338. <div class="easy_comment" v-if="false">
  13339. <div
  13340. v-for="(p, pIndex) in PlTextList"
  13341. :key="pIndex"
  13342. @click="fastText(p, 2)"
  13343. >
  13344. {{ p }}
  13345. </div>
  13346. </div>
  13347. <div class="bz">
  13348. <textarea
  13349. :disabled="isStar"
  13350. rows="4"
  13351. class="pj"
  13352. style="
  13353. padding: 10px 5px;
  13354. width: 70%;
  13355. background: #f7f6f9;
  13356. font-size: 14px;
  13357. text-indent: 10px;
  13358. "
  13359. cols
  13360. v-model="eScore.eBzText"
  13361. placeholder="请输入评价内容..."
  13362. ></textarea>
  13363. </div>
  13364. </div>
  13365. </div>
  13366. <div slot="footer">
  13367. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13368. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13369. >确 定</el-button
  13370. >
  13371. </div>
  13372. </el-dialog>
  13373. <el-dialog
  13374. title="个人评价"
  13375. :visible.sync="studentEvalDialogVisibleTeacher"
  13376. :append-to-body="true"
  13377. width="800px"
  13378. :before-close="handleClose"
  13379. class="dialog_diy"
  13380. >
  13381. <div class="w_name">
  13382. 学生姓名:<span>{{ sStudent.student }}</span>
  13383. </div>
  13384. <div class="evalCss">
  13385. <div class="nav">请选择星星进行评分</div>
  13386. <div class="middleBox" v-if="eScore.eStar">
  13387. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13388. <div class="nameAndrate">
  13389. <div>{{ e.value }}</div>
  13390. <el-rate
  13391. v-model="eScore.eStar[eIndex]"
  13392. :disabled="isStar"
  13393. ></el-rate>
  13394. </div>
  13395. <div v-if="e.detail">{{ e.detail }}</div>
  13396. </div>
  13397. <div class="easy_comment" v-if="false">
  13398. <div
  13399. v-for="(p, pIndex) in PlTextList"
  13400. :key="pIndex"
  13401. @click="fastText(p, 2)"
  13402. >
  13403. {{ p }}
  13404. </div>
  13405. </div>
  13406. <div class="bz">
  13407. <textarea
  13408. :disabled="isStar"
  13409. rows="4"
  13410. class="pj"
  13411. style="
  13412. padding: 10px 5px;
  13413. width: 70%;
  13414. background: #f7f6f9;
  13415. font-size: 14px;
  13416. text-indent: 10px;
  13417. "
  13418. cols
  13419. v-model="eScore.eBzText"
  13420. placeholder="请输入评价内容..."
  13421. ></textarea>
  13422. </div>
  13423. </div>
  13424. </div>
  13425. <div slot="footer">
  13426. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13427. >取 消</el-button
  13428. >
  13429. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13430. >确 定</el-button
  13431. >
  13432. </div>
  13433. </el-dialog>
  13434. <el-dialog
  13435. title="选择匹配"
  13436. :visible.sync="dialogVisibleSelect"
  13437. :append-to-body="true"
  13438. width="90%"
  13439. :before-close="handleClose"
  13440. class="dialog_diy dialog_diy3"
  13441. >
  13442. <div v-if="selectJson">
  13443. <div class="select_box2">
  13444. <div class="select_box2_title">
  13445. <div>选择匹配</div>
  13446. <div>请选择对应的答案进行答题!</div>
  13447. </div>
  13448. <div class="select_box2_box">
  13449. <div class="select_box2_img">
  13450. <img
  13451. :src="selectJson.url"
  13452. @click="previewImg(selectJson.url)"
  13453. alt=""
  13454. />
  13455. </div>
  13456. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13457. <div style="padding-top: 15px">
  13458. <div class="select_answer_title" v-if="isSelect">
  13459. {{ selectAnswer.stu }}
  13460. </div>
  13461. <div class="select_answer_title" v-else>
  13462. 根据题目选择对应答案
  13463. </div>
  13464. <div
  13465. class="select_box2_answer_box"
  13466. v-for="(item2, checkIndex) in selectJson.select"
  13467. :key="checkIndex"
  13468. >
  13469. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13470. <el-select
  13471. :disabled="isSelect"
  13472. v-model="selectAnswer.answer[checkIndex]"
  13473. placeholder="请选择正确答案"
  13474. >
  13475. <el-option
  13476. v-for="(e, eIndex) in selectJson.select"
  13477. :key="eIndex"
  13478. :label="e"
  13479. :value="eIndex"
  13480. >
  13481. </el-option>
  13482. </el-select>
  13483. </div>
  13484. </div>
  13485. <div
  13486. class="rightAnswerCss"
  13487. v-if="isSelect && (tType == 1 || tType == 4)"
  13488. >
  13489. <div
  13490. v-for="(a, aIndex) in selectJson.answer"
  13491. :key="aIndex"
  13492. class="rightAnswer"
  13493. >
  13494. <div
  13495. v-if="selectAnswer.answer[aIndex] === a"
  13496. style="color: #767de1"
  13497. >
  13498. 回答正确
  13499. </div>
  13500. <div v-else>回答错误</div>
  13501. <div
  13502. style="margin-left: 10px"
  13503. v-if="selectAnswer.answer[aIndex] !== a"
  13504. >
  13505. 正确答案:
  13506. </div>
  13507. <div
  13508. :class="
  13509. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13510. "
  13511. >
  13512. {{ selectJson.select[a] }}
  13513. </div>
  13514. </div>
  13515. </div>
  13516. </div>
  13517. <div class="upAnswerCss">
  13518. <el-button
  13519. type="primary"
  13520. @click="addSelectAnswer"
  13521. v-if="!isSelect"
  13522. >提交答案</el-button
  13523. >
  13524. </div>
  13525. </div>
  13526. </div>
  13527. </div>
  13528. </el-dialog>
  13529. <el-dialog
  13530. title="选择匹配"
  13531. :visible.sync="dialogVisibleSelectTeacher"
  13532. :append-to-body="true"
  13533. width="90%"
  13534. :before-close="handleClose"
  13535. class="dialog_diy dialog_diy3"
  13536. >
  13537. <div v-if="selectJson">
  13538. <div class="w_name">
  13539. 学生姓名:<span>{{ sStudent.student }}</span>
  13540. </div>
  13541. <div class="select_box2">
  13542. <div class="select_box2_title">
  13543. <div>选择匹配</div>
  13544. <div>请选择对应的答案进行答题!</div>
  13545. </div>
  13546. <div class="select_box2_box">
  13547. <div class="select_box2_img">
  13548. <img
  13549. :src="selectJson.url"
  13550. @click="previewImg(selectJson.url)"
  13551. alt=""
  13552. />
  13553. </div>
  13554. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13555. <div style="padding-top: 15px">
  13556. <div class="select_answer_title" v-if="isSelect">
  13557. {{ selectAnswer.stu }}
  13558. </div>
  13559. <div class="select_answer_title" v-else>
  13560. 根据题目选择对应答案
  13561. </div>
  13562. <div
  13563. class="select_box2_answer_box"
  13564. v-for="(item2, checkIndex) in selectJson.select"
  13565. :key="checkIndex"
  13566. >
  13567. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13568. <el-select
  13569. :disabled="isSelect"
  13570. v-model="selectAnswer.answer[checkIndex]"
  13571. placeholder="请选择正确答案"
  13572. >
  13573. <el-option
  13574. v-for="(e, eIndex) in selectJson.select"
  13575. :key="eIndex"
  13576. :label="e"
  13577. :value="eIndex"
  13578. >
  13579. </el-option>
  13580. </el-select>
  13581. </div>
  13582. </div>
  13583. <div
  13584. class="rightAnswerCss"
  13585. v-if="isSelect && (tType == 1 || tType == 4)"
  13586. >
  13587. <div
  13588. v-for="(a, aIndex) in selectJson.answer"
  13589. :key="aIndex"
  13590. class="rightAnswer"
  13591. >
  13592. <div
  13593. v-if="selectAnswer.answer[aIndex] === a"
  13594. style="color: #767de1"
  13595. >
  13596. 回答正确
  13597. </div>
  13598. <div v-else>回答错误</div>
  13599. <div
  13600. style="margin-left: 10px"
  13601. v-if="selectAnswer.answer[aIndex] !== a"
  13602. >
  13603. 正确答案:
  13604. </div>
  13605. <div
  13606. :class="
  13607. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13608. "
  13609. >
  13610. {{ selectJson.select[a] }}
  13611. </div>
  13612. </div>
  13613. </div>
  13614. </div>
  13615. <div class="upAnswerCss">
  13616. <el-button
  13617. type="primary"
  13618. @click="addSelectAnswerTeacher"
  13619. v-if="!isSelect"
  13620. >提交答案</el-button
  13621. >
  13622. </div>
  13623. </div>
  13624. </div>
  13625. </div>
  13626. </el-dialog>
  13627. <el-dialog
  13628. title="教师评分"
  13629. :visible.sync="dialogVisibleScore"
  13630. :append-to-body="true"
  13631. width="800px"
  13632. :before-close="handleClose"
  13633. class="dialog_diy"
  13634. >
  13635. <div>
  13636. <div class="studentDetail">
  13637. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13638. <div class="nameAndTime">
  13639. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13640. <div>{{ commentDetail.time }}</div>
  13641. </div>
  13642. </div>
  13643. <div
  13644. class="worksAnswer"
  13645. v-if="commentDetail.works && commentDetail.type == 2"
  13646. >
  13647. {{ JSON.parse(commentDetail.works)[0].answer }}
  13648. </div>
  13649. <div
  13650. class="worksAnswer"
  13651. v-if="commentDetail.works && commentDetail.type == 1"
  13652. >
  13653. <pdf
  13654. v-if="showPDF"
  13655. :pdfUrl="pptImgUrl"
  13656. style="width: 100%; height: 520px; overflow: auto"
  13657. :class="{ fullStyle: full }"
  13658. ></pdf>
  13659. <iframe
  13660. v-else
  13661. :src="pptImgUrl"
  13662. frameborder="0"
  13663. width="100%"
  13664. height="600"
  13665. :class="{ fullStyle: full }"
  13666. ></iframe>
  13667. </div>
  13668. <div
  13669. class="worksAnswer"
  13670. v-if="commentDetail.works && commentDetail.type == 0"
  13671. >
  13672. <img
  13673. :src="commentDetail.works"
  13674. alt=""
  13675. @click="previewImg(commentDetail.works)"
  13676. />
  13677. </div>
  13678. <div
  13679. class="worksAnswer"
  13680. v-if="commentDetail.works && commentDetail.type == 3"
  13681. >
  13682. <video-player
  13683. class="video-player vjs-custom-skin"
  13684. :playsinline="true"
  13685. :options="videoDetail"
  13686. @play="onPlayerPlay($event)"
  13687. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13688. ></video-player>
  13689. </div>
  13690. <div
  13691. class="worksAnswer codeFileBox"
  13692. v-if="commentDetail.works && commentDetail.type == 12"
  13693. @click="downloadFile(commentDetail.works)"
  13694. >
  13695. <img src="../../assets/icon/codeFile.png" />
  13696. <div>点击下载文件</div>
  13697. </div>
  13698. <div
  13699. class="worksAnswer codeFileBox"
  13700. v-if="commentDetail.works && commentDetail.type == 15"
  13701. @click="
  13702. openCocoPi(
  13703. 57,
  13704. commentIndexJson.toolIndex,
  13705. commentDetail.userid,
  13706. commentDetail.sName
  13707. )
  13708. "
  13709. >
  13710. <img src="../../assets/icon/codeFile.png" />
  13711. <div>点击打开CocoPi</div>
  13712. </div>
  13713. <div
  13714. class="worksAnswer"
  13715. v-if="commentDetail.works && commentDetail.type == 13"
  13716. >
  13717. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13718. </div>
  13719. <div class="scoreBox">
  13720. <span class="t">请输入分数</span>
  13721. <el-input-number
  13722. :disabled="courseDetail.userid != userid"
  13723. v-model="wScore"
  13724. :controls="false"
  13725. :min="0"
  13726. :max="100"
  13727. ></el-input-number>
  13728. </div>
  13729. <div class="scoreDetailBox">
  13730. <span class="t">评分评论</span>
  13731. <el-input
  13732. type="textarea"
  13733. :rows="5"
  13734. :disabled="courseDetail.userid != userid"
  13735. resize="none"
  13736. v-model="scoreDetail"
  13737. placeholder="请输入对学生的评价"
  13738. >
  13739. </el-input>
  13740. </div>
  13741. </div>
  13742. <span slot="footer" class="dialog-footer">
  13743. <el-button
  13744. @click="
  13745. (dialogVisibleScore = false),
  13746. (commentIndexJson = {}),
  13747. videoDetail.sources && videoDetail.sources[0]
  13748. ? (videoDetail.sources[0].src = '')
  13749. : ''
  13750. "
  13751. >取 消</el-button
  13752. >
  13753. <el-button
  13754. type="primary"
  13755. v-if="courseDetail.userid == userid"
  13756. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  13757. >确 定
  13758. </el-button>
  13759. </span>
  13760. </el-dialog>
  13761. <el-dialog
  13762. title="排序"
  13763. :visible.sync="dialogVisibleSentence"
  13764. :append-to-body="true"
  13765. width="1000px"
  13766. :before-close="handleClose"
  13767. class="dialog_diy dialog_diy3"
  13768. >
  13769. <div>
  13770. <div class="sentenBox">
  13771. <div
  13772. v-for="(st, stIndex) in sentenceList"
  13773. :key="stIndex"
  13774. style="padding-bottom: 20px"
  13775. >
  13776. <div
  13777. style="padding: 15px 0 10px 20px"
  13778. class="sentenceTitle"
  13779. :index="stIndex + 1"
  13780. >
  13781. 题目{{ stIndex + 1 }}:请选择正确顺序
  13782. </div>
  13783. <div class="cardList" v-if="st.chooseSenList">
  13784. <div class="cardBox">
  13785. <div
  13786. v-for="(r, rIndex) in st.chooseSenList"
  13787. :key="rIndex"
  13788. @click="returnCard(r, stIndex, rIndex)"
  13789. >
  13790. <el-tooltip
  13791. class="item"
  13792. effect="light"
  13793. :content="r"
  13794. placement="top"
  13795. v-if="r != '' && r != undefined"
  13796. >
  13797. <div
  13798. :class="{
  13799. isCard: r,
  13800. isChooseCard: r == '' || r == undefined
  13801. }"
  13802. >
  13803. <div>{{ r }}</div>
  13804. </div>
  13805. </el-tooltip>
  13806. <div
  13807. :class="{
  13808. isCard: r,
  13809. isChooseCard: r == '' || r == undefined
  13810. }"
  13811. v-else
  13812. >
  13813. <div>{{ r }}</div>
  13814. </div>
  13815. </div>
  13816. </div>
  13817. </div>
  13818. <div class="cardList" v-if="st.addChangeSen">
  13819. <div class="cardBox">
  13820. <div
  13821. v-for="(s, sIndex) in st.addChangeSen"
  13822. :key="sIndex"
  13823. @click="setRightAnswer(s, stIndex, sIndex)"
  13824. >
  13825. <el-tooltip
  13826. class="item"
  13827. effect="light"
  13828. :content="s"
  13829. placement="top"
  13830. v-if="s != '' && s != undefined"
  13831. >
  13832. <div
  13833. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13834. >
  13835. <div>{{ s }}</div>
  13836. </div>
  13837. </el-tooltip>
  13838. <div
  13839. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13840. v-else
  13841. >
  13842. <div>{{ s }}</div>
  13843. </div>
  13844. </div>
  13845. </div>
  13846. </div>
  13847. </div>
  13848. </div>
  13849. </div>
  13850. <span slot="footer" class="dialog-footer">
  13851. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13852. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13853. </span>
  13854. </el-dialog>
  13855. <el-dialog
  13856. title="排序"
  13857. :visible.sync="dialogVisibleSentenceTeacher"
  13858. :append-to-body="true"
  13859. width="1000px"
  13860. :before-close="handleClose"
  13861. class="dialog_diy dialog_diy3"
  13862. >
  13863. <div>
  13864. <div class="w_name">
  13865. 学生姓名:<span>{{ sStudent.student }}</span>
  13866. </div>
  13867. <div class="sentenBox">
  13868. <div
  13869. v-for="(st, stIndex) in sentenceList"
  13870. :key="stIndex"
  13871. style="padding-bottom: 20px"
  13872. >
  13873. <div
  13874. style="padding: 15px 0 10px 20px"
  13875. class="sentenceTitle"
  13876. :index="stIndex + 1"
  13877. >
  13878. 题目{{ stIndex + 1 }}:请选择正确顺序
  13879. </div>
  13880. <div class="cardList" v-if="st.chooseSenList">
  13881. <div class="cardBox">
  13882. <div
  13883. v-for="(r, rIndex) in st.chooseSenList"
  13884. :key="rIndex"
  13885. @click="returnCard(r, stIndex, rIndex)"
  13886. >
  13887. <el-tooltip
  13888. class="item"
  13889. effect="light"
  13890. :content="r"
  13891. placement="top"
  13892. v-if="r != '' && r != undefined"
  13893. >
  13894. <div
  13895. :class="{
  13896. isCard: r,
  13897. isChooseCard: r == '' || r == undefined
  13898. }"
  13899. >
  13900. <div>{{ r }}</div>
  13901. </div>
  13902. </el-tooltip>
  13903. <div
  13904. :class="{
  13905. isCard: r,
  13906. isChooseCard: r == '' || r == undefined
  13907. }"
  13908. v-else
  13909. >
  13910. <div>{{ r }}</div>
  13911. </div>
  13912. </div>
  13913. </div>
  13914. </div>
  13915. <div class="cardList" v-if="st.addChangeSen">
  13916. <div class="cardBox">
  13917. <div
  13918. v-for="(s, sIndex) in st.addChangeSen"
  13919. :key="sIndex"
  13920. @click="setRightAnswer(s, stIndex, sIndex)"
  13921. >
  13922. <el-tooltip
  13923. class="item"
  13924. effect="light"
  13925. :content="s"
  13926. placement="top"
  13927. v-if="s != '' && s != undefined"
  13928. >
  13929. <div
  13930. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13931. >
  13932. <div>{{ s }}</div>
  13933. </div>
  13934. </el-tooltip>
  13935. <div
  13936. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13937. v-else
  13938. >
  13939. <div>{{ s }}</div>
  13940. </div>
  13941. </div>
  13942. </div>
  13943. </div>
  13944. </div>
  13945. </div>
  13946. </div>
  13947. <span slot="footer" class="dialog-footer">
  13948. <el-button @click="dialogVisibleSentenceTeacher = false"
  13949. >取 消</el-button
  13950. >
  13951. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13952. </span>
  13953. </el-dialog>
  13954. <el-dialog
  13955. title="排序"
  13956. :visible.sync="dialogVisibleSentence1"
  13957. :append-to-body="true"
  13958. width="1000px"
  13959. :before-close="handleClose"
  13960. class="dialog_diy dialog_diy3"
  13961. >
  13962. <div>
  13963. <div class="sentenBox">
  13964. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13965. {{ sentenceList1.stuName }}的作业
  13966. </div>
  13967. <div
  13968. v-for="(st, stIndex) in sentenceList1"
  13969. :key="stIndex"
  13970. style="padding-bottom: 20px"
  13971. >
  13972. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13973. 第{{ stIndex + 1 }}题
  13974. </div>
  13975. <div class="isWrong">
  13976. <div class="cardList1" v-if="st.chooseSenList">
  13977. <div class="cardBox">
  13978. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13979. <el-tooltip
  13980. class="item"
  13981. effect="light"
  13982. :content="s"
  13983. placement="top"
  13984. >
  13985. <div class="isCard">
  13986. <div>{{ s }}</div>
  13987. </div>
  13988. </el-tooltip>
  13989. </div>
  13990. </div>
  13991. <div class="cardAnswerBox">
  13992. 组成句子:{{ st.chooseSenList.join(" ") }}
  13993. </div>
  13994. </div>
  13995. <div v-if="tType == 2" class="isTj">
  13996. <div class="isTjImg">
  13997. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13998. </div>
  13999. <div>已提交</div>
  14000. </div>
  14001. <div
  14002. class="answerRight isTj"
  14003. v-if="
  14004. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14005. (tType == 1 || tType == 4)
  14006. "
  14007. >
  14008. <div class="isTjImg">
  14009. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14010. </div>
  14011. <div>回答正确</div>
  14012. </div>
  14013. <div
  14014. class="answerRight isTj"
  14015. v-if="
  14016. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14017. (tType == 1 || tType == 4)
  14018. "
  14019. >
  14020. <div class="isTjImg">
  14021. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14022. </div>
  14023. <div>回答错误</div>
  14024. </div>
  14025. </div>
  14026. <div
  14027. v-if="
  14028. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14029. (tType == 1 || tType == 4)
  14030. "
  14031. >
  14032. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14033. <div
  14034. class="cardList"
  14035. v-if="st.rightAnswer"
  14036. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14037. >
  14038. <div class="cardBox">
  14039. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14040. <el-tooltip
  14041. class="item"
  14042. effect="light"
  14043. :content="r"
  14044. placement="top"
  14045. >
  14046. <div class="isCard1">
  14047. <div>{{ r }}</div>
  14048. </div>
  14049. </el-tooltip>
  14050. </div>
  14051. </div>
  14052. <div class="cardAnswerBox">
  14053. 组成句子:{{ st.rightAnswer.join(" ") }}
  14054. </div>
  14055. </div>
  14056. </div>
  14057. </div>
  14058. </div>
  14059. </div>
  14060. <span slot="footer" class="dialog-footer">
  14061. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14062. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14063. >确 定</el-button
  14064. >
  14065. </span>
  14066. </el-dialog>
  14067. <el-dialog
  14068. title="教师提交作业"
  14069. :visible.sync="dialogVisibleWorks"
  14070. :append-to-body="true"
  14071. width="500px"
  14072. :before-close="handleClose"
  14073. class="dialog_change"
  14074. >
  14075. <div class="marginT">
  14076. <div class="w_name">
  14077. 学生姓名:<span>{{ sStudent.student }}</span>
  14078. </div>
  14079. <div>上传文件</div>
  14080. <div
  14081. class="chapter_add"
  14082. @click="addImg($event)"
  14083. v-if="studyJuri[0].cover.length == 0"
  14084. >
  14085. <div class="up_photo">
  14086. <img src="../../assets/uploadImg2.png" alt />
  14087. </div>
  14088. <!-- <input
  14089. type="file"
  14090. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14091. style="display: none"
  14092. @change="beforeUpload1($event, 1)"
  14093. /> -->
  14094. <input
  14095. type="file"
  14096. accept="*"
  14097. style="display: none"
  14098. @change="beforeUpload1($event, 1)"
  14099. />
  14100. </div>
  14101. <!-- capture="camera" -->
  14102. <div
  14103. class="chapter_add"
  14104. style="
  14105. display: flex;
  14106. width: 100%;
  14107. flex-direction: row;
  14108. flex-wrap: wrap;
  14109. justify-content: flex-start;
  14110. padding: 15px 0;
  14111. "
  14112. v-if="studyJuri[0].cover.length > 0"
  14113. >
  14114. <div class="upCover">
  14115. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14116. <img :src="word" alt v-else-if="fileType == 1" />
  14117. <img :src="video" alt v-else-if="fileType == 2" />
  14118. <img :src="word2" alt v-else-if="fileType == 3" />
  14119. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14120. <div class="deleteWord" @click="clean(1)">
  14121. <img src="../../assets/icon/deleteWorks.png" alt />
  14122. </div>
  14123. </div>
  14124. </div>
  14125. </div>
  14126. <div
  14127. class="upload_send"
  14128. @click="addCourseWorksTeacher(taskCount)"
  14129. v-if="!proVisible"
  14130. >
  14131. 提交
  14132. </div>
  14133. </el-dialog>
  14134. <ImgDraw
  14135. :drawShow="drawShow"
  14136. @closeDraw="closeDraw"
  14137. @addImgDraw="addImgDraw"
  14138. :bg="bg"
  14139. ></ImgDraw>
  14140. <el-dialog
  14141. title="表格"
  14142. :visible.sync="dialogVisibleTable"
  14143. :append-to-body="true"
  14144. width="95%"
  14145. :before-close="handleClose"
  14146. class="dialog_diy"
  14147. >
  14148. <el-form>
  14149. <div
  14150. style="
  14151. display: flex;
  14152. align-items: center;
  14153. justify-content: space-between;
  14154. "
  14155. >
  14156. <span>表格内容</span>
  14157. <el-button type="primary" size="small" @click="returnTableText"
  14158. >还原模板</el-button
  14159. >
  14160. </div>
  14161. <Table
  14162. v-model="tableJson.text"
  14163. @change="change"
  14164. v-if="dialogVisibleTable"
  14165. ></Table>
  14166. </el-form>
  14167. <span slot="footer" class="dialog-footer">
  14168. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14169. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14170. </span>
  14171. </el-dialog>
  14172. <el-dialog
  14173. title="表格"
  14174. :visible.sync="dialogVisibleTableTeacher"
  14175. :append-to-body="true"
  14176. width="95%"
  14177. :before-close="handleClose"
  14178. class="dialog_diy"
  14179. >
  14180. <el-form>
  14181. <div class="w_name">
  14182. 学生姓名:<span>{{ sStudent.student }}</span>
  14183. </div>
  14184. <div>表格内容</div>
  14185. <Table
  14186. v-model="tableJson.text"
  14187. @change="change"
  14188. v-if="dialogVisibleTableTeacher"
  14189. ></Table>
  14190. </el-form>
  14191. <span slot="footer" class="dialog-footer">
  14192. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14193. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14194. </span>
  14195. </el-dialog>
  14196. <el-dialog
  14197. title="文档"
  14198. :visible.sync="dialogVisibleWord"
  14199. :append-to-body="true"
  14200. width="95%"
  14201. :before-close="handleClose"
  14202. class="dialog_diy"
  14203. >
  14204. <el-form>
  14205. <div
  14206. style="
  14207. display: flex;
  14208. align-items: center;
  14209. justify-content: space-between;
  14210. "
  14211. >
  14212. <span>文档内容</span>
  14213. <el-button type="primary" size="small" @click="returnWordText"
  14214. >还原模板</el-button
  14215. >
  14216. </div>
  14217. <editor-bar
  14218. v-model="wordJson.text"
  14219. v-if="dialogVisibleWord"
  14220. ></editor-bar>
  14221. </el-form>
  14222. <span slot="footer" class="dialog-footer">
  14223. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14224. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14225. </span>
  14226. </el-dialog>
  14227. <el-dialog
  14228. title="文档"
  14229. :visible.sync="dialogVisibleWordTeacher"
  14230. :append-to-body="true"
  14231. width="95%"
  14232. :before-close="handleClose"
  14233. class="dialog_diy"
  14234. >
  14235. <el-form>
  14236. <div class="w_name">
  14237. 学生姓名:<span>{{ sStudent.student }}</span>
  14238. </div>
  14239. <div>文档内容</div>
  14240. <editor-bar
  14241. v-model="wordJson.text"
  14242. v-if="dialogVisibleWordTeacher"
  14243. ></editor-bar>
  14244. </el-form>
  14245. <span slot="footer" class="dialog-footer">
  14246. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14247. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14248. </span>
  14249. </el-dialog>
  14250. <el-dialog
  14251. title="表格"
  14252. :visible.sync="dialogVisibleTable2"
  14253. :append-to-body="true"
  14254. width="95%"
  14255. :before-close="handleClose"
  14256. class="dialog_diy"
  14257. >
  14258. <el-form>
  14259. <div class="cont" v-html="tableJson.text"></div>
  14260. </el-form>
  14261. <span slot="footer" class="dialog-footer">
  14262. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14263. </span>
  14264. </el-dialog>
  14265. <el-dialog
  14266. title="文档"
  14267. :visible.sync="dialogVisibleTable3"
  14268. :append-to-body="true"
  14269. width="95%"
  14270. :before-close="handleClose"
  14271. class="dialog_diy"
  14272. >
  14273. <el-form>
  14274. <div class="cont" v-html="tableJson.text"></div>
  14275. </el-form>
  14276. <span slot="footer" class="dialog-footer">
  14277. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14278. </span>
  14279. </el-dialog>
  14280. <el-dialog
  14281. title="分组设置"
  14282. :visible.sync="dialogVisibleGroup"
  14283. :append-to-body="true"
  14284. width="95%"
  14285. :before-close="handleClose"
  14286. class="dialog_diy"
  14287. >
  14288. <div v-if="dialogVisibleGroup">
  14289. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14290. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14291. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14292. </div>
  14293. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14294. @click="lockChair">
  14295. 锁定位置
  14296. </div>
  14297. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14298. 解锁位置
  14299. </div> -->
  14300. <div class="group_switch">
  14301. <span>开放选座</span>
  14302. <el-switch
  14303. v-model="islock"
  14304. active-text=""
  14305. class="switchCss"
  14306. @change="lockChair"
  14307. ></el-switch>
  14308. </div>
  14309. <div
  14310. type="primary"
  14311. @click="updateGroup"
  14312. class="returnBtn"
  14313. style="background-color: #225bc7"
  14314. >
  14315. 分组设置
  14316. </div>
  14317. </div>
  14318. <div>
  14319. <div
  14320. class="g_d_box"
  14321. v-if="groupJson.group && groupStudent[toolindex]"
  14322. >
  14323. <div
  14324. class="g_d_group"
  14325. v-for="(g, gindex) in groupJson.group"
  14326. :key="gindex"
  14327. >
  14328. <div class="g_d_group_chair">
  14329. <div v-if="groupJson.number > 1">
  14330. <span
  14331. :class="{
  14332. isChair:
  14333. groupStudent[toolindex][gindex] &&
  14334. groupStudent[toolindex][gindex][0],
  14335. updateChair:
  14336. courseDetail.userid == userid &&
  14337. groupStudent[toolindex][gindex] &&
  14338. groupStudent[toolindex][gindex][0] &&
  14339. groupJson.islock == 2
  14340. }"
  14341. ><span
  14342. class="updateChairBtn"
  14343. @click="
  14344. updateGroupChair(
  14345. groupStudent[toolindex][gindex] &&
  14346. groupStudent[toolindex][gindex][0]
  14347. )
  14348. "
  14349. >修改</span
  14350. ></span
  14351. ><span>{{
  14352. groupStudent[toolindex][gindex] &&
  14353. groupStudent[toolindex][gindex][0]
  14354. ? groupStudent[toolindex][gindex] &&
  14355. groupStudent[toolindex][gindex][0].name
  14356. : "空位置"
  14357. }}</span>
  14358. </div>
  14359. <div v-if="groupJson.number > 4">
  14360. <span
  14361. :class="{
  14362. isChair:
  14363. groupStudent[toolindex][gindex] &&
  14364. groupStudent[toolindex][gindex][4],
  14365. updateChair:
  14366. courseDetail.userid == userid &&
  14367. groupStudent[toolindex][gindex] &&
  14368. groupStudent[toolindex][gindex][4] &&
  14369. groupJson.islock == 2
  14370. }"
  14371. ><span
  14372. class="updateChairBtn"
  14373. @click="
  14374. updateGroupChair(
  14375. groupStudent[toolindex][gindex] &&
  14376. groupStudent[toolindex][gindex][4]
  14377. )
  14378. "
  14379. >修改</span
  14380. ></span
  14381. ><span>{{
  14382. groupStudent[toolindex][gindex] &&
  14383. groupStudent[toolindex][gindex][4]
  14384. ? groupStudent[toolindex][gindex] &&
  14385. groupStudent[toolindex][gindex][4].name
  14386. : "空位置"
  14387. }}</span>
  14388. </div>
  14389. <div v-if="groupJson.number > 8">
  14390. <span
  14391. :class="{
  14392. isChair:
  14393. groupStudent[toolindex][gindex] &&
  14394. groupStudent[toolindex][gindex][8],
  14395. updateChair:
  14396. courseDetail.userid == userid &&
  14397. groupStudent[toolindex][gindex] &&
  14398. groupStudent[toolindex][gindex][8] &&
  14399. groupJson.islock == 2
  14400. }"
  14401. ><span
  14402. class="updateChairBtn"
  14403. @click="
  14404. updateGroupChair(
  14405. groupStudent[toolindex][gindex] &&
  14406. groupStudent[toolindex][gindex][8]
  14407. )
  14408. "
  14409. >修改</span
  14410. ></span
  14411. ><span>{{
  14412. groupStudent[toolindex][gindex] &&
  14413. groupStudent[toolindex][gindex][8]
  14414. ? groupStudent[toolindex][gindex] &&
  14415. groupStudent[toolindex][gindex][8].name
  14416. : "空位置"
  14417. }}</span>
  14418. </div>
  14419. </div>
  14420. <div class="g_d_group_tableBox">
  14421. <div class="g_d_group_chair2">
  14422. <div v-if="groupJson.number > 2">
  14423. <span
  14424. :class="{
  14425. isChair:
  14426. groupStudent[toolindex][gindex] &&
  14427. groupStudent[toolindex][gindex][2],
  14428. updateChair:
  14429. courseDetail.userid == userid &&
  14430. groupStudent[toolindex][gindex] &&
  14431. groupStudent[toolindex][gindex][2] &&
  14432. groupJson.islock == 2
  14433. }"
  14434. ><span
  14435. class="updateChairBtn"
  14436. @click="
  14437. updateGroupChair(
  14438. groupStudent[toolindex][gindex] &&
  14439. groupStudent[toolindex][gindex][2]
  14440. )
  14441. "
  14442. >修改</span
  14443. ></span
  14444. ><span>{{
  14445. groupStudent[toolindex][gindex] &&
  14446. groupStudent[toolindex][gindex][2]
  14447. ? groupStudent[toolindex][gindex] &&
  14448. groupStudent[toolindex][gindex][2].name
  14449. : "空位置"
  14450. }}</span>
  14451. </div>
  14452. <div v-if="groupJson.number > 6">
  14453. <span
  14454. :class="{
  14455. isChair:
  14456. groupStudent[toolindex][gindex] &&
  14457. groupStudent[toolindex][gindex][6],
  14458. updateChair:
  14459. courseDetail.userid == userid &&
  14460. groupStudent[toolindex][gindex] &&
  14461. groupStudent[toolindex][gindex][6] &&
  14462. groupJson.islock == 2
  14463. }"
  14464. ><span
  14465. class="updateChairBtn"
  14466. @click="
  14467. updateGroupChair(
  14468. groupStudent[toolindex][gindex] &&
  14469. groupStudent[toolindex][gindex][6]
  14470. )
  14471. "
  14472. >修改</span
  14473. ></span
  14474. ><span>{{
  14475. groupStudent[toolindex][gindex] &&
  14476. groupStudent[toolindex][gindex][6]
  14477. ? groupStudent[toolindex][gindex] &&
  14478. groupStudent[toolindex][gindex][6].name
  14479. : "空位置"
  14480. }}</span>
  14481. </div>
  14482. </div>
  14483. <div class="g_d_group_table">
  14484. <div>
  14485. {{ g.name }}
  14486. </div>
  14487. <div>
  14488. <div
  14489. v-if="
  14490. courseDetail.userid == userid && groupJson.islock == 2
  14491. "
  14492. @click="deleteGroupChair(gindex)"
  14493. >
  14494. 移除组员
  14495. </div>
  14496. <div
  14497. @click="selectGroup(gindex)"
  14498. v-else-if="
  14499. groupStudentUid[toolindex] &&
  14500. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  14501. -1
  14502. "
  14503. >
  14504. 加入分组
  14505. </div>
  14506. <div
  14507. @click="
  14508. exitGroup(
  14509. groupStudent[toolindex][gindex] &&
  14510. groupStudent[toolindex][gindex][
  14511. groupStudentUid[toolindex][gindex].indexOf(userid)
  14512. ].id
  14513. )
  14514. "
  14515. v-else-if="
  14516. groupStudentUid[toolindex] &&
  14517. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  14518. -1
  14519. "
  14520. >
  14521. 退出分组
  14522. </div>
  14523. </div>
  14524. </div>
  14525. <div class="g_d_group_chair2">
  14526. <div v-if="groupJson.number > 3">
  14527. <span
  14528. :class="{
  14529. isChair:
  14530. groupStudent[toolindex][gindex] &&
  14531. groupStudent[toolindex][gindex][3],
  14532. updateChair:
  14533. courseDetail.userid == userid &&
  14534. groupStudent[toolindex][gindex] &&
  14535. groupStudent[toolindex][gindex][3] &&
  14536. groupJson.islock == 2
  14537. }"
  14538. ><span
  14539. class="updateChairBtn"
  14540. @click="
  14541. updateGroupChair(
  14542. groupStudent[toolindex][gindex] &&
  14543. groupStudent[toolindex][gindex][3]
  14544. )
  14545. "
  14546. >修改</span
  14547. ></span
  14548. ><span>{{
  14549. groupStudent[toolindex][gindex] &&
  14550. groupStudent[toolindex][gindex][3]
  14551. ? groupStudent[toolindex][gindex] &&
  14552. groupStudent[toolindex][gindex][3].name
  14553. : "空位置"
  14554. }}</span>
  14555. </div>
  14556. <div v-if="groupJson.number > 7">
  14557. <span
  14558. :class="{
  14559. isChair:
  14560. groupStudent[toolindex][gindex] &&
  14561. groupStudent[toolindex][gindex][7],
  14562. updateChair:
  14563. courseDetail.userid == userid &&
  14564. groupStudent[toolindex][gindex] &&
  14565. groupStudent[toolindex][gindex][7] &&
  14566. groupJson.islock == 2
  14567. }"
  14568. ><span
  14569. class="updateChairBtn"
  14570. @click="
  14571. updateGroupChair(
  14572. groupStudent[toolindex][gindex] &&
  14573. groupStudent[toolindex][gindex][7]
  14574. )
  14575. "
  14576. >修改</span
  14577. ></span
  14578. ><span>{{
  14579. groupStudent[toolindex][gindex] &&
  14580. groupStudent[toolindex][gindex][7]
  14581. ? groupStudent[toolindex][gindex] &&
  14582. groupStudent[toolindex][gindex][7].name
  14583. : "空位置"
  14584. }}</span>
  14585. </div>
  14586. </div>
  14587. </div>
  14588. <div class="g_d_group_chair">
  14589. <div v-if="groupJson.number > 1">
  14590. <span
  14591. :class="{
  14592. isChair:
  14593. groupStudent[toolindex][gindex] &&
  14594. groupStudent[toolindex][gindex][1],
  14595. updateChair:
  14596. courseDetail.userid == userid &&
  14597. groupStudent[toolindex][gindex] &&
  14598. groupStudent[toolindex][gindex][1] &&
  14599. groupJson.islock == 2
  14600. }"
  14601. ><span
  14602. class="updateChairBtn"
  14603. @click="
  14604. updateGroupChair(
  14605. groupStudent[toolindex][gindex] &&
  14606. groupStudent[toolindex][gindex][1]
  14607. )
  14608. "
  14609. >修改</span
  14610. ></span
  14611. ><span>{{
  14612. groupStudent[toolindex][gindex] &&
  14613. groupStudent[toolindex][gindex][1]
  14614. ? groupStudent[toolindex][gindex] &&
  14615. groupStudent[toolindex][gindex][1].name
  14616. : "空位置"
  14617. }}</span>
  14618. </div>
  14619. <div v-if="groupJson.number > 5">
  14620. <span
  14621. :class="{
  14622. isChair:
  14623. groupStudent[toolindex][gindex] &&
  14624. groupStudent[toolindex][gindex][5],
  14625. updateChair:
  14626. courseDetail.userid == userid &&
  14627. groupStudent[toolindex][gindex] &&
  14628. groupStudent[toolindex][gindex][5] &&
  14629. groupJson.islock == 2
  14630. }"
  14631. ><span
  14632. class="updateChairBtn"
  14633. @click="
  14634. updateGroupChair(
  14635. groupStudent[toolindex][gindex] &&
  14636. groupStudent[toolindex][gindex][5]
  14637. )
  14638. "
  14639. >修改</span
  14640. ></span
  14641. ><span>{{
  14642. groupStudent[toolindex][gindex] &&
  14643. groupStudent[toolindex][gindex][5]
  14644. ? groupStudent[toolindex][gindex] &&
  14645. groupStudent[toolindex][gindex][5].name
  14646. : "空位置"
  14647. }}</span>
  14648. </div>
  14649. <div v-if="groupJson.number > 9">
  14650. <span
  14651. :class="{
  14652. isChair:
  14653. groupStudent[toolindex][gindex] &&
  14654. groupStudent[toolindex][gindex][9],
  14655. updateChair:
  14656. courseDetail.userid == userid &&
  14657. groupStudent[toolindex][gindex] &&
  14658. groupStudent[toolindex][gindex][9] &&
  14659. groupJson.islock == 2
  14660. }"
  14661. ><span
  14662. class="updateChairBtn"
  14663. @click="
  14664. updateGroupChair(
  14665. groupStudent[toolindex][gindex] &&
  14666. groupStudent[toolindex][gindex][9]
  14667. )
  14668. "
  14669. >修改</span
  14670. ></span
  14671. ><span>{{
  14672. groupStudent[toolindex][gindex] &&
  14673. groupStudent[toolindex][gindex][9]
  14674. ? groupStudent[toolindex][gindex] &&
  14675. groupStudent[toolindex][gindex][9].name
  14676. : "空位置"
  14677. }}</span>
  14678. </div>
  14679. </div>
  14680. </div>
  14681. </div>
  14682. </div>
  14683. </div>
  14684. <span slot="footer" class="dialog-footer">
  14685. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14686. </span>
  14687. </el-dialog>
  14688. <el-dialog
  14689. title="分组设置"
  14690. :visible.sync="dialogVisibleGroup2"
  14691. :append-to-body="true"
  14692. width="650px"
  14693. :before-close="handleClose"
  14694. class="dialog_diy"
  14695. >
  14696. <div class="groupBox">
  14697. <div v-if="groupJson2.group" class="groupContent">
  14698. <div class="groupTitle">请设置小组数量及名称</div>
  14699. <div
  14700. v-for="(item, index) in groupJson2.group"
  14701. :key="index"
  14702. class="groupName"
  14703. >
  14704. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14705. <el-input
  14706. v-model="item.name"
  14707. placeholder="请输入名称..."
  14708. style="width: 250px"
  14709. ></el-input>
  14710. <!-- <div class="groupBtn">
  14711. <el-button type="primary" size="small" @click="addGroup(index)">
  14712. 添加</el-button>
  14713. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14714. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14715. </div> -->
  14716. </div>
  14717. </div>
  14718. <div class="groupContent">
  14719. <div class="groupTitle">请设置每组人数</div>
  14720. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14721. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14722. <el-input
  14723. v-model="groupJson2.number"
  14724. style="width: 150px"
  14725. placeholder="请输入2-10的数字"
  14726. @change="numberPan"
  14727. ></el-input>
  14728. </div>
  14729. </div>
  14730. <span slot="footer" class="dialog-footer">
  14731. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14732. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14733. </span>
  14734. </el-dialog>
  14735. <el-dialog
  14736. title="作业提交"
  14737. :visible.sync="dialogVisibleGroupWork"
  14738. :append-to-body="true"
  14739. width="500px"
  14740. :before-close="handleClose"
  14741. class="dialog_change"
  14742. >
  14743. <div class="marginT">
  14744. <div>上传文件</div>
  14745. <div
  14746. class="chapter_add"
  14747. @click="addImg($event)"
  14748. v-if="studyJuri[0].cover.length == 0"
  14749. >
  14750. <div class="up_photo">
  14751. <img src="../../assets/icon/uploadImg.png" alt />
  14752. </div>
  14753. <!-- <input
  14754. type="file"
  14755. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14756. style="display: none"
  14757. @change="beforeUpload1($event, 1)"
  14758. /> -->
  14759. <input
  14760. type="file"
  14761. accept="*"
  14762. style="display: none"
  14763. @change="beforeUpload1($event, 1)"
  14764. />
  14765. </div>
  14766. <!-- capture="camera" -->
  14767. <div
  14768. class="chapter_add"
  14769. style="
  14770. display: flex;
  14771. width: 100%;
  14772. flex-direction: row;
  14773. flex-wrap: wrap;
  14774. justify-content: flex-start;
  14775. padding: 15px 0;
  14776. "
  14777. v-if="studyJuri[0].cover.length > 0"
  14778. >
  14779. <div class="upCover">
  14780. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14781. <img :src="word" alt v-else-if="fileType == 1" />
  14782. <img :src="video" alt v-else-if="fileType == 2" />
  14783. <img :src="word2" alt v-else-if="fileType == 3" />
  14784. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14785. <div class="deleteWord" @click="clean(1)">
  14786. <img src="../../assets/icon/deleteWorks.png" alt />
  14787. </div>
  14788. </div>
  14789. </div>
  14790. </div>
  14791. <div
  14792. class="upload_send"
  14793. @click="addCourseWorks2(taskCount)"
  14794. v-if="!proVisible"
  14795. >
  14796. 提交
  14797. </div>
  14798. </el-dialog>
  14799. <el-dialog
  14800. title="修改分组"
  14801. :visible.sync="dialogVisibleUpdateGroup"
  14802. :append-to-body="true"
  14803. width="350px"
  14804. :before-close="handleClose"
  14805. class="dialog_diy"
  14806. >
  14807. <div>
  14808. <h2>
  14809. {{ this.updateGroupUser.name }}
  14810. </h2>
  14811. <div style="color: rgb(171 171 171); margin-top: 10px">
  14812. 请选择要进入的分组
  14813. </div>
  14814. <el-radio-group v-model="checkChair">
  14815. <el-radio
  14816. style="display: block; margin-top: 20px"
  14817. v-for="(item, index) in updateGroupArray"
  14818. :label="item.label"
  14819. :key="index"
  14820. >{{ item.name }}</el-radio
  14821. >
  14822. </el-radio-group>
  14823. </div>
  14824. <span slot="footer" class="dialog-footer">
  14825. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14826. <el-button type="primary" @click="updateChair">确定</el-button>
  14827. </span>
  14828. </el-dialog>
  14829. <el-dialog
  14830. title="移除组员"
  14831. :visible.sync="dialogVisibleDeleteGroup"
  14832. :append-to-body="true"
  14833. width="350px"
  14834. :before-close="handleClose"
  14835. class="dialog_diy"
  14836. >
  14837. <div>
  14838. <h2>
  14839. {{ this.deleteGroupArray.name }}
  14840. </h2>
  14841. <div style="color: rgb(171 171 171); margin-top: 10px">
  14842. 请选择要删除的组员
  14843. </div>
  14844. <el-checkbox-group v-model="checkDeleteGroup">
  14845. <el-checkbox
  14846. style="display: flex; margin-top: 20px"
  14847. v-for="(item, index) in deleteGroupUser"
  14848. :label="item.userid"
  14849. :key="index"
  14850. >{{ item.name }}</el-checkbox
  14851. >
  14852. </el-checkbox-group>
  14853. </div>
  14854. <span slot="footer" class="dialog-footer">
  14855. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14856. <el-button type="primary" @click="deleteChair">确定</el-button>
  14857. </span>
  14858. </el-dialog>
  14859. <el-dialog
  14860. title="批量上传"
  14861. :visible.sync="dialogVisiblePl"
  14862. :append-to-body="true"
  14863. width="700px"
  14864. :before-close="handleClose"
  14865. class="dialog_change"
  14866. >
  14867. <div class="marginT">
  14868. <div class="plworkBox">
  14869. <div
  14870. class="chapter_add"
  14871. style="
  14872. display: flex;
  14873. width: 150px;
  14874. flex-direction: row;
  14875. flex-wrap: wrap;
  14876. justify-content: flex-start;
  14877. margin: 0 10px 10px 0;
  14878. "
  14879. v-for="(item, index) in plworkFile"
  14880. :key="index"
  14881. >
  14882. <div class="upCover2">
  14883. <img
  14884. :src="item.url"
  14885. alt
  14886. v-if="item.fileType == 1"
  14887. @click="previewImg(item.url)"
  14888. />
  14889. <img :src="word" alt v-else-if="item.fileType == 4" />
  14890. <img :src="video" alt v-else />
  14891. <!-- <span class="picName">{{ item.name }}</span> -->
  14892. <!-- <el-input
  14893. v-model="item.username"
  14894. placeholder="请输入学生名字"
  14895. style="margin-top: 10px"
  14896. ></el-input> -->
  14897. <div
  14898. class="pl_select_box"
  14899. @click="
  14900. getUpdateMore(true, checkUpload(), item.username, index)
  14901. "
  14902. >
  14903. {{ getSName(item.username) }}
  14904. </div>
  14905. <!-- <el-select
  14906. style="margin-top: 10px"
  14907. v-model="item.username"
  14908. filterable
  14909. allow-create
  14910. placeholder="请选择学生"
  14911. >
  14912. <el-option
  14913. v-for="item1 in checkUpload()"
  14914. :key="item1.userid"
  14915. :label="item1.name ? item1.name : item1.username"
  14916. :value="item1.userid"
  14917. >
  14918. </el-option>
  14919. </el-select> -->
  14920. <div class="deleteWord" @click="clean2(index)">
  14921. <img src="../../assets/icon/deleteWorks.png" alt />
  14922. </div>
  14923. </div>
  14924. </div>
  14925. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14926. <div class="up_photo2">
  14927. <img src="../../assets/icon/plwork.png" alt />
  14928. <span>点击上传文件</span>
  14929. </div>
  14930. <input
  14931. type="file"
  14932. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14933. multiple="multiple"
  14934. style="display: none"
  14935. @change="beforeUpload3($event, 6)"
  14936. />
  14937. </div>
  14938. </div>
  14939. </div>
  14940. <!-- capture="camera" -->
  14941. <div
  14942. class="upload_send"
  14943. @click="addCourseWorksPl(taskCount)"
  14944. v-if="!proVisible2"
  14945. >
  14946. 提交
  14947. </div>
  14948. </el-dialog>
  14949. <el-dialog
  14950. title="修改名称"
  14951. :visible.sync="dialogVisibleSname"
  14952. width="500px"
  14953. :before-close="handleClose"
  14954. class="dialog_diy"
  14955. center
  14956. >
  14957. <div
  14958. style="
  14959. text-align: center;
  14960. display: flex;
  14961. align-items: center;
  14962. justify-content: center;
  14963. "
  14964. >
  14965. <span class="tian1">名称</span>
  14966. <div
  14967. class="pl_select_box"
  14968. style="margin-left: 10px; width: 200px"
  14969. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14970. >
  14971. {{ getSName(worksSName) }}
  14972. </div>
  14973. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14974. placeholder="请选择学生">
  14975. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14976. :value="item.userid">
  14977. </el-option>
  14978. </el-select> -->
  14979. <!-- <el-input
  14980. v-model="worksSName"
  14981. style="width: 250px; margin: 15px 0px"
  14982. ></el-input> -->
  14983. </div>
  14984. <span slot="footer" class="dialog-footer">
  14985. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  14986. <el-button type="primary" @click="updateName">确 定</el-button>
  14987. </span>
  14988. </el-dialog>
  14989. <el-dialog
  14990. title="英语写作"
  14991. :visible.sync="engDialogVisible"
  14992. :append-to-body="true"
  14993. width="800px"
  14994. :before-close="handleClose"
  14995. class="dialog_diy"
  14996. >
  14997. <onlineWrite
  14998. v-if="engDialogVisible"
  14999. :englishList="englishList"
  15000. :myAnswerList1="myAnswerList1"
  15001. ref="engJson"
  15002. ></onlineWrite>
  15003. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15004. <el-button @click="engDialogVisible = false">取 消</el-button>
  15005. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15006. </span>
  15007. </el-dialog>
  15008. <el-dialog
  15009. title="英语写作"
  15010. :visible.sync="engUpdateDialogVisible"
  15011. :append-to-body="true"
  15012. width="800px"
  15013. :before-close="handleClose"
  15014. class="dialog_diy fullStyle"
  15015. >
  15016. <div class="engUpBox">
  15017. <div class="engUpTop">
  15018. <div class="engTitle">
  15019. <div>作文题目:</div>
  15020. <div>{{ englishList1.engTitle }}</div>
  15021. </div>
  15022. <div class="engText">
  15023. <div>作文内容:</div>
  15024. <div
  15025. class="cont"
  15026. v-html="englishList1.englishText"
  15027. style="white-space: pre-line;"
  15028. @click="checkImg(getImgList(englishList1.englishText))"
  15029. ></div>
  15030. </div>
  15031. </div>
  15032. <div
  15033. class="correctBox"
  15034. :style="{ height: `calc(100% - ${topHeight}px)` }"
  15035. >
  15036. <div class="oldBox">
  15037. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15038. <div class="oldText">
  15039. <div class="detailBox">
  15040. <div class="oldDetail">
  15041. <div>标题:</div>
  15042. <div>{{ oldEnglishJson.engTitle }}</div>
  15043. </div>
  15044. <div class="oldDetail1">
  15045. <div>正文:</div>
  15046. <div
  15047. v-html="oldEnglishJson.engText"
  15048. style="white-space: pre-line;"
  15049. ></div>
  15050. </div>
  15051. <div
  15052. class="oldDetail"
  15053. v-if="
  15054. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  15055. "
  15056. >
  15057. <div>图片:</div>
  15058. <div class="oldImg">
  15059. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  15060. </div>
  15061. </div>
  15062. </div>
  15063. </div>
  15064. </div>
  15065. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15066. <div class="oldMes" style="background: #aacaff;">
  15067. {{ userMes[0].username }}
  15068. </div>
  15069. <div class="oldText">
  15070. <div class="detailBox" style="position: relative;">
  15071. <div class="oldDetail">
  15072. <div>标题:</div>
  15073. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15074. <div v-else v-html="newEnglishList.engTitle"></div>
  15075. </div>
  15076. <div class="oldDetail">
  15077. <div>正文:</div>
  15078. <el-input
  15079. v-if="greyType"
  15080. type="textarea"
  15081. :rows="10"
  15082. resize="none"
  15083. v-model="newEnglishList.engText"
  15084. @input="gx"
  15085. />
  15086. <correctText
  15087. :newText="newEnglishList.engText"
  15088. :oldData="oldEnglishJson.engText"
  15089. />
  15090. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15091. </div>
  15092. <div style="position: absolute;bottom: -25px;">
  15093. 注:红色划线字为删除,绿色背景白色字为新添加.
  15094. </div>
  15095. <el-button
  15096. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15097. class="correctCss"
  15098. :style="{ right: greyType == false ? '0' : '80px' }"
  15099. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15100. >
  15101. <el-button
  15102. @click="aiCorrect(newEnglishList.engText, 1)"
  15103. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15104. v-if="!greyType"
  15105. >AI批注</el-button
  15106. >
  15107. <el-button
  15108. @click="addCorrect"
  15109. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15110. v-if="greyType"
  15111. >确定</el-button
  15112. >
  15113. </div>
  15114. </div>
  15115. </div>
  15116. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15117. <div
  15118. class="oldMes"
  15119. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15120. v-if="newEnglishList1.length > 0"
  15121. >
  15122. <div
  15123. v-if="isNoUserid"
  15124. class="allName"
  15125. :style="{
  15126. minWidth: `calc(100% / ${engListLength})`,
  15127. background: newEngIndex == -1 ? '#aacaff' : ''
  15128. }"
  15129. @click="setEngText(-1)"
  15130. style="background: #aacaff;"
  15131. >
  15132. {{ userMes[0].username }}
  15133. </div>
  15134. <div
  15135. v-for="(item, index) in newEnglishList1"
  15136. :key="index"
  15137. class="allName"
  15138. :style="{
  15139. minWidth: `calc(100% / ${engListLength})`,
  15140. background: index == newEngIndex ? '#aacaff' : ''
  15141. }"
  15142. @click="setEngText(index)"
  15143. >
  15144. {{ item.username }}
  15145. </div>
  15146. </div>
  15147. <div class="oldMes" style="background: #aacaff;" v-else>
  15148. {{ userMes[0].username }}
  15149. </div>
  15150. <div
  15151. class="oldText"
  15152. v-if="
  15153. newEngIndex == -1 &&
  15154. isNoUserid == true &&
  15155. newEnglishList1.length
  15156. "
  15157. >
  15158. <div class="detailBox" style="position: relative;">
  15159. <div class="oldDetail">
  15160. <div>标题:</div>
  15161. <el-input
  15162. v-if="greyType"
  15163. v-model="oldEnglishJson1.engTitle"
  15164. />
  15165. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15166. </div>
  15167. <div class="oldDetail">
  15168. <div>正文:</div>
  15169. <el-input
  15170. v-if="greyType"
  15171. type="textarea"
  15172. :rows="10"
  15173. resize="none"
  15174. v-model="oldEnglishJson1.engText"
  15175. @input="gx"
  15176. />
  15177. <correctText
  15178. v-else
  15179. :newText="oldEnglishJson1.engText"
  15180. :oldData="oldEnglishJson.engText"
  15181. />
  15182. </div>
  15183. <div style="position: absolute;bottom: -25px;">
  15184. 注:红色划线字为删除,绿色背景白色字为新添加.
  15185. </div>
  15186. <el-button
  15187. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15188. class="correctCss"
  15189. :style="{ right: greyType == false ? '0' : '80px' }"
  15190. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15191. >
  15192. <el-button
  15193. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15194. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15195. v-if="!greyType"
  15196. >AI批注</el-button
  15197. >
  15198. <el-button
  15199. @click="addCorrect"
  15200. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15201. v-if="greyType"
  15202. >确定</el-button
  15203. >
  15204. </div>
  15205. </div>
  15206. <div class="oldText" v-else-if="newEngIndex == -1">
  15207. <div class="detailBox" style="position: relative;">
  15208. <div class="oldDetail">
  15209. <div>标题:</div>
  15210. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15211. <div v-else v-html="newEnglishList.engTitle"></div>
  15212. </div>
  15213. <div class="oldDetail">
  15214. <div>正文:</div>
  15215. <el-input
  15216. v-if="greyType"
  15217. type="textarea"
  15218. :rows="10"
  15219. resize="none"
  15220. v-model="newEnglishList.engText"
  15221. @input="gx"
  15222. />
  15223. <correctText
  15224. v-else
  15225. :newText="newEnglishList.engText"
  15226. :oldData="oldEnglishJson.engText"
  15227. />
  15228. </div>
  15229. <div style="position: absolute;bottom: -25px;">
  15230. 注:红色划线字为删除,绿色背景白色字为新添加.
  15231. </div>
  15232. <el-button
  15233. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15234. class="correctCss"
  15235. :style="{ right: greyType == false ? '0' : '80px' }"
  15236. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15237. >
  15238. <el-button
  15239. @click="aiCorrect(newEnglishList.engText, 3)"
  15240. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15241. v-if="!greyType"
  15242. >AI批注</el-button
  15243. >
  15244. <el-button
  15245. @click="addCorrect"
  15246. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15247. v-if="greyType"
  15248. >确定</el-button
  15249. >
  15250. </div>
  15251. </div>
  15252. <div
  15253. class="oldText"
  15254. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15255. >
  15256. <div class="detailBox" style="position: relative;">
  15257. <div class="oldDetail">
  15258. <div>标题:</div>
  15259. <div
  15260. v-if="
  15261. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15262. "
  15263. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15264. ></div>
  15265. <div v-else>
  15266. <el-input
  15267. v-if="greyType"
  15268. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15269. />
  15270. <div
  15271. v-else
  15272. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15273. ></div>
  15274. </div>
  15275. </div>
  15276. <div class="oldDetail">
  15277. <div>正文:</div>
  15278. <correctText
  15279. v-if="
  15280. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15281. "
  15282. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15283. :oldData="oldEnglishJson.engText"
  15284. />
  15285. <div v-else>
  15286. <el-input
  15287. v-if="greyType"
  15288. type="textarea"
  15289. :rows="10"
  15290. resize="none"
  15291. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15292. @input="gx"
  15293. />
  15294. <correctText
  15295. v-else
  15296. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15297. :oldData="oldEnglishJson.engText"
  15298. />
  15299. </div>
  15300. </div>
  15301. <div style="position: absolute;bottom: -25px;">
  15302. 注:红色划线字为删除,绿色背景白色字为新添加.
  15303. </div>
  15304. <el-button
  15305. @click="
  15306. isUpdateCorrect(
  15307. newEnglishList1[newEngIndex].cWork.engText,
  15308. 4
  15309. )
  15310. "
  15311. class="correctCss"
  15312. :style="{ right: greyType == false ? '0' : '80px' }"
  15313. v-if="
  15314. !greyType &&
  15315. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15316. "
  15317. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15318. >
  15319. <el-button
  15320. @click="
  15321. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15322. "
  15323. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15324. v-if="
  15325. !greyType &&
  15326. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15327. "
  15328. >AI批注</el-button
  15329. >
  15330. <el-button
  15331. @click="addCorrect"
  15332. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15333. v-if="greyType"
  15334. >确定</el-button
  15335. >
  15336. </div>
  15337. </div>
  15338. </div>
  15339. </div>
  15340. </div>
  15341. <span slot="footer" class="dialog-footer">
  15342. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15343. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15344. </span>
  15345. </el-dialog>
  15346. <englishEva
  15347. :evaEngJson="evaEngJson"
  15348. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15349. :uid="userid"
  15350. :tType="tType"
  15351. :courseDetail="courseDetail"
  15352. ></englishEva>
  15353. <interVideo
  15354. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15355. :videoJson="videoJson"
  15356. :userid="userid"
  15357. :id="id"
  15358. :courseType="courseType"
  15359. :taskCount="taskCount"
  15360. :toolindex="toolindex"
  15361. :videoType="videoType"
  15362. ></interVideo>
  15363. <UpdateMore
  15364. :dialogVisibleMember.sync="dialogVisibleMember"
  15365. :cList="uploadStudentJuri"
  15366. :userid="userid"
  15367. :searchTN="worksSName2"
  15368. @setPlname="setPlname"
  15369. ></UpdateMore>
  15370. <!-- <wordCloud
  15371. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15372. :data="wordCloudData"
  15373. ></wordCloud> -->
  15374. <el-dialog
  15375. title="词云"
  15376. :visible.sync="dialogVisibleWordCloud"
  15377. width="30%"
  15378. class="dialog_diy"
  15379. :before-close="handleClose">
  15380. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15381. </el-dialog>
  15382. <el-dialog
  15383. title="挑人"
  15384. :visible.sync="dialogVisiblePickPeople"
  15385. width="650px"
  15386. :before-close="handleClose"
  15387. class="dialog_diy"
  15388. center
  15389. >
  15390. <div class="pick_box">
  15391. <div
  15392. class="noWorksName"
  15393. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15394. v-for="(item, index) in uploadStudentJuri"
  15395. :key="index"
  15396. @click="pickStudent(item)"
  15397. >
  15398. {{ item.name }}
  15399. </div>
  15400. </div>
  15401. </el-dialog>
  15402. <EnglishVoice
  15403. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15404. :englishVoiceJson="englishVoiceJson"
  15405. :userid="userid"
  15406. :id="id"
  15407. :courseType="courseType"
  15408. :taskCount="taskCount"
  15409. :toolindex="toolindex"
  15410. @selectSWorks="selectSWorks"
  15411. @selectStudent="selectStudent"
  15412. :englishVoiceJsonWork="englishVoiceJsonWork"
  15413. ></EnglishVoice>
  15414. <checkEnglishVoice
  15415. :englishVoiceJson="englishVoiceJson"
  15416. :userid="userid"
  15417. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15418. :commentDetail="commentDetail"
  15419. :courseDetail="courseDetail"
  15420. :wScore="wScore"
  15421. :scoreDetail="scoreDetail"
  15422. @selectSWorks="selectSWorks"
  15423. @selectStudent="selectStudent"
  15424. ></checkEnglishVoice>
  15425. <el-dialog
  15426. title="教师评分"
  15427. :visible.sync="markScoreVisible"
  15428. :append-to-body="true"
  15429. width="1000px"
  15430. :fullscreen="markfullscreen"
  15431. :before-close="markScorehandleClose"
  15432. class="markScore_diy"
  15433. >
  15434. <div slot="title">
  15435. <div class="markScore_diyTit">
  15436. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15437. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15438. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15439. </div>
  15440. </div>
  15441. </div>
  15442. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15443. <!-- @updateDocSco="updateDocSco" -->
  15444. <markDialog
  15445. :key="markScoreVisible.toString()"
  15446. :uid="markScoreUid"
  15447. :toolIndex="markScoretoolIndex"
  15448. :stage="courseType"
  15449. :task="taskCount"
  15450. :taskDetail="
  15451. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15452. "
  15453. :tool="toolListS"
  15454. :languageSetting="languageSetting"
  15455. :scoTit="markScoreTit"
  15456. :tType="tType"
  15457. :sIsOpen="sIsOpen"
  15458. :markScoreworksStudent="markScoreworksStudent"
  15459. :markScoreVisible="markScoreVisible"
  15460. ></markDialog>
  15461. </el-dialog>
  15462. <!-- 查看Txt,md等文件 -->
  15463. <el-dialog
  15464. title="文件预览"
  15465. :visible.sync="dialogVisibleTxt"
  15466. width="50%"
  15467. :before-close="handleCloseTxt"
  15468. class="dialog_diy"
  15469. :class="{ fullStyle: full }"
  15470. >
  15471. <div slot="title" class="header-title">
  15472. <div style="color: #fff">文件预览</div>
  15473. <div style="position: absolute; top: 19px; right: 50px">
  15474. <img
  15475. src="../../assets/full.png"
  15476. style="height: 16px; cursor: pointer"
  15477. alt=""
  15478. @click="fullTools"
  15479. />
  15480. </div>
  15481. </div>
  15482. <div>{{ TxtMd }}</div>
  15483. </el-dialog>
  15484. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15485. <choseWorksDetailDialog
  15486. ref="choseWorksDetailDialogRef"
  15487. :worksStudentData="worksStudent"
  15488. :noWorksSData="noWorksS"
  15489. :chapInfoListData="chapInfoList"
  15490. :courseType="courseType"
  15491. :taskCount="taskCount"
  15492. :tType="tType"
  15493. :sIsOpen="sIsOpen"
  15494. :courseDetail="courseDetail"
  15495. :groupStudent2="groupStudent"
  15496. :groupStudentUid2="groupStudentUid"
  15497. :oid="oid"
  15498. :org="org"
  15499. @getCourseDetail="getCourseDetail"
  15500. @selectSLook="selectSLook"
  15501. @selectSWorks="selectSWorks"
  15502. @selectStudent="selectStudent"
  15503. @deleteWorks="deleteWorks"
  15504. @openTools="openTools"
  15505. @openWord="openWord"
  15506. @openScore="openScore"
  15507. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15508. />
  15509. <el-dialog
  15510. :visible.sync="confirmOpenDig"
  15511. width="500px"
  15512. :modal="false"
  15513. class="confirmOpenDigCss dialog_diyCopy"
  15514. :before-close="handleClose">
  15515. <div style="display: flex;align-items: center;">
  15516. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15517. <span>“{{ courseDetail.title }}”开课啦</span>
  15518. </div>
  15519. <div style="margin: 20px 0 35px;">
  15520. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15521. <div>要认真听讲哦~</div>
  15522. </div>
  15523. <div style="text-align: center;">
  15524. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15525. </div>
  15526. </el-dialog>
  15527. <appStoreC ref="appStoreC"></appStoreC>
  15528. </div>
  15529. </template>
  15530. <script>
  15531. import "../../common/aws-sdk-2.235.1.min.js";
  15532. // import pdf from "../components/pdf3";
  15533. import pdf from "../components/vpdf";
  15534. import AskStatic from "../components/askStatic";
  15535. import AskStatic2 from "../components/askStatic2";
  15536. import AnswerData2 from "../components/answerData2";
  15537. import AnswerData from "../components/answerData";
  15538. import EditorBar from "../tools/wangEnduit.vue";
  15539. import Table from "../tools/table.vue";
  15540. import Time from "../tools/time.vue";
  15541. import Mind from "../tools/jsmind.vue";
  15542. import Sunburst from "../tools/sunburst";
  15543. import SeeBoard from "../tools/seeBoard";
  15544. import * as imageConversion from "image-conversion";
  15545. import Audio from "../components/audio.vue";
  15546. import ImgDraw from "../tools/imgDraw/imgDraw";
  15547. import { Empty } from "element-ui";
  15548. import RecordRTC from "recordrtc";
  15549. import interVideo from "../interVideo/index.vue";
  15550. import UpdateMore from "../updateMore/updateMore.vue";
  15551. import wordCloud from "../wordCloud/index.vue";
  15552. import axios from "axios";
  15553. import JSZip from "jszip";
  15554. import FileSaver from "file-saver";
  15555. import onlineWrite from "./commpont/onlineWrite";
  15556. import englishEva from "../components/englishEva";
  15557. import * as Diff from "diff";
  15558. import EnglishVoice from "../EnglishVoice2/index.vue";
  15559. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  15560. import correctText from "../components/correctText.vue";
  15561. import scoreItem from "../scoreList/scoreItem.vue";
  15562. import scoreZong from "../scoreZong/index.vue";
  15563. import classRoomHelper from "../classRoomHelper/index.vue";
  15564. import markScore from "./commpont/markScore";
  15565. import markDialog from "./commpont/markDialog";
  15566. import evaTable from "./commpont/evaTable";
  15567. import { v4 as uuidv4 } from "uuid";
  15568. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  15569. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  15570. import appStoreC from "../components/appStoreC.vue";
  15571. import choseWordCloud from '../components/choseWordCloud.vue'
  15572. var OpenCC = require("opencc-js");
  15573. let converter = OpenCC.Converter({
  15574. from: "hk",
  15575. to: "cn"
  15576. });
  15577. const getFile = url => {
  15578. return new Promise((resolve, reject) => {
  15579. var credentials = {
  15580. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15581. secretAccessKey: "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"
  15582. }; //秘钥形式的登录上传
  15583. window.AWS.config.update(credentials);
  15584. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15585. let url2 = url;
  15586. let _url2 = "";
  15587. if (
  15588. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15589. ) {
  15590. _url2 = url2.split(
  15591. "https://view.officeapps.live.com/op/view.aspx?src="
  15592. )[1];
  15593. } else {
  15594. _url2 = url2;
  15595. }
  15596. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15597. let name = decodeURIComponent(
  15598. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15599. );
  15600. var params = {
  15601. Bucket: "ccrb",
  15602. Key: name
  15603. };
  15604. s3.getObject(params, function(err, data) {
  15605. if (err) {
  15606. console.log(err, err.stack);
  15607. resolve({ data: 1 });
  15608. } else {
  15609. resolve({ data: data.Body });
  15610. console.log(data);
  15611. } // sxuccessful response
  15612. });
  15613. // axios({
  15614. // method: "get",
  15615. // url,
  15616. // responseType: "blob",
  15617. // })
  15618. // .then((data) => {
  15619. // resolve({ data: data.data });
  15620. // })
  15621. // .catch((error) => {
  15622. // resolve({ data: 1 });
  15623. // // reject(error.toString());
  15624. // });
  15625. });
  15626. };
  15627. export default {
  15628. components: {
  15629. choseWordCloud,
  15630. EditorBar,
  15631. Time,
  15632. pdf,
  15633. AskStatic,
  15634. AskStatic2,
  15635. Mind,
  15636. Sunburst,
  15637. SeeBoard,
  15638. AnswerData2,
  15639. AnswerData,
  15640. Audio,
  15641. ImgDraw,
  15642. Table,
  15643. interVideo,
  15644. UpdateMore,
  15645. wordCloud,
  15646. onlineWrite,
  15647. englishEva,
  15648. EnglishVoice,
  15649. checkEnglishVoice,
  15650. correctText,
  15651. scoreItem,
  15652. classRoomHelper,
  15653. scoreZong,
  15654. markScore,
  15655. markDialog,
  15656. evaTable,
  15657. statisticalAnalysis,
  15658. choseWorksDetailDialog,
  15659. appStoreC
  15660. },
  15661. data() {
  15662. return {
  15663. wordCloudKey: 0,
  15664. bg: null,
  15665. drawShow: false,
  15666. dialogVisible: false,
  15667. dialogVisiblePl: false,
  15668. commentDialogVisible: false,
  15669. dialogVisibleMember: false,
  15670. dialogVisibleWordCloud: false,
  15671. videoVisible: false,
  15672. isStar: false,
  15673. studentEvalDialogVisible: false,
  15674. studentEvalDialogVisibleTeacher: false,
  15675. dialogVisibleSelect: false,
  15676. dialogVisibleSelectTeacher: false,
  15677. dialogVisibleScore: false,
  15678. dialogVisibleENScore: false,
  15679. dialogVisibleSentence: false,
  15680. dialogVisibleSentenceTeacher: false,
  15681. dialogVisibleSentence1: false,
  15682. dialogVisibleWorks: false,
  15683. dialogVisibleTable: false,
  15684. dialogVisibleTableTeacher: false,
  15685. dialogVisibleWord: false,
  15686. dialogVisibleWordTeacher: false,
  15687. dialogVisibleTable2: false,
  15688. dialogVisibleTable3: false,
  15689. dialogVisibleGroupWork: false,
  15690. dialogVisibleUpdateGroup: false,
  15691. dialogVisibleDeleteGroup: false,
  15692. dialogVisibleSname: false,
  15693. dialogVisibleVideo: false,
  15694. dialogVisiblePickPeople: false,
  15695. engDialogVisible: false,
  15696. engUpdateDialogVisible: false,
  15697. engEvaDialogVisible: false,
  15698. evaEngJson: {
  15699. teacherJson: {},
  15700. studentJson: {},
  15701. message: {}
  15702. },
  15703. isNoUserid: false,
  15704. engListLength: 0,
  15705. engWid: "",
  15706. newEnglishList: {
  15707. engTitle: "",
  15708. engText: ""
  15709. },
  15710. newEnglishList1: [],
  15711. oldEnglishJson: {},
  15712. oldEnglishJson1: {},
  15713. englishList1: {},
  15714. englishList: {},
  15715. myAnswerList1: {},
  15716. topHeight: 0,
  15717. newEngIndex: -1,
  15718. englishToolIndex: 0,
  15719. userMes: {},
  15720. englishToolIndex: 0,
  15721. worksSName: "",
  15722. classJuri: [],
  15723. uploadStudentJuri: [],
  15724. uploadCid: "",
  15725. snameWid: "",
  15726. sStudent: {},
  15727. sTool: "",
  15728. bzText: "",
  15729. commentDetail: [],
  15730. selectAnswer: [],
  15731. videoDetail: {},
  15732. selectJson: {},
  15733. englishList: {},
  15734. topHeight: 0,
  15735. eScore: { eBzText: "", eStar: [] },
  15736. id: this.$route.query.courseId,
  15737. userid: this.$route.query.userid,
  15738. classId: this.$route.query.cid,
  15739. // courseTypeLine: this.$route.query.type,
  15740. oid: this.$route.query.oid,
  15741. org: this.$route.query.org,
  15742. tType: this.$route.query.tType,
  15743. courseType: this.$route.query.type,
  15744. screenType: this.$route.query.screenType,
  15745. tcid2: this.$route.query.tcid,
  15746. tcid: "",
  15747. pptImgUrl: "",
  15748. pptImgUrl1: "",
  15749. commentText: "",
  15750. full: false,
  15751. sIsOpen: false, //允许学生查看所有作业
  15752. IsLookOpen: false, //禁止学生查看所有阶段
  15753. IsFollow: false, //开启跟随模式
  15754. pzDialog: false,
  15755. contentDialog: false,
  15756. mlDialog: false,
  15757. type: 1,
  15758. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15759. sentenceList1: [],
  15760. tableJson: [],
  15761. tableJsonO: [],
  15762. wordJson: [],
  15763. wordJsonO: [],
  15764. vedio: [],
  15765. text: [],
  15766. textList: [],
  15767. line: [],
  15768. lineList: [],
  15769. chapTools: [],
  15770. chapToolList: [],
  15771. file: [],
  15772. fileC: [],
  15773. vedioTime: [],
  15774. upToolImg: "",
  15775. preTime: 0,
  15776. rateList: {
  15777. ca: 0
  15778. },
  15779. rateParams: [],
  15780. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15781. studyJuri: [
  15782. {
  15783. content: "",
  15784. cover: [],
  15785. upVedio: [],
  15786. upFile: []
  15787. }
  15788. ],
  15789. isClose: 0,
  15790. plworkFile: [],
  15791. mr: require("../../assets/vedioPic.png"),
  15792. word: require("../../assets/icon/isWord.png"),
  15793. word2: require("../../assets/icon/word2.png"),
  15794. video: require("../../assets/icon/isVideo.png"),
  15795. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15796. likes: require("../../assets/icon/comment/likes.png"),
  15797. scoreImg: require("../../assets/score.png"),
  15798. courseDetail: {},
  15799. reply: "",
  15800. isSelect: false,
  15801. chapInfo: [],
  15802. chapInfoList: [],
  15803. taskCount: 0,
  15804. imgList: [],
  15805. noImgList: [],
  15806. pzList: [],
  15807. timeWorkList: [],
  15808. PlTextList: [
  15809. "Excellent!",
  15810. "nice!",
  15811. "很有创意!",
  15812. "还不错哦~",
  15813. "继续努力哦~"
  15814. ],
  15815. isClickNav: "",
  15816. navId: "",
  15817. playerOptions: {
  15818. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15819. autoplay: false, //如果true,浏览器准备好时开始回放。
  15820. muted: false, // 默认情况下将会消除任何音频。
  15821. loop: false, // 导致视频一结束就重新开始。
  15822. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15823. language: "zh-CN",
  15824. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15825. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15826. sources: [
  15827. {
  15828. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15829. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15830. }
  15831. ],
  15832. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15833. // poster: dataRes.imgUrl, //你的封面地址
  15834. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15835. controlBar: {
  15836. timeDivider: true, //当前时间和持续时间的分隔符
  15837. durationDisplay: true, //显示持续时间
  15838. remainingTimeDisplay: false, //是否显示剩余时间功能
  15839. fullscreenToggle: true //全屏按钮
  15840. }
  15841. },
  15842. playerOptions1: {
  15843. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15844. autoplay: false, //如果true,浏览器准备好时开始回放。
  15845. muted: false, // 默认情况下将会消除任何音频。
  15846. loop: false, // 导致视频一结束就重新开始。
  15847. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15848. language: "zh-CN",
  15849. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15850. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15851. sources: [
  15852. {
  15853. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15854. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15855. }
  15856. ],
  15857. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15858. // poster: dataRes.imgUrl, //你的封面地址
  15859. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15860. controlBar: {
  15861. timeDivider: true, //当前时间和持续时间的分隔符
  15862. durationDisplay: true, //显示持续时间
  15863. remainingTimeDisplay: false, //是否显示剩余时间功能
  15864. fullscreenToggle: true //全屏按钮
  15865. }
  15866. },
  15867. playerO: {},
  15868. noneBtnImg: false,
  15869. proVisible: false,
  15870. proVisible2: false,
  15871. progress: 0,
  15872. isFinishSize: 0,
  15873. isAllSize: 0,
  15874. questionAnswer: "",
  15875. answerQ: "", //问答标题
  15876. rateJson: [],
  15877. wbCount: 0,
  15878. wordCount: 0,
  15879. mindCount: 0,
  15880. askCount: 0,
  15881. noteCount: 0,
  15882. mindNetWorkCount: 0,
  15883. libraryCount: 0,
  15884. workCount: 0,
  15885. timeCount: 0,
  15886. answerCount: 0,
  15887. trainCount: 0,
  15888. evalCount: 0,
  15889. dialogImageUrl: "",
  15890. pictureDialog: false,
  15891. toolTypeList: [],
  15892. dialogVisible1: false,
  15893. dialogVisible2: false,
  15894. dialogVisible3: false,
  15895. dialogVisible6: false,
  15896. dialogVisible4: false,
  15897. isNoHomeWork: false,
  15898. dialogVisible5: false,
  15899. dialogVisible5Teacher: false,
  15900. dialogVisibleChoice: false,
  15901. dialogVisibleChoiceTeacher: false,
  15902. answerDialogVisible: false,
  15903. answerDialogVisibleTeacher: false,
  15904. juriVisible: false,
  15905. timeDialogVisible: false,
  15906. replyDialogVisible: false,
  15907. toolDialogVisible: false,
  15908. replyIndex: 0,
  15909. replyPid: "",
  15910. radio: [],
  15911. isAsk: false,
  15912. askJson: {
  15913. askCount: 1,
  15914. askTitle: "",
  15915. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  15916. },
  15917. testJson: {},
  15918. videoType: 0,
  15919. checkJson: [],
  15920. askList: [],
  15921. answerList: [],
  15922. navList: [],
  15923. addPzDialog: false,
  15924. pzConText: "",
  15925. worksStudent: [],
  15926. isCloseList: [],
  15927. workStudent: [],
  15928. groupStudent: [],
  15929. groupStudentUid: [],
  15930. noWorksS: [],
  15931. isWorksS: [],
  15932. noWorksStudent: [],
  15933. toolindex: 0,
  15934. toolDetailIndex: null,
  15935. groupIndex: 0,
  15936. workTypeB: false,
  15937. workTypeC: false,
  15938. isAnswer: false,
  15939. isHovered: false,
  15940. isHovered1: false,
  15941. isHovered2: false,
  15942. commentTagShow: 0,
  15943. timer: null,
  15944. timer2: null,
  15945. opertimer: null,
  15946. showType: 0,
  15947. fileType: 0,
  15948. showPDF: false,
  15949. noteName: "",
  15950. evaJuri: [],
  15951. evalua: "",
  15952. eTitle: "",
  15953. eName: "",
  15954. eJson: {},
  15955. fid: "", //一级
  15956. sid: "", //二级
  15957. tid: "", //二级
  15958. typeMode: 1,
  15959. eJSONNum: 0,
  15960. Etype: 1,
  15961. data: {
  15962. meta: {
  15963. name: "example",
  15964. author: "dd@163.com",
  15965. version: "0.2"
  15966. },
  15967. format: "node_array",
  15968. data: [{ id: "root", isroot: true, topic: "" }]
  15969. },
  15970. fullDialogVisible: false,
  15971. fulltype: "",
  15972. fullUrl: "",
  15973. commentIndexJson: {},
  15974. Stbodywidth: 0,
  15975. ispzType: 0,
  15976. pzType: 1,
  15977. wScore: 0,
  15978. scoreDetail: "",
  15979. videoStart: false,
  15980. recorder: null,
  15981. groupJson: {},
  15982. islock: false,
  15983. groupJson2: {},
  15984. dialogVisibleGroup: false,
  15985. dialogVisibleGroup2: false,
  15986. updateGroupArray: [],
  15987. updateGroupUser: {},
  15988. deleteGroupUser: [],
  15989. deleteGroupArray: {},
  15990. checkChair: "",
  15991. checkDeleteGroup: [],
  15992. inviteCode: "",
  15993. courseGroupStudent: [],
  15994. courseGroupStudentUid: [],
  15995. courseGroup: {},
  15996. isGroup: false,
  15997. toolIndex: null,
  15998. tool: {},
  15999. isWorkTool: [
  16000. 16,
  16001. 32,
  16002. 57,
  16003. 4,
  16004. 45,
  16005. 15,
  16006. 1,
  16007. 3,
  16008. 6,
  16009. 7,
  16010. 26,
  16011. 41,
  16012. 47,
  16013. 48,
  16014. 52,
  16015. 50,
  16016. 40
  16017. ], //, 40
  16018. videoJson: {},
  16019. toolType: 0,
  16020. checktoolArray: [],
  16021. vChapterData: [],
  16022. isUpdateToolDetail: false,
  16023. isUpdateToolDetail1: false,
  16024. updateToolDetailInner: "",
  16025. checkboxList: [],
  16026. plIndex: "",
  16027. worksSName2: "",
  16028. worksSid: "",
  16029. wordCloudData: [],
  16030. isPickStudent: [],
  16031. pzStype: 1,
  16032. downLoading: false,
  16033. greyType: false,
  16034. correctWord: [],
  16035. EnglishVoiceDialog: false,
  16036. englishVoiceJson: {},
  16037. englishVoiceJsonWork: [],
  16038. scoreList: {
  16039. listdata: [],
  16040. isScoreList: []
  16041. },
  16042. classRoomHelperWidth: "85px",
  16043. orgArray: [],
  16044. oidArray: [],
  16045. refreshKey: 0,
  16046. AIloading: [],
  16047. worksStudentCopy: [],
  16048. loopLoading: [],
  16049. markScoreVisible: false,
  16050. markScoretoolIndex: 0,
  16051. markScoreUid: "",
  16052. markScoreTit: {},
  16053. markfullscreen: false,
  16054. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16055. markScoreworksStudent: [],
  16056. finalMarkList: -1,
  16057. isaiNum: 0,
  16058. dialogVisibleTxt: false,
  16059. TxtMd: "",
  16060. languageSetting: 0, //0中文 1繁体 2英文
  16061. toolListS: [],
  16062. commentDetailCopy: "",
  16063. splitScreenData: {
  16064. isOpen: false,
  16065. userId: "",
  16066. uid: "",
  16067. myUid: "",
  16068. loading: false,
  16069. behavior: null
  16070. },
  16071. confirmOpenDig:false,
  16072. confirmOpenDigData:''
  16073. };
  16074. },
  16075. methods: {
  16076. getAIJ() {
  16077. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16078. let oid = res.data[0];
  16079. let org = res.data[1];
  16080. let oidArray = [];
  16081. let orgArray = [];
  16082. oid.forEach(i => oidArray.push(i.oid));
  16083. org.forEach(i => orgArray.push(i.oid));
  16084. this.orgArray = orgArray;
  16085. this.oidArray = oidArray;
  16086. });
  16087. },
  16088. // 评分弹框全屏
  16089. markFullScreenBtn() {
  16090. this.markfullscreen = !this.markfullscreen;
  16091. },
  16092. insertMemorandum(_html) {
  16093. //保存行为操作
  16094. //variable
  16095. //btn
  16096. let params = [
  16097. {
  16098. uid: this.userid,
  16099. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16100. content: _html
  16101. }
  16102. ];
  16103. console.log(params);
  16104. this.ajax
  16105. .post(
  16106. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16107. params
  16108. )
  16109. .then(res => {
  16110. if (res.data == 1) {
  16111. console.log("保存操作成功");
  16112. } else {
  16113. console.log("保存操作失败");
  16114. }
  16115. })
  16116. .catch(e => {
  16117. console.log("保存操作失败");
  16118. console.log(e);
  16119. });
  16120. },
  16121. // 获取文档id
  16122. createFileid(url) {
  16123. let _this = this;
  16124. return new Promise((resolve, reject) => {
  16125. try {
  16126. _this.ajax
  16127. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16128. url: url
  16129. })
  16130. .then(res => {
  16131. let _data = res.data.FunctionResponse;
  16132. if (_data.result && _data.result.id) {
  16133. resolve(_data.result.id);
  16134. } else {
  16135. resolve(1);
  16136. }
  16137. })
  16138. .catch(function(error) {
  16139. resolve(1);
  16140. });
  16141. } catch (e) {
  16142. resolve(1);
  16143. }
  16144. });
  16145. },
  16146. // 一键重置
  16147. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16148. let jude = false;
  16149. this.AIloading.forEach((e, index) => {
  16150. if (index == toolIndex) {
  16151. e.forEach(k => {
  16152. if (k.loading == true) jude = true;
  16153. });
  16154. }
  16155. });
  16156. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16157. this.$confirm("确认一键重置?")
  16158. .then(_ => {
  16159. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16160. })
  16161. .catch(_ => {});
  16162. },
  16163. // 一键重置
  16164. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16165. for (let index = 0; index < con.length; index++) {
  16166. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16167. }
  16168. this.$message.success("重置完成");
  16169. // this.refreshAssembly();
  16170. this.worksStudent.forEach((e, index) => {
  16171. if (toolIndex == index) {
  16172. console.log("6666");
  16173. e.forEach((i, inx) => {
  16174. let mk = `markSco${index}${inx}`;
  16175. this.$refs[mk][0].getData();
  16176. });
  16177. }
  16178. });
  16179. },
  16180. // 一键重置
  16181. allEmptySco(uid, stage, task, toolIndex) {
  16182. let params = [
  16183. {
  16184. cid: this.id,
  16185. uid: uid,
  16186. s: stage,
  16187. t: task,
  16188. tool: toolIndex ? toolIndex : ""
  16189. }
  16190. ];
  16191. return new Promise(resolve => {
  16192. this.ajax
  16193. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16194. .then(res => {
  16195. resolve(1);
  16196. })
  16197. .catch(err => {
  16198. console.error(err);
  16199. });
  16200. }).catch(error => {
  16201. console.log(error);
  16202. });
  16203. },
  16204. // AI评分循环打分
  16205. async loopEva(
  16206. con,
  16207. tit,
  16208. stage,
  16209. task,
  16210. toolIndex,
  16211. toolDetail,
  16212. taskDetail,
  16213. toolList
  16214. ) {
  16215. let jude = false;
  16216. this.AIloading.forEach((e, index) => {
  16217. if (index == toolIndex) {
  16218. e.forEach(k => {
  16219. if (k.loading == true) jude = true;
  16220. });
  16221. }
  16222. });
  16223. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16224. this.AIloading.forEach((e, index) => {
  16225. if (index == toolIndex) {
  16226. e.forEach(k => {
  16227. k.loading = true;
  16228. });
  16229. }
  16230. });
  16231. this.loopLoading[toolIndex].loading = true;
  16232. let laws = "";
  16233. let std = "";
  16234. let text = "";
  16235. if (toolList && toolList.eList && toolList.eList.length) {
  16236. for (let i = 0; i < toolList.eList.length; i++) {
  16237. if (toolList.eList[i].isai == 1) {
  16238. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16239. }
  16240. }
  16241. for (let i = 0; i < toolList.eList.length; i++) {
  16242. if (toolList.eList[i].isai == 1) {
  16243. let a = toolList.eList[i].detail;
  16244. if (isNaN(parseFloat(a)) && a) {
  16245. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16246. } else {
  16247. var result = a;
  16248. }
  16249. std += `纬度${i}:“${result}”, \n`;
  16250. }
  16251. }
  16252. for (let i = 0; i < toolList.eList.length; i++) {
  16253. if (toolList.eList[i].isai == 1) {
  16254. let a = toolList.eList[i].detail;
  16255. if (isNaN(parseFloat(a)) && a) {
  16256. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16257. } else {
  16258. var result = a;
  16259. }
  16260. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16261. }
  16262. }
  16263. } else {
  16264. let titRule = 0;
  16265. let titRule2 = 0;
  16266. tit.forEach((e, index) => {
  16267. if (!e.isai) {
  16268. e.isai = 1;
  16269. }
  16270. });
  16271. tit.forEach((e, index) => {
  16272. if (e.isai == 1) {
  16273. titRule2++;
  16274. if (e.rule) {
  16275. titRule++;
  16276. }
  16277. }
  16278. });
  16279. if (titRule != titRule2) {
  16280. this.AIloading.forEach((e, index) => {
  16281. if (index == toolIndex) {
  16282. e.forEach(k => {
  16283. k.loading = false;
  16284. });
  16285. }
  16286. });
  16287. this.loopLoading[toolIndex].loading = false;
  16288. this.$message.info("细则努力生成中,请稍候……");
  16289. return;
  16290. }
  16291. for (let i = 0; i < tit.length; i++) {
  16292. if (tit[i].isai == 1) {
  16293. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16294. }
  16295. }
  16296. for (let i = 0; i < tit.length; i++) {
  16297. if (tit[i].isai == 1) {
  16298. let a = tit[i].detail;
  16299. if (isNaN(parseFloat(a)) && a) {
  16300. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16301. } else {
  16302. var result = a;
  16303. }
  16304. std += `纬度${i}:“${result}”, \n`;
  16305. }
  16306. }
  16307. for (let i = 0; i < tit.length; i++) {
  16308. if (tit[i].isai == 1) {
  16309. let a = tit[i].detail;
  16310. if (isNaN(parseFloat(a)) && a) {
  16311. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16312. } else {
  16313. var result = a;
  16314. }
  16315. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16316. }
  16317. }
  16318. }
  16319. let forAllList = [];
  16320. // console.log('con',con)
  16321. for (let i = 0; i < con.length; i++) {
  16322. let _fileid = "";
  16323. let wok = con[i].works;
  16324. // console.log('con',con);
  16325. // console.log('con[i].type',con[i].type);
  16326. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16327. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16328. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16329. _fileid = await this.createFileid(con[i].works);
  16330. } else {
  16331. this.AIloading[toolIndex][i].loading = false;
  16332. continue;
  16333. }
  16334. }
  16335. // console.log('con[i].type',con[i])
  16336. // console.log('con[i].type',con[i].type)
  16337. if (_fileid == 1 || con[i].type == 3) {
  16338. this.AIloading[toolIndex][i].loading = false;
  16339. continue;
  16340. }
  16341. let msg = `NOTICE
  16342. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16343. Language: ${this.getLang()}
  16344. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16345. Instruction: Based on the context, follow "Format example", write content.
  16346. #目标#
  16347. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16348. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16349. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16350. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16351. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16352. #评分资料#
  16353. 评价标准:${std}
  16354. 评价细则:${laws}
  16355. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16356. 任务描述:${taskDetail}
  16357. 工具描述:${toolDetail}
  16358. #输出要求#
  16359. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16360. “评语”控制在150字左右。
  16361. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16362. #输出格式#
  16363. [${text}{'comment':'评语(150个汉字左右)'}]
  16364. `;
  16365. let mk = `markSco${toolIndex}${i}`;
  16366. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16367. msg,
  16368. con[i].userid,
  16369. stage,
  16370. task,
  16371. _fileid,
  16372. con[i].type
  16373. );
  16374. forAllList.push(mkAwit);
  16375. }
  16376. Promise.all(forAllList)
  16377. .then(values => {
  16378. console.log("values", values);
  16379. this.$message({
  16380. message: "评价成功",
  16381. type: "success"
  16382. });
  16383. // this.refreshKey++
  16384. // this.worksStudent.forEach((e,index)=>{
  16385. // if(toolIndex == index){
  16386. // e.forEach((i,inx)=>{
  16387. // let mk = `markSco${index}${inx}`
  16388. // this.$refs[mk][0].getData()
  16389. // })
  16390. // }
  16391. // })
  16392. this.AIloading[toolIndex].forEach(e => {
  16393. e.loading = false;
  16394. });
  16395. this.loopLoading[toolIndex].loading = false;
  16396. })
  16397. .catch(reason => {
  16398. console.error("reasonreasonreasonreasonreason", reason);
  16399. // 输出“失败原因”
  16400. });
  16401. },
  16402. // 获取评价细则
  16403. againEva(i, k) {
  16404. let msg = `NOTICE
  16405. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16406. Language: ${this.getLang()}
  16407. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16408. Instruction: Based on the context, follow "Format example", write content.
  16409. #Context
  16410. ##要求
  16411. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16412. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16413. ##制定标准资料
  16414. 评价维度:${
  16415. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16416. }
  16417. 维度描述:${
  16418. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16419. }
  16420. # Format example
  16421. ==
  16422. 0 星,作业内容与作业要求无关;
  16423. 1 星,没有识别问题和需求;
  16424. 2 星,问题或需求没有被清晰理解或准确识别;
  16425. 3 星,问题或需求的一部分被识别;
  16426. 4 星,问题或需求的大部分被识别;
  16427. 5 星,问题或需求都被识别。
  16428. ==
  16429. `;
  16430. let params = {
  16431. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16432. message: [
  16433. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16434. ],
  16435. session_name: uuidv4(),
  16436. userId: this.userid,
  16437. file_ids: [],
  16438. model: "gpt-4o-2024-11-20"
  16439. };
  16440. // console.log('params',params);
  16441. this.ajax
  16442. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16443. .then(response => {
  16444. let data = response.data.FunctionResponse;
  16445. // console.log("data", data);
  16446. if (data.message) {
  16447. let content = data.message;
  16448. var regex = new RegExp("==([^=]+)==");
  16449. let match = content.match(regex);
  16450. if (match) {
  16451. content = match[1].trim().replaceAll(" ", "");
  16452. // 获取匹配到的内容并去除两端空格
  16453. // console.log('contentInsideDoubleEquals', content);
  16454. if (
  16455. content.indexOf("0星") == -1 ||
  16456. content.indexOf("2星") == -1 ||
  16457. content.indexOf("3星") == -1 ||
  16458. content.indexOf("4星") == -1 ||
  16459. content.indexOf("5星") == -1
  16460. ) {
  16461. console.log("未有星级。");
  16462. this.againEva(i, k);
  16463. return;
  16464. }
  16465. // return
  16466. } else {
  16467. console.log("未找到匹配的内容。");
  16468. this.againEva(i, k);
  16469. return;
  16470. }
  16471. let elist = JSON.parse(
  16472. JSON.stringify(
  16473. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16474. )
  16475. );
  16476. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16477. elist.rule = JSON.parse(
  16478. JSON.stringify(content.replaceAll("#", ""))
  16479. );
  16480. this.$set(
  16481. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16482. k,
  16483. elist
  16484. );
  16485. this.$forceUpdate();
  16486. let params2 = [
  16487. {
  16488. cid: this.id,
  16489. chapters: JSON.stringify(this.chapInfoList),
  16490. uid: this.userid,
  16491. unitIndex: this.courseType
  16492. }
  16493. ];
  16494. this.ajax
  16495. .post(this.$store.state.api + "updateWorkNew4", params2)
  16496. .then(res => {
  16497. this.getCourseDetail(2);
  16498. this.$forceUpdate();
  16499. })
  16500. .catch(err => {
  16501. this.$message.error("网络不佳");
  16502. console.error(err);
  16503. });
  16504. // 进行进一步处理或解析outputContent
  16505. // } else {
  16506. // console.log("No match found for # Output section.");
  16507. // }
  16508. }
  16509. })
  16510. .catch(error => {
  16511. console.log(error);
  16512. });
  16513. },
  16514. // 关闭评分弹框
  16515. markScorehandleClose(done) {
  16516. // this.refreshKey++
  16517. this.worksStudent.forEach((e, index) => {
  16518. if (this.markScoretoolIndex == index) {
  16519. e.forEach((i, inx) => {
  16520. let mk = `markSco${index}${inx}`;
  16521. if (this.$refs[mk] && this.$refs[mk][0]) {
  16522. this.$refs[mk][0].getData();
  16523. }
  16524. });
  16525. }
  16526. });
  16527. done();
  16528. },
  16529. // 关闭txtMd预览弹框
  16530. handleCloseTxt(done) {
  16531. this.TxtMd = "";
  16532. done();
  16533. },
  16534. // Txt,Md作业查看
  16535. lookTxt(val) {
  16536. this.dialogVisibleTxt = true;
  16537. this.TxtMd = "";
  16538. getFile(val).then(res => {
  16539. this.TxtMd = res.data;
  16540. });
  16541. },
  16542. // 组件刷新
  16543. refreshAssembly(val) {
  16544. this.refreshKey++;
  16545. // console.log(this.refreshKey)
  16546. },
  16547. updateLoading(payload) {
  16548. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16549. },
  16550. handleShow(toolIndex, val) {
  16551. let mk = `markSco${toolIndex}${val}`;
  16552. // console.log(mk);
  16553. this.$refs[mk][0].getData();
  16554. },
  16555. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16556. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16557. // console.log('this.AIloading',this.AIloading)
  16558. let jude = false;
  16559. this.AIloading.forEach((e, index) => {
  16560. if (index == tidx) {
  16561. e.forEach(k => {
  16562. if (k.loading == true) jude = true;
  16563. });
  16564. }
  16565. });
  16566. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16567. if (val) return;
  16568. // console.log(uname,worksStudent,uid,tidx,titlist)
  16569. this.markScoreTit = titlist;
  16570. this.markScoreUid = uid;
  16571. this.toolListS = toolList;
  16572. this.markScoretoolIndex = tidx;
  16573. this.markScoreworksStudent = worksStudent;
  16574. this.markfullscreen = false;
  16575. this.markScoreVisible = true;
  16576. if (this.tType == 1) {
  16577. this.insertMemorandum(
  16578. `查看<span class="variable">${uname}</span>的作业`
  16579. );
  16580. }
  16581. },
  16582. // 点击markScore显示评分框
  16583. markScoreDig(data) {
  16584. // console.log('data',data)
  16585. let jude = false;
  16586. this.AIloading.forEach((e, index) => {
  16587. if (index == data.val2) {
  16588. e.forEach(k => {
  16589. if (k.loading == true) jude = true;
  16590. });
  16591. }
  16592. });
  16593. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16594. this.markScoreTit = data.tit;
  16595. this.markScoreUid = data.val;
  16596. this.markScoretoolIndex = data.val2;
  16597. this.markfullscreen = false;
  16598. this.markScoreVisible = true;
  16599. this.insertMemorandum(
  16600. `查看<span class="variable">${data.uname}</span>的作业`
  16601. );
  16602. },
  16603. // 刷新其他组件分数
  16604. refreshOther(v) {
  16605. // console.log('v',v)
  16606. this.AIloading[v.tid].forEach((e, i) => {
  16607. if (i == v.wid) {
  16608. e.loading = false;
  16609. }
  16610. });
  16611. // this.worksStudent.forEach((e,index)=>{
  16612. // if(toolIndex != index){
  16613. // e.forEach((i,inx)=>{
  16614. // let mk = `markSco${index}${inx}`
  16615. // this.$refs[mk][0].getData()
  16616. // })
  16617. // }
  16618. // })
  16619. },
  16620. updateDocSco(payload) {
  16621. // console.log('payload',payload)
  16622. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16623. },
  16624. gx() {
  16625. this.$forceUpdate();
  16626. },
  16627. isUpdateCorrect(t, p) {
  16628. if (this.greyType == false) {
  16629. this.isUpdateText = t;
  16630. this.greyType = true;
  16631. } else {
  16632. if (p == 1) {
  16633. this.newEnglishList.engText = this.isUpdateText;
  16634. } else if (p == 2) {
  16635. this.oldEnglishJson1.engText = this.isUpdateText;
  16636. } else if (p == 3) {
  16637. this.newEnglishList.engText = this.isUpdateText;
  16638. } else {
  16639. this.newEnglishList1[
  16640. this.newEngIndex
  16641. ].cWork.engText = this.isUpdateText;
  16642. }
  16643. this.greyType = false;
  16644. }
  16645. },
  16646. aiCorrect(t, p) {
  16647. let aiText = "";
  16648. const loading = this.$loading.service({
  16649. background: "rgba(255, 255, 255)",
  16650. target: document.querySelectorAll(".loadingText")[0]
  16651. });
  16652. let param = {
  16653. model: "gpt-3.5-turbo",
  16654. temperature: 0,
  16655. max_tokens: 2048,
  16656. top_p: 1,
  16657. frequency_penalty: 0,
  16658. presence_penalty: 0,
  16659. messages: [
  16660. {
  16661. role: "user",
  16662. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  16663. }
  16664. ],
  16665. uid: this.userid,
  16666. stream: false
  16667. };
  16668. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16669. res => {
  16670. if (
  16671. res.data.FunctionResponse &&
  16672. res.data.FunctionResponse.result &&
  16673. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16674. ) {
  16675. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16676. return;
  16677. }
  16678. aiText = res.data.FunctionResponse.choices[0].message.content;
  16679. aiText = aiText.replace(/%/g, "%25");
  16680. // let w = "";
  16681. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16682. // for(var k = 0;k<a.length;k++){
  16683. // //diffWordsWithSpace
  16684. // if(a.length > 1){
  16685. // if(a[k].added == true){
  16686. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16687. // }else if(a[k].removed == true){
  16688. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16689. // }else{
  16690. // w += '<span>' + a[k].value + '</span>';
  16691. // }
  16692. // }else{
  16693. // if(p == 1){
  16694. // w = this.newEnglishList.engText;
  16695. // }else if(p == 2){
  16696. // w = this.oldEnglishJson1.engText;
  16697. // }else if(p == 3){
  16698. // w = this.newEnglishList.engText;
  16699. // }else{
  16700. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16701. // }
  16702. // }
  16703. // }
  16704. if (p == 1) {
  16705. this.newEnglishList.engText = aiText;
  16706. } else if (p == 2) {
  16707. this.oldEnglishJson1.engText = aiText;
  16708. } else if (p == 3) {
  16709. this.newEnglishList.engText = aiText;
  16710. } else {
  16711. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16712. }
  16713. loading.close();
  16714. },
  16715. err => {
  16716. console.log(err);
  16717. loading.close();
  16718. }
  16719. );
  16720. },
  16721. addToolChoose() {
  16722. if (!this.checktoolArray.length) {
  16723. this.$message.error("请选择要添加的任务");
  16724. return;
  16725. }
  16726. if (
  16727. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16728. this.taskCount
  16729. ].toolChoose[0].tool.length
  16730. ) {
  16731. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16732. this.taskCount
  16733. ].toolChoose[0].tool = this.checktoolArray;
  16734. } else {
  16735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16736. this.taskCount
  16737. ].toolChoose.push({
  16738. tool: this.checktoolArray,
  16739. toolDetail: "",
  16740. toolType: 0,
  16741. askCount: 1,
  16742. askTitle: "",
  16743. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16744. });
  16745. }
  16746. let params = [
  16747. {
  16748. cid: this.id,
  16749. chapters: JSON.stringify(this.chapInfoList),
  16750. uid: this.userid,
  16751. unitIndex: this.courseType
  16752. }
  16753. ];
  16754. this.ajax
  16755. .post(this.$store.state.api + "updateWorkNew4", params)
  16756. .then(res => {
  16757. this.$message({
  16758. message: "添加成功",
  16759. type: "success"
  16760. });
  16761. this.checktoolArray = [];
  16762. this.getCourseDetail(2);
  16763. this.checkBz(
  16764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16765. this.taskCount
  16766. ].toolChoose.length - 1
  16767. );
  16768. this.toolDialogVisible = false;
  16769. this.refreshCourse();
  16770. this.$forceUpdate();
  16771. })
  16772. .catch(err => {
  16773. console.error(err);
  16774. });
  16775. },
  16776. checkBz(index) {
  16777. this.isUpdateToolDetail = false;
  16778. this.$forceUpdate();
  16779. setTimeout(() => {
  16780. document.scrollingElement.scrollTop =
  16781. document.querySelectorAll(".filebox")[index].offsetTop +
  16782. document.querySelector(".student_body").offsetTop;
  16783. }, 500);
  16784. },
  16785. updateToolDetail(i, type) {
  16786. if (
  16787. !this.isUpdateToolDetail1 &&
  16788. type == 2 &&
  16789. (this.courseDetail.userid == this.userid ||
  16790. (this.courseDetail.course_teacher &&
  16791. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  16792. ) {
  16793. this.toolDetailIndex = i;
  16794. this.isUpdateToolDetail1 = true;
  16795. setTimeout(() => {
  16796. this.updateToolDetailInner = JSON.parse(
  16797. JSON.stringify(
  16798. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16799. this.taskCount
  16800. ].toolChoose[i].toolDetail
  16801. )
  16802. );
  16803. document.querySelector(".checkTextArea").focus();
  16804. }, 0);
  16805. } else if (this.isUpdateToolDetail1 && type != 2) {
  16806. // this.toolDetailIndex = i;
  16807. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16808. this.taskCount
  16809. ].toolChoose[i].toolDetail = JSON.parse(
  16810. JSON.stringify(this.updateToolDetailInner)
  16811. );
  16812. let params = [
  16813. {
  16814. cid: this.id,
  16815. chapters: JSON.stringify(this.chapInfoList),
  16816. uid: this.userid,
  16817. unitIndex: this.courseType
  16818. }
  16819. ];
  16820. this.ajax
  16821. .post(this.$store.state.api + "updateWorkNew4", params)
  16822. .then(res => {
  16823. this.isUpdateToolDetail1 = false;
  16824. this.$message({
  16825. message: "修改成功",
  16826. type: "success"
  16827. });
  16828. this.toolDetailIndex = null;
  16829. this.updateToolDetailInner = "";
  16830. this.getCourseDetail(2);
  16831. this.$forceUpdate();
  16832. })
  16833. .catch(err => {
  16834. console.error(err);
  16835. });
  16836. } else if (this.isUpdateToolDetail1 && type == 2) {
  16837. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16838. this.taskCount
  16839. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16840. JSON.stringify(this.updateToolDetailInner)
  16841. );
  16842. let params = [
  16843. {
  16844. cid: this.id,
  16845. chapters: JSON.stringify(this.chapInfoList),
  16846. uid: this.userid,
  16847. unitIndex: this.courseType
  16848. }
  16849. ];
  16850. this.ajax
  16851. .post(this.$store.state.api + "updateWorkNew4", params)
  16852. .then(res => {
  16853. this.$message({
  16854. message: "修改成功",
  16855. type: "success"
  16856. });
  16857. this.toolDetailIndex = i;
  16858. this.isUpdateToolDetail1 = true;
  16859. setTimeout(() => {
  16860. this.updateToolDetailInner = JSON.parse(
  16861. JSON.stringify(
  16862. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16863. this.taskCount
  16864. ].toolChoose[i].toolDetail
  16865. )
  16866. );
  16867. document.querySelector(".checkTextArea").focus();
  16868. }, 0);
  16869. this.getCourseDetail(2);
  16870. this.$forceUpdate();
  16871. })
  16872. .catch(err => {
  16873. console.error(err);
  16874. });
  16875. }
  16876. },
  16877. jumpGj(i, j, k, l) {
  16878. this.refreshAssembly();
  16879. for (var z = 0; z < this.navList.length; z++) {
  16880. for (var q = 0; q < this.navList[z].task.length; q++) {
  16881. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16882. this.navList[z].task[q].tool[w].isTool = false;
  16883. }
  16884. }
  16885. }
  16886. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  16887. .isTool;
  16888. var a = document.scrollingElement;
  16889. let target = document.querySelector(`#gj${k}`);
  16890. if (target) {
  16891. // target.scrollIntoView(true);
  16892. // setTimeout(() => {
  16893. // a.scrollTop = a.scrollTop - 150;
  16894. // }, 0);
  16895. target.scrollIntoView();
  16896. setTimeout(()=>{
  16897. let scrollBody = document.querySelector('.body_student').parentElement
  16898. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16899. }, 0);
  16900. }
  16901. this.navId = "";
  16902. let flag = this.courseType == i;
  16903. let flag2 = this.taskCount == j;
  16904. if (l) {
  16905. this.courseType = i;
  16906. // this.navId = l;
  16907. this.taskCount = j;
  16908. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16909. this.selectPz();
  16910. this.getHomeWork();
  16911. this.getCourseDetail(2);
  16912. if (flag) {
  16913. if (flag2) {
  16914. this.insertMemorandum(
  16915. `选择<span class="variable">工具${k + 1}:${
  16916. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16917. }</span>`
  16918. );
  16919. } else {
  16920. this.insertMemorandum(
  16921. `选择<span class="variable">任务${j + 1}${
  16922. this.navList[i].task[j].taskName
  16923. ? ":" + this.navList[i].task[j].taskName
  16924. : ""
  16925. }</span>→<span class="variable">工具${k + 1}:${
  16926. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16927. }</span>`
  16928. );
  16929. }
  16930. } else {
  16931. this.insertMemorandum(
  16932. `选择<span class="variable">阶段${i + 1}${
  16933. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  16934. }</span>→<span class="variable">任务${j + 1}${
  16935. this.navList[i].task[j].taskName
  16936. ? ":" + this.navList[i].task[j].taskName
  16937. : ""
  16938. }</span>→<span class="variable">工具${k + 1}:${
  16939. this.toolsList[this.navList[i].task[j].tool[k].tool]
  16940. }</span>`
  16941. );
  16942. }
  16943. }
  16944. },
  16945. addTools2(i) {
  16946. if (i == 4) {
  16947. // this.openTools2(4);
  16948. this.$message.error("暂未开放");
  16949. return;
  16950. }
  16951. if (i == 45) {
  16952. // this.openTools2(45);
  16953. this.$message.error("暂未开放");
  16954. return;
  16955. }
  16956. if (i == 47) {
  16957. // this.openTools2(47);
  16958. this.$message.error("暂未开放");
  16959. return;
  16960. }
  16961. if (i == 49) {
  16962. // this.openTools2(49);
  16963. this.$message.error("暂未开放");
  16964. return;
  16965. }
  16966. if (i == 62) {
  16967. // this.openTools(itemTaskIndex, 62, toolIndex);
  16968. this.$message.error("暂未开放");
  16969. return;
  16970. }
  16971. if (i == 15) {
  16972. // this.openTools(itemTaskIndex, 15, toolIndex);
  16973. this.$message.error("暂未开放");
  16974. return;
  16975. }
  16976. if (i == 40) {
  16977. // this.openTools(itemTaskIndex, 40, toolIndex);
  16978. this.$message.error("暂未开放");
  16979. return;
  16980. }
  16981. if (i == 41) {
  16982. // this.openTools(itemTaskIndex, 41, toolIndex);
  16983. this.$message.error("暂未开放");
  16984. return;
  16985. }
  16986. if (i == 42) {
  16987. // this.openTools(itemTaskIndex, 42, toolIndex);
  16988. this.$message.error("暂未开放");
  16989. return;
  16990. }
  16991. if (this.checktoolArray.length > 0) {
  16992. if (this.checktoolArray.indexOf(i) != -1) {
  16993. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16994. } else {
  16995. this.checktoolArray = [];
  16996. this.checktoolArray.push(i);
  16997. }
  16998. } else {
  16999. this.checktoolArray.push(i);
  17000. }
  17001. this.$forceUpdate();
  17002. },
  17003. jump() {
  17004. window.parent.postMessage({ tools: "43" }, "*");
  17005. },
  17006. getUpdateMore(f, checkboxList, searchTN, index) {
  17007. this.dialogVisibleMember = f;
  17008. this.checkboxList = checkboxList;
  17009. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17010. this.plIndex = index;
  17011. },
  17012. setPlname(a) {
  17013. if (this.plworkFile.length) {
  17014. this.plworkFile[this.plIndex].username = a;
  17015. } else {
  17016. this.worksSName = a;
  17017. }
  17018. this.dialogVisibleMember = false;
  17019. },
  17020. previewImg(url, w) {
  17021. this.$hevueImgPreview(url);
  17022. if (w) {
  17023. this.insertMemorandum(
  17024. `查看<span class="variable">${w.sName}</span>的作业`
  17025. );
  17026. }
  17027. },
  17028. checkImg(list) {
  17029. if (!list.length) {
  17030. return;
  17031. }
  17032. this.$hevueImgPreview({
  17033. multiple: true, // 开启多图预览模式
  17034. imgList: list // 需要预览的多图数组
  17035. });
  17036. },
  17037. change(val) {
  17038. console.log(val);
  17039. },
  17040. goTo(path) {
  17041. this.$router.push(path);
  17042. },
  17043. handlePictureCardPreview(url) {
  17044. this.dialogImageUrl = url;
  17045. this.pictureDialog = true;
  17046. },
  17047. clean(type) {
  17048. if (type == 1) {
  17049. this.studyJuri[0].cover.splice(0, 1);
  17050. } else if (type == 2) {
  17051. this.studyJuri[0].upVedio.splice(0, 1);
  17052. } else {
  17053. this.studyJuri[0].upFile.splice(0, 1);
  17054. }
  17055. },
  17056. clean2(index) {
  17057. this.plworkFile.splice(index, 1);
  17058. },
  17059. handleClose(done) {
  17060. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17061. this.videoDetail.sources[0].src = "";
  17062. }
  17063. this.commentIndexJson = {};
  17064. done();
  17065. },
  17066. fullTools() {
  17067. this.full = !this.full;
  17068. },
  17069. imgChange(file, fileList, type) {
  17070. if (type == 1) {
  17071. var _tmp = this.studyJuri[0].cover;
  17072. } else if (type == 2) {
  17073. var _tmp = this.studyJuri[0].upVedio;
  17074. } else {
  17075. var _tmp = this.studyJuri[0].upFile;
  17076. }
  17077. this.noneBtnImg = _tmp.length >= 1;
  17078. },
  17079. setContent(bool) {
  17080. this.contentDialog = bool;
  17081. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17082. document.querySelector(".workd_media").style.height = "650px";
  17083. } else if (document.querySelector(".workd_media")) {
  17084. document.querySelector(".workd_media").style.height = "auto";
  17085. }
  17086. },
  17087. setContent2(bool) {
  17088. this.mlDialog = bool;
  17089. if (
  17090. bool &&
  17091. this.contentDialog &&
  17092. document.querySelector(".workd_media")
  17093. ) {
  17094. document.querySelector(".workd_media").style.height = "650px";
  17095. } else if (document.querySelector(".workd_media")) {
  17096. document.querySelector(".workd_media").style.height = "auto";
  17097. }
  17098. },
  17099. openToolAll() {
  17100. this.toolDialogVisible = true;
  17101. },
  17102. addImg(e) {
  17103. var el = e.currentTarget;
  17104. // this.$message.success('触发上传')
  17105. el.getElementsByTagName("input")[0].click();
  17106. e.target.value = "";
  17107. },
  17108. addSelectAnswer() {
  17109. let params = [
  17110. {
  17111. uid: this.userid,
  17112. cid: this.id,
  17113. stage: this.courseType,
  17114. task: this.taskCount,
  17115. tool: this.toolindex,
  17116. content: this.selectAnswer.answer,
  17117. type: 7
  17118. }
  17119. ];
  17120. this.ajax
  17121. .post(this.$store.state.api + "addCourseWorks", params)
  17122. .then(res => {
  17123. this.$message({
  17124. message: "提交成功",
  17125. type: "success"
  17126. });
  17127. this.dialogVisibleSelect = false;
  17128. // this.selectAnswer = {};
  17129. this.selectSWorks();
  17130. this.selectStudent();
  17131. })
  17132. .catch(err => {
  17133. this.$message.error("提交失败");
  17134. console.error(err);
  17135. });
  17136. },
  17137. addSelectAnswerTeacher() {
  17138. let params = [
  17139. {
  17140. uid: this.sStudent.userid,
  17141. cid: this.id,
  17142. stage: this.courseType,
  17143. task: this.taskCount,
  17144. tool: this.toolindex,
  17145. content: this.selectAnswer.answer,
  17146. type: 7
  17147. }
  17148. ];
  17149. this.ajax
  17150. .post(this.$store.state.api + "addCourseWorks", params)
  17151. .then(res => {
  17152. this.$message({
  17153. message: "提交成功",
  17154. type: "success"
  17155. });
  17156. this.dialogVisibleSelectTeacher = false;
  17157. // this.selectAnswer = {};
  17158. this.selectSWorks();
  17159. this.selectStudent();
  17160. })
  17161. .catch(err => {
  17162. this.$message.error("提交失败");
  17163. console.error(err);
  17164. });
  17165. },
  17166. addSenWorks() {
  17167. for (var i = 0; i < this.sentenceList.length; i++) {
  17168. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17169. if (
  17170. this.sentenceList[i].chooseSenList[j] == undefined ||
  17171. this.sentenceList[i].chooseSenList[j] == ""
  17172. ) {
  17173. this.$message.error("请将答案填写完整!");
  17174. return;
  17175. }
  17176. }
  17177. }
  17178. let params = [
  17179. {
  17180. uid: this.userid,
  17181. cid: this.id,
  17182. stage: this.courseType,
  17183. task: this.taskCount,
  17184. tool: this.toolindex,
  17185. content: JSON.stringify(this.sentenceList),
  17186. type: 9
  17187. }
  17188. ];
  17189. this.ajax
  17190. .post(this.$store.state.api + "addCourseWorks", params)
  17191. .then(res => {
  17192. this.$message({
  17193. message: "提交成功",
  17194. type: "success"
  17195. });
  17196. this.dialogVisibleSentence = false;
  17197. // this.selectAnswer = {};
  17198. this.selectSWorks();
  17199. this.selectStudent();
  17200. })
  17201. .catch(err => {
  17202. this.$message.error("提交失败");
  17203. console.error(err);
  17204. });
  17205. },
  17206. addSenWorksTeacher() {
  17207. for (var i = 0; i < this.sentenceList.length; i++) {
  17208. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17209. if (
  17210. this.sentenceList[i].chooseSenList[j] == undefined ||
  17211. this.sentenceList[i].chooseSenList[j] == ""
  17212. ) {
  17213. this.$message.error("请将答案填写完整!");
  17214. return;
  17215. }
  17216. }
  17217. }
  17218. let params = [
  17219. {
  17220. uid: this.sStudent.userid,
  17221. cid: this.id,
  17222. stage: this.courseType,
  17223. task: this.taskCount,
  17224. tool: this.toolindex,
  17225. content: JSON.stringify(this.sentenceList),
  17226. type: 9
  17227. }
  17228. ];
  17229. this.ajax
  17230. .post(this.$store.state.api + "addCourseWorks", params)
  17231. .then(res => {
  17232. this.$message({
  17233. message: "提交成功",
  17234. type: "success"
  17235. });
  17236. this.dialogVisibleSentenceTeacher = false;
  17237. // this.selectAnswer = {};
  17238. this.selectSWorks();
  17239. this.selectStudent();
  17240. })
  17241. .catch(err => {
  17242. this.$message.error("提交失败");
  17243. console.error(err);
  17244. });
  17245. },
  17246. returnTableText() {
  17247. this.$confirm("确定还原此模板吗?", "提示", {
  17248. confirmButtonText: "确定",
  17249. cancelButtonText: "取消",
  17250. type: "warning"
  17251. })
  17252. .then(() => {
  17253. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17254. })
  17255. .catch(() => {});
  17256. },
  17257. addTableWorks() {
  17258. let params = [
  17259. {
  17260. uid: this.userid,
  17261. cid: this.id,
  17262. stage: this.courseType,
  17263. task: this.taskCount,
  17264. tool: this.toolindex,
  17265. content: JSON.stringify(this.tableJson),
  17266. type: 10
  17267. }
  17268. ];
  17269. this.ajax
  17270. .post(this.$store.state.api + "addCourseWorks", params)
  17271. .then(res => {
  17272. this.$message({
  17273. message: "提交成功",
  17274. type: "success"
  17275. });
  17276. this.dialogVisibleTable = false;
  17277. // this.selectAnswer = {};
  17278. this.selectSWorks();
  17279. this.selectStudent();
  17280. })
  17281. .catch(err => {
  17282. this.$message.error("提交失败");
  17283. console.error(err);
  17284. });
  17285. },
  17286. tableRowClassName({ row, rowIndex }) {
  17287. if ((rowIndex + 1) % 2 === 0) {
  17288. return "even_row";
  17289. } else {
  17290. return "";
  17291. }
  17292. },
  17293. addTableWorksTeacher() {
  17294. let params = [
  17295. {
  17296. uid: this.sStudent.userid,
  17297. cid: this.id,
  17298. stage: this.courseType,
  17299. task: this.taskCount,
  17300. tool: this.toolindex,
  17301. content: JSON.stringify(this.tableJson),
  17302. type: 10
  17303. }
  17304. ];
  17305. this.ajax
  17306. .post(this.$store.state.api + "addCourseWorks", params)
  17307. .then(res => {
  17308. this.$message({
  17309. message: "提交成功",
  17310. type: "success"
  17311. });
  17312. this.dialogVisibleTableTeacher = false;
  17313. // this.selectAnswer = {};
  17314. this.selectSWorks();
  17315. this.selectStudent();
  17316. })
  17317. .catch(err => {
  17318. this.$message.error("提交失败");
  17319. console.error(err);
  17320. });
  17321. },
  17322. returnWordText() {
  17323. this.$confirm("确定还原此模板吗?", "提示", {
  17324. confirmButtonText: "确定",
  17325. cancelButtonText: "取消",
  17326. type: "warning"
  17327. })
  17328. .then(() => {
  17329. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17330. })
  17331. .catch(() => {});
  17332. },
  17333. addWordWorks() {
  17334. let params = [
  17335. {
  17336. uid: this.userid,
  17337. cid: this.id,
  17338. stage: this.courseType,
  17339. task: this.taskCount,
  17340. tool: this.toolindex,
  17341. content: JSON.stringify(this.wordJson),
  17342. type: 13,
  17343. atool: 52
  17344. }
  17345. ];
  17346. this.ajax
  17347. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17348. .then(res => {
  17349. this.$message({
  17350. message: "提交成功",
  17351. type: "success"
  17352. });
  17353. this.dialogVisibleWord = false;
  17354. // this.selectAnswer = {};
  17355. this.selectSWorks();
  17356. this.selectStudent();
  17357. })
  17358. .catch(err => {
  17359. this.$message.error("提交失败");
  17360. console.error(err);
  17361. });
  17362. },
  17363. addWordWorksTeacher() {
  17364. let params = [
  17365. {
  17366. uid: this.sStudent.userid,
  17367. cid: this.id,
  17368. stage: this.courseType,
  17369. task: this.taskCount,
  17370. tool: this.toolindex,
  17371. content: JSON.stringify(this.wordJson),
  17372. type: 13,
  17373. atool: 52
  17374. }
  17375. ];
  17376. this.ajax
  17377. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17378. .then(res => {
  17379. this.$message({
  17380. message: "提交成功",
  17381. type: "success"
  17382. });
  17383. this.dialogVisibleWordTeacher = false;
  17384. // this.selectAnswer = {};
  17385. this.selectSWorks();
  17386. this.selectStudent();
  17387. })
  17388. .catch(err => {
  17389. this.$message.error("提交失败");
  17390. console.error(err);
  17391. });
  17392. },
  17393. addCourseWorksCopy(i) {
  17394. let arr = this.workStudent[this.toolindex].filter(e => {
  17395. return (e.userid = this.userid);
  17396. });
  17397. if (arr.length > 0) {
  17398. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17399. confirmButtonText: "确定",
  17400. cancelButtonText: "取消",
  17401. type: "warning"
  17402. })
  17403. .then(() => {
  17404. this.addCourseWorks(i);
  17405. })
  17406. .catch(() => {});
  17407. } else {
  17408. this.addCourseWorks(i);
  17409. }
  17410. },
  17411. addCourseWorks(i) {
  17412. var typesql;
  17413. if (this.fileType === 0) {
  17414. typesql = 1;
  17415. } else if (this.fileType === 1) {
  17416. typesql = 4;
  17417. } else if (this.fileType === 2) {
  17418. typesql = 5;
  17419. } else if (this.fileType === 3) {
  17420. typesql = 12;
  17421. }
  17422. if (!this.studyJuri[0].cover[0].url) {
  17423. this.$message.error("请上传文件");
  17424. return;
  17425. }
  17426. let params = [
  17427. {
  17428. uid: this.userid,
  17429. cid: this.id,
  17430. stage: this.courseType,
  17431. task: i,
  17432. tool: this.toolindex,
  17433. content: this.studyJuri[0].cover[0].url,
  17434. type: typesql
  17435. }
  17436. ];
  17437. this.ajax
  17438. .post(this.$store.state.api + "addCourseWorksR1", params)
  17439. .then(res => {
  17440. this.$message({
  17441. message: "提交成功",
  17442. type: "success"
  17443. });
  17444. this.studyJuri[0].cover = [];
  17445. this.dialogVisible = false;
  17446. this.getCourseDetail(2);
  17447. })
  17448. .catch(err => {
  17449. this.$message.error("提交失败");
  17450. console.error(err);
  17451. });
  17452. },
  17453. addCourseWorksPl(i) {
  17454. let _files = this.plworkFile;
  17455. var c = 1;
  17456. for (var k = 0; k < _files.length; k++) {
  17457. if (!_files[k].username) {
  17458. c = 2;
  17459. }
  17460. }
  17461. if (c == 2) {
  17462. this.$message.error("请填写学生姓名");
  17463. return;
  17464. }
  17465. let params = [
  17466. {
  17467. ateacher: this.userid,
  17468. cid: this.id,
  17469. stage: this.courseType,
  17470. task: i,
  17471. tool: this.toolindex,
  17472. content: JSON.stringify(_files)
  17473. }
  17474. ];
  17475. this.ajax
  17476. .post(this.$store.state.api + "addCourseWorksPl", params)
  17477. .then(res => {
  17478. this.$message({
  17479. message: "提交成功",
  17480. type: "success"
  17481. });
  17482. this.plworkFile = [];
  17483. this.dialogVisiblePl = false;
  17484. this.getCourseDetail(2);
  17485. })
  17486. .catch(err => {
  17487. this.$message.error("提交失败");
  17488. console.error(err);
  17489. });
  17490. },
  17491. addCourseWorks2(i) {
  17492. var typesql;
  17493. if (this.fileType === 0) {
  17494. typesql = 0;
  17495. } else if (this.fileType === 1) {
  17496. typesql = 1;
  17497. } else if (this.fileType === 2) {
  17498. typesql = 3;
  17499. } else if (this.fileType === 3) {
  17500. typesql = 12;
  17501. }
  17502. if (!this.studyJuri[0].cover[0].url) {
  17503. this.$message.error("请上传文件");
  17504. return;
  17505. }
  17506. let params = [
  17507. {
  17508. uid: this.userid,
  17509. cid: this.id,
  17510. stage: this.courseType,
  17511. task: i,
  17512. tool: this.toolindex,
  17513. content: JSON.stringify({
  17514. type: typesql,
  17515. groupIndex: this.groupIndex,
  17516. url: this.studyJuri[0].cover[0].url
  17517. }),
  17518. type: 11,
  17519. atool: 49,
  17520. text: ""
  17521. }
  17522. ];
  17523. this.ajax
  17524. .post(this.$store.state.api + "addCourseWorks5", params)
  17525. .then(res => {
  17526. this.$message({
  17527. message: "提交成功",
  17528. type: "success"
  17529. });
  17530. this.studyJuri[0].cover = [];
  17531. this.dialogVisibleGroupWork = false;
  17532. this.getCourseDetail(2);
  17533. })
  17534. .catch(err => {
  17535. this.$message.error("提交失败");
  17536. console.error(err);
  17537. });
  17538. },
  17539. addEnglishWork() {
  17540. this.myAnList = this.$refs["engJson"].myAnswerList;
  17541. if (
  17542. !this.myAnList.engTitle ||
  17543. !this.myAnList.engText ||
  17544. this.myAnList.engTitle == "" ||
  17545. this.myAnList.engText == ""
  17546. ) {
  17547. this.$message.error("请输入作文标题和正文!");
  17548. return;
  17549. }
  17550. let params = [
  17551. {
  17552. uid: this.userid,
  17553. cid: this.id,
  17554. stage: this.courseType,
  17555. task: this.taskCount,
  17556. tool: this.englishToolIndex,
  17557. content: JSON.stringify(this.myAnList),
  17558. type: 16,
  17559. atool: 69,
  17560. text: ""
  17561. }
  17562. ];
  17563. this.ajax
  17564. .post(this.$store.state.api + "addCourseWorks5", params)
  17565. .then(res => {
  17566. this.$message({
  17567. message: "提交成功",
  17568. type: "success"
  17569. });
  17570. this.myAnList = {};
  17571. this.englishList = {};
  17572. this.englishToolIndex = 0;
  17573. this.engDialogVisible = false;
  17574. this.selectSWorks();
  17575. this.selectStudent();
  17576. })
  17577. .catch(err => {
  17578. this.$message.error("提交失败");
  17579. console.error(err);
  17580. });
  17581. },
  17582. addCourseWorksGong(i, data, tool) {
  17583. let params = [
  17584. {
  17585. uid: this.userid,
  17586. cid: this.id,
  17587. stage: this.courseType,
  17588. task: this.taskCount,
  17589. tool: i,
  17590. content: data,
  17591. type: 12,
  17592. atool: tool,
  17593. text: ""
  17594. }
  17595. ];
  17596. this.ajax
  17597. .post(this.$store.state.api + "addCourseWorks5", params)
  17598. .then(res => {
  17599. this.$message({
  17600. message: "提交成功",
  17601. type: "success"
  17602. });
  17603. this.studyJuri[0].cover = [];
  17604. this.selectSWorks();
  17605. this.selectStudent();
  17606. })
  17607. .catch(err => {
  17608. this.$message.error("提交失败");
  17609. console.error(err);
  17610. });
  17611. },
  17612. addCourseWorksGongTeacher(i, data, tool) {
  17613. let params = [
  17614. {
  17615. uid: this.sStudent.userid,
  17616. cid: this.id,
  17617. stage: this.courseType,
  17618. task: this.taskCount,
  17619. tool: i,
  17620. content: data,
  17621. type: 12,
  17622. atool: tool,
  17623. text: ""
  17624. }
  17625. ];
  17626. this.ajax
  17627. .post(this.$store.state.api + "addCourseWorks5", params)
  17628. .then(res => {
  17629. this.$message({
  17630. message: "提交成功",
  17631. type: "success"
  17632. });
  17633. this.studyJuri[0].cover = [];
  17634. this.dialogVisibleWorks = false;
  17635. this.selectSWorks();
  17636. this.selectStudent();
  17637. })
  17638. .catch(err => {
  17639. this.$message.error("提交失败");
  17640. console.error(err);
  17641. });
  17642. },
  17643. addCourseWorksGongPl(i, data, tool, type) {
  17644. let params = [
  17645. {
  17646. uid: this.sStudent.userid,
  17647. cid: this.id,
  17648. stage: this.courseType,
  17649. task: this.taskCount,
  17650. tool: i,
  17651. content: data,
  17652. type: type,
  17653. atool: tool,
  17654. text: ""
  17655. }
  17656. ];
  17657. this.ajax
  17658. .post(this.$store.state.api + "addCourseWorks5", params)
  17659. .then(res => {
  17660. this.$message({
  17661. message: "提交成功",
  17662. type: "success"
  17663. });
  17664. this.studyJuri[0].cover = [];
  17665. this.dialogVisibleWorks = false;
  17666. this.selectSWorks();
  17667. this.selectStudent();
  17668. })
  17669. .catch(err => {
  17670. this.$message.error("提交失败");
  17671. console.error(err);
  17672. });
  17673. },
  17674. addCourseWorksTeacher(i) {
  17675. var typesql;
  17676. if (this.sTool == 32) {
  17677. this.addCourseWorksGongTeacher(
  17678. this.toolindex,
  17679. this.studyJuri[0].cover[0].url,
  17680. this.sTool
  17681. );
  17682. return;
  17683. }
  17684. if (this.fileType === 0) {
  17685. typesql = 1;
  17686. } else if (this.fileType === 1) {
  17687. typesql = 4;
  17688. } else if (this.fileType === 2) {
  17689. typesql = 5;
  17690. } else if (this.fileType === 3) {
  17691. typesql = 12;
  17692. }
  17693. if (this.sTool == 50) {
  17694. this.addCourseWorksGongPl(
  17695. this.toolindex,
  17696. this.studyJuri[0].cover[0].url,
  17697. this.sTool,
  17698. typesql
  17699. );
  17700. return;
  17701. }
  17702. if (!this.studyJuri[0].cover[0].url) {
  17703. this.$message.error("请上传文件");
  17704. return;
  17705. }
  17706. let params = [
  17707. {
  17708. uid: this.sStudent.userid,
  17709. cid: this.id,
  17710. stage: this.courseType,
  17711. task: i,
  17712. tool: this.toolindex,
  17713. content: this.studyJuri[0].cover[0].url,
  17714. type: typesql,
  17715. ateacher: this.userid
  17716. }
  17717. ];
  17718. this.ajax
  17719. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17720. .then(res => {
  17721. this.$message({
  17722. message: "提交成功",
  17723. type: "success"
  17724. });
  17725. this.studyJuri[0].cover = [];
  17726. this.dialogVisibleWorks = false;
  17727. this.getCourseDetail(2);
  17728. })
  17729. .catch(err => {
  17730. this.$message.error("提交失败");
  17731. console.error(err);
  17732. });
  17733. },
  17734. selectUploadStudent(type) {
  17735. const loading = this.$loading.service({
  17736. background: "rgba(255, 255, 255, 0.7)",
  17737. target: document.body
  17738. });
  17739. let params = {
  17740. cid: this.uploadCid,
  17741. oid: this.oid,
  17742. cn: ""
  17743. };
  17744. this.ajax
  17745. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17746. .then(res => {
  17747. loading.close();
  17748. var studentK = [];
  17749. if (this.isWorksS[this.toolindex].length > 0) {
  17750. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17751. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17752. }
  17753. studentK = studentK.join(",");
  17754. }
  17755. this.uploadStudentJuri = res.data[0].filter(el => {
  17756. return studentK.indexOf(el.userid) == -1;
  17757. });
  17758. if (this.worksSName && this.worksSid) {
  17759. this.uploadStudentJuri.push({
  17760. userid: this.worksSid,
  17761. name: this.worksSName
  17762. });
  17763. }
  17764. if (type == 1) {
  17765. this.plworkFile = [];
  17766. this.dialogVisibleSname = true;
  17767. } else if (type == 2) {
  17768. this.dialogVisiblePl = true;
  17769. }
  17770. })
  17771. .catch(err => {
  17772. loading.close();
  17773. console.error(err);
  17774. });
  17775. },
  17776. selectPickStudent() {
  17777. const loading = this.$loading.service({
  17778. background: "rgba(255, 255, 255, 0.7)",
  17779. target: document.body
  17780. });
  17781. let params = {
  17782. cid: this.uploadCid,
  17783. oid: this.oid,
  17784. cn: ""
  17785. };
  17786. this.ajax
  17787. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17788. .then(res => {
  17789. loading.close();
  17790. this.uploadStudentJuri = res.data[0];
  17791. this.dialogVisiblePickPeople = true;
  17792. })
  17793. .catch(err => {
  17794. loading.close();
  17795. console.error(err);
  17796. });
  17797. },
  17798. arrayToArray(arrayo, arrayt) {
  17799. let array1 = arrayo;
  17800. let array2 = arrayt;
  17801. let commonElements = [];
  17802. for (let i = 0; i < array1.length; i++) {
  17803. for (let j = 0; j < array2.length; j++) {
  17804. if (array1[i] === array2[j]) {
  17805. commonElements.push(array1[i]);
  17806. }
  17807. }
  17808. }
  17809. return commonElements;
  17810. },
  17811. selectWorksStudent() {
  17812. let params = {
  17813. oid: this.oid,
  17814. cid: this.courseDetail.juri
  17815. };
  17816. this.ajax
  17817. .get(this.$store.state.api + "selectWorksStudent", params)
  17818. .then(res => {
  17819. var a = res.data[0];
  17820. for (var i = 0; i < this.isWorksS.length; i++) {
  17821. this.noWorksS[i] = [];
  17822. var studentK = [];
  17823. if (this.isWorksS[i].length > 0) {
  17824. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17825. studentK.push(this.isWorksS[i][z].uid);
  17826. }
  17827. studentK = studentK.join(",");
  17828. for (var j = 0; j < a.length; j++) {
  17829. if (studentK.indexOf(a[j].userid) == -1) {
  17830. if (this.tcid) {
  17831. // a[j].classid.indexOf(this.tcid) != -1
  17832. if (
  17833. this.arrayToArray(
  17834. a[j].classid.split(","),
  17835. this.tcid.split(",")
  17836. ).length
  17837. ) {
  17838. this.noWorksS[i].push({
  17839. student: a[j].name,
  17840. userid: a[j].userid
  17841. });
  17842. }
  17843. } else {
  17844. this.noWorksS[i].push({
  17845. student: a[j].name,
  17846. userid: a[j].userid
  17847. });
  17848. }
  17849. }
  17850. }
  17851. } else {
  17852. for (var k = 0; k < a.length; k++) {
  17853. if (this.tcid) {
  17854. if (
  17855. this.arrayToArray(
  17856. a[k].classid.split(","),
  17857. this.tcid.split(",")
  17858. ).length
  17859. ) {
  17860. this.noWorksS[i].push({
  17861. student: a[k].name,
  17862. userid: a[k].userid
  17863. });
  17864. }
  17865. } else {
  17866. this.noWorksS[i].push({
  17867. student: a[k].name,
  17868. userid: a[k].userid
  17869. });
  17870. }
  17871. }
  17872. }
  17873. }
  17874. this.$forceUpdate();
  17875. if (
  17876. Object.keys(this.commentDetail).length &&
  17877. Object.keys(this.commentIndexJson).length &&
  17878. !this.dialogVisibleScore &&
  17879. !this.dialogVisibleENScore
  17880. ) {
  17881. let a = 1;
  17882. let c = this.commentIndexJson;
  17883. if (
  17884. this.commentIndexJson.gindex ||
  17885. this.commentIndexJson.gindex === 0
  17886. ) {
  17887. for (
  17888. var i = 0;
  17889. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17890. i++
  17891. ) {
  17892. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17893. groupA: for (var k = 0; k < _el.length; k++) {
  17894. let el = _el[k];
  17895. if (el.wid == this.commentDetail.wid) {
  17896. a = 2;
  17897. this.commentOther(
  17898. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17899. this.commentIndexJson.toolIndex,
  17900. k,
  17901. this.commentIndexJson.gindex
  17902. );
  17903. break groupA;
  17904. }
  17905. }
  17906. }
  17907. if (a === 1) {
  17908. this.commentDetail = [];
  17909. this.commentIndexJson = {};
  17910. this.commentDialogVisible = false;
  17911. this.$message("此作业已被删除");
  17912. }
  17913. } else {
  17914. if (this.isGroup && this.commentIndexJson.gid) {
  17915. groupA: for (
  17916. var i = 0;
  17917. i < this.courseGroup.group.length;
  17918. i++
  17919. ) {
  17920. let _group = this.courseGroup.group[i];
  17921. if (_group.id == this.commentIndexJson.gid) {
  17922. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17923. for (var k = 0; k < _el2.length; k++) {
  17924. let el2 = _el2[k];
  17925. if (el2.wid == this.commentDetail.wid) {
  17926. a = 2;
  17927. this.commentOther(
  17928. _el2[k],
  17929. this.commentIndexJson.toolIndex,
  17930. k,
  17931. null,
  17932. this.commentIndexJson.gid
  17933. );
  17934. break groupA;
  17935. }
  17936. }
  17937. }
  17938. }
  17939. }
  17940. if (a == 1) {
  17941. for (
  17942. var i = 0;
  17943. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17944. i++
  17945. ) {
  17946. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  17947. i
  17948. ];
  17949. if (el.wid == this.commentDetail.wid) {
  17950. a = 2;
  17951. this.commentOther(
  17952. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17953. this.commentIndexJson.toolIndex,
  17954. i
  17955. );
  17956. break;
  17957. }
  17958. }
  17959. }
  17960. if (a === 1) {
  17961. this.commentDetail = [];
  17962. this.commentIndexJson = {};
  17963. this.commentDialogVisible = false;
  17964. this.$message("此作业已被删除");
  17965. }
  17966. }
  17967. }
  17968. })
  17969. .catch(err => {
  17970. console.error(err);
  17971. });
  17972. },
  17973. selectStudent() {
  17974. //学生查看自己作业
  17975. let params = {
  17976. uid: this.userid,
  17977. cid: this.id,
  17978. s: this.courseType,
  17979. t: this.taskCount
  17980. };
  17981. this.ajax
  17982. .get(this.$store.state.api + "selectStudentWorks", params)
  17983. .then(res => {
  17984. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17985. this.taskCount
  17986. ].toolChoose;
  17987. var b = res.data[0];
  17988. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17989. var y = [
  17990. "AVI",
  17991. "NAVI",
  17992. "MPEG",
  17993. "ASF",
  17994. "MOV",
  17995. "WMV",
  17996. "3GP",
  17997. "RM",
  17998. "RMVB",
  17999. "FLV",
  18000. "F4V",
  18001. "H.264",
  18002. "H.265",
  18003. "REAL VIDEO",
  18004. "MKV",
  18005. "WebM",
  18006. "HDDVD",
  18007. "MP4",
  18008. "MPG",
  18009. "M4V",
  18010. "MGV",
  18011. "OGV",
  18012. "QTM",
  18013. "STR",
  18014. "AMC",
  18015. "DVX",
  18016. "EVO",
  18017. "DAT",
  18018. "OGG",
  18019. "OGM"
  18020. ];
  18021. for (var i = 0; i < a.length; i++) {
  18022. this.workStudent[i] = [];
  18023. for (var j = 0; j < b.length; j++) {
  18024. if (i == b[j].tool) {
  18025. if (
  18026. (b[j].type == 1 ||
  18027. b[j].type == 4 ||
  18028. b[j].type == 5 ||
  18029. b[j].type == 6 ||
  18030. b[j].type == 12 ||
  18031. b[j].type == 7) &&
  18032. a[i].tool[0] != 15 &&
  18033. a[i].tool[0] != 4 &&
  18034. a[i].tool[0] != 45 &&
  18035. a[i].tool[0] != 50 &&
  18036. a[i].tool[0] != 32 &&
  18037. a[i].tool[0] != 57 &&
  18038. a[i].tool[0] != 52 &&
  18039. a[i].tool[0] != 69
  18040. ) {
  18041. if (
  18042. c.indexOf(
  18043. b[j].content
  18044. .split(".")
  18045. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18046. ) != -1 &&
  18047. a[i].tool[0] == 16 &&
  18048. b[j].atool != 50
  18049. ) {
  18050. this.workStudent[i].push({
  18051. works: b[j].content,
  18052. sName: b[j].name,
  18053. score: b[j].score,
  18054. img: b[j].img,
  18055. type: 1,
  18056. time: b[j].time,
  18057. userid: b[j].userid,
  18058. wid: b[j].id
  18059. });
  18060. } else if (
  18061. y.indexOf(
  18062. b[j].content
  18063. .split(".")
  18064. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18065. ) != -1 &&
  18066. a[i].tool[0] == 16 &&
  18067. b[j].atool != 50
  18068. ) {
  18069. this.workStudent[i].push({
  18070. userid: b[j].userid,
  18071. wid: b[j].id,
  18072. works: b[j].content,
  18073. sName: b[j].name,
  18074. score: b[j].score,
  18075. img: b[j].img,
  18076. type: 3,
  18077. time: b[j].time
  18078. });
  18079. } else if (b[j].type == 6 && b[j].atool != 50) {
  18080. this.workStudent[i].push({
  18081. userid: b[j].userid,
  18082. wid: b[j].id,
  18083. works: b[j].content,
  18084. sName: b[j].name,
  18085. score: b[j].score,
  18086. img: b[j].img,
  18087. type: 4,
  18088. time: b[j].time
  18089. });
  18090. } else if (b[j].type == 7 && b[j].atool != 50) {
  18091. this.workStudent[i].push({
  18092. userid: b[j].userid,
  18093. wid: b[j].id,
  18094. works: b[j].content,
  18095. sName: b[j].name,
  18096. score: b[j].score,
  18097. img: b[j].img,
  18098. type: 5,
  18099. time: b[j].time
  18100. });
  18101. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18102. this.workStudent[i].push({
  18103. works: b[j].content,
  18104. sName: b[j].name,
  18105. score: b[j].score,
  18106. img: b[j].img,
  18107. type: 12,
  18108. time: b[j].time,
  18109. userid: b[j].userid,
  18110. wid: b[j].id
  18111. });
  18112. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18113. this.workStudent[i].push({
  18114. works: b[j].content,
  18115. sName: b[j].name,
  18116. score: b[j].score,
  18117. img: b[j].img,
  18118. type: 0,
  18119. time: b[j].time,
  18120. userid: b[j].userid,
  18121. wid: b[j].id
  18122. });
  18123. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18124. this.workStudent[i].push({
  18125. works: b[j].content,
  18126. sName: b[j].name,
  18127. score: b[j].score,
  18128. img: b[j].img,
  18129. type: 0,
  18130. time: b[j].time,
  18131. userid: b[j].userid,
  18132. wid: b[j].id
  18133. });
  18134. }
  18135. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18136. this.workStudent[i].push({
  18137. works: b[j].content,
  18138. sName: b[j].name,
  18139. score: b[j].score,
  18140. img: b[j].img,
  18141. type: 2,
  18142. time: b[j].time,
  18143. userid: b[j].userid,
  18144. wid: b[j].id
  18145. });
  18146. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18147. //问卷
  18148. this.workStudent[i].push({
  18149. works: b[j].content,
  18150. sName: b[j].name,
  18151. score: b[j].score,
  18152. img: b[j].img,
  18153. type: 2,
  18154. time: b[j].time,
  18155. userid: b[j].userid,
  18156. wid: b[j].id
  18157. });
  18158. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18159. //选择题
  18160. this.workStudent[i].push({
  18161. works: b[j].content,
  18162. sName: b[j].name,
  18163. score: b[j].score,
  18164. img: b[j].img,
  18165. type: 8,
  18166. time: b[j].time,
  18167. userid: b[j].userid,
  18168. wid: b[j].id
  18169. });
  18170. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18171. //选择题
  18172. this.workStudent[i].push({
  18173. works: b[j].content,
  18174. sName: b[j].name,
  18175. score: b[j].score,
  18176. img: b[j].img,
  18177. type: 9,
  18178. time: b[j].time,
  18179. userid: b[j].userid,
  18180. wid: b[j].id
  18181. });
  18182. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18183. //选择题
  18184. this.workStudent[i].push({
  18185. works: b[j].content,
  18186. sName: b[j].name,
  18187. score: b[j].score,
  18188. img: b[j].img,
  18189. type: 10,
  18190. time: b[j].time,
  18191. userid: b[j].userid,
  18192. wid: b[j].id
  18193. });
  18194. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18195. //选择题
  18196. this.workStudent[i].push({
  18197. works: b[j].content,
  18198. sName: b[j].name,
  18199. score: b[j].score,
  18200. img: b[j].img,
  18201. type: 13,
  18202. time: b[j].time,
  18203. userid: b[j].userid,
  18204. wid: b[j].id
  18205. });
  18206. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18207. //选择题
  18208. this.workStudent[i].push({
  18209. works: b[j].content,
  18210. sName: b[j].name,
  18211. score: b[j].score,
  18212. img: b[j].img,
  18213. type: 12,
  18214. time: b[j].time,
  18215. userid: b[j].userid,
  18216. wid: b[j].id
  18217. });
  18218. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18219. //选择题
  18220. this.workStudent[i].push({
  18221. works: b[j].content,
  18222. sName: b[j].name,
  18223. score: b[j].score,
  18224. img: b[j].img,
  18225. type: 12,
  18226. time: b[j].time,
  18227. userid: b[j].userid,
  18228. wid: b[j].id
  18229. });
  18230. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  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: 15,
  18238. time: b[j].time,
  18239. userid: b[j].userid,
  18240. wid: b[j].id
  18241. });
  18242. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  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: 16,
  18250. time: b[j].time,
  18251. userid: b[j].userid,
  18252. wid: b[j].id,
  18253. aiCode: b[j].aiCode,
  18254. teacherCode: b[j].teacherCode
  18255. });
  18256. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18257. //英语写作
  18258. this.workStudent[i].push({
  18259. works: b[j].content,
  18260. sName: b[j].name,
  18261. score: b[j].score,
  18262. img: b[j].img,
  18263. type: 17,
  18264. time: b[j].time,
  18265. userid: b[j].userid,
  18266. wid: b[j].id
  18267. });
  18268. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18269. //英语口语
  18270. this.workStudent[i].push({
  18271. works: b[j].content,
  18272. sName: b[j].name,
  18273. score: b[j].score,
  18274. img: b[j].img,
  18275. type: 14,
  18276. time: b[j].time,
  18277. userid: b[j].userid,
  18278. wid: b[j].id
  18279. });
  18280. }
  18281. }
  18282. }
  18283. }
  18284. })
  18285. .catch(err => {
  18286. console.error(err);
  18287. });
  18288. },
  18289. openVideo(w) {
  18290. this.videoDetail = {};
  18291. this.playerOptions1.sources[0].src = w.works;
  18292. this.videoDetail = this.playerOptions1;
  18293. this.videoVisible = true;
  18294. },
  18295. isLikes(wid, uid, t, c, isLikes, sName) {
  18296. if (isLikes == false) {
  18297. let params = [
  18298. {
  18299. wid: wid,
  18300. lid: uid,
  18301. t: t,
  18302. c: c
  18303. }
  18304. ];
  18305. this.ajax
  18306. .post(this.$store.state.api + "insertComment", params)
  18307. .then(res => {
  18308. this.$message({
  18309. message: "点赞成功",
  18310. type: "success"
  18311. });
  18312. this.selectSWorks();
  18313. this.selectStudent();
  18314. this.insertMemorandum(
  18315. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18316. );
  18317. })
  18318. .catch(err => {
  18319. this.$message.error("点赞失败");
  18320. console.error(err);
  18321. });
  18322. } else {
  18323. let params = {
  18324. wid: wid,
  18325. lid: uid,
  18326. type: t
  18327. };
  18328. this.ajax
  18329. .get(this.$store.state.api + "deleteComment", params)
  18330. .then(res => {
  18331. this.$message({
  18332. message: "取消点赞成功",
  18333. type: "success"
  18334. });
  18335. this.selectSWorks();
  18336. this.selectStudent();
  18337. })
  18338. .catch(err => {
  18339. console.error(err);
  18340. });
  18341. }
  18342. },
  18343. deleteComment(wid) {
  18344. this.$confirm("确定删除此评论吗?", "提示", {
  18345. confirmButtonText: "确定",
  18346. cancelButtonText: "取消",
  18347. type: "warning"
  18348. })
  18349. .then(() => {
  18350. let params = {
  18351. id: wid
  18352. };
  18353. this.ajax
  18354. .get(this.$store.state.api + "deleteComment2", params)
  18355. .then(res => {
  18356. this.$message({
  18357. message: "删除评论成功",
  18358. type: "success"
  18359. });
  18360. this.selectSWorks();
  18361. this.selectStudent();
  18362. })
  18363. .catch(err => {
  18364. console.error(err);
  18365. });
  18366. })
  18367. .catch(() => {});
  18368. },
  18369. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18370. this.commentIndexJson = {
  18371. toolIndex: toolIndex,
  18372. wIndex: wIndex,
  18373. gindex: gindex,
  18374. gid: gid
  18375. };
  18376. this.commentDialogVisible = true;
  18377. // console.log('wwwwww',w)
  18378. if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18379. return;
  18380. this.commentDetailCopy = w.works;
  18381. this.commentDetail = [];
  18382. this.commentDetail = w;
  18383. if (w.works && w.type == 1) {
  18384. // this.pptImgUrl = "";
  18385. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18386. if (
  18387. a.indexOf(
  18388. w.works
  18389. .split(".")
  18390. [w.works.split(".").length - 1].toLocaleUpperCase()
  18391. ) != -1
  18392. ) {
  18393. let _uuurl = await this.checkLink(w.works);
  18394. this.pptImgUrl =
  18395. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18396. encodeURIComponent(_uuurl);
  18397. this.showPDF = false;
  18398. } else if (
  18399. w.works
  18400. .split(".")
  18401. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18402. ) {
  18403. this.pptImgUrl = w.works;
  18404. this.showPDF = true;
  18405. }
  18406. } else if (w.works && w.type == 3) {
  18407. this.videoDetail = {};
  18408. this.playerOptions1.sources[0].src = w.works;
  18409. this.videoDetail = this.playerOptions1;
  18410. // this.videoVisible = true;
  18411. } else if (w.works && w.type == 4) {
  18412. this.eScore = JSON.parse(w.works);
  18413. this.rateJson = this.chapInfoList[
  18414. this.courseType
  18415. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18416. toolIndex
  18417. ].rateJson;
  18418. } else if (w.works && w.type == 10) {
  18419. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18420. } else if (w.works && w.type == 12) {
  18421. getFile(this.commentDetail.works).then(res => {
  18422. this.commentDetail.works = res.data;
  18423. });
  18424. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18425. } else if (w.works && w.type == 13) {
  18426. this.wordJson = this.chapInfoList[
  18427. this.courseType
  18428. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18429. toolIndex
  18430. ].wordJson;
  18431. }
  18432. },
  18433. async openScore(w, index) {
  18434. this.wScore = 0;
  18435. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18436. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18437. this.commentDetail = [];
  18438. if (w.type == 17) {
  18439. this.dialogVisibleENScore = true;
  18440. } else {
  18441. this.dialogVisibleScore = true;
  18442. }
  18443. this.commentDetail = w;
  18444. if (w.works && w.type == 1) {
  18445. this.pptImgUrl = "";
  18446. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18447. if (
  18448. a.indexOf(
  18449. w.works
  18450. .split(".")
  18451. [w.works.split(".").length - 1].toLocaleUpperCase()
  18452. ) != -1
  18453. ) {
  18454. let _uuurl = await this.checkLink(w.works);
  18455. this.pptImgUrl =
  18456. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18457. encodeURIComponent(_uuurl);
  18458. this.showPDF = false;
  18459. } else if (
  18460. w.works
  18461. .split(".")
  18462. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18463. ) {
  18464. this.pptImgUrl = w.works;
  18465. this.showPDF = true;
  18466. }
  18467. } else if (w.works && w.type == 3) {
  18468. this.videoDetail = {};
  18469. this.playerOptions1.sources[0].src = w.works;
  18470. this.videoDetail = this.playerOptions1;
  18471. } else if (w.type == 17) {
  18472. let englishVoiceJson = {};
  18473. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18474. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18475. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18476. this.taskCount
  18477. ].toolChoose[index].englishVoiceJson
  18478. : {};
  18479. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18480. }
  18481. this.insertMemorandum(
  18482. `查看<span class="variable">${w.sName}</span>的作业`
  18483. );
  18484. },
  18485. addComment(wid, uid, t, detail) {
  18486. if (this.commentText == "") {
  18487. this.$message.error("请输入评论");
  18488. return;
  18489. }
  18490. let params2 = [
  18491. {
  18492. wid: wid,
  18493. lid: uid,
  18494. t: t
  18495. }
  18496. ];
  18497. this.ajax
  18498. .post(this.$store.state.api + "getComment", params2)
  18499. .then(res => {
  18500. if (res.data[0].length > 0) {
  18501. this.$message.error("一个作业只能评论一条");
  18502. } else {
  18503. let params = [
  18504. {
  18505. wid: wid,
  18506. lid: uid,
  18507. t: t,
  18508. c: this.commentText
  18509. }
  18510. ];
  18511. this.ajax
  18512. .post(this.$store.state.api + "insertComment", params)
  18513. .then(res => {
  18514. this.$message({
  18515. message: "评论成功",
  18516. type: "success"
  18517. });
  18518. this.commentText = "";
  18519. this.selectSWorks();
  18520. this.selectStudent();
  18521. this.insertMemorandum(
  18522. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  18523. );
  18524. })
  18525. .catch(err => {
  18526. this.$message.error("评论失败");
  18527. console.error(err);
  18528. });
  18529. }
  18530. })
  18531. .catch(err => {
  18532. // this.$message.error("评论失败");
  18533. console.error(err);
  18534. });
  18535. },
  18536. scoreWork(wid, sName) {
  18537. if (this.wScore == 0) {
  18538. this.$message.error("请评分");
  18539. return;
  18540. }
  18541. let params = [
  18542. {
  18543. wid: wid,
  18544. score: JSON.stringify({
  18545. wScore: this.wScore,
  18546. detail: this.scoreDetail
  18547. })
  18548. }
  18549. ];
  18550. this.ajax
  18551. .post(this.$store.state.api + "scoreWork", params)
  18552. .then(res => {
  18553. this.$message({
  18554. message: "评分成功",
  18555. type: "success"
  18556. });
  18557. this.wScore = 0;
  18558. this.scoreDetail = "";
  18559. this.dialogVisibleScore = false;
  18560. this.selectSWorks();
  18561. this.selectStudent();
  18562. this.insertMemorandum(
  18563. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  18564. );
  18565. })
  18566. .catch(err => {
  18567. this.$message.error("评分失败");
  18568. console.error(err);
  18569. });
  18570. },
  18571. openXz(w, i) {
  18572. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18573. .taskJson[this.taskCount].toolChoose[i].selectJson
  18574. ? JSON.parse(
  18575. JSON.stringify(
  18576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18577. this.taskCount
  18578. ].toolChoose[i].selectJson
  18579. )
  18580. )
  18581. : { url: "", select: [], answer: [] };
  18582. var a = w.works.split(",");
  18583. for (var k = 0; k < a.length; k++) {
  18584. a[k] = parseInt(a[k]);
  18585. }
  18586. this.selectAnswer = { answer: a, stu: w.sName };
  18587. this.isSelect = true;
  18588. this.dialogVisibleSelect = true;
  18589. this.insertMemorandum(
  18590. `查看<span class="variable">${w.sName}</span>的作业`
  18591. );
  18592. },
  18593. openSen(w, i) {
  18594. this.sentenceList1 = JSON.parse(w.works);
  18595. this.sentenceList1.stuName = w.sName;
  18596. this.dialogVisibleSentence1 = true;
  18597. },
  18598. openPj(w, toolindex) {
  18599. this.isStar = true;
  18600. this.eScore = JSON.parse(w);
  18601. this.rateJson = this.chapInfoList[
  18602. this.courseType
  18603. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  18604. this.studentEvalDialogVisible = true;
  18605. },
  18606. openEnglishEva(id, i) {
  18607. let params = {
  18608. wid: id
  18609. };
  18610. this.ajax
  18611. .get(this.$store.state.api + "selectEngWork", params)
  18612. .then(res => {
  18613. this.evaEngJson.message = res.data[0][0];
  18614. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18615. this.evaEngJson.teacherJson = this.chapInfoList[
  18616. this.courseType
  18617. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  18618. this.engEvaDialogVisible = true;
  18619. })
  18620. .catch(err => {
  18621. console.error(err);
  18622. });
  18623. },
  18624. deleteWorks(id) {
  18625. this.$confirm("确定删除此作业吗?", "提示", {
  18626. confirmButtonText: "确定",
  18627. cancelButtonText: "取消",
  18628. type: "warning"
  18629. })
  18630. .then(() => {
  18631. let params = [
  18632. {
  18633. id: id
  18634. }
  18635. ];
  18636. this.ajax
  18637. .post(this.$store.state.api + "deleteCourseWork", params)
  18638. .then(res => {
  18639. this.$message({
  18640. message: "删除成功",
  18641. type: "success"
  18642. });
  18643. this.selectStudent();
  18644. this.selectSWorks();
  18645. this.selectSLook();
  18646. })
  18647. .catch(err => {
  18648. this.$message.error("网络异常");
  18649. console.error(err);
  18650. });
  18651. })
  18652. .catch(() => {});
  18653. },
  18654. // deleteWorksTwo(w,stage,task) {
  18655. // // let mk = `markSco${toolIndex}${wIndex}`
  18656. // // console.log(this.$refs[mk][0].homeworkVal)
  18657. // // let wid = this.$refs[mk][0].homeworkVal.id
  18658. // // console.log('wid',wid);
  18659. // this.$confirm("确定删除此作业吗?", "提示", {
  18660. // confirmButtonText: "确定",
  18661. // cancelButtonText: "取消",
  18662. // type: "warning",
  18663. // })
  18664. // .then(() => {
  18665. // let params = [
  18666. // {
  18667. // id: w.wid,
  18668. // cid: this.id,
  18669. // uid:w.userid,
  18670. // s:stage,
  18671. // t:task
  18672. // },
  18673. // ];
  18674. // // return console.log(params)
  18675. // this.ajax
  18676. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  18677. // .then((res) => {
  18678. // this.$message({
  18679. // message: "删除成功",
  18680. // type: "success",
  18681. // });
  18682. // this.selectStudent();
  18683. // this.selectSWorks();
  18684. // this.selectSLook();
  18685. // })
  18686. // .catch((err) => {
  18687. // this.$message.error("网络异常");
  18688. // console.error(err);
  18689. // });
  18690. // })
  18691. // .catch(() => {});
  18692. // },
  18693. noIsAi() {
  18694. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18695. },
  18696. getLang() {
  18697. let lang = "";
  18698. if (this.languageSetting == 0) {
  18699. lang = "Chinese.";
  18700. } else if (this.languageSetting == 1) {
  18701. lang = "Traditional Chinese.";
  18702. } else if (this.languageSetting == 2) {
  18703. lang = "English.";
  18704. }
  18705. return lang;
  18706. },
  18707. selectSWorks(gindex) {
  18708. //教师查看全部作业
  18709. let params = {
  18710. cid: this.id,
  18711. s: this.courseType,
  18712. t: this.taskCount
  18713. };
  18714. this.ajax
  18715. .get(this.$store.state.api + "selectSWorks", params)
  18716. .then(res => {
  18717. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18718. this.taskCount
  18719. ].toolChoose;
  18720. var b = res.data[0];
  18721. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18722. var y = [
  18723. "AVI",
  18724. "NAVI",
  18725. "MPEG",
  18726. "ASF",
  18727. "MOV",
  18728. "WMV",
  18729. "3GP",
  18730. "RM",
  18731. "RMVB",
  18732. "FLV",
  18733. "F4V",
  18734. "H.264",
  18735. "H.265",
  18736. "REAL VIDEO",
  18737. "MKV",
  18738. "WebM",
  18739. "HDDVD",
  18740. "MP4",
  18741. "MPG",
  18742. "M4V",
  18743. "MGV",
  18744. "OGV",
  18745. "QTM",
  18746. "STR",
  18747. "AMC",
  18748. "DVX",
  18749. "EVO",
  18750. "DAT",
  18751. "OGG",
  18752. "OGM"
  18753. ];
  18754. var d = res.data[1];
  18755. var e = res.data[2];
  18756. var f = res.data[3];
  18757. let _worksStudent = [];
  18758. var _worksStudent2 = [];
  18759. for (var i = 0; i < a.length; i++) {
  18760. _worksStudent[i] = [];
  18761. _worksStudent2[i] = [];
  18762. if (
  18763. !this.isCloseList[i] ||
  18764. this.isCloseList[i].isClose == undefined
  18765. ) {
  18766. this.isCloseList[i] = { isClose: 0 };
  18767. }
  18768. this.groupStudent[i] = [];
  18769. this.groupStudentUid[i] = [];
  18770. if (this.isGroup) {
  18771. for (
  18772. var groupI = 0;
  18773. groupI < this.courseGroup.group.length;
  18774. groupI++
  18775. ) {
  18776. this.courseGroup.group[groupI].works[i] = [];
  18777. }
  18778. }
  18779. this.isWorksS[i] = [];
  18780. this.checkJson[i] = [];
  18781. if (a[i].tool[0] == 49) {
  18782. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18783. this.groupStudent[i][gA] = [];
  18784. this.groupStudentUid[i][gA] = [];
  18785. _worksStudent[i][gA] = [];
  18786. _worksStudent2[i][gA] = [];
  18787. this.isCloseList[i][gA] = [];
  18788. for (var g = 0; g < f.length; g++) {
  18789. if (
  18790. f[g].ttype == 2 &&
  18791. this.tcid &&
  18792. this.arrayToArray(
  18793. f[g].classid ? f[g].classid.split(",") : [],
  18794. this.tcid.split(",")
  18795. ).length == 0
  18796. ) {
  18797. continue;
  18798. }
  18799. let _classId = this.arrayToArray(
  18800. this.courseDetail.juri
  18801. ? this.courseDetail.juri.split(",")
  18802. : [],
  18803. this.classId ? this.classId.split(",") : []
  18804. );
  18805. if (
  18806. gA == f[g].group &&
  18807. f[g].tool == i &&
  18808. (this.arrayToArray(
  18809. f[g].classid ? f[g].classid.split(",") : [],
  18810. this.tcid.split(",")
  18811. ).length !== 0 ||
  18812. this.arrayToArray(
  18813. f[g].classid ? f[g].classid.split(",") : [],
  18814. _classId
  18815. ).length !== 0 ||
  18816. (!this.tcid && this.tType == "1") ||
  18817. this.courseDetail.juri === "" ||
  18818. f[g].ttype == 1)
  18819. ) {
  18820. this.groupStudent[i][gA].push(f[g]);
  18821. this.groupStudentUid[i][gA].push(f[g].userid);
  18822. }
  18823. }
  18824. }
  18825. this.$forceUpdate();
  18826. }
  18827. for (var j = 0; j < b.length; j++) {
  18828. if (
  18829. b[j].ttype == 2 &&
  18830. this.tcid &&
  18831. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18832. .length == 0
  18833. ) {
  18834. continue;
  18835. }
  18836. var likesCount = 0;
  18837. var commentCount = 0;
  18838. var isLikes = false;
  18839. var commentJson = [];
  18840. var likeJson = [];
  18841. var data = b[j];
  18842. if (i == b[j].tool) {
  18843. if (data.type == 2 && a[i].tool[0] == 4) {
  18844. // if(JSON.parse(data.content)[0].anwer){
  18845. var checkL =
  18846. JSON.parse(data.content)[0].anwer instanceof Array
  18847. ? JSON.parse(data.content)[0].anwer
  18848. : JSON.parse(data.content)[0].anwer.split(",");
  18849. for (var z = 0; z < checkL.length; z++) {
  18850. if (!this.checkJson[i][z]) {
  18851. this.checkJson[i].push({
  18852. checkCount: [],
  18853. checkPerson: [],
  18854. rightPerson: []
  18855. });
  18856. }
  18857. if (!this.checkJson[i][z].checkCount.length) {
  18858. this.checkJson[i][z].checkCount = [];
  18859. let _askItemCount = JSON.parse(data.content)[0].askJson
  18860. .askJson[z].askItem;
  18861. for (var aic = 0; aic < _askItemCount; aic++) {
  18862. this.checkJson[i][z].checkCount.push(0);
  18863. }
  18864. }
  18865. if (checkL[z] instanceof Array) {
  18866. if (
  18867. JSON.parse(data.content)[0]
  18868. .anwer.sort()
  18869. .join(",") == checkL[z].sort().join(",")
  18870. ) {
  18871. this.checkJson[i][z].rightPerson.push(data.name);
  18872. }
  18873. for (var q = 0; q < checkL[z].length; q++) {
  18874. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18875. ? this.checkJson[i][z].checkPerson[
  18876. parseInt(checkL[z][q])
  18877. ].push(data.name)
  18878. : (this.checkJson[i][z].checkPerson[
  18879. parseInt(checkL[z][q])
  18880. ] = [data.name]);
  18881. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18882. ? this.checkJson[i][z].checkCount[
  18883. parseInt(checkL[z][q])
  18884. ]++
  18885. : (this.checkJson[i][z].checkCount[
  18886. parseInt(checkL[z][q])
  18887. ] = 1);
  18888. }
  18889. } else {
  18890. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18891. this.checkJson[i][z].rightPerson.push(data.name);
  18892. }
  18893. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18894. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18895. ? this.checkJson[i][z].checkPerson[
  18896. parseInt(checkL[z])
  18897. ].push(data.name)
  18898. : (this.checkJson[i][z].checkPerson[
  18899. parseInt(checkL[z])
  18900. ] = [data.name]);
  18901. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18902. ? this.checkJson[i][z].checkCount[
  18903. parseInt(checkL[z])
  18904. ]++
  18905. : (this.checkJson[i][z].checkCount[
  18906. parseInt(checkL[z])
  18907. ] = 1);
  18908. }
  18909. }
  18910. }
  18911. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18912. var checkL = JSON.parse(data.content)[0].anwer;
  18913. for (var z = 0; z < checkL.length; z++) {
  18914. if (!this.checkJson[i][z]) {
  18915. this.checkJson[i].push({
  18916. checkCount: [],
  18917. checkPerson: [],
  18918. rightPerson: []
  18919. });
  18920. }
  18921. if (!this.checkJson[i][z].checkCount.length) {
  18922. this.checkJson[i][z].checkCount = [];
  18923. let _askItemCount = JSON.parse(data.content)[0].testJson
  18924. .testJson[z].testItem;
  18925. for (var aic = 0; aic < _askItemCount; aic++) {
  18926. this.checkJson[i][z].checkCount.push(0);
  18927. }
  18928. }
  18929. if (checkL[z] instanceof Array) {
  18930. if (
  18931. JSON.parse(data.content)[0]
  18932. .testJson.testJson[z].answer.sort()
  18933. .join(",") == checkL[z].sort().join(",")
  18934. ) {
  18935. this.checkJson[i][z].rightPerson.push(data.name);
  18936. }
  18937. for (var q = 0; q < checkL[z].length; q++) {
  18938. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18939. ? this.checkJson[i][z].checkPerson[
  18940. parseInt(checkL[z][q])
  18941. ].push(data.name)
  18942. : (this.checkJson[i][z].checkPerson[
  18943. parseInt(checkL[z][q])
  18944. ] = [data.name]);
  18945. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18946. ? this.checkJson[i][z].checkCount[
  18947. parseInt(checkL[z][q])
  18948. ]++
  18949. : (this.checkJson[i][z].checkCount[
  18950. parseInt(checkL[z][q])
  18951. ] = 1);
  18952. }
  18953. } else {
  18954. if (
  18955. JSON.parse(data.content)[0].testJson.testJson[z]
  18956. .answer == checkL[z]
  18957. ) {
  18958. this.checkJson[i][z].rightPerson.push(data.name);
  18959. }
  18960. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18961. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18962. ? this.checkJson[i][z].checkPerson[
  18963. parseInt(checkL[z])
  18964. ].push(data.name)
  18965. : (this.checkJson[i][z].checkPerson[
  18966. parseInt(checkL[z])
  18967. ] = [data.name]);
  18968. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18969. ? this.checkJson[i][z].checkCount[
  18970. parseInt(checkL[z])
  18971. ]++
  18972. : (this.checkJson[i][z].checkCount[
  18973. parseInt(checkL[z])
  18974. ] = 1);
  18975. }
  18976. }
  18977. }
  18978. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18979. var checkL = JSON.parse(data.content);
  18980. for (var z = 0; z < checkL.length; z++) {
  18981. if (!this.checkJson[i][z]) {
  18982. this.checkJson[i].push({
  18983. checkCount: [],
  18984. checkPerson: [],
  18985. rightPerson: []
  18986. });
  18987. }
  18988. this.checkJson[i][z].checkPerson.push(data.name);
  18989. if (
  18990. checkL[z].chooseSenList.toString() ==
  18991. checkL[z].rightAnswer.toString()
  18992. ) {
  18993. this.checkJson[i][z].rightPerson.push(data.name);
  18994. }
  18995. }
  18996. }
  18997. for (var k = 0; k < d.length; k++) {
  18998. //点赞
  18999. if (d[k].workId == b[j].id) {
  19000. likesCount++;
  19001. likeJson.push(d[k]);
  19002. if (d[k].likesId == this.userid) {
  19003. isLikes = true;
  19004. }
  19005. }
  19006. }
  19007. for (var l = 0; l < e.length; l++) {
  19008. //评论
  19009. if (e[l].workId == b[j].id) {
  19010. if (e[l].comment != "") {
  19011. commentCount++;
  19012. commentJson.push({
  19013. commentText: e[l].comment,
  19014. commentTime: e[l].commentTime,
  19015. commentPeople: e[l].commentPeople,
  19016. userid: e[l].userid,
  19017. wid: e[l].id
  19018. });
  19019. }
  19020. }
  19021. }
  19022. if (
  19023. (b[j].type == 1 ||
  19024. b[j].type == 4 ||
  19025. b[j].type == 5 ||
  19026. b[j].type == 6 ||
  19027. b[j].type == 12 ||
  19028. b[j].type == 7) &&
  19029. a[i].tool[0] != 15 &&
  19030. a[i].tool[0] != 4 &&
  19031. a[i].tool[0] != 45 &&
  19032. a[i].tool[0] != 50 &&
  19033. a[i].tool[0] != 32 &&
  19034. a[i].tool[0] != 57 &&
  19035. a[i].tool[0] != 52
  19036. ) {
  19037. if (
  19038. c.indexOf(
  19039. b[j].content
  19040. .split(".")
  19041. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19042. ) != -1 &&
  19043. a[i].tool[0] == 16 &&
  19044. b[j].atool != 50
  19045. ) {
  19046. let _works = {
  19047. userid: b[j].userid,
  19048. ateacher: b[j].ateacher,
  19049. wid: b[j].id,
  19050. works: b[j].content,
  19051. sName: b[j].name,
  19052. type: 1,
  19053. ttype: b[j].ttype,
  19054. time: b[j].time,
  19055. score: b[j].score,
  19056. img: b[j].img,
  19057. likesCount: likesCount,
  19058. commentCount: commentCount,
  19059. isLikes: isLikes,
  19060. commentJson: commentJson,
  19061. likeJson: likeJson
  19062. };
  19063. if (this.isGroup) {
  19064. let isGw = 1;
  19065. for (
  19066. var groupI = 0;
  19067. groupI < this.courseGroup.group.length;
  19068. groupI++
  19069. ) {
  19070. let gid = this.courseGroup.group[groupI].id;
  19071. if (
  19072. this.courseGroupStudentUid[gid].indexOf(
  19073. b[j].userid
  19074. ) != -1
  19075. ) {
  19076. isGw = 2;
  19077. this.courseGroup.group[groupI].works[i].push(_works);
  19078. break;
  19079. }
  19080. }
  19081. if (isGw == 1) {
  19082. _worksStudent[i].push(_works);
  19083. }
  19084. } else {
  19085. _worksStudent[i].push(_works);
  19086. }
  19087. _worksStudent2[i].push(_works);
  19088. this.isWorksS[i].push({
  19089. uid: b[j].userid,
  19090. sName: b[j].name
  19091. });
  19092. } else if (
  19093. y.indexOf(
  19094. b[j].content
  19095. .split(".")
  19096. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19097. ) != -1 &&
  19098. a[i].tool[0] == 16 &&
  19099. b[j].atool != 50
  19100. ) {
  19101. let _works = {
  19102. userid: b[j].userid,
  19103. ateacher: b[j].ateacher,
  19104. wid: b[j].id,
  19105. works: b[j].content,
  19106. sName: b[j].name,
  19107. type: 3,
  19108. ttype: b[j].ttype,
  19109. time: b[j].time,
  19110. score: b[j].score,
  19111. img: b[j].img,
  19112. likesCount: likesCount,
  19113. commentCount: commentCount,
  19114. isLikes: isLikes,
  19115. commentJson: commentJson,
  19116. likeJson: likeJson
  19117. };
  19118. if (this.isGroup) {
  19119. let isGw = 1;
  19120. for (
  19121. var groupI = 0;
  19122. groupI < this.courseGroup.group.length;
  19123. groupI++
  19124. ) {
  19125. let gid = this.courseGroup.group[groupI].id;
  19126. if (
  19127. this.courseGroupStudentUid[gid].indexOf(
  19128. b[j].userid
  19129. ) != -1
  19130. ) {
  19131. isGw = 2;
  19132. this.courseGroup.group[groupI].works[i].push(_works);
  19133. break;
  19134. }
  19135. }
  19136. if (isGw == 1) {
  19137. _worksStudent[i].push(_works);
  19138. }
  19139. } else {
  19140. _worksStudent[i].push(_works);
  19141. }
  19142. _worksStudent2[i].push(_works);
  19143. this.isWorksS[i].push({
  19144. uid: b[j].userid,
  19145. sName: b[j].name
  19146. });
  19147. } else if (b[j].type == 6 && b[j].atool != 50) {
  19148. let _works = {
  19149. userid: b[j].userid,
  19150. ateacher: b[j].ateacher,
  19151. wid: b[j].id,
  19152. works: b[j].content,
  19153. sName: b[j].name,
  19154. type: 4,
  19155. ttype: b[j].ttype,
  19156. time: b[j].time,
  19157. score: b[j].score,
  19158. img: b[j].img,
  19159. likesCount: likesCount,
  19160. commentCount: commentCount,
  19161. isLikes: isLikes,
  19162. commentJson: commentJson,
  19163. likeJson: likeJson
  19164. };
  19165. _worksStudent[i].push(_works);
  19166. _worksStudent2[i].push(_works);
  19167. this.isWorksS[i].push({
  19168. uid: b[j].userid,
  19169. sName: b[j].name
  19170. });
  19171. } else if (b[j].type == 7 && b[j].atool != 50) {
  19172. let _work = {
  19173. userid: b[j].userid,
  19174. ateacher: b[j].ateacher,
  19175. wid: b[j].id,
  19176. works: b[j].content,
  19177. sName: b[j].name,
  19178. type: 5,
  19179. ttype: b[j].ttype,
  19180. time: b[j].time,
  19181. score: b[j].score,
  19182. img: b[j].img,
  19183. likesCount: likesCount,
  19184. commentCount: commentCount,
  19185. isLikes: isLikes,
  19186. commentJson: commentJson,
  19187. likeJson: likeJson
  19188. };
  19189. _worksStudent[i].push(_work);
  19190. _worksStudent2[i].push(_work);
  19191. this.isWorksS[i].push({
  19192. uid: b[j].userid,
  19193. sName: b[j].name
  19194. });
  19195. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19196. let _works = {
  19197. userid: b[j].userid,
  19198. ateacher: b[j].ateacher,
  19199. wid: b[j].id,
  19200. works: b[j].content,
  19201. sName: b[j].name,
  19202. type: 12,
  19203. ttype: b[j].ttype,
  19204. time: b[j].time,
  19205. score: b[j].score,
  19206. img: b[j].img,
  19207. likesCount: likesCount,
  19208. commentCount: commentCount,
  19209. isLikes: isLikes,
  19210. commentJson: commentJson,
  19211. likeJson: likeJson
  19212. };
  19213. if (this.isGroup) {
  19214. let isGw = 1;
  19215. for (
  19216. var groupI = 0;
  19217. groupI < this.courseGroup.group.length;
  19218. groupI++
  19219. ) {
  19220. let gid = this.courseGroup.group[groupI].id;
  19221. if (
  19222. this.courseGroupStudentUid[gid].indexOf(
  19223. b[j].userid
  19224. ) != -1
  19225. ) {
  19226. isGw = 2;
  19227. this.courseGroup.group[groupI].works[i].push(_works);
  19228. break;
  19229. }
  19230. }
  19231. if (isGw == 1) {
  19232. _worksStudent[i].push(_works);
  19233. }
  19234. } else {
  19235. _worksStudent[i].push(_works);
  19236. }
  19237. _worksStudent2[i].push(_works);
  19238. this.isWorksS[i].push({
  19239. uid: b[j].userid,
  19240. sName: b[j].name
  19241. });
  19242. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19243. let _works = {
  19244. userid: b[j].userid,
  19245. ateacher: b[j].ateacher,
  19246. wid: b[j].id,
  19247. works: b[j].content,
  19248. sName: b[j].name,
  19249. type: 0,
  19250. ttype: b[j].ttype,
  19251. time: b[j].time,
  19252. score: b[j].score,
  19253. img: b[j].img,
  19254. likesCount: likesCount,
  19255. commentCount: commentCount,
  19256. isLikes: isLikes,
  19257. commentJson: commentJson,
  19258. likeJson: likeJson
  19259. };
  19260. if (this.isGroup) {
  19261. let isGw = 1;
  19262. for (
  19263. var groupI = 0;
  19264. groupI < this.courseGroup.group.length;
  19265. groupI++
  19266. ) {
  19267. let gid = this.courseGroup.group[groupI].id;
  19268. if (
  19269. this.courseGroupStudentUid[gid].indexOf(
  19270. b[j].userid
  19271. ) != -1
  19272. ) {
  19273. isGw = 2;
  19274. this.courseGroup.group[groupI].works[i].push(_works);
  19275. break;
  19276. }
  19277. }
  19278. if (isGw == 1) {
  19279. _worksStudent[i].push(_works);
  19280. }
  19281. } else {
  19282. _worksStudent[i].push(_works);
  19283. }
  19284. _worksStudent2[i].push(_works);
  19285. this.isWorksS[i].push({
  19286. uid: b[j].userid,
  19287. sName: b[j].name
  19288. });
  19289. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19290. let _works = {
  19291. userid: b[j].userid,
  19292. ateacher: b[j].ateacher,
  19293. wid: b[j].id,
  19294. works: b[j].content,
  19295. sName: b[j].name,
  19296. type: 0,
  19297. ttype: b[j].ttype,
  19298. time: b[j].time,
  19299. score: b[j].score,
  19300. img: b[j].img,
  19301. likesCount: likesCount,
  19302. commentCount: commentCount,
  19303. isLikes: isLikes,
  19304. commentJson: commentJson,
  19305. likeJson: likeJson
  19306. };
  19307. if (this.isGroup) {
  19308. let isGw = 1;
  19309. for (
  19310. var groupI = 0;
  19311. groupI < this.courseGroup.group.length;
  19312. groupI++
  19313. ) {
  19314. let gid = this.courseGroup.group[groupI].id;
  19315. if (
  19316. this.courseGroupStudentUid[gid].indexOf(
  19317. b[j].userid
  19318. ) != -1
  19319. ) {
  19320. isGw = 2;
  19321. this.courseGroup.group[groupI].works[i].push(_works);
  19322. break;
  19323. }
  19324. }
  19325. if (isGw == 1) {
  19326. _worksStudent[i].push(_works);
  19327. }
  19328. } else {
  19329. _worksStudent[i].push(_works);
  19330. }
  19331. _worksStudent2[i].push(_works);
  19332. this.isWorksS[i].push({
  19333. uid: b[j].userid,
  19334. sName: b[j].name
  19335. });
  19336. }
  19337. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19338. let _works = {
  19339. userid: b[j].userid,
  19340. ateacher: b[j].ateacher,
  19341. wid: b[j].id,
  19342. works: b[j].content,
  19343. sName: b[j].name,
  19344. type: 2,
  19345. ttype: b[j].ttype,
  19346. time: b[j].time,
  19347. score: b[j].score,
  19348. img: b[j].img,
  19349. likesCount: likesCount,
  19350. commentCount: commentCount,
  19351. isLikes: isLikes,
  19352. commentJson: commentJson,
  19353. likeJson: likeJson
  19354. };
  19355. if (this.isGroup) {
  19356. let isGw = 1;
  19357. for (
  19358. var groupI = 0;
  19359. groupI < this.courseGroup.group.length;
  19360. groupI++
  19361. ) {
  19362. let gid = this.courseGroup.group[groupI].id;
  19363. if (
  19364. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19365. -1
  19366. ) {
  19367. isGw = 2;
  19368. this.courseGroup.group[groupI].works[i].push(_works);
  19369. break;
  19370. }
  19371. }
  19372. if (isGw == 1) {
  19373. _worksStudent[i].push(_works);
  19374. }
  19375. } else {
  19376. _worksStudent[i].push(_works);
  19377. }
  19378. _worksStudent2[i].push(_works);
  19379. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19380. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19381. //问卷
  19382. let _work = {
  19383. userid: b[j].userid,
  19384. ateacher: b[j].ateacher,
  19385. wid: b[j].id,
  19386. works: b[j].content,
  19387. sName: b[j].name,
  19388. type: 2,
  19389. ttype: b[j].ttype,
  19390. time: b[j].time,
  19391. score: b[j].score,
  19392. img: b[j].img,
  19393. likesCount: likesCount,
  19394. commentCount: commentCount,
  19395. isLikes: isLikes,
  19396. commentJson: commentJson,
  19397. likeJson: likeJson
  19398. };
  19399. _worksStudent[i].push(_work);
  19400. _worksStudent2[i].push(_work);
  19401. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19402. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19403. //选择题
  19404. let _work = {
  19405. userid: b[j].userid,
  19406. ateacher: b[j].ateacher,
  19407. wid: b[j].id,
  19408. works: b[j].content,
  19409. sName: b[j].name,
  19410. type: 8,
  19411. ttype: b[j].ttype,
  19412. time: b[j].time,
  19413. score: b[j].score,
  19414. img: b[j].img,
  19415. likesCount: likesCount,
  19416. commentCount: commentCount,
  19417. isLikes: isLikes,
  19418. commentJson: commentJson,
  19419. likeJson: likeJson
  19420. };
  19421. _worksStudent[i].push(_work);
  19422. _worksStudent2[i].push(_work);
  19423. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19424. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19425. //选择题
  19426. let _work = {
  19427. userid: b[j].userid,
  19428. ateacher: b[j].ateacher,
  19429. wid: b[j].id,
  19430. works: b[j].content,
  19431. sName: b[j].name,
  19432. type: 9,
  19433. ttype: b[j].ttype,
  19434. time: b[j].time,
  19435. score: b[j].score,
  19436. img: b[j].img,
  19437. likesCount: likesCount,
  19438. commentCount: commentCount,
  19439. isLikes: isLikes,
  19440. commentJson: commentJson,
  19441. likeJson: likeJson
  19442. };
  19443. _worksStudent[i].push(_work);
  19444. _worksStudent2[i].push(_work);
  19445. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19446. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19447. //选择题
  19448. let _work = {
  19449. userid: b[j].userid,
  19450. ateacher: b[j].ateacher,
  19451. wid: b[j].id,
  19452. works: b[j].content,
  19453. sName: b[j].name,
  19454. type: 10,
  19455. ttype: b[j].ttype,
  19456. time: b[j].time,
  19457. score: b[j].score,
  19458. img: b[j].img,
  19459. likesCount: likesCount,
  19460. commentCount: commentCount,
  19461. isLikes: isLikes,
  19462. commentJson: commentJson,
  19463. likeJson: likeJson
  19464. };
  19465. _worksStudent[i].push(_work);
  19466. _worksStudent2[i].push(_work);
  19467. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19468. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19469. //选择题
  19470. let _work = {
  19471. userid: b[j].userid,
  19472. ateacher: b[j].ateacher,
  19473. wid: b[j].id,
  19474. works: b[j].content,
  19475. sName: b[j].name,
  19476. type: 13,
  19477. ttype: b[j].ttype,
  19478. time: b[j].time,
  19479. score: b[j].score,
  19480. img: b[j].img,
  19481. likesCount: likesCount,
  19482. commentCount: commentCount,
  19483. isLikes: isLikes,
  19484. commentJson: commentJson,
  19485. likeJson: likeJson
  19486. };
  19487. _worksStudent[i].push(_work);
  19488. _worksStudent2[i].push(_work);
  19489. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19490. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19491. //选择题
  19492. let _work = {
  19493. userid: b[j].userid,
  19494. ateacher: b[j].ateacher,
  19495. wid: b[j].id,
  19496. works: b[j].content,
  19497. sName: b[j].name,
  19498. type: 16,
  19499. ttype: b[j].ttype,
  19500. time: b[j].time,
  19501. score: b[j].score,
  19502. img: b[j].img,
  19503. likesCount: likesCount,
  19504. commentCount: commentCount,
  19505. isLikes: isLikes,
  19506. commentJson: commentJson,
  19507. aiCode: b[j].aiCode,
  19508. teacherCode: b[j].teacherCode,
  19509. likeJson: likeJson
  19510. };
  19511. _worksStudent[i].push(_work);
  19512. _worksStudent2[i].push(_work);
  19513. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19514. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19515. //选择题
  19516. let _work = {
  19517. userid: b[j].userid,
  19518. ateacher: b[j].ateacher,
  19519. wid: b[j].id,
  19520. works: b[j].content,
  19521. sName: b[j].name,
  19522. type: 17,
  19523. ttype: b[j].ttype,
  19524. time: b[j].time,
  19525. score: b[j].score,
  19526. img: b[j].img,
  19527. likesCount: likesCount,
  19528. commentCount: commentCount,
  19529. isLikes: isLikes,
  19530. commentJson: commentJson,
  19531. likeJson: likeJson
  19532. };
  19533. _worksStudent[i].push(_work);
  19534. _worksStudent2[i].push(_work);
  19535. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19536. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19537. //交互视频
  19538. let _work = {
  19539. userid: b[j].userid,
  19540. ateacher: b[j].ateacher,
  19541. wid: b[j].id,
  19542. works: b[j].content,
  19543. sName: b[j].name,
  19544. type: 14,
  19545. ttype: b[j].ttype,
  19546. time: b[j].time,
  19547. score: b[j].score,
  19548. img: b[j].img,
  19549. likesCount: likesCount,
  19550. commentCount: commentCount,
  19551. isLikes: isLikes,
  19552. commentJson: commentJson,
  19553. likeJson: likeJson
  19554. };
  19555. _worksStudent[i].push(_work);
  19556. _worksStudent2[i].push(_work);
  19557. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19558. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19559. let _gindex = JSON.parse(b[j].content);
  19560. if (
  19561. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19562. b[j].userid
  19563. ) != -1
  19564. ) {
  19565. let _work = {
  19566. userid: b[j].userid,
  19567. ateacher: b[j].ateacher,
  19568. wid: b[j].id,
  19569. works: _gindex.url,
  19570. sName: b[j].name,
  19571. type: _gindex.type,
  19572. ttype: b[j].ttype,
  19573. time: b[j].time,
  19574. score: b[j].score,
  19575. img: b[j].img,
  19576. likesCount: likesCount,
  19577. commentCount: commentCount,
  19578. isLikes: isLikes,
  19579. commentJson: commentJson,
  19580. likeJson: likeJson
  19581. };
  19582. _worksStudent[i][_gindex.groupIndex].push(_work);
  19583. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19584. }
  19585. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19586. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19587. let _work = {
  19588. userid: b[j].userid,
  19589. ateacher: b[j].ateacher,
  19590. wid: b[j].id,
  19591. works: b[j].content,
  19592. sName: b[j].name ? b[j].name : b[j].userid,
  19593. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19594. ttype: b[j].ttype,
  19595. time: b[j].time,
  19596. score: b[j].score,
  19597. img: b[j].img,
  19598. likesCount: likesCount,
  19599. commentCount: commentCount,
  19600. isLikes: isLikes,
  19601. commentJson: commentJson,
  19602. likeJson: likeJson
  19603. };
  19604. _worksStudent[i].push(_work);
  19605. _worksStudent2[i].push(_work);
  19606. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19607. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19608. let _work = {
  19609. userid: b[j].userid,
  19610. ateacher: b[j].ateacher,
  19611. wid: b[j].id,
  19612. works: b[j].content,
  19613. sName: b[j].name ? b[j].name : b[j].userid,
  19614. type: 12,
  19615. ttype: b[j].ttype,
  19616. time: b[j].time,
  19617. score: b[j].score,
  19618. img: b[j].img,
  19619. likesCount: likesCount,
  19620. commentCount: commentCount,
  19621. isLikes: isLikes,
  19622. commentJson: commentJson,
  19623. likeJson: likeJson
  19624. };
  19625. _worksStudent[i].push(_work);
  19626. _worksStudent2[i].push(_work);
  19627. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19628. } else if (
  19629. a[i].tool[0] == 57 &&
  19630. b[j].atool == 57 &&
  19631. b[j].type == 12
  19632. ) {
  19633. let _work = {
  19634. userid: b[j].userid,
  19635. ateacher: b[j].ateacher,
  19636. wid: b[j].id,
  19637. works: b[j].content,
  19638. sName: b[j].name ? b[j].name : b[j].userid,
  19639. type: 12,
  19640. ttype: b[j].ttype,
  19641. time: b[j].time,
  19642. score: b[j].score,
  19643. img: b[j].img,
  19644. likesCount: likesCount,
  19645. commentCount: commentCount,
  19646. isLikes: isLikes,
  19647. commentJson: commentJson,
  19648. likeJson: likeJson
  19649. };
  19650. _worksStudent[i].push(_work);
  19651. _worksStudent2[i].push(_work);
  19652. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19653. } else if (
  19654. a[i].tool[0] == 57 &&
  19655. b[j].atool == 57 &&
  19656. b[j].type == 15
  19657. ) {
  19658. let _work = {
  19659. userid: b[j].userid,
  19660. ateacher: b[j].ateacher,
  19661. wid: b[j].id,
  19662. works: b[j].content,
  19663. sName: b[j].name ? b[j].name : b[j].userid,
  19664. type: 15,
  19665. ttype: b[j].ttype,
  19666. time: b[j].time,
  19667. score: b[j].score,
  19668. img: b[j].img,
  19669. likesCount: likesCount,
  19670. commentCount: commentCount,
  19671. isLikes: isLikes,
  19672. commentJson: commentJson,
  19673. likeJson: likeJson
  19674. };
  19675. _worksStudent[i].push(_work);
  19676. _worksStudent2[i].push(_work);
  19677. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19678. }
  19679. }
  19680. }
  19681. if (_worksStudent[i] && _worksStudent[i].length) {
  19682. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19683. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19684. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19685. var scoreA = parseFloat(jscoreA);
  19686. var scoreB = parseFloat(jscoreB);
  19687. if (scoreA == scoreB) {
  19688. return b.likesCount - a.likesCount;
  19689. }
  19690. return scoreB - scoreA;
  19691. });
  19692. if (this.isGroup) {
  19693. for (
  19694. var groupI = 0;
  19695. groupI < this.courseGroup.group.length;
  19696. groupI++
  19697. ) {
  19698. this.courseGroup.group[groupI].works[
  19699. i
  19700. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19701. a,
  19702. b
  19703. ) {
  19704. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19705. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19706. var scoreA = parseFloat(jscoreA);
  19707. var scoreB = parseFloat(jscoreB);
  19708. if (scoreA == scoreB) {
  19709. return b.likesCount - a.likesCount;
  19710. }
  19711. return scoreB - scoreA;
  19712. });
  19713. }
  19714. }
  19715. }
  19716. }
  19717. this.timeWorkList = _worksStudent2;
  19718. for (var i = 0; i < a.length; i++) {
  19719. for (var j = 0; j < b.length; j++) {
  19720. var data = b[j];
  19721. if (i == b[j].tool) {
  19722. if (data.type == 2 || data.type == 8) {
  19723. for (var z = 0; z < this.checkJson[i].length; z++) {
  19724. this.checkJson[i][z].checkPerent = [];
  19725. this.checkJson[i][z].right = Math.round(
  19726. (this.checkJson[i][z].rightPerson.length /
  19727. parseInt(_worksStudent[i].length)) *
  19728. 100
  19729. );
  19730. let aaaa = this.checkJson[i][z];
  19731. for (
  19732. var k = 0;
  19733. k < this.checkJson[i][z].checkCount.length;
  19734. k++
  19735. ) {
  19736. this.checkJson[i][z].checkPerent.push(
  19737. Math.round(
  19738. (this.checkJson[i][z].checkCount[k] /
  19739. parseInt(_worksStudent[i].length)) *
  19740. 100
  19741. )
  19742. );
  19743. }
  19744. }
  19745. } else if (data.type == 9) {
  19746. for (var z = 0; z < this.checkJson[i].length; z++) {
  19747. this.checkJson[i][z].checkPerent = [];
  19748. this.checkJson[i][z].right = Math.round(
  19749. (this.checkJson[i][z].rightPerson.length /
  19750. this.checkJson[i][z].checkPerson.length) *
  19751. 100
  19752. );
  19753. }
  19754. }
  19755. }
  19756. }
  19757. }
  19758. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19759. this.joinGroup(gindex);
  19760. }
  19761. this.worksStudent = _worksStudent;
  19762. if (
  19763. JSON.stringify(this.worksStudentCopy) !=
  19764. JSON.stringify(this.worksStudent)
  19765. ) {
  19766. console.log("88888999999");
  19767. this.worksStudentCopy = this.worksStudent;
  19768. this.AIloading = [];
  19769. this.loopLoading = [];
  19770. this.worksStudent.forEach((e, index) => {
  19771. this.loopLoading.push({ loading: false });
  19772. this.AIloading.push([]);
  19773. e.forEach(k => {
  19774. this.AIloading[index].push({ loading: false, sco: 0 });
  19775. });
  19776. });
  19777. this.refreshAssembly();
  19778. }
  19779. this.selectWorksStudent();
  19780. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19781. this.$nextTick(() => {
  19782. setTimeout(() => {
  19783. setTimeout(() => {
  19784. this.panToolHeight("tool-" + ci);
  19785. }, 500);
  19786. }, 0);
  19787. });
  19788. }
  19789. })
  19790. .catch(err => {
  19791. console.error(err);
  19792. });
  19793. },
  19794. pngToWhiteBg(file) {
  19795. const _file = file;
  19796. let read = new FileReader();
  19797. read.readAsDataURL(file); // 文件转base64
  19798. return new Promise((resolve, reject) => {
  19799. read.onload = e => {
  19800. let img = new Image();
  19801. img.src = e.target.result;
  19802. img.onload = async () => {
  19803. // 生成canvas
  19804. let canvas = document.createElement("canvas");
  19805. let context = canvas.getContext("2d");
  19806. // 绘制图片到canvas上
  19807. canvas.width = img.width;
  19808. canvas.height = img.height;
  19809. // 在canvas绘制前填充白色背景
  19810. context.fillStyle = "#fff";
  19811. context.fillRect(0, 0, canvas.width, canvas.height);
  19812. context.drawImage(img, 0, 0);
  19813. let base64 = canvas.toDataURL(file["type"], 1);
  19814. let newFile = this.dataUrlToFile(base64, _file);
  19815. resolve(newFile);
  19816. };
  19817. };
  19818. });
  19819. },
  19820. dataUrlToFile(dataurl, file) {
  19821. let arr = dataurl.split(","),
  19822. mime = arr[0].match(/:(.*?);/)[1],
  19823. bstr = atob(arr[1]),
  19824. n = bstr.length,
  19825. u8arr = new Uint8Array(n);
  19826. while (n--) {
  19827. u8arr[n] = bstr.charCodeAt(n);
  19828. }
  19829. // return new Blob([u8arr], { type: mime });
  19830. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19831. type: mime
  19832. });
  19833. },
  19834. async beforeUpload1(event, type, i) {
  19835. // this.$message.success('进入上传')
  19836. var file = "";
  19837. if (type == 5) {
  19838. file = event;
  19839. } else {
  19840. file = event.target.files[0];
  19841. }
  19842. var credentials = {
  19843. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19844. secretAccessKey: "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"
  19845. }; //秘钥形式的登录上传
  19846. window.AWS.config.update(credentials);
  19847. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19848. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19849. var _this = this;
  19850. _this.progress = 0;
  19851. _this.proVisible = true;
  19852. _this.isFinishSize = 0;
  19853. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19854. var b = [
  19855. "DOC",
  19856. "DOCX",
  19857. "DOCM",
  19858. "DOTM",
  19859. "DOTX",
  19860. "PPTX",
  19861. "PPSX",
  19862. "PPT",
  19863. "PPS",
  19864. "PPTM",
  19865. "POTM",
  19866. "PPAM",
  19867. "POTX",
  19868. "PPSM"
  19869. ];
  19870. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19871. var photoA = [
  19872. "BMP",
  19873. "GIF",
  19874. "PNG",
  19875. "JPEG",
  19876. "JPEG",
  19877. "JPG",
  19878. "TIF",
  19879. "PCX",
  19880. "TGA",
  19881. "EXIF",
  19882. "FPX",
  19883. "SVG",
  19884. "APNG"
  19885. ];
  19886. // if (
  19887. // b.indexOf(
  19888. // file.name
  19889. // .split(".")
  19890. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19891. // ) != -1
  19892. // ) {
  19893. // if (file.size / 1024 / 1024 > 10) {
  19894. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19895. // return;
  19896. // }
  19897. // } else if (
  19898. // excelA.indexOf(
  19899. // file.name
  19900. // .split(".")
  19901. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19902. // ) != "-1"
  19903. // ) {
  19904. // if (file.size / 1024 / 1024 > 5) {
  19905. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19906. // return;
  19907. // }
  19908. // }
  19909. if (
  19910. photoA.indexOf(
  19911. file.name
  19912. .split(".")
  19913. [file.name.split(".").length - 1].toLocaleUpperCase()
  19914. ) != -1 &&
  19915. type != 4
  19916. ) {
  19917. // const blob = await imageConversion.compress(file, 0.8)
  19918. file = await this.pngToWhiteBg(file);
  19919. const blob = await imageConversion.compressAccurately(file, 256);
  19920. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19921. file = new File([blob], file.name, { type: file.type });
  19922. }
  19923. if (file) {
  19924. var params = {
  19925. Key:
  19926. file.name.split(".")[0] +
  19927. new Date().getTime() +
  19928. "." +
  19929. file.name.split(".")[file.name.split(".").length - 1],
  19930. ContentType: file.type,
  19931. Body: file,
  19932. "Access-Control-Allow-Credentials": "*",
  19933. ACL: "public-read"
  19934. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19935. var options = {
  19936. // partSize: 2048 * 1024 * 1024,
  19937. partSize: 1024 * 1024 * 1024,
  19938. queueSize: 2,
  19939. leavePartsOnError: true
  19940. };
  19941. bucket
  19942. .upload(params, options)
  19943. .on("httpUploadProgress", function(evt) {
  19944. //这里可以写进度条
  19945. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19946. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19947. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19948. })
  19949. .send(function(err, data) {
  19950. _this.progress = 100;
  19951. _this.isFinishSize = _this.isAllSize;
  19952. setTimeout(() => {
  19953. _this.proVisible = false;
  19954. }, 1000);
  19955. if (err) {
  19956. var a = _this.$refs.upload1.uploadFiles;
  19957. a.splice(a.length - 1, a.length);
  19958. _this.$message.error("上传失败");
  19959. } else {
  19960. // _this.$message.success('上传成功')
  19961. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19962. var c = [
  19963. "AVI",
  19964. "NAVI",
  19965. "MPEG",
  19966. "ASF",
  19967. "MOV",
  19968. "WMV",
  19969. "3GP",
  19970. "RM",
  19971. "RMVB",
  19972. "FLV",
  19973. "F4V",
  19974. "H.264",
  19975. "H.265",
  19976. "REAL VIDEO",
  19977. "MKV",
  19978. "WebM",
  19979. "HDDVD",
  19980. "MP4",
  19981. "MPG",
  19982. "M4V",
  19983. "MGV",
  19984. "OGV",
  19985. "QTM",
  19986. "STR",
  19987. "AMC",
  19988. "DVX",
  19989. "EVO",
  19990. "DAT",
  19991. "OGG",
  19992. "OGM"
  19993. ];
  19994. if (type == 1) {
  19995. _this.studyJuri[0].cover.push({
  19996. name: file.name,
  19997. url: data.Location,
  19998. uid: file.uid
  19999. });
  20000. if (
  20001. c.indexOf(
  20002. _this.studyJuri[0].cover[0].url
  20003. .split(".")
  20004. [
  20005. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20006. ].toLocaleUpperCase()
  20007. ) != -1
  20008. ) {
  20009. _this.fileType = 2;
  20010. } else if (
  20011. b.indexOf(
  20012. _this.studyJuri[0].cover[0].url
  20013. .split(".")
  20014. [
  20015. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20016. ].toLocaleUpperCase()
  20017. ) != -1
  20018. ) {
  20019. _this.fileType = 1;
  20020. } else if (
  20021. photoA.indexOf(
  20022. _this.studyJuri[0].cover[0].url
  20023. .split(".")
  20024. [
  20025. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20026. ].toLocaleUpperCase()
  20027. ) != -1
  20028. ) {
  20029. _this.fileType = 0;
  20030. } else {
  20031. _this.fileType = 3;
  20032. }
  20033. _this.imgChange(null, null, type);
  20034. } else if (type == 2) {
  20035. _this.upToolImg = data.Location;
  20036. _this.imgChange(null, null, type);
  20037. _this.addCourseWorks(i);
  20038. } else if (type == 4) {
  20039. _this.addPz("3", data.Location);
  20040. } else if (type == 5) {
  20041. _this.addImgDrawImG(data.Location);
  20042. } else if (type == 6) {
  20043. var _ftype = 1;
  20044. if (
  20045. c.indexOf(
  20046. data.Location.split(".")[
  20047. data.Location.split(".").length - 1
  20048. ].toLocaleUpperCase()
  20049. ) != -1
  20050. ) {
  20051. _ftype = 5;
  20052. } else if (
  20053. b.indexOf(
  20054. data.Location.split(".")[
  20055. data.Location.split(".").length - 1
  20056. ].toLocaleUpperCase()
  20057. ) != -1
  20058. ) {
  20059. _ftype = 4;
  20060. } else {
  20061. _ftype = 1;
  20062. }
  20063. _this.plworkFile.push({
  20064. name: file.name,
  20065. url: data.Location,
  20066. uid: file.uid,
  20067. fileType: _ftype,
  20068. username:
  20069. _this.plworkFile.length > 10
  20070. ? _this.plworkFile.length + 1
  20071. : "0" + (_this.plworkFile.length + 1)
  20072. });
  20073. } else if (type == 7) {
  20074. _this.addCourseWorksGong(i, data.Location, 32);
  20075. } else if (type == 8) {
  20076. _this.addCourseWorksGong(i, data.Location, 57);
  20077. }
  20078. _this.imgChange(null, null, type);
  20079. console.log(data.Location);
  20080. // _this.$message.success('上传成功'+data.Location)
  20081. }
  20082. });
  20083. }
  20084. },
  20085. async beforeUpload3(event, type, i) {
  20086. // this.$message.success('进入上传')
  20087. let file = "";
  20088. let cfindex2 = 0;
  20089. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20090. file = event.target.files[cfindex];
  20091. var credentials = {
  20092. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20093. secretAccessKey: "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"
  20094. }; //秘钥形式的登录上传
  20095. window.AWS.config.update(credentials);
  20096. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20097. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20098. var _this = this;
  20099. // _this.progress = 0;
  20100. _this.proVisible2 = true;
  20101. var b = [
  20102. "DOC",
  20103. "DOCX",
  20104. "DOCM",
  20105. "DOTM",
  20106. "DOTX",
  20107. "PPTX",
  20108. "PPSX",
  20109. "PPT",
  20110. "PPS",
  20111. "PPTM",
  20112. "POTM",
  20113. "PPAM",
  20114. "POTX",
  20115. "PPSM"
  20116. ];
  20117. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20118. var photoA = [
  20119. "BMP",
  20120. "GIF",
  20121. "PNG",
  20122. "JPEG",
  20123. "JPG",
  20124. "TIF",
  20125. "PCX",
  20126. "TGA",
  20127. "EXIF",
  20128. "FPX",
  20129. "SVG",
  20130. "APNG"
  20131. ];
  20132. if (
  20133. photoA.indexOf(
  20134. file.name
  20135. .split(".")
  20136. [file.name.split(".").length - 1].toLocaleUpperCase()
  20137. ) != -1 &&
  20138. type != 4
  20139. ) {
  20140. // const blob = await imageConversion.compress(file, 0.8)
  20141. file = await this.pngToWhiteBg(file);
  20142. const blob = await imageConversion.compressAccurately(file, 256);
  20143. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20144. file = new File([blob], file.name, { type: file.type });
  20145. }
  20146. if (file) {
  20147. var params = {
  20148. Key:
  20149. file.name.split(".")[0] +
  20150. new Date().getTime() +
  20151. "." +
  20152. file.name.split(".")[file.name.split(".").length - 1],
  20153. ContentType: file.type,
  20154. Body: file,
  20155. "Access-Control-Allow-Credentials": "*",
  20156. ACL: "public-read"
  20157. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20158. var options = {
  20159. // partSize: 2048 * 1024 * 1024,
  20160. partSize: 1024 * 1024 * 1024,
  20161. queueSize: 2,
  20162. leavePartsOnError: true
  20163. };
  20164. bucket
  20165. .upload(params, options)
  20166. .on("httpUploadProgress", function(evt) {
  20167. //这里可以写进度条
  20168. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20169. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20170. })
  20171. .send(function(err, data) {
  20172. // _this.progress = 100;
  20173. cfindex2++;
  20174. setTimeout(() => {
  20175. if (
  20176. cfindex2 == event.target.files.length - 1 ||
  20177. cfindex2 > event.target.files.length - 1
  20178. ) {
  20179. _this.proVisible2 = false;
  20180. }
  20181. }, 1000);
  20182. if (err) {
  20183. var a = _this.$refs.upload1.uploadFiles;
  20184. a.splice(a.length - 1, a.length);
  20185. _this.$message.error("上传失败");
  20186. } else {
  20187. // _this.$message.success('上传成功')
  20188. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20189. var c = [
  20190. "AVI",
  20191. "NAVI",
  20192. "MPEG",
  20193. "ASF",
  20194. "MOV",
  20195. "WMV",
  20196. "3GP",
  20197. "RM",
  20198. "RMVB",
  20199. "FLV",
  20200. "F4V",
  20201. "H.264",
  20202. "H.265",
  20203. "REAL VIDEO",
  20204. "MKV",
  20205. "WebM",
  20206. "HDDVD",
  20207. "MP4",
  20208. "MPG",
  20209. "M4V",
  20210. "MGV",
  20211. "OGV",
  20212. "QTM",
  20213. "STR",
  20214. "AMC",
  20215. "DVX",
  20216. "EVO",
  20217. "DAT",
  20218. "OGG",
  20219. "OGM"
  20220. ];
  20221. if (type == 1) {
  20222. _this.studyJuri[0].cover.push({
  20223. name: file.name,
  20224. url: data.Location,
  20225. uid: file.uid
  20226. });
  20227. if (
  20228. c.indexOf(
  20229. _this.studyJuri[0].cover[0].url
  20230. .split(".")
  20231. [
  20232. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20233. ].toLocaleUpperCase()
  20234. ) != -1
  20235. ) {
  20236. _this.fileType = 2;
  20237. } else if (
  20238. b.indexOf(
  20239. _this.studyJuri[0].cover[0].url
  20240. .split(".")
  20241. [
  20242. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20243. ].toLocaleUpperCase()
  20244. ) != -1
  20245. ) {
  20246. _this.fileType = 1;
  20247. } else {
  20248. _this.fileType = 0;
  20249. }
  20250. _this.imgChange(null, null, type);
  20251. } else if (type == 2) {
  20252. _this.upToolImg = data.Location;
  20253. _this.imgChange(null, null, type);
  20254. _this.addCourseWorks(i);
  20255. } else if (type == 4) {
  20256. _this.addPz("3", data.Location);
  20257. } else if (type == 5) {
  20258. _this.addImgDrawImG(data.Location);
  20259. } else if (type == 6) {
  20260. var _ftype = 1;
  20261. if (
  20262. c.indexOf(
  20263. data.Location.split(".")[
  20264. data.Location.split(".").length - 1
  20265. ].toLocaleUpperCase()
  20266. ) != -1
  20267. ) {
  20268. _ftype = 5;
  20269. } else if (
  20270. b.indexOf(
  20271. data.Location.split(".")[
  20272. data.Location.split(".").length - 1
  20273. ].toLocaleUpperCase()
  20274. ) != -1
  20275. ) {
  20276. _ftype = 4;
  20277. } else {
  20278. _ftype = 1;
  20279. }
  20280. _this.plworkFile.push({
  20281. name: file.name,
  20282. url: data.Location,
  20283. uid: file.uid,
  20284. fileType: _ftype,
  20285. username:
  20286. _this.plworkFile.length + 1 > 9
  20287. ? _this.plworkFile.length + 1
  20288. : "0" + (_this.plworkFile.length + 1)
  20289. });
  20290. }
  20291. _this.imgChange(null, null, type);
  20292. console.log(data.Location);
  20293. // _this.$message.success('上传成功'+data.Location)
  20294. }
  20295. });
  20296. }
  20297. }
  20298. },
  20299. beforeUpload2(event, type) {
  20300. var file = event.target.files[0];
  20301. var credentials = {
  20302. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20303. secretAccessKey: "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"
  20304. }; //秘钥形式的登录上传
  20305. window.AWS.config.update(credentials);
  20306. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20307. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20308. var _this = this;
  20309. _this.progress = 0;
  20310. _this.proVisible = true;
  20311. if (file) {
  20312. var params = {
  20313. Key:
  20314. file.name.split(".")[0] +
  20315. new Date().getTime() +
  20316. "." +
  20317. file.name.split(".")[file.name.split(".").length - 1],
  20318. ContentType: file.type,
  20319. Body: file,
  20320. "Access-Control-Allow-Credentials": "*",
  20321. ACL: "public-read"
  20322. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20323. var options = {
  20324. partSize: 2048 * 1024 * 1024,
  20325. queueSize: 2,
  20326. leavePartsOnError: true
  20327. };
  20328. bucket
  20329. .upload(params, options)
  20330. .on("httpUploadProgress", function(evt) {
  20331. //这里可以写进度条
  20332. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20333. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20334. })
  20335. .send(function(err, data) {
  20336. _this.progress = 100;
  20337. setTimeout(() => {
  20338. _this.proVisible = false;
  20339. }, 1000);
  20340. if (err) {
  20341. var a = _this.$refs.upload1.uploadFiles;
  20342. a.splice(a.length - 1, a.length);
  20343. _this.$message.error("上传失败");
  20344. } else {
  20345. if (type == 2) {
  20346. _this.studyJuri[0].upVedio.push({
  20347. name: file.name,
  20348. url: data.Location,
  20349. uid: file.uid
  20350. });
  20351. _this.imgChange(null, null, type);
  20352. } else if (type == 3) {
  20353. _this.studyJuri[0].upFile.push({
  20354. name: file.name,
  20355. url: data.Location,
  20356. uid: file.uid
  20357. });
  20358. _this.imgChange(null, null, type);
  20359. }
  20360. console.log(data.Location);
  20361. }
  20362. });
  20363. }
  20364. },
  20365. allScrell() {
  20366. window.parent.postMessage({ allScreen: this.screenType }, "*");
  20367. },
  20368. nextOrpreSteps(t) {
  20369. if (this.IsFollow && this.tType == 2) {
  20370. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20371. return;
  20372. }
  20373. var b = this.chapInfoList.length - 1;
  20374. if (t == 0) {
  20375. if (this.courseType == 0) {
  20376. if (this.taskCount == 0) {
  20377. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20378. if (this.IsLookOpen) {
  20379. if (
  20380. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20381. ) {
  20382. if (
  20383. this.courseDetail.userid != this.userid &&
  20384. (!this.courseDetail.course_teacher ||
  20385. (this.courseDetail.course_teacher &&
  20386. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20387. -1))
  20388. ) {
  20389. this.$message.error("任务未解锁");
  20390. } else {
  20391. this.$message.error("上一任务未解锁");
  20392. }
  20393. return;
  20394. }
  20395. }
  20396. this.navList[this.courseType].isOpen = false;
  20397. this.courseType = b;
  20398. this.taskCount =
  20399. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20400. .length - 1;
  20401. this.navList[this.courseType].isOpen = true;
  20402. } else {
  20403. this.taskCount--;
  20404. }
  20405. } else {
  20406. if (this.taskCount == 0) {
  20407. this.navList[this.courseType].isOpen = false;
  20408. this.courseType--;
  20409. this.taskCount =
  20410. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20411. .length - 1;
  20412. this.navList[this.courseType].isOpen = true;
  20413. } else {
  20414. this.taskCount--;
  20415. }
  20416. }
  20417. } else {
  20418. if (this.courseType == b) {
  20419. if (
  20420. this.taskCount ==
  20421. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20422. 1
  20423. ) {
  20424. this.navList[this.courseType].isOpen = false;
  20425. this.courseType = 0;
  20426. this.taskCount = 0;
  20427. this.navList[this.courseType].isOpen = true;
  20428. } else {
  20429. var bbb = parseInt(this.taskCount) + 1;
  20430. if (
  20431. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20432. .isLook &&
  20433. this.courseDetail.userid != this.userid &&
  20434. (!this.courseDetail.course_teacher ||
  20435. (this.courseDetail.course_teacher &&
  20436. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20437. -1)) &&
  20438. this.IsLookOpen
  20439. ) {
  20440. this.$message.error("任务未解锁");
  20441. return;
  20442. }
  20443. this.taskCount++;
  20444. if (this.IsLookOpen) {
  20445. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20446. this.taskCount
  20447. ].isLook = true;
  20448. this.addCourseState(3);
  20449. }
  20450. }
  20451. } else {
  20452. if (
  20453. this.taskCount ==
  20454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20455. 1
  20456. ) {
  20457. var bbb = parseInt(this.courseType) + 1;
  20458. if (
  20459. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20460. this.courseDetail.userid != this.userid &&
  20461. (!this.courseDetail.course_teacher ||
  20462. (this.courseDetail.course_teacher &&
  20463. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20464. -1)) &&
  20465. this.IsLookOpen
  20466. ) {
  20467. this.$message.error("任务未解锁");
  20468. return;
  20469. }
  20470. this.navList[this.courseType].isOpen = false;
  20471. this.courseType++;
  20472. this.taskCount = 0;
  20473. this.navList[this.courseType].isOpen = true;
  20474. } else {
  20475. var bbb = parseInt(this.taskCount) + 1;
  20476. if (
  20477. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20478. .isLook &&
  20479. this.courseDetail.userid != this.userid &&
  20480. (!this.courseDetail.course_teacher ||
  20481. (this.courseDetail.course_teacher &&
  20482. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20483. -1)) &&
  20484. this.IsLookOpen
  20485. ) {
  20486. this.$message.error("任务未解锁");
  20487. return;
  20488. }
  20489. this.taskCount++;
  20490. }
  20491. if (this.IsLookOpen) {
  20492. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20493. this.taskCount
  20494. ].isLook = true;
  20495. this.addCourseState(3);
  20496. }
  20497. }
  20498. // if (
  20499. // this.taskCount ==
  20500. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20501. // ) {
  20502. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20503. // } else {
  20504. // this.taskCount++;
  20505. // }
  20506. }
  20507. document.scrollingElement.scrollTop = 0;
  20508. this.showType = 7;
  20509. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20510. // if (this.vedio[this.taskCount].length > 0) {
  20511. // var a =
  20512. // document.getElementsByClassName("box_course")[this.taskCount]
  20513. // .offsetHeight;
  20514. // document.getElementsByClassName("vedioList")[
  20515. // this.taskCount
  20516. // ].style.height = a + "px";
  20517. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20518. // a - 40 + "px";
  20519. // }
  20520. this.isNoHomeWork = false;
  20521. (this.studyJuri = [
  20522. {
  20523. content: "",
  20524. cover: [],
  20525. upVedio: [],
  20526. upFile: []
  20527. }
  20528. ]),
  20529. (this.radio = []);
  20530. this.isClickNav = "";
  20531. this.selectPz();
  20532. this.getHomeWork();
  20533. this.getCourseDetail(2);
  20534. this.$forceUpdate();
  20535. },
  20536. openTask(s, n, i) {
  20537. this.refreshAssembly();
  20538. if (this.IsFollow && this.tType == 2) {
  20539. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20540. return;
  20541. }
  20542. if (this.IsLookOpen &&
  20543. this.courseDetail.userid != this.userid &&
  20544. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20545. if (
  20546. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20547. this.courseDetail.userid != this.userid &&
  20548. (!this.courseDetail.course_teacher ||
  20549. (this.courseDetail.course_teacher &&
  20550. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20551. ) {
  20552. this.$message.error("任务未解锁");
  20553. return;
  20554. }
  20555. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20556. if (
  20557. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20558. .isLook
  20559. ) {
  20560. this.$message.error("上一任务未解锁");
  20561. return;
  20562. }
  20563. } else if (s > this.courseType) {
  20564. if (n > 0) {
  20565. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20566. this.$message.error("上一任务未解锁");
  20567. return;
  20568. }
  20569. } else {
  20570. if (
  20571. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20572. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20573. ].isLook
  20574. ) {
  20575. this.$message.error("上一任务未解锁");
  20576. return;
  20577. }
  20578. }
  20579. }
  20580. }
  20581. if (this.navList[s].task[n].isOpen == true) {
  20582. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20583. return;
  20584. }
  20585. let flag = this.courseType == s;
  20586. this.courseType = s;
  20587. this.navId = i;
  20588. this.taskCount = n;
  20589. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20590. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  20591. this.courseType
  20592. ].task[this.taskCount].isOpen;
  20593. if (this.IsLookOpen) {
  20594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20595. this.taskCount
  20596. ].isLook = true;
  20597. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20598. this.addCourseState(3,yym);
  20599. }
  20600. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20601. this.isCloseList[ci].isClose = 0;
  20602. this.isCloseList[ci].isCloseBoolean = false;
  20603. this.$nextTick(() => {
  20604. setTimeout(() => {
  20605. setTimeout(() => {
  20606. this.panToolHeight("tool-" + ci);
  20607. }, 0);
  20608. }, 0);
  20609. });
  20610. }
  20611. this.showType = 7;
  20612. this.isNoHomeWork = false;
  20613. (this.studyJuri = [
  20614. {
  20615. content: "",
  20616. cover: [],
  20617. upVedio: [],
  20618. upFile: []
  20619. }
  20620. ]),
  20621. (this.radio = []);
  20622. document.scrollingElement.scrollTop = 0;
  20623. // setTimeout(() => {
  20624. // let a = document.getElementById(i);
  20625. // if (a.offsetTop - 110 == 0) {
  20626. // window.scrollTo(0, 0);
  20627. // } else {
  20628. // window.scrollTo(0, a.offsetTop);
  20629. // }
  20630. // }, 0);
  20631. for (var z = 0; z < this.navList.length; z++) {
  20632. for (var q = 0; q < this.navList[z].task.length; q++) {
  20633. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20634. this.navList[z].task[q].tool[w].isTool = false;
  20635. }
  20636. }
  20637. }
  20638. this.selectPz();
  20639. this.getHomeWork();
  20640. this.getCourseDetail(2);
  20641. if (flag) {
  20642. this.insertMemorandum(
  20643. `进入<span class="variable">任务${n + 1}${
  20644. this.navList[s].task[n].taskName
  20645. ? ":" + this.navList[s].task[n].taskName
  20646. : ""
  20647. }</span>`
  20648. );
  20649. } else {
  20650. this.insertMemorandum(
  20651. `进入<span class="variable">阶段${s + 1}${
  20652. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  20653. }</span>→<span class="variable">任务${n + 1}${
  20654. this.navList[s].task[n].taskName
  20655. ? ":" + this.navList[s].task[n].taskName
  20656. : ""
  20657. }</span>`
  20658. );
  20659. }
  20660. },
  20661. get(i) {
  20662. if (this.IsFollow && this.tType == 2) {
  20663. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20664. return;
  20665. }
  20666. // for(var k=0;k<this.navList.length;k++){
  20667. // this.navList[k].isOpen = false;
  20668. // }
  20669. // this.navList[i].isOpen = true;
  20670. this.navList[i].isOpen = !this.navList[i].isOpen;
  20671. if (this.navList[i].isOpen) {
  20672. this.openTask(i, 0, i + "-0");
  20673. }
  20674. },
  20675. addQuestion() {
  20676. this.answerList.push({
  20677. answerTitle: this.answerQ,
  20678. answer: this.questionAnswer
  20679. });
  20680. let params = [
  20681. {
  20682. uid: this.userid,
  20683. cid: this.id,
  20684. stage: this.courseType,
  20685. task: this.taskCount,
  20686. tool: this.toolindex,
  20687. content: JSON.stringify(this.answerList),
  20688. type: 3
  20689. }
  20690. ];
  20691. this.ajax
  20692. .post(this.$store.state.api + "addCourseWorks", params)
  20693. .then(res => {
  20694. this.$message({
  20695. message: "提交成功",
  20696. type: "success"
  20697. });
  20698. this.answerList = [];
  20699. this.answerDialogVisible = false;
  20700. this.selectStudent();
  20701. this.selectSWorks();
  20702. this.selectSLook();
  20703. })
  20704. .catch(err => {
  20705. this.$message.error("提交失败");
  20706. console.error(err);
  20707. });
  20708. },
  20709. addQuestionTeacher() {
  20710. this.answerList.push({
  20711. answerTitle: this.answerQ,
  20712. answer: this.questionAnswer
  20713. });
  20714. let params = [
  20715. {
  20716. uid: this.sStudent.userid,
  20717. cid: this.id,
  20718. stage: this.courseType,
  20719. task: this.taskCount,
  20720. tool: this.toolindex,
  20721. content: JSON.stringify(this.answerList),
  20722. type: 3,
  20723. ateacher: this.userid
  20724. }
  20725. ];
  20726. this.ajax
  20727. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20728. .then(res => {
  20729. this.$message({
  20730. message: "提交成功",
  20731. type: "success"
  20732. });
  20733. this.answerList = [];
  20734. this.questionAnswer = "";
  20735. this.answerDialogVisibleTeacher = false;
  20736. this.selectStudent();
  20737. this.selectSWorks();
  20738. this.selectSLook();
  20739. })
  20740. .catch(err => {
  20741. this.$message.error("提交失败");
  20742. console.error(err);
  20743. });
  20744. },
  20745. refreshCourse() {
  20746. // window.location.reload();
  20747. this.navList = [];
  20748. this.getCourseDetail(1);
  20749. },
  20750. getCourseDetail(type, gindex) {
  20751. let loading;
  20752. if (type != 2) {
  20753. loading = this.$loading.service({
  20754. background: "rgba(255, 255, 255, 0.7)",
  20755. target: document.querySelector(".student_table")
  20756. });
  20757. }
  20758. this.downLoading = false;
  20759. // this.navList[0].isOpen = false;
  20760. // this.navList[this.courseType].isOpen = true;
  20761. // this.courseType = this.courseTypeLine;
  20762. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20763. let params = {
  20764. courseId: this.id
  20765. };
  20766. this.ajax
  20767. .get(this.$store.state.api + "selectCourseDetail3", params)
  20768. .then(res => {
  20769. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  20770. if (type != 2) {
  20771. loading.close();
  20772. if (
  20773. this.courseType >
  20774. JSON.parse(res.data[0][0].chapters).length - 1
  20775. ) {
  20776. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20777. }
  20778. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20779. .chapterInfo[0].taskJson;
  20780. var b = [
  20781. "AVI",
  20782. "NAVI",
  20783. "MPEG",
  20784. "ASF",
  20785. "MOV",
  20786. "WMV",
  20787. "3GP",
  20788. "RM",
  20789. "RMVB",
  20790. "FLV",
  20791. "F4V",
  20792. "H.264",
  20793. "H.265",
  20794. "REAL VIDEO",
  20795. "MKV",
  20796. "WebM",
  20797. "HDDVD",
  20798. "MP4",
  20799. "MPG",
  20800. "M4V",
  20801. "MGV",
  20802. "OGV",
  20803. "QTM",
  20804. "STR",
  20805. "AMC",
  20806. "DVX",
  20807. "EVO",
  20808. "DAT",
  20809. "OGG",
  20810. "OGM",
  20811. "MP3"
  20812. ];
  20813. let _chapterData = [];
  20814. for (var i = 0; i < a.length; i++) {
  20815. var c = a[i].chapterData;
  20816. this.vedio[i] = [];
  20817. this.textList[i] = [];
  20818. this.lineList[i] = [];
  20819. this.chapToolList[i] = [];
  20820. this.file[i] = [];
  20821. this.fileC[i] = [];
  20822. _chapterData[i] = c.filter(el => {
  20823. return el.type != 12;
  20824. });
  20825. this.fileC[i] = c.filter(el => {
  20826. return el.type == 12;
  20827. });
  20828. if (this.tType == 2) {
  20829. if (this.fileC[i].length) {
  20830. let yym1 = this.fileC[i].filter(e=>{
  20831. if(!converter(e.name).includes(converter("教案"))){
  20832. return e
  20833. }
  20834. })
  20835. this.fileC[i] = yym1
  20836. }
  20837. }
  20838. // else if (c[j].type == 12) {
  20839. // this.fileC[i].push(c[j]);
  20840. // }
  20841. for (var j = 0; j < c.length; j++) {
  20842. if (c[j].type == 7) {
  20843. this.chapToolList[i].push(c[j]);
  20844. } else if (c[j].type == 8 || c[j].type == 14) {
  20845. this.lineList[i].push(c[j]);
  20846. } else if (c[j].type == 6) {
  20847. this.textList[i].push(c[j]);
  20848. } else {
  20849. if (
  20850. b.indexOf(
  20851. c[j].url
  20852. .split(".")
  20853. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20854. ) != -1
  20855. ) {
  20856. this.vedio[i].push(c[j]);
  20857. } else {
  20858. this.file[i].push(c[j]);
  20859. }
  20860. }
  20861. }
  20862. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20863. d.sources[0].src =
  20864. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20865. this.playerO[i] = d;
  20866. }
  20867. this.courseDetail = res.data[0][0];
  20868. if(this.tType == 2){
  20869. this.tcid = this.arrayToArray(
  20870. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20871. this.classId ? this.classId.split(",") : []
  20872. ).join(",");
  20873. }else{
  20874. this.tcid = this.arrayToArray(
  20875. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20876. this.tcid2 ? this.tcid2.split(",") : []
  20877. ).join(",");
  20878. }
  20879. this.evalua = res.data[0][0].evaId;
  20880. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20881. this.courseType
  20882. ];
  20883. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20884. if (this.tcid && res.data[1].length) {
  20885. let _inviteA = [];
  20886. for (var ik = 0; ik < res.data[1].length; ik++) {
  20887. _inviteA.push({
  20888. cid: res.data[1][ik].classid,
  20889. ic: res.data[1][ik].code
  20890. });
  20891. }
  20892. for (var ik = 0; ik < _inviteA.length; ik++) {
  20893. if (
  20894. this.arrayToArray(
  20895. _inviteA[ik].cid.split(","),
  20896. this.tcid.split(",")
  20897. ).length
  20898. ) {
  20899. this.inviteCode = _inviteA[ik].ic;
  20900. break;
  20901. }
  20902. }
  20903. }
  20904. for (var l = 0; l < this.chapInfoList.length; l++) {
  20905. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20906. for (var m = 0; m < w.length; m++) {
  20907. w[m].id = l + "-" + m;
  20908. }
  20909. }
  20910. if (
  20911. _chapterData[this.taskCount].length &&
  20912. _chapterData[this.taskCount][0].type == 2
  20913. ) {
  20914. this.showType = 0;
  20915. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  20916. } else {
  20917. if (_chapterData[this.taskCount].length > 0) {
  20918. let _url = _chapterData[this.taskCount][0].url;
  20919. if (
  20920. _chapterData[this.taskCount][0].type == 8 ||
  20921. _chapterData[this.taskCount][0].type == 14
  20922. ) {
  20923. this.showType = 2;
  20924. if (
  20925. _url.indexOf("https://") == -1 &&
  20926. _url.indexOf("http://") == -1
  20927. ) {
  20928. _url = "https://" + _url;
  20929. }
  20930. this.pptImgUrl1 = _url;
  20931. } else if (_chapterData[this.taskCount][0].type == 3) {
  20932. if (
  20933. _url
  20934. .split(".")
  20935. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20936. ) {
  20937. this.showType = 3;
  20938. this.pptImgUrl1 = _url;
  20939. } else if (
  20940. this.isAssetTypeAnImage(
  20941. _url
  20942. .split(".")
  20943. [_url.split(".").length - 1].toLocaleLowerCase()
  20944. )
  20945. ) {
  20946. this.showType = 4;
  20947. this.pptImgUrl1 = _url;
  20948. } else {
  20949. this.showType = 2;
  20950. this.pptImgUrl1 =
  20951. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20952. encodeURIComponent(_url);
  20953. }
  20954. } else if (_chapterData[this.taskCount][0].type == 13) {
  20955. this.showType = 4;
  20956. this.pptImgUrl1 = _url;
  20957. } else if (_chapterData[this.taskCount][0].type == 6) {
  20958. this.showType = 1;
  20959. this.text = this.textList[this.taskCount][0];
  20960. }
  20961. }
  20962. }
  20963. this.isClickNav = 0;
  20964. if (
  20965. !_chapterData[this.taskCount].length ||
  20966. _chapterData[this.taskCount][0].type == 12
  20967. ) {
  20968. this.isClickNav = "";
  20969. this.showType = "";
  20970. }
  20971. if (this.tType == 2) {
  20972. _chapterData.forEach((e,i)=>{
  20973. if (e.length) {
  20974. let yym = e.filter(k=>{
  20975. if(!converter(k.name).includes(converter("教案"))){
  20976. return k
  20977. }
  20978. })
  20979. _chapterData[i] = yym
  20980. }
  20981. })
  20982. }
  20983. this.vChapterData = _chapterData;
  20984. } else {
  20985. this.showType = 0;
  20986. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20987. .chapterInfo[0].taskJson;
  20988. var b = [
  20989. "AVI",
  20990. "NAVI",
  20991. "MPEG",
  20992. "ASF",
  20993. "MOV",
  20994. "WMV",
  20995. "3GP",
  20996. "RM",
  20997. "RMVB",
  20998. "FLV",
  20999. "F4V",
  21000. "H.264",
  21001. "H.265",
  21002. "REAL VIDEO",
  21003. "MKV",
  21004. "WebM",
  21005. "HDDVD",
  21006. "MP4",
  21007. "MPG",
  21008. "M4V",
  21009. "MGV",
  21010. "OGV",
  21011. "QTM",
  21012. "STR",
  21013. "AMC",
  21014. "DVX",
  21015. "EVO",
  21016. "DAT",
  21017. "OGG",
  21018. "OGM",
  21019. "MP3"
  21020. ];
  21021. let _chapterData = [];
  21022. for (var i = 0; i < a.length; i++) {
  21023. var c = a[i].chapterData;
  21024. this.vedio[i] = [];
  21025. this.textList[i] = [];
  21026. this.lineList[i] = [];
  21027. this.chapToolList[i] = [];
  21028. this.file[i] = [];
  21029. this.fileC[i] = [];
  21030. _chapterData[i] = c.filter(el => {
  21031. return el.type != 12;
  21032. });
  21033. this.fileC[i] = c.filter(el => {
  21034. return el.type == 12;
  21035. });
  21036. if (this.tType == 2) {
  21037. if (this.fileC[i].length) {
  21038. let yym1 = this.fileC[i].filter(e=>{
  21039. if(!converter(e.name).includes(converter("教案"))){
  21040. return e
  21041. }
  21042. })
  21043. this.fileC[i] = yym1
  21044. }
  21045. }
  21046. for (var j = 0; j < c.length; j++) {
  21047. if (c[j].type == 7) {
  21048. this.chapToolList[i].push(c[j]);
  21049. } else if (c[j].type == 8 || c[j].type == 14) {
  21050. this.lineList[i].push(c[j]);
  21051. } else if (c[j].type == 6) {
  21052. this.textList[i].push(c[j]);
  21053. } else {
  21054. if (
  21055. b.indexOf(
  21056. c[j].url
  21057. .split(".")
  21058. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21059. ) != -1
  21060. ) {
  21061. this.vedio[i].push(c[j]);
  21062. } else {
  21063. this.file[i].push(c[j]);
  21064. }
  21065. }
  21066. }
  21067. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21068. d.sources[0].src =
  21069. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21070. this.playerO[i] = d;
  21071. }
  21072. if (
  21073. _chapterData[this.taskCount].length &&
  21074. _chapterData[this.taskCount][0].type == 2
  21075. ) {
  21076. this.showType = 0;
  21077. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21078. } else {
  21079. if (_chapterData[this.taskCount].length > 0) {
  21080. let _url = _chapterData[this.taskCount][0].url;
  21081. if (
  21082. _chapterData[this.taskCount][0].type == 8 ||
  21083. _chapterData[this.taskCount][0].type == 14
  21084. ) {
  21085. this.showType = 2;
  21086. if (
  21087. _url.indexOf("https://") == -1 &&
  21088. _url.indexOf("http://") == -1
  21089. ) {
  21090. _url = "https://" + _url;
  21091. }
  21092. this.pptImgUrl1 = _url;
  21093. } else if (_chapterData[this.taskCount][0].type == 3) {
  21094. if (
  21095. _url
  21096. .split(".")
  21097. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21098. ) {
  21099. this.showType = 3;
  21100. this.pptImgUrl1 = _url;
  21101. } else if (
  21102. this.isAssetTypeAnImage(
  21103. _url
  21104. .split(".")
  21105. [_url.split(".").length - 1].toLocaleLowerCase()
  21106. )
  21107. ) {
  21108. this.showType = 4;
  21109. this.pptImgUrl1 = _url;
  21110. } else {
  21111. this.showType = 2;
  21112. this.pptImgUrl1 =
  21113. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21114. encodeURIComponent(_url);
  21115. }
  21116. } else if (_chapterData[this.taskCount][0].type == 13) {
  21117. this.showType = 4;
  21118. this.pptImgUrl1 = _url;
  21119. } else if (_chapterData[this.taskCount][0].type == 6) {
  21120. this.showType = 1;
  21121. this.text = this.textList[this.taskCount][0];
  21122. }
  21123. }
  21124. }
  21125. this.isClickNav = 0;
  21126. if (
  21127. !_chapterData[this.taskCount].length ||
  21128. _chapterData[this.taskCount][0].type == 12
  21129. ) {
  21130. this.isClickNav = "";
  21131. this.showType = "";
  21132. }
  21133. if (this.tType == 2) {
  21134. _chapterData.forEach((e,i)=>{
  21135. if (e.length) {
  21136. let yym = e.filter(k=>{
  21137. if(!converter(k.name).includes(converter("教案"))){
  21138. return k
  21139. }
  21140. })
  21141. _chapterData[i] = yym
  21142. }
  21143. })
  21144. }
  21145. this.vChapterData = _chapterData;
  21146. this.$forceUpdate();
  21147. }
  21148. // console.log('this.chapInfoList22222',JS);
  21149. if (res.data[0][0].setting) {
  21150. try {
  21151. this.languageSetting =
  21152. JSON.parse(res.data[0][0].setting).languageSetting ||
  21153. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21154. ? JSON.parse(res.data[0][0].setting).languageSetting
  21155. : 0;
  21156. } catch (error) {
  21157. console.error(error);
  21158. }
  21159. }
  21160. // finalMarkList用来判断哪个工具为评分工具
  21161. if (this.courseDetail.state == 5) {
  21162. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21163. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21164. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21165. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21166. // // 没有的话在选其他工具为评分工具
  21167. // if(adc.length > 0){
  21168. // for (let k = chap.length - 1; k >= 0; k--) {
  21169. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21170. // this.finalMarkList = k;
  21171. // break;
  21172. // }
  21173. // }
  21174. // }else{
  21175. // for (let k = chap.length - 1; k >= 0; k--) {
  21176. // 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) {
  21177. // this.finalMarkList = k;
  21178. // break;
  21179. // }
  21180. // }
  21181. // }
  21182. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21183. // 不然会无限循环报错,会很难受
  21184. let aiSNum = 0;
  21185. if (
  21186. chapInfoListCopy[this.taskCount].eList &&
  21187. chapInfoListCopy[this.taskCount].eList.length
  21188. ) {
  21189. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21190. if (e.isai == 2) {
  21191. aiSNum++;
  21192. }
  21193. });
  21194. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21195. this.isaiNum = aiSNum;
  21196. } else {
  21197. this.isaiNum = 0;
  21198. }
  21199. // for (
  21200. // let k = 0;
  21201. // k < chapInfoListCopy[this.taskCount].eList.length;
  21202. // k++
  21203. // ) {
  21204. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21205. // this.againEva(this.taskCount, k);
  21206. // }
  21207. // }
  21208. }
  21209. }
  21210. // else {
  21211. // this.courseDetail = res.data[0][0];
  21212. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21213. // }
  21214. let _this = this;
  21215. if (_this.timer) {
  21216. clearInterval(_this.timer);
  21217. _this.timer = null;
  21218. }
  21219. if (_this.tcid) {
  21220. _this.getCourseGroup(gindex);
  21221. } else {
  21222. _this.selectSWorks(gindex);
  21223. }
  21224. _this.selectStudent();
  21225. _this.selectSLook();
  21226. _this.getPick();
  21227. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21228. _this.setCTask();
  21229. }
  21230. if (_this.dialogVisibleGroup) {
  21231. _this.groupJson =
  21232. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21233. _this.taskCount
  21234. ].toolChoose[_this.toolindex].groupJson;
  21235. }
  21236. _this.$nextTick(() => {
  21237. setTimeout(() => {
  21238. _this.checkEva();
  21239. }, 1000);
  21240. });
  21241. _this.timer = setInterval(function() {
  21242. // _this.getCourseDetail(2);
  21243. if (_this.tcid) {
  21244. _this.getCourseGroup();
  21245. } else {
  21246. _this.selectSWorks();
  21247. }
  21248. _this.selectStudent();
  21249. _this.selectSLook();
  21250. _this.getPick();
  21251. // _this.getSplitScreenData();
  21252. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21253. _this.setCTask();
  21254. }
  21255. if (_this.dialogVisibleGroup) {
  21256. _this.groupJson =
  21257. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21258. _this.taskCount
  21259. ].toolChoose[_this.toolindex].groupJson;
  21260. }
  21261. if (_this.tType == 4 || _this.ispzType == 4) {
  21262. _this.selectPz();
  21263. }
  21264. }, 5000);
  21265. if (_this.timer2 == null) {
  21266. _this.timer2 = setInterval(()=> {
  21267. _this.getSplitScreenData();//获取分屏数据
  21268. }, 5000);
  21269. }
  21270. _this.$nextTick(function() {
  21271. setTimeout(() => {
  21272. // var a =
  21273. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21274. // document.getElementsByClassName("vedioList")[0].style.height =
  21275. // a + "px";
  21276. // document.getElementsByClassName("navBox")[0].style.height =
  21277. // a - 40 + "px";
  21278. // if (_this.vedio[_this.taskCount].length > 0) {
  21279. // _this.vedioTime = [];
  21280. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21281. // _this.vedioTime[i] = document.getElementsByClassName(
  21282. // "vjs-duration-display"
  21283. // )[i].textContent;
  21284. // }
  21285. // }
  21286. }, 1000);
  21287. });
  21288. })
  21289. .catch(err => {
  21290. loading.close();
  21291. console.error(err);
  21292. });
  21293. },
  21294. getCourseGroup(gindex) {
  21295. let params = {
  21296. cid: this.id,
  21297. classid: this.tcid ? this.tcid : "1"
  21298. };
  21299. this.ajax
  21300. .get(this.$store.state.api + "getCourseGroup", params)
  21301. .then(res => {
  21302. if (res.data && res.data[0].length) {
  21303. if (!this.isGroup) {
  21304. let courseGroup = JSON.parse(res.data[0][0].group);
  21305. courseGroup.group = courseGroup.group.filter(el => {
  21306. el.works = [];
  21307. return el;
  21308. });
  21309. if (courseGroup.isopen == 2) {
  21310. this.isGroup = false;
  21311. this.selectSWorks(gindex);
  21312. return;
  21313. }
  21314. this.courseGroup = courseGroup;
  21315. let groupPerson = res.data[1];
  21316. let group = JSON.parse(res.data[0][0].group).group;
  21317. let courseGroupStudent = {};
  21318. let courseGroupStudentUid = {};
  21319. for (var i = 0; i < group.length; i++) {
  21320. courseGroupStudent[group[i].id] = [];
  21321. courseGroupStudentUid[group[i].id] = [];
  21322. for (var j = 0; j < groupPerson.length; j++) {
  21323. if (groupPerson[j].groupCid == group[i].id) {
  21324. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21325. courseGroupStudentUid[group[i].id].push(
  21326. groupPerson[j].userid
  21327. );
  21328. }
  21329. }
  21330. }
  21331. this.courseGroupStudent = courseGroupStudent;
  21332. this.courseGroupStudentUid = courseGroupStudentUid;
  21333. }
  21334. if (this.courseGroup.isopen == 2) {
  21335. this.isGroup = false;
  21336. } else {
  21337. this.isGroup = true;
  21338. }
  21339. this.selectSWorks(gindex);
  21340. } else {
  21341. this.selectSWorks(gindex);
  21342. this.isGroup = false;
  21343. }
  21344. })
  21345. .catch(err => {
  21346. // this.$message.error("网络不佳");
  21347. console.error(err);
  21348. });
  21349. },
  21350. setOperationTime() {
  21351. let _this = this;
  21352. if (_this.opertimer) {
  21353. clearInterval(_this.opertimer);
  21354. _this.opertimer = null;
  21355. }
  21356. _this.opertimer = setInterval(() => {
  21357. _this.setoTime("600");
  21358. }, 600000);
  21359. },
  21360. setoTime(time) {
  21361. let params = [
  21362. {
  21363. uid: this.userid,
  21364. cid: this.id,
  21365. type: "2",
  21366. time: time
  21367. }
  21368. ];
  21369. this.ajax
  21370. .post(this.$store.state.api + "addOperationTimeT2", params)
  21371. .then(res => {})
  21372. .catch(err => {
  21373. console.error(err);
  21374. });
  21375. },
  21376. addPz(type, content) {
  21377. if (type == "1" && this.pzConText == "") {
  21378. this.$message.error("评论不能为空!");
  21379. return;
  21380. }
  21381. let params = [
  21382. {
  21383. cid: this.id,
  21384. uid: this.userid,
  21385. s: this.courseType,
  21386. t: this.taskCount,
  21387. c: type == "1" ? this.pzConText : content,
  21388. type: type
  21389. }
  21390. ];
  21391. this.ajax
  21392. .post(this.$store.state.api + "addPz2", params)
  21393. .then(res => {
  21394. this.$message({
  21395. message: "添加成功",
  21396. type: "success"
  21397. });
  21398. this.pzConText = "";
  21399. this.addPzDialog = false;
  21400. this.selectPz();
  21401. this.insertMemorandum(
  21402. `使用<span class="btn">评论</span>功能,添加评论`
  21403. );
  21404. })
  21405. .catch(err => {
  21406. this.$message.error("添加失败");
  21407. console.error(err);
  21408. });
  21409. },
  21410. setReplyIndex(id, i) {
  21411. this.replyIndex = i;
  21412. this.replyPid = id;
  21413. this.replyDialogVisible = true;
  21414. },
  21415. addHf() {
  21416. if (this.reply == "") {
  21417. this.$message.error("回复不能为空!");
  21418. return;
  21419. }
  21420. let params = [
  21421. {
  21422. cid: this.id,
  21423. uid: this.userid,
  21424. s: this.courseType,
  21425. t: this.taskCount,
  21426. type: "1",
  21427. ct: 2,
  21428. pid: this.replyPid,
  21429. c: this.reply
  21430. }
  21431. ];
  21432. this.ajax
  21433. .post(this.$store.state.api + "addHf", params)
  21434. .then(res => {
  21435. this.reply = "";
  21436. this.$message({
  21437. message: "回复成功",
  21438. type: "success"
  21439. });
  21440. this.replyDialogVisible = false;
  21441. this.selectPz();
  21442. })
  21443. .catch(err => {
  21444. this.$message.error("回复失败");
  21445. console.error(err);
  21446. });
  21447. },
  21448. deletePz(id) {
  21449. this.$confirm("确定删除此评论吗?", "提示", {
  21450. confirmButtonText: "确定",
  21451. cancelButtonText: "取消",
  21452. type: "warning"
  21453. })
  21454. .then(() => {
  21455. let params = [
  21456. {
  21457. id: id
  21458. }
  21459. ];
  21460. this.ajax
  21461. .post(this.$store.state.api + "deletePz", params)
  21462. .then(res => {
  21463. this.$message({
  21464. message: "删除成功",
  21465. type: "success"
  21466. });
  21467. this.selectPz();
  21468. })
  21469. .catch(err => {
  21470. this.$message.error("网络异常");
  21471. console.error(err);
  21472. });
  21473. })
  21474. .catch(() => {});
  21475. },
  21476. deleteReply(id) {
  21477. this.$confirm("确定删除此回复吗?", "提示", {
  21478. confirmButtonText: "确定",
  21479. cancelButtonText: "取消",
  21480. type: "warning"
  21481. })
  21482. .then(() => {
  21483. let params = [
  21484. {
  21485. id: id
  21486. }
  21487. ];
  21488. this.ajax
  21489. .post(this.$store.state.api + "deleteReply", params)
  21490. .then(res => {
  21491. this.$message({
  21492. message: "删除成功",
  21493. type: "success"
  21494. });
  21495. this.selectPz();
  21496. })
  21497. .catch(err => {
  21498. this.$message.error("网络异常");
  21499. console.error(err);
  21500. });
  21501. })
  21502. .catch(() => {});
  21503. },
  21504. setPz() {
  21505. if (this.ispzType == 4) {
  21506. this.ispzType = 0;
  21507. this.pzDialog = false;
  21508. return;
  21509. }
  21510. this.ispzType = 4;
  21511. this.pzDialog = true;
  21512. this.selectPz();
  21513. },
  21514. selectPz() {
  21515. let params = {
  21516. cid: this.id,
  21517. s: this.courseType,
  21518. t: this.taskCount,
  21519. type: this.pzStype,
  21520. uid: this.userid
  21521. };
  21522. this.ajax
  21523. .get(this.$store.state.api + "selectPzListType", params)
  21524. .then(res => {
  21525. this.pzList = res.data[0];
  21526. var a = res.data[1];
  21527. for (var i = 0; i < a.length; i++) {
  21528. for (var j = 0; j < this.pzList.length; j++) {
  21529. if (!this.pzList[j].hfList) {
  21530. this.pzList[j].hfList = [];
  21531. }
  21532. if (a[i].pid == this.pzList[j].id) {
  21533. this.pzList[j].hfList.push(a[i]);
  21534. }
  21535. }
  21536. }
  21537. })
  21538. .catch(err => {
  21539. console.error(err);
  21540. });
  21541. },
  21542. // selectHf() {
  21543. // let params = {
  21544. // cid: this.id,
  21545. // s: this.courseType,
  21546. // t: this.taskCount,
  21547. // };
  21548. // this.ajax
  21549. // .get(this.$store.state.api + "selectHfList", params)
  21550. // .then((res) => {
  21551. // var a = res.data[0];
  21552. // for (var i = 0; i < a.length; i++) {
  21553. // for (var j = 0; j < this.pzList.length; j++) {
  21554. // if (!this.pzList[i].hfList) {
  21555. // this.pzList[i].hfList = [];
  21556. // }
  21557. // if (a[i].pid == this.pzList[j].id) {
  21558. // this.pzList[i].hfList.push(a[i]);
  21559. // }
  21560. // }
  21561. // }
  21562. // })
  21563. // .catch((err) => {
  21564. // console.error(err);
  21565. // });
  21566. // },
  21567. updateSLook() {
  21568. let params = {
  21569. sopen: this.sIsOpen == false ? 1 : 2,
  21570. cid: this.id
  21571. };
  21572. this.ajax
  21573. .get(this.$store.state.api + "updateCourseSLook", params)
  21574. .then(res => {
  21575. if (this.sIsOpen == true) {
  21576. this.$message({
  21577. message: "权限设置成功",
  21578. type: "success"
  21579. });
  21580. } else {
  21581. this.$message({
  21582. message: "权限关闭成功",
  21583. type: "success"
  21584. });
  21585. }
  21586. })
  21587. .catch(err => {
  21588. console.error(err);
  21589. });
  21590. },
  21591. updateFollow() {
  21592. let params = [
  21593. {
  21594. sopen: this.IsFollow == false ? 1 : 2,
  21595. cid: this.id
  21596. }
  21597. ];
  21598. this.ajax
  21599. .post(this.$store.state.api + "updateCourseFollow", params)
  21600. .then(res => {
  21601. if (this.IsFollow == true) {
  21602. this.$message({
  21603. message: "开启成功",
  21604. type: "success"
  21605. });
  21606. } else {
  21607. this.$message({
  21608. message: "关闭成功",
  21609. type: "success"
  21610. });
  21611. }
  21612. this.setCTask();
  21613. })
  21614. .catch(err => {
  21615. console.error(err);
  21616. });
  21617. },
  21618. setCTask() {
  21619. let params = [
  21620. {
  21621. sopen: this.courseType + "-" + this.taskCount,
  21622. cid: this.id
  21623. }
  21624. ];
  21625. this.ajax
  21626. .post(this.$store.state.api + "updateCourseFollowC", params)
  21627. .then(res => {})
  21628. .catch(err => {
  21629. console.error(err);
  21630. });
  21631. },
  21632. updateLookOpen() {
  21633. let params = [
  21634. {
  21635. sopen: this.IsLookOpen == false ? 1 : 2,
  21636. cid: this.id
  21637. }
  21638. ];
  21639. this.ajax
  21640. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21641. .then(res => {
  21642. if (this.IsLookOpen == true) {
  21643. // if (this.courseType != 0 && this.taskCount != 0) {
  21644. // this.openTask(0, 0, "0-0");
  21645. // }
  21646. this.$message({
  21647. message: "权限设置成功",
  21648. type: "success"
  21649. });
  21650. } else {
  21651. this.$message({
  21652. message: "权限关闭成功",
  21653. type: "success"
  21654. });
  21655. }
  21656. this.getCourseState(2);
  21657. })
  21658. .catch(err => {
  21659. console.error(err);
  21660. });
  21661. },
  21662. selectSLook() {
  21663. let params = {
  21664. cid: this.id
  21665. };
  21666. this.ajax
  21667. .get(this.$store.state.api + "selectCourseSLook", params)
  21668. .then(res => {
  21669. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21670. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21671. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21672. if (!this.IsLookOpen) {
  21673. this.setNavList();
  21674. }
  21675. // else {
  21676. this.getCourseState(1);
  21677. // }
  21678. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  21679. if ((this.IsFollow && this.tType == 2)) {
  21680. this.setContent2(false);
  21681. let _followC = res.data[0][0].followC.split("-");
  21682. if (
  21683. this.courseType != _followC[0] ||
  21684. this.taskCount != _followC[1]
  21685. ) {
  21686. this.navList[this.courseType].isOpen = false;
  21687. this.courseType = _followC[0];
  21688. this.navList[this.courseType].isOpen = true;
  21689. this.taskCount = parseInt(_followC[1]);
  21690. this.navId = res.data[0][0].followC;
  21691. document.scrollingElement.scrollTop = 0;
  21692. this.getCourseDetail(2);
  21693. }
  21694. }
  21695. })
  21696. .catch(err => {
  21697. console.error(err);
  21698. });
  21699. },
  21700. setNavList() {
  21701. if (this.navList.length == 0) {
  21702. this.navList = [];
  21703. var copyList = [];
  21704. for (var l = 0; l < this.chapInfoList.length; l++) {
  21705. var q = this.chapInfoList[l].dyName;
  21706. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21707. var e;
  21708. copyList.push({
  21709. dyName: q,
  21710. isOpen: l === 0 ? true : false,
  21711. task: []
  21712. });
  21713. for (var r = 0; r < w.length; r++) {
  21714. e = w[r].task;
  21715. if (this.chapInfoList[l].easy == 1) {
  21716. copyList[l].task.push({
  21717. taskName: q,
  21718. id: l + "-" + r,
  21719. isLook: w[r].isLook,
  21720. isOpen: r === 0 ? true : false,
  21721. tool: []
  21722. });
  21723. } else {
  21724. copyList[l].task.push({
  21725. taskName: e,
  21726. id: l + "-" + r,
  21727. isLook: w[r].isLook,
  21728. isOpen: r === 0 ? true : false,
  21729. tool: []
  21730. });
  21731. }
  21732. var t = w[r].toolChoose;
  21733. for (var k = 0; k < t.length; k++) {
  21734. var tool = t[k].tool[0];
  21735. copyList[l].task[r].tool.push({
  21736. tool: tool,
  21737. isTool: false
  21738. });
  21739. }
  21740. // this.navId = this.navId ? this.navId : l + "-" + r;
  21741. // this.navId = l + "-" + r;
  21742. }
  21743. }
  21744. this.navList = copyList;
  21745. this.navList[0].isOpen = false;
  21746. this.navList[this.courseType].isOpen = true;
  21747. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21748. } else {
  21749. this.setNavList2();
  21750. }
  21751. },
  21752. setNavList2() {
  21753. for (var l = 0; l < this.chapInfoList.length; l++) {
  21754. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21755. for (var r = 0; r < w.length; r++) {
  21756. this.navList[l].task[r].isLook = w[r].isLook;
  21757. }
  21758. }
  21759. if (
  21760. this.IsLookOpen &&
  21761. !this.navList[this.courseType].task[this.taskCount].isLook
  21762. ) {
  21763. this.openTask(0, 0, "0-0");
  21764. }
  21765. this.$forceUpdate();
  21766. },
  21767. getCourseState(type) {
  21768. let params = {
  21769. cid: this.id
  21770. };
  21771. this.ajax
  21772. .get(this.$store.state.api + "getCourseState", params)
  21773. .then(res => {
  21774. if (res.data[0].length > 0) {
  21775. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21776. }
  21777. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  21778. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  21779. console.log("this.chapInfoList", this.chapInfoList);
  21780. this.setNavList();
  21781. this.$forceUpdate();
  21782. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  21783. this.addCourseState(2);
  21784. } else {
  21785. this.addCourseState(1);
  21786. }
  21787. })
  21788. .catch(err => {
  21789. console.error(err);
  21790. });
  21791. },
  21792. addCourseState(type,val = '') {
  21793. let _state = val ? val : this.chapInfoList;
  21794. // this.courseType this.taskCount
  21795. if (type == 1 || type == 2) {
  21796. for (var i = 0; i < _state.length; i++) {
  21797. let el = _state[i].chapterInfo[0].taskJson;
  21798. for (var j = 0; j < el.length; j++) {
  21799. // if (i == 0 && j == 0) {
  21800. // el[j].isLook = true;
  21801. // } else {
  21802. // el[j].isLook = false;
  21803. // }
  21804. if (
  21805. this.courseType > i ||
  21806. (this.courseType == i && this.taskCount + 1 > j)
  21807. ) {
  21808. el[j].isLook = true;
  21809. } else {
  21810. el[j].isLook = false;
  21811. }
  21812. }
  21813. }
  21814. }
  21815. let params = [
  21816. {
  21817. cid: this.id,
  21818. state: JSON.stringify(_state)
  21819. }
  21820. ];
  21821. this.ajax
  21822. .post(
  21823. this.$store.state.api +
  21824. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21825. params
  21826. )
  21827. .then(res => {
  21828. if (this.IsLookOpen) {
  21829. this.setNavList();
  21830. }
  21831. if (type == 3 && type == 2) {
  21832. this.getCourseState(1);
  21833. }
  21834. })
  21835. .catch(err => {
  21836. console.error(err);
  21837. });
  21838. },
  21839. getHomeWork() {
  21840. let params = {
  21841. cid: this.id,
  21842. stage: this.courseType,
  21843. task: this.taskCount,
  21844. uid: this.userid
  21845. };
  21846. this.ajax
  21847. .get(this.$store.state.api + "selectWork", params)
  21848. .then(res => {
  21849. if (res.data[0].length > 0) {
  21850. this.studyJuri = JSON.parse(res.data[0][0].content);
  21851. this.isNoHomeWork = true;
  21852. }
  21853. })
  21854. .catch(err => {
  21855. console.error(err);
  21856. });
  21857. },
  21858. isAssetTypeAnImage(ext) {
  21859. return (
  21860. [
  21861. "png",
  21862. "jpg",
  21863. "jpeg",
  21864. "bmp",
  21865. "gif",
  21866. "webp",
  21867. "psd",
  21868. "svg",
  21869. "tiff"
  21870. ].indexOf(ext) !== -1
  21871. );
  21872. },
  21873. switchVideo(media) {
  21874. this.playerO = {};
  21875. this.playerOptions.poster = "";
  21876. this.playerOptions.sources[0].src = media;
  21877. this.playerO = this.playerOptions;
  21878. },
  21879. onPlayerPlay() {},
  21880. onPlayerTimeupdate(player) {
  21881. let gklog = player.cache_.currentTime; //当前播放的秒数
  21882. let a = player.cache_.duration; //视频的总时长
  21883. let gklog2 = parseInt(gklog);
  21884. // if(gklog2 == '3'){
  21885. // player.pause()
  21886. // setTimeout(()=>{
  21887. // player.currentTime(gklog2+1)
  21888. // player.play()
  21889. // },1000)
  21890. // }
  21891. console.log(" onPlayerTimeupdate!", gklog);
  21892. console.log(" onPlayerTimeupdate!", gklog2);
  21893. },
  21894. lookVedio(u, i) {
  21895. this.isClickNav = "";
  21896. // this.playerOptions.sources[0].src = u;
  21897. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21898. d.sources[0].src = u;
  21899. this.playerO[this.taskCount] = d;
  21900. this.showType = 0;
  21901. // this.isClickNav = "video" + i;
  21902. this.isClickNav = i;
  21903. this.$forceUpdate();
  21904. this.insertMemorandum(
  21905. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21906. this.vChapterData[this.taskCount].find(i => i.url == u).name
  21907. }</span>`
  21908. );
  21909. },
  21910. lookText(i, t) {
  21911. this.isClickNav = "";
  21912. // this.text = this.textList[i][t];
  21913. this.text = this.vChapterData[i][t];
  21914. // this.dialogVisible1 = true;
  21915. this.showType = 1;
  21916. // this.isClickNav = "text" + t;
  21917. this.isClickNav = t;
  21918. this.insertMemorandum(
  21919. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21920. this.vChapterData[this.taskCount][t].name
  21921. }.doc</span>`
  21922. );
  21923. },
  21924. lookTools(i, t) {
  21925. this.chapTools = this.chapToolList[i][t];
  21926. this.dialogVisible2 = true;
  21927. },
  21928. async openFile(f) {
  21929. this.pptImgUrl = "";
  21930. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21931. if (
  21932. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21933. -1
  21934. ) {
  21935. let _uuurl = await this.checkLink(f);
  21936. this.pptImgUrl =
  21937. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21938. encodeURIComponent(_uuurl);
  21939. this.showPDF = false;
  21940. this.dialogVisible3 = true;
  21941. } else if (
  21942. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21943. ) {
  21944. this.pptImgUrl = f;
  21945. this.showPDF = true;
  21946. this.dialogVisible3 = true;
  21947. }
  21948. this.insertMemorandum(
  21949. `查看<span class="variable">${w.sName}</span>的作业`
  21950. );
  21951. },
  21952. openTable(f) {
  21953. this.tableJson = JSON.parse(f.works);
  21954. this.dialogVisibleTable2 = true;
  21955. this.insertMemorandum(
  21956. `查看<span class="variable">${f.sName}的作业</span>`
  21957. );
  21958. },
  21959. openWord(f) {
  21960. this.tableJson = JSON.parse(f.works);
  21961. this.dialogVisibleTable3 = true;
  21962. this.insertMemorandum(
  21963. `查看<span class="variable">${f.sName}的作业</span>`
  21964. );
  21965. },
  21966. doUrl(url, i) {
  21967. this.isClickNav = "";
  21968. this.pptImgUrl1 = "";
  21969. this.showType = 2;
  21970. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21971. url = "https://" + url;
  21972. }
  21973. this.pptImgUrl1 = "";
  21974. setTimeout(() => {
  21975. this.pptImgUrl1 = url;
  21976. }, 500);
  21977. // this.isClickNav = "line" + i;
  21978. this.isClickNav = i;
  21979. this.$forceUpdate();
  21980. },
  21981. checkPhoto(f, i) {
  21982. this.showType = 4;
  21983. this.pptImgUrl1 = f.url;
  21984. this.isClickNav = i;
  21985. this.$forceUpdate();
  21986. this.insertMemorandum(
  21987. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  21988. this.vChapterData[this.taskCount][i].name
  21989. }</span>`
  21990. );
  21991. },
  21992. async downFile(f, i) {
  21993. this.isClickNav = "";
  21994. this.pptImgUrl1 = "";
  21995. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21996. if (
  21997. a.indexOf(
  21998. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21999. ) != -1
  22000. ) {
  22001. let _uuurl = await this.checkLink(f.url);
  22002. this.pptImgUrl1 =
  22003. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22004. encodeURIComponent(_uuurl);
  22005. // this.dialogVisible3 = true;
  22006. this.showType = 2;
  22007. } else if (
  22008. this.isAssetTypeAnImage(
  22009. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22010. )
  22011. ) {
  22012. this.showType = 4;
  22013. this.pptImgUrl1 = f.url;
  22014. } else if (
  22015. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22016. "PDF"
  22017. ) {
  22018. this.pptImgUrl1 = f.url;
  22019. // this.dialogVisible3 = true;
  22020. this.showType = 3;
  22021. } else {
  22022. window.open(this.file[i].url);
  22023. }
  22024. // this.isClickNav = "word" + i;
  22025. this.isClickNav = i;
  22026. this.insertMemorandum(
  22027. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22028. this.vChapterData[this.taskCount][i].name
  22029. }</span>`
  22030. );
  22031. },
  22032. downFileList(i) {
  22033. window.open(this.noImgList[i].url);
  22034. },
  22035. openAddWork() {
  22036. this.dialogVisible = true;
  22037. },
  22038. addBzWorks() {
  22039. let params = [
  22040. {
  22041. uid: this.userid,
  22042. cid: this.id,
  22043. stage: this.courseType,
  22044. task: this.taskCount,
  22045. tool: this.toolindex,
  22046. content: JSON.stringify(this.eScore),
  22047. type: 6
  22048. }
  22049. ];
  22050. this.ajax
  22051. .post(this.$store.state.api + "addCourseWorks", params)
  22052. .then(res => {
  22053. this.$message({
  22054. message: "提交成功",
  22055. type: "success"
  22056. });
  22057. this.eScore = { eBzText: "", eStar: [] };
  22058. this.studentEvalDialogVisible = false;
  22059. this.selectSWorks();
  22060. })
  22061. .catch(err => {
  22062. this.$message.error("提交失败");
  22063. console.error(err);
  22064. });
  22065. },
  22066. addBzWorksTeacher() {
  22067. let params = [
  22068. {
  22069. uid: this.sStudent.userid,
  22070. cid: this.id,
  22071. stage: this.courseType,
  22072. task: this.taskCount,
  22073. tool: this.toolindex,
  22074. content: JSON.stringify(this.eScore),
  22075. type: 6
  22076. }
  22077. ];
  22078. this.ajax
  22079. .post(this.$store.state.api + "addCourseWorks", params)
  22080. .then(res => {
  22081. this.$message({
  22082. message: "提交成功",
  22083. type: "success"
  22084. });
  22085. this.eScore = { eBzText: "", eStar: [] };
  22086. this.studentEvalDialogVisibleTeacher = false;
  22087. this.selectSWorks();
  22088. })
  22089. .catch(err => {
  22090. this.$message.error("提交失败");
  22091. console.error(err);
  22092. });
  22093. },
  22094. addStudentAsk() {
  22095. if (!this.radio.length) {
  22096. this.$message.error("请选择选项");
  22097. return;
  22098. }
  22099. for (var i = 0; i < this.askJson.askCount; i++) {
  22100. if (
  22101. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22102. (this.radio[i] !== 0 && !this.radio[i])
  22103. ) {
  22104. this.$message.error("请选择选项");
  22105. return;
  22106. }
  22107. }
  22108. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22109. let params = [
  22110. {
  22111. uid: this.userid,
  22112. cid: this.id,
  22113. stage: this.courseType,
  22114. task: this.taskCount,
  22115. tool: this.toolindex,
  22116. content: JSON.stringify(this.askList),
  22117. type: 2
  22118. }
  22119. ];
  22120. this.ajax
  22121. .post(this.$store.state.api + "addCourseWorks", params)
  22122. .then(res => {
  22123. this.$message({
  22124. message: "提交成功",
  22125. type: "success"
  22126. });
  22127. this.askList = [];
  22128. this.dialogVisible5 = false;
  22129. this.selectStudent();
  22130. this.selectSWorks();
  22131. this.selectSLook();
  22132. })
  22133. .catch(err => {
  22134. this.$message.error("提交失败");
  22135. console.error(err);
  22136. });
  22137. },
  22138. addStudentAskTeacher() {
  22139. if (!this.radio.length) {
  22140. this.$message.error("请选择选项");
  22141. return;
  22142. }
  22143. for (var i = 0; i < this.askJson.askCount; i++) {
  22144. if (
  22145. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22146. (this.radio[i] !== 0 && !this.radio[i])
  22147. ) {
  22148. this.$message.error("请选择选项");
  22149. return;
  22150. }
  22151. }
  22152. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22153. let params = [
  22154. {
  22155. uid: this.sStudent.userid,
  22156. cid: this.id,
  22157. stage: this.courseType,
  22158. task: this.taskCount,
  22159. tool: this.toolindex,
  22160. content: JSON.stringify(this.askList),
  22161. type: 2
  22162. }
  22163. ];
  22164. this.ajax
  22165. .post(this.$store.state.api + "addCourseWorks", params)
  22166. .then(res => {
  22167. this.$message({
  22168. message: "提交成功",
  22169. type: "success"
  22170. });
  22171. this.askList = [];
  22172. this.dialogVisible5Teacher = false;
  22173. this.selectStudent();
  22174. this.selectSWorks();
  22175. this.selectSLook();
  22176. })
  22177. .catch(err => {
  22178. this.$message.error("提交失败");
  22179. console.error(err);
  22180. });
  22181. },
  22182. addStudentTest() {
  22183. if (!this.radio.length) {
  22184. this.$message.error("请选择选项");
  22185. return;
  22186. }
  22187. for (var i = 0; i < this.testJson.testCount; i++) {
  22188. if (
  22189. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22190. (this.radio[i] !== 0 && !this.radio[i])
  22191. ) {
  22192. this.$message.error("请选择选项");
  22193. return;
  22194. }
  22195. }
  22196. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22197. let params = [
  22198. {
  22199. uid: this.userid,
  22200. cid: this.id,
  22201. stage: this.courseType,
  22202. task: this.taskCount,
  22203. tool: this.toolindex,
  22204. content: JSON.stringify(this.askList),
  22205. type: 8
  22206. }
  22207. ];
  22208. this.ajax
  22209. .post(this.$store.state.api + "addCourseWorks", params)
  22210. .then(res => {
  22211. this.$message({
  22212. message: "提交成功",
  22213. type: "success"
  22214. });
  22215. this.askList = [];
  22216. this.dialogVisibleChoice = false;
  22217. this.selectStudent();
  22218. this.selectSWorks();
  22219. this.selectSLook();
  22220. })
  22221. .catch(err => {
  22222. this.$message.error("提交失败");
  22223. console.error(err);
  22224. });
  22225. },
  22226. addStudentTestTeacher() {
  22227. if (!this.radio.length) {
  22228. this.$message.error("请选择选项");
  22229. return;
  22230. }
  22231. for (var i = 0; i < this.testJson.testCount; i++) {
  22232. if (
  22233. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22234. (this.radio[i] !== 0 && !this.radio[i])
  22235. ) {
  22236. this.$message.error("请选择选项");
  22237. return;
  22238. }
  22239. }
  22240. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22241. let params = [
  22242. {
  22243. uid: this.sStudent.userid,
  22244. cid: this.id,
  22245. stage: this.courseType,
  22246. task: this.taskCount,
  22247. tool: this.toolindex,
  22248. content: JSON.stringify(this.askList),
  22249. type: 8
  22250. }
  22251. ];
  22252. this.ajax
  22253. .post(this.$store.state.api + "addCourseWorks", params)
  22254. .then(res => {
  22255. this.$message({
  22256. message: "提交成功",
  22257. type: "success"
  22258. });
  22259. this.askList = [];
  22260. this.dialogVisibleChoiceTeacher = false;
  22261. this.selectStudent();
  22262. this.selectSWorks();
  22263. this.selectSLook();
  22264. })
  22265. .catch(err => {
  22266. this.$message.error("提交失败");
  22267. console.error(err);
  22268. });
  22269. },
  22270. addWork() {
  22271. if (this.studyJuri[0].content == "") {
  22272. this.$message.error("请将信息填写完整");
  22273. return;
  22274. } else if (this.studyJuri[0].cover.length == 0) {
  22275. this.$message.error("请将信息填写完整");
  22276. return;
  22277. } else if (this.studyJuri[0].upVedio.length == 0) {
  22278. this.$message.error("请将信息填写完整");
  22279. return;
  22280. }
  22281. if (this.isNoHomeWork) {
  22282. this.$confirm(
  22283. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22284. "提示",
  22285. {
  22286. confirmButtonText: "确定",
  22287. cancelButtonText: "取消",
  22288. type: "warning"
  22289. }
  22290. )
  22291. .then(() => {
  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. .catch(() => {});
  22317. } else {
  22318. let params = [
  22319. {
  22320. uid: this.userid,
  22321. cid: this.id,
  22322. stage: this.courseType,
  22323. task: this.taskCount,
  22324. content: JSON.stringify(this.studyJuri)
  22325. }
  22326. ];
  22327. this.ajax
  22328. .post(this.$store.state.api + "addWorks", params)
  22329. .then(res => {
  22330. this.$message({
  22331. message: "提交成功",
  22332. type: "success"
  22333. });
  22334. this.isNoHomeWork = true;
  22335. this.dialogVisible = false;
  22336. })
  22337. .catch(err => {
  22338. this.$message.error("提交失败");
  22339. console.error(err);
  22340. });
  22341. }
  22342. },
  22343. selectCount() {
  22344. let params = {
  22345. cid: this.id,
  22346. chid: this.courseType,
  22347. uid: this.userid
  22348. };
  22349. this.ajax
  22350. .get(this.$store.state.api + "selectToolsCount", params)
  22351. .then(res => {
  22352. for (var i = 0; i < res.data[0].length; i++) {
  22353. if (res.data[0][i].tools == 1) {
  22354. this.wbCount = res.data[0][i].count;
  22355. } else if (res.data[0][i].tools == 2) {
  22356. this.wordCount = res.data[0][i].count;
  22357. } else if (res.data[0][i].tools == 3) {
  22358. this.mindCount = res.data[0][i].count;
  22359. } else if (res.data[0][i].tools == 4) {
  22360. this.askCount = res.data[0][i].count;
  22361. } else if (res.data[0][i].tools == 6) {
  22362. this.noteCount = res.data[0][i].count;
  22363. } else if (res.data[0][i].tools == 7) {
  22364. this.mindNetWorkCount = res.data[0][i].count;
  22365. } else if (res.data[0][i].tools == 8) {
  22366. this.libraryCount = res.data[0][i].count;
  22367. } else if (res.data[0][i].tools == 16) {
  22368. this.workCount = res.data[0][i].count;
  22369. } else if (res.data[0][i].tools == 10) {
  22370. this.timeCount = res.data[0][i].count;
  22371. } else if (res.data[0][i].tools == 15) {
  22372. this.answerCount = res.data[0][i].count;
  22373. } else if (res.data[0][i].tools == 18) {
  22374. this.trainCount = res.data[0][i].count;
  22375. }
  22376. }
  22377. })
  22378. .catch(err => {
  22379. console.error(err);
  22380. });
  22381. },
  22382. openTools(t, i, index, c, sName, id) {
  22383. var z = JSON.parse(c);
  22384. this.noteName = sName;
  22385. if (t == 4) {
  22386. this.radio = [];
  22387. this.isAnswer = false;
  22388. let b = z[0].anwer;
  22389. this.radio = b;
  22390. this.askJson = z[0].askJson;
  22391. this.isAnswer = true;
  22392. this.dialogVisible5 = true;
  22393. } else if (t == 45) {
  22394. this.radio = [];
  22395. this.isAnswer = false;
  22396. let b = z[0].anwer;
  22397. this.radio = b;
  22398. this.testJson = z[0].testJson;
  22399. this.isAnswer = true;
  22400. this.dialogVisibleChoice = true;
  22401. } else if (t == 69) {
  22402. this.oldEnglishJson1 = {};
  22403. this.oldEnglishJson = {};
  22404. this.englishList1 = {};
  22405. this.newEngIndex = -1;
  22406. this.isNoUserid = false;
  22407. this.englishList1 = this.chapInfoList[
  22408. this.courseType
  22409. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  22410. this.oldEnglishJson = z;
  22411. this.engWid = id;
  22412. this.newEnglishList = { engTitle: "", engText: "" };
  22413. this.newEnglishList1 = [];
  22414. this.selectEngC(id, z);
  22415. } else if (t == 62) {
  22416. this.videoType = 1;
  22417. this.videoJson = {};
  22418. this.videoJson = JSON.parse(c);
  22419. // this.videoJson =
  22420. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22421. // index
  22422. // ].toolChoose[i].videoJson;
  22423. this.dialogVisibleVideo = true;
  22424. }
  22425. // else if (t == 15) {
  22426. // this.answerQ = "";
  22427. // this.questionAnswer = "";
  22428. // this.answerQ = z[0].answerTitle;
  22429. // this.questionAnswer = z[0].answer;
  22430. // this.answerDialogVisible = true;
  22431. // }
  22432. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  22433. },
  22434. fastText(p, t) {
  22435. if (t == 1) {
  22436. this.commentText += p;
  22437. } else {
  22438. this.eScore.eBzText += p;
  22439. }
  22440. },
  22441. addTools(t, i, index) {
  22442. var a = 0;
  22443. // this.taskCount = index;
  22444. this.toolindex = i;
  22445. if (t == 1) {
  22446. if (this.wbCount > 0) {
  22447. this.updateCount(this.wbCount, t);
  22448. } else {
  22449. this.wbCount++;
  22450. a = this.wbCount;
  22451. this.toolsCount(a, t);
  22452. }
  22453. window.parent.postMessage(
  22454. {
  22455. tools: "1",
  22456. cid: this.id,
  22457. stage: this.courseType,
  22458. task: this.taskCount,
  22459. tool: i
  22460. },
  22461. "*"
  22462. );
  22463. } else if (t == 2) {
  22464. if (this.wordCount > 0) {
  22465. this.updateCount(this.wordCount, t);
  22466. } else {
  22467. this.wordCount++;
  22468. a = this.wordCount;
  22469. this.toolsCount(a, t);
  22470. }
  22471. window.parent.postMessage({ tools: "2" }, "*");
  22472. } else if (t == 3) {
  22473. if (this.mindCount > 0) {
  22474. this.updateCount(this.mindCount, t);
  22475. } else {
  22476. this.mindCount++;
  22477. a = this.mindCount;
  22478. this.toolsCount(a, t);
  22479. }
  22480. window.parent.postMessage(
  22481. {
  22482. tools: "3",
  22483. cid: this.id,
  22484. stage: this.courseType,
  22485. task: this.taskCount,
  22486. tool: i
  22487. },
  22488. "*"
  22489. );
  22490. } else if (t == 4) {
  22491. this.radio = [];
  22492. this.noteName = "";
  22493. this.isAnswer = false;
  22494. if (this.askCount > 0) {
  22495. this.updateCount(this.askCount, t);
  22496. } else {
  22497. this.askCount++;
  22498. a = this.askCount;
  22499. this.toolsCount(a, t);
  22500. }
  22501. if (!this.dialogVisible2) {
  22502. this.askJson.askJson = this.chapInfoList[
  22503. this.courseType
  22504. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22505. this.askJson.askTitle = this.chapInfoList[
  22506. this.courseType
  22507. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22508. this.askJson.askCount = this.chapInfoList[
  22509. this.courseType
  22510. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22511. } else {
  22512. this.askJson.askJson = this.chapTools.askJson.askJson;
  22513. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22514. this.askJson.askCount = this.chapTools.askJson.askCount;
  22515. }
  22516. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22517. if (this.askJson.askJson[k].type == "2") {
  22518. this.radio.push([]);
  22519. } else {
  22520. this.radio.push("");
  22521. }
  22522. }
  22523. this.dialogVisible5 = true;
  22524. // window.parent.postMessage({ tools: "4" }, "*");
  22525. } else if (t == 45) {
  22526. this.noteName = "";
  22527. this.radio = [];
  22528. this.isAnswer = false;
  22529. if (this.askCount > 0) {
  22530. this.updateCount(this.askCount, t);
  22531. } else {
  22532. this.askCount++;
  22533. a = this.askCount;
  22534. this.toolsCount(a, t);
  22535. }
  22536. this.testJson = this.chapInfoList[
  22537. this.courseType
  22538. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22539. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22540. if (this.testJson.testJson[k].type == "2") {
  22541. this.radio.push([]);
  22542. } else {
  22543. this.radio.push("");
  22544. }
  22545. }
  22546. this.dialogVisibleChoice = true;
  22547. // window.parent.postMessage({ tools: "4" }, "*");
  22548. } else if (t == 5) {
  22549. if (this.scoreCount > 0) {
  22550. this.updateCount(this.scoreCount, t);
  22551. } else {
  22552. this.scoreCount++;
  22553. a = this.scoreCount;
  22554. this.toolsCount(a, t);
  22555. }
  22556. this.dialogVisible4 = true;
  22557. // window.parent.postMessage({ tools: "5" }, "*");
  22558. } else if (t == 6) {
  22559. if (this.noteCount > 0) {
  22560. this.updateCount(this.noteCount, t);
  22561. } else {
  22562. this.noteCount++;
  22563. a = this.noteCount;
  22564. this.toolsCount(a, t);
  22565. }
  22566. window.parent.postMessage(
  22567. {
  22568. tools: "6",
  22569. cid: this.id,
  22570. stage: this.courseType,
  22571. task: this.taskCount,
  22572. tool: i
  22573. },
  22574. "*"
  22575. );
  22576. } else if (t == 7) {
  22577. if (this.mindNetWorkCount > 0) {
  22578. this.updateCount(this.mindNetWorkCount, t);
  22579. } else {
  22580. this.mindNetWorkCount++;
  22581. a = this.mindNetWorkCount;
  22582. this.toolsCount(a, t);
  22583. }
  22584. window.parent.postMessage(
  22585. {
  22586. tools: "7",
  22587. cid: this.id,
  22588. stage: this.courseType,
  22589. task: this.taskCount,
  22590. tool: i
  22591. },
  22592. "*"
  22593. );
  22594. } else if (t == 16) {
  22595. if (this.workCount > 0) {
  22596. this.updateCount(this.workCount, t);
  22597. } else {
  22598. this.workCount++;
  22599. a = this.workCount;
  22600. this.toolsCount(a, t);
  22601. }
  22602. this.dialogVisible = true;
  22603. } else if (t == 50) {
  22604. if (this.tType == 2) {
  22605. this.$message.error("不支持学生使用");
  22606. return;
  22607. }
  22608. this.plworkFile = [];
  22609. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22610. if (!this.uploadCid) {
  22611. this.$message.error(
  22612. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22613. );
  22614. return;
  22615. }
  22616. // this.uploadCid =
  22617. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22618. // index
  22619. // ].toolChoose[i].uploadJson[0];
  22620. this.selectUploadStudent(2);
  22621. } else if (t == 8) {
  22622. if (this.libraryCount > 0) {
  22623. this.updateCount(this.libraryCount, t);
  22624. } else {
  22625. this.libraryCount++;
  22626. a = this.libraryCount;
  22627. this.toolsCount(a, t);
  22628. }
  22629. window.parent.postMessage({ tools: "8" }, "*");
  22630. } else if (t == 17) {
  22631. if (this.libraryCount > 0) {
  22632. this.updateCount(this.libraryCount, t);
  22633. } else {
  22634. this.libraryCount++;
  22635. a = this.libraryCount;
  22636. this.toolsCount(a, t);
  22637. }
  22638. window.parent.postMessage({ tools: "17" }, "*");
  22639. } else if (t == 18) {
  22640. if (this.trainCount > 0) {
  22641. this.updateCount(this.trainCount, t);
  22642. } else {
  22643. this.trainCount++;
  22644. a = this.trainCount;
  22645. this.toolsCount(a, t);
  22646. }
  22647. window.parent.postMessage({ tools: "18" }, "*");
  22648. } else if (t == 10) {
  22649. if (this.timeCount > 0) {
  22650. this.updateCount(this.timeCount, t);
  22651. } else {
  22652. this.timeCount++;
  22653. a = this.timeCount;
  22654. this.toolsCount(a, t);
  22655. }
  22656. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22657. .taskJson[index].toolChoose[i].preTime
  22658. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22659. .toolChoose[i].preTime
  22660. : "";
  22661. this.timeDialogVisible = true;
  22662. } else if (t == 15) {
  22663. this.answerQ = "";
  22664. this.questionAnswer = "";
  22665. if (this.answerCount > 0) {
  22666. this.updateCount(this.answerCount, t);
  22667. } else {
  22668. this.answerCount++;
  22669. a = this.answerCount;
  22670. this.toolsCount(a, t);
  22671. }
  22672. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22673. .taskJson[index].toolChoose[i].answerQ
  22674. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22675. .toolChoose[i].answerQ
  22676. : "";
  22677. this.answerDialogVisible = true;
  22678. } else if (t == 21) {
  22679. window.parent.postMessage({ tools: "21" }, "*");
  22680. } else if (t == 22) {
  22681. window.parent.postMessage({ tools: "22" }, "*");
  22682. } else if (t == 23) {
  22683. window.parent.postMessage({ tools: "23" }, "*");
  22684. } else if (t == 24) {
  22685. window.parent.postMessage({ tools: "24" }, "*");
  22686. } else if (t == 25) {
  22687. window.parent.postMessage({ tools: "25" }, "*");
  22688. } else if (t == 31) {
  22689. window.parent.postMessage({ tools: "31" }, "*");
  22690. } else if (t == 28) {
  22691. window.parent.postMessage({ tools: "28" }, "*");
  22692. } else if (t == 37) {
  22693. window.parent.postMessage({ tools: "37" }, "*");
  22694. } else if (t == 38) {
  22695. window.parent.postMessage({ tools: "38" }, "*");
  22696. } else if (t == 39) {
  22697. window.parent.postMessage({ tools: "39" }, "*");
  22698. } else if (t == 32) {
  22699. window.parent.postMessage({ tools: "32" }, "*");
  22700. } else if (t == 66) {
  22701. window.parent.postMessage({ tools: "66" }, "*");
  22702. } else if (t == 67) {
  22703. window.parent.postMessage({ tools: "67" }, "*");
  22704. } else if (t == 68) {
  22705. window.parent.postMessage({ tools: "68" }, "*");
  22706. } else if (t == 57) {
  22707. // window.parent.postMessage({ tools: "57" }, "*");
  22708. window.parent.postMessage(
  22709. {
  22710. tools: "57u",
  22711. cid: this.id,
  22712. stage: this.courseType,
  22713. task: this.taskCount,
  22714. tool: i
  22715. },
  22716. "*"
  22717. );
  22718. } else if (t == 58) {
  22719. window.parent.postMessage({ tools: "58" }, "*");
  22720. } else if (t == 59) {
  22721. window.parent.postMessage({ tools: "59" }, "*");
  22722. } else if (t == 60) {
  22723. window.parent.postMessage({ tools: "60" }, "*");
  22724. } else if (t == 61) {
  22725. window.parent.postMessage({ tools: "61" }, "*");
  22726. } else if (t == 63) {
  22727. window.parent.postMessage({ tools: "63" }, "*");
  22728. } else if (t == 71) {
  22729. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22730. // this.$message.error("该工具不可使用");
  22731. // return
  22732. // }
  22733. window.parent.postMessage({ tools: "71" }, "*");
  22734. } else if (t == 72) {
  22735. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  22736. .taskJson[index].toolChoose[i].appJson
  22737. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22738. .toolChoose[i].appJson
  22739. : "";
  22740. console.log('item.url',item.url);
  22741. if(!item || !item.url){
  22742. this.$message.error("应用连接为空, 请到课程管理中添加");
  22743. return;
  22744. }
  22745. // return this.$refs.appStoreC.getData(item.url)
  22746. window.parent.postMessage({ tools: "72", data: item }, "*");
  22747. // window.open(item.url, "_blank");
  22748. } else if (t == 69) {
  22749. if (this.worksStudent[i].length) {
  22750. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22751. if (this.userid == this.worksStudent[i][k].userid) {
  22752. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  22753. break;
  22754. } else {
  22755. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22756. }
  22757. }
  22758. } else {
  22759. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  22760. }
  22761. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22762. .taskJson[index].toolChoose[i].englishList
  22763. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22764. .toolChoose[i].englishList
  22765. : {};
  22766. this.englishToolIndex = i;
  22767. this.myAnList = this.myAnswerList1;
  22768. this.engDialogVisible = true;
  22769. } else if (t == 70) {
  22770. if (this.worksStudent[i].length) {
  22771. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22772. if (
  22773. this.userid == this.worksStudent[i][k].userid &&
  22774. this.worksStudent[i][k].type == 17
  22775. ) {
  22776. this.englishVoiceJsonWork = JSON.parse(
  22777. this.worksStudent[i][k].works
  22778. );
  22779. break;
  22780. } else {
  22781. this.englishVoiceJsonWork = [];
  22782. }
  22783. }
  22784. } else {
  22785. this.englishVoiceJsonWork = [];
  22786. }
  22787. let englishVoiceJson = {};
  22788. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22789. .taskJson[index].toolChoose[i].englishVoiceJson
  22790. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22791. .toolChoose[i].englishVoiceJson
  22792. : {};
  22793. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22794. this.EnglishVoiceDialog = true;
  22795. } else if (t == 65) {
  22796. if (this.tType == 2) {
  22797. this.$message.error("不支持学生使用");
  22798. return;
  22799. }
  22800. this.uploadCid = this.tcid;
  22801. if (!this.uploadCid) {
  22802. this.$message.error(
  22803. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  22804. );
  22805. return;
  22806. }
  22807. this.selectPickStudent();
  22808. } else if (t == 26) {
  22809. window.parent.postMessage(
  22810. {
  22811. tools: "26",
  22812. cid: this.id,
  22813. stage: this.courseType,
  22814. task: this.taskCount,
  22815. tool: i
  22816. },
  22817. "*"
  22818. );
  22819. } else if (t == 40) {
  22820. if (this.evalCount > 0) {
  22821. this.updateCount(this.evalCount, t);
  22822. } else {
  22823. this.evalCount++;
  22824. a = this.evalCount;
  22825. this.toolsCount(a, t);
  22826. }
  22827. this.eScore = { eBzText: "", eStar: [] };
  22828. if (this.worksStudent[i].length) {
  22829. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22830. if (this.userid == this.worksStudent[i][k].userid) {
  22831. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22832. this.rateJson = this.chapInfoList[
  22833. this.courseType
  22834. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22835. break;
  22836. } else {
  22837. this.rateJson = this.chapInfoList[
  22838. this.courseType
  22839. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22840. }
  22841. }
  22842. } else {
  22843. this.rateJson = this.chapInfoList[
  22844. this.courseType
  22845. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  22846. }
  22847. this.isStar = false;
  22848. this.studentEvalDialogVisible = true;
  22849. } else if (t == 41) {
  22850. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22851. .taskJson[index].toolChoose[i].selectJson
  22852. ? JSON.parse(
  22853. JSON.stringify(
  22854. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22855. index
  22856. ].toolChoose[i].selectJson
  22857. )
  22858. )
  22859. : { url: "", select: [], answer: [] };
  22860. if (this.worksStudent[i].length) {
  22861. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22862. if (this.userid == this.worksStudent[i][k].userid) {
  22863. var a = this.worksStudent[i][k].works.split(",");
  22864. for (var ki = 0; ki < a.length; ki++) {
  22865. a[ki] = parseInt(a[ki]);
  22866. }
  22867. this.selectAnswer = {
  22868. answer: a,
  22869. stu: this.worksStudent[i][k].sName
  22870. };
  22871. break;
  22872. } else {
  22873. this.selectAnswer = { answer: [], stu: "" };
  22874. }
  22875. }
  22876. } else {
  22877. this.selectAnswer = { answer: [], stu: "" };
  22878. }
  22879. this.isSelect = false;
  22880. this.dialogVisibleSelect = true;
  22881. } else if (t == 44) {
  22882. window.parent.postMessage({ tools: "44" }, "*");
  22883. } else if (t == 47) {
  22884. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22885. .taskJson[index].toolChoose[i].sentenceList
  22886. ? JSON.parse(
  22887. JSON.stringify(
  22888. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22889. index
  22890. ].toolChoose[i].sentenceList
  22891. )
  22892. )
  22893. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22894. for (var q = 0; q < this.sentenceList.length; q++) {
  22895. this.sentenceList[q].chooseSenList = [];
  22896. this.sentenceList[q].addChangeSen = [];
  22897. this.sentenceList[q].addChangeSen = JSON.parse(
  22898. JSON.stringify(this.sentenceList[q].addSentence)
  22899. );
  22900. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  22901. q
  22902. ].rightAnswer.length;
  22903. }
  22904. this.dialogVisibleSentence = true;
  22905. } else if (t == 48) {
  22906. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22907. .taskJson[index].toolChoose[i].tableJson
  22908. ? JSON.parse(
  22909. JSON.stringify(
  22910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22911. index
  22912. ].toolChoose[i].tableJson
  22913. )
  22914. )
  22915. : { text: "" };
  22916. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22917. if (this.worksStudent[i].length) {
  22918. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22919. if (this.userid == this.worksStudent[i][k].userid) {
  22920. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22921. break;
  22922. }
  22923. }
  22924. }
  22925. this.dialogVisibleTable = true;
  22926. } else if (t == 52) {
  22927. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22928. .taskJson[index].toolChoose[i].wordJson
  22929. ? JSON.parse(
  22930. JSON.stringify(
  22931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22932. index
  22933. ].toolChoose[i].wordJson
  22934. )
  22935. )
  22936. : { text: "" };
  22937. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22938. if (this.worksStudent[i].length) {
  22939. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22940. if (this.userid == this.worksStudent[i][k].userid) {
  22941. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22942. break;
  22943. }
  22944. }
  22945. }
  22946. this.dialogVisibleWord = true;
  22947. } else if (t == 49) {
  22948. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  22949. return;
  22950. }
  22951. this.groupJson = this.chapInfoList[
  22952. this.courseType
  22953. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  22954. this.islock = this.groupJson.islock == 1 ? true : false;
  22955. this.dialogVisibleGroup = true;
  22956. } else if (t == 62) {
  22957. this.videoType = 0;
  22958. this.videoJson = {};
  22959. this.videoJson = this.chapInfoList[
  22960. this.courseType
  22961. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  22962. this.dialogVisibleVideo = true;
  22963. }
  22964. this.insertMemorandum(
  22965. `点击工作区<span class="variable">工具${index + 1}:${
  22966. this.toolsList[t]
  22967. }</span>`
  22968. );
  22969. },
  22970. teacherWorkSubmit(t, i, index, s) {
  22971. this.sStudent = s;
  22972. this.toolindex = i;
  22973. this.sTool = t;
  22974. if (this.tType !== "1" && this.tType !== "4") {
  22975. return;
  22976. }
  22977. if (t == 16 || t == 32 || t == 50) {
  22978. this.dialogVisibleWorks = true;
  22979. } else if (t == 15) {
  22980. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22981. .taskJson[index].toolChoose[i].answerQ
  22982. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22983. .toolChoose[i].answerQ
  22984. : "";
  22985. this.questionAnswer = "";
  22986. this.answerDialogVisibleTeacher = true; //问答
  22987. } else if (t == 52) {
  22988. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22989. .taskJson[index].toolChoose[i].wordJson
  22990. ? JSON.parse(
  22991. JSON.stringify(
  22992. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22993. index
  22994. ].toolChoose[i].wordJson
  22995. )
  22996. )
  22997. : { text: "" };
  22998. if (this.worksStudent[i].length) {
  22999. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23000. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23001. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23002. break;
  23003. }
  23004. }
  23005. }
  23006. this.dialogVisibleWordTeacher = true; //文档
  23007. } else if (t == 4) {
  23008. this.radio = [];
  23009. this.noteName = "";
  23010. this.isAnswer = false;
  23011. if (this.askCount > 0) {
  23012. this.updateCount(this.askCount, t);
  23013. } else {
  23014. this.askCount++;
  23015. a = this.askCount;
  23016. this.toolsCount(a, t);
  23017. }
  23018. if (!this.dialogVisible2) {
  23019. this.askJson.askJson = this.chapInfoList[
  23020. this.courseType
  23021. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23022. this.askJson.askTitle = this.chapInfoList[
  23023. this.courseType
  23024. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23025. this.askJson.askCount = this.chapInfoList[
  23026. this.courseType
  23027. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23028. } else {
  23029. this.askJson.askJson = this.chapTools.askJson.askJson;
  23030. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23031. this.askJson.askCount = this.chapTools.askJson.askCount;
  23032. }
  23033. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23034. if (this.askJson.askJson[k].type == "2") {
  23035. this.radio.push([]);
  23036. } else {
  23037. this.radio.push("");
  23038. }
  23039. }
  23040. this.dialogVisible5Teacher = true;
  23041. } else if (t == 45) {
  23042. this.noteName = "";
  23043. this.radio = [];
  23044. this.isAnswer = false;
  23045. if (this.askCount > 0) {
  23046. this.updateCount(this.askCount, t);
  23047. } else {
  23048. this.askCount++;
  23049. a = this.askCount;
  23050. this.toolsCount(a, t);
  23051. }
  23052. this.testJson = this.chapInfoList[
  23053. this.courseType
  23054. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23055. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23056. if (this.testJson.testJson[k].type == "2") {
  23057. this.radio.push([]);
  23058. } else {
  23059. this.radio.push("");
  23060. }
  23061. }
  23062. this.dialogVisibleChoiceTeacher = true;
  23063. } else if (t == 41) {
  23064. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23065. .taskJson[index].toolChoose[i].selectJson
  23066. ? JSON.parse(
  23067. JSON.stringify(
  23068. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23069. index
  23070. ].toolChoose[i].selectJson
  23071. )
  23072. )
  23073. : { url: "", select: [], answer: [] };
  23074. if (this.worksStudent[i].length) {
  23075. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23076. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23077. var a = this.worksStudent[i][k].works.split(",");
  23078. for (var ki = 0; ki < a.length; ki++) {
  23079. a[ki] = parseInt(a[ki]);
  23080. }
  23081. this.selectAnswer = {
  23082. answer: a,
  23083. stu: this.worksStudent[i][k].sName
  23084. };
  23085. break;
  23086. } else {
  23087. this.selectAnswer = { answer: [], stu: "" };
  23088. }
  23089. }
  23090. } else {
  23091. this.selectAnswer = { answer: [], stu: "" };
  23092. }
  23093. this.isSelect = false;
  23094. this.dialogVisibleSelectTeacher = true;
  23095. } else if (t == 47) {
  23096. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23097. .taskJson[index].toolChoose[i].sentenceList
  23098. ? JSON.parse(
  23099. JSON.stringify(
  23100. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23101. index
  23102. ].toolChoose[i].sentenceList
  23103. )
  23104. )
  23105. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23106. for (var q = 0; q < this.sentenceList.length; q++) {
  23107. this.sentenceList[q].chooseSenList = [];
  23108. this.sentenceList[q].addChangeSen = [];
  23109. this.sentenceList[q].addChangeSen = JSON.parse(
  23110. JSON.stringify(this.sentenceList[q].addSentence)
  23111. );
  23112. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23113. q
  23114. ].rightAnswer.length;
  23115. }
  23116. this.dialogVisibleSentenceTeacher = true;
  23117. } else if (t == 48) {
  23118. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23119. .taskJson[index].toolChoose[i].tableJson
  23120. ? JSON.parse(
  23121. JSON.stringify(
  23122. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23123. index
  23124. ].toolChoose[i].tableJson
  23125. )
  23126. )
  23127. : { text: "" };
  23128. if (this.worksStudent[i].length) {
  23129. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23130. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23131. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23132. break;
  23133. }
  23134. }
  23135. }
  23136. this.dialogVisibleTableTeacher = true;
  23137. } else if (t == 40) {
  23138. if (this.evalCount > 0) {
  23139. this.updateCount(this.evalCount, t);
  23140. } else {
  23141. this.evalCount++;
  23142. a = this.evalCount;
  23143. this.toolsCount(a, t);
  23144. }
  23145. this.eScore = { eBzText: "", eStar: [] };
  23146. if (this.worksStudent[i].length) {
  23147. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23148. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23149. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23150. this.rateJson = this.chapInfoList[
  23151. this.courseType
  23152. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23153. break;
  23154. } else {
  23155. this.rateJson = this.chapInfoList[
  23156. this.courseType
  23157. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23158. }
  23159. }
  23160. } else {
  23161. this.rateJson = this.chapInfoList[
  23162. this.courseType
  23163. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23164. }
  23165. this.isStar = false;
  23166. this.studentEvalDialogVisibleTeacher = true;
  23167. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23168. window.parent.postMessage(
  23169. {
  23170. tools: t + "teacher",
  23171. cid: this.id,
  23172. stage: this.courseType,
  23173. task: this.taskCount,
  23174. tool: i,
  23175. student: this.sStudent
  23176. },
  23177. "*"
  23178. );
  23179. }
  23180. },
  23181. openCocoPi(tool, i, uid, uname) {
  23182. let student = {
  23183. userid: uid,
  23184. student: uname
  23185. };
  23186. if (tool == 57) {
  23187. window.parent.postMessage(
  23188. {
  23189. tools: tool + "teacher",
  23190. cid: this.id,
  23191. stage: this.courseType,
  23192. task: this.taskCount,
  23193. tool: i,
  23194. student: student
  23195. },
  23196. "*"
  23197. );
  23198. }
  23199. },
  23200. setRightAnswer(s, i, j) {
  23201. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23202. if (
  23203. this.sentenceList[i].chooseSenList[q] == undefined ||
  23204. this.sentenceList[i].chooseSenList[q] == ""
  23205. ) {
  23206. this.sentenceList[i].chooseSenList[q] = s;
  23207. this.sentenceList[i].addChangeSen[j] = "";
  23208. break;
  23209. }
  23210. }
  23211. this.$forceUpdate();
  23212. },
  23213. returnCard(r, i, j) {
  23214. var a = this.sentenceList[i].addSentence.indexOf(r);
  23215. this.sentenceList[i].chooseSenList[j] = "";
  23216. this.sentenceList[i].addChangeSen[a] = r;
  23217. this.$forceUpdate();
  23218. },
  23219. // addSentenceTool() {
  23220. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23221. // this.taskCount
  23222. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23223. // this.sentenceList = [
  23224. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23225. // ];
  23226. // this.dialogVisibleSentence = false;
  23227. // },
  23228. toolsCount(a, t) {
  23229. let params = {
  23230. cid: this.id,
  23231. chid: this.courseType,
  23232. uid: this.userid,
  23233. tid: t,
  23234. count: a
  23235. };
  23236. this.ajax
  23237. .get(this.$store.state.api + "insertToolsCount", params)
  23238. .then(res => {
  23239. this.selectCount();
  23240. })
  23241. .catch(err => {
  23242. console.error(err);
  23243. });
  23244. },
  23245. updateCount(c, t) {
  23246. c++;
  23247. let params = {
  23248. cid: this.id,
  23249. chid: this.courseType,
  23250. uid: this.userid,
  23251. tid: t,
  23252. count: c
  23253. };
  23254. this.ajax
  23255. .get(this.$store.state.api + "updateToolsCount", params)
  23256. .then(res => {
  23257. this.selectCount();
  23258. })
  23259. .catch(err => {
  23260. console.error(err);
  23261. });
  23262. },
  23263. checkEva() {
  23264. if (this.evalua != "") {
  23265. for (var i = 0; i < this.evaJuri.length; i++) {
  23266. if (this.evalua == this.evaJuri[i].id) {
  23267. this.eTitle = this.evaJuri[i].title;
  23268. this.eJson = JSON.parse(this.evaJuri[i].content);
  23269. }
  23270. }
  23271. this.$forceUpdate();
  23272. setTimeout(() => {
  23273. this.setMindData();
  23274. }, 0);
  23275. }
  23276. },
  23277. selectEva() {
  23278. let params = {
  23279. oid: this.oid
  23280. };
  23281. this.ajax
  23282. .get(this.$store.state.api + "selectAllEvaluation", params)
  23283. .then(res => {
  23284. this.evaJuri = res.data[0];
  23285. })
  23286. .catch(err => {
  23287. console.error(err);
  23288. });
  23289. },
  23290. setMindData() {
  23291. this.data.data = [];
  23292. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23293. let _eJson = Object.keys(this.eJson);
  23294. let _e = this.eJson;
  23295. for (let i = 0; i < _eJson.length; i++) {
  23296. let element = _e[_eJson[i]];
  23297. this.data.data.push({
  23298. id: element.id,
  23299. parentid: "root",
  23300. topic: element.name
  23301. });
  23302. let _eJsonc = Object.keys(element.child);
  23303. let _e2 = element.child;
  23304. for (let j = 0; j < _eJsonc.length; j++) {
  23305. let _ec = _e2[_eJsonc[j]];
  23306. this.data.data.push({
  23307. id: _ec.id,
  23308. parentid: element.id,
  23309. topic: _ec.name
  23310. });
  23311. let _eJsonz = Object.keys(_ec.child);
  23312. let _e3 = _ec.child;
  23313. for (let z = 0; z < _eJsonz.length; z++) {
  23314. let _ez = _e3[_eJsonz[z]];
  23315. this.data.data.push({
  23316. id: _ez.id,
  23317. parentid: _ec.id,
  23318. topic: _ez.name
  23319. });
  23320. }
  23321. }
  23322. }
  23323. this.$forceUpdate();
  23324. },
  23325. checkFileFull(type, url) {
  23326. this.fullDialogVisible = true;
  23327. this.fulltype = type;
  23328. this.fullUrl = url;
  23329. },
  23330. async checkFileFull1(t, f) {
  23331. this.fullDialogVisible = true;
  23332. if (t == 6) {
  23333. this.fulltype = 1;
  23334. this.fullUrl = JSON.parse(JSON.stringify(f));
  23335. } else if (t == 8) {
  23336. this.fulltype = 2;
  23337. this.fullUrl = f.url;
  23338. } else if (
  23339. t == 3 &&
  23340. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23341. "PDF"
  23342. ) {
  23343. this.fulltype = 3;
  23344. this.fullUrl = f.url;
  23345. } else if (t == 3) {
  23346. this.fulltype = 2;
  23347. let _uuurl = await this.checkLink(f.url);
  23348. this.fullUrl =
  23349. "https://view.officeapps.live.com/op/view.aspx?src=" +
  23350. encodeURIComponent(_uuurl);
  23351. }
  23352. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23353. },
  23354. openSname(n, id, i, uid) {
  23355. this.snameWid = id;
  23356. this.worksSName = n;
  23357. this.worksSid = uid == n ? "" : uid;
  23358. this.toolindex = i;
  23359. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23360. if (!this.uploadCid) {
  23361. this.$message.error(
  23362. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23363. );
  23364. return;
  23365. }
  23366. this.selectUploadStudent(1);
  23367. },
  23368. updateName() {
  23369. let params = {
  23370. n: this.worksSName,
  23371. cid: this.snameWid
  23372. };
  23373. this.ajax
  23374. .get(this.$store.state.api + "updateCourseWorksName", params)
  23375. .then(res => {
  23376. this.$message({
  23377. message: "修改成功",
  23378. type: "success"
  23379. });
  23380. this.dialogVisibleSname = false;
  23381. this.getCourseDetail(2);
  23382. this.snameWid = "";
  23383. this.worksSName = "";
  23384. })
  23385. .catch(err => {
  23386. console.error(err);
  23387. });
  23388. },
  23389. downloadFile2(f) {
  23390. // const loading = this.$loading.service({
  23391. // background: "rgba(255, 255, 255, 0.7)",
  23392. // target: document.body,
  23393. // text: "文件加载中...",
  23394. // });
  23395. // let url2 = f.url;
  23396. // let _url2 = "";
  23397. // if (
  23398. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23399. // ) {
  23400. // _url2 = url2.split(
  23401. // "https://view.officeapps.live.com/op/view.aspx?src="
  23402. // )[1];
  23403. // } else {
  23404. // _url2 = url2;
  23405. // }
  23406. // let params = {
  23407. // url: _url2,
  23408. // name: f.name,
  23409. // };
  23410. // this.ajax
  23411. // .get(this.$store.state.api + "download", params)
  23412. // .then((res) => {
  23413. // loading.close();
  23414. // let content = res.data.data.data;
  23415. // let ab = new ArrayBuffer(content.length);
  23416. // let view = new Uint8Array(ab);
  23417. // for (var i = 0; i < content.length; ++i) {
  23418. // view[i] = content[i];
  23419. // }
  23420. // let elink = document.createElement("a");
  23421. // elink.download = f.name;
  23422. // elink.style.display = "none";
  23423. // let blob = new Blob([ab], {
  23424. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23425. // });
  23426. // elink.href = URL.createObjectURL(blob);
  23427. // document.body.appendChild(elink);
  23428. // elink.click();
  23429. // document.body.removeChild(elink);
  23430. // })
  23431. // .catch((err) => {
  23432. // loading.close();
  23433. // console.error(err);
  23434. // });
  23435. var credentials = {
  23436. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23437. secretAccessKey: "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"
  23438. }; //秘钥形式的登录上传
  23439. window.AWS.config.update(credentials);
  23440. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23441. let url2 = f.url;
  23442. let _url2 = "";
  23443. if (
  23444. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23445. ) {
  23446. _url2 = url2.split(
  23447. "https://view.officeapps.live.com/op/view.aspx?src="
  23448. )[1];
  23449. } else {
  23450. _url2 = url2;
  23451. }
  23452. let _this = this;
  23453. _this.downLoading = true;
  23454. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23455. let name = decodeURIComponent(
  23456. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23457. );
  23458. var params = {
  23459. Bucket: "ccrb",
  23460. Key: name
  23461. };
  23462. s3.getObject(params, function(err, data) {
  23463. _this.downLoading = false;
  23464. if (err) console.log(err, err.stack);
  23465. // an error occurred
  23466. else {
  23467. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23468. let a = document.createElement("a");
  23469. a.name = f.name;
  23470. a.href = url;
  23471. a.download = f.name;
  23472. a.click();
  23473. console.log(data);
  23474. } // sxuccessful response
  23475. });
  23476. return;
  23477. let url = f.url;
  23478. let _url = "";
  23479. if (
  23480. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23481. ) {
  23482. _url = url.split(
  23483. "https://view.officeapps.live.com/op/view.aspx?src="
  23484. )[1];
  23485. } else {
  23486. _url = url;
  23487. }
  23488. _this.downLoading = true;
  23489. // const loading = _this.$loading.service({
  23490. // background: "rgba(255, 255, 255, 0.7)",
  23491. // target: document.body,
  23492. // text: "文件加载中...",
  23493. // });
  23494. let x = new XMLHttpRequest();
  23495. x.open("GET", _url, true);
  23496. x.responseType = "blob";
  23497. x.onload = function() {
  23498. _this.downLoading = false;
  23499. // loading.close();
  23500. let url = window.URL.createObjectURL(new Blob([x.response]));
  23501. let a = document.createElement("a");
  23502. a.name = f.name;
  23503. a.href = url;
  23504. a.download = f.name;
  23505. a.click();
  23506. };
  23507. x.send();
  23508. },
  23509. downloadFile(url) {
  23510. let hz = url.substring(url.lastIndexOf(".") + 1);
  23511. if (hz == "txt" || hz == "md") {
  23512. this.lookTxt(url);
  23513. return;
  23514. }
  23515. var credentials = {
  23516. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23517. secretAccessKey: "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"
  23518. }; //秘钥形式的登录上传
  23519. window.AWS.config.update(credentials);
  23520. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23521. let url2 = url;
  23522. let _url2 = "";
  23523. if (
  23524. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23525. ) {
  23526. _url2 = url2.split(
  23527. "https://view.officeapps.live.com/op/view.aspx?src="
  23528. )[1];
  23529. } else {
  23530. _url2 = url2;
  23531. }
  23532. const loading2 = this.$loading.service({
  23533. background: "rgba(255, 255, 255, 0.7)",
  23534. target: document.body,
  23535. text: "文件加载中..."
  23536. });
  23537. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23538. let name = decodeURIComponent(
  23539. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23540. );
  23541. var params = {
  23542. Bucket: "ccrb",
  23543. Key: name
  23544. };
  23545. s3.getObject(params, function(err, data) {
  23546. loading2.close();
  23547. if (err) console.log(err, err.stack);
  23548. // an error occurred
  23549. else {
  23550. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23551. let a = document.createElement("a");
  23552. a.name = name;
  23553. a.href = url;
  23554. a.download = name;
  23555. a.click();
  23556. console.log(data);
  23557. } // sxuccessful response
  23558. });
  23559. return;
  23560. let _this = this;
  23561. let _url = "";
  23562. if (
  23563. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23564. ) {
  23565. _url = url.split(
  23566. "https://view.officeapps.live.com/op/view.aspx?src="
  23567. )[1];
  23568. } else {
  23569. _url = url;
  23570. }
  23571. const x = new XMLHttpRequest();
  23572. x.open("GET", _url, true);
  23573. x.responseType = "blob";
  23574. const loading = _this.$loading.service({
  23575. background: "rgba(255, 255, 255, 0.7)",
  23576. target: document.body,
  23577. text: "文件加载中..."
  23578. });
  23579. // _this.$message.success("文件下载中...");
  23580. x.onload = function(e) {
  23581. loading.close();
  23582. let content = x.response;
  23583. let elink = document.createElement("a");
  23584. elink.download = decodeURI(
  23585. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23586. );
  23587. elink.style.display = "none";
  23588. let blob = new Blob([content]);
  23589. elink.href = URL.createObjectURL(blob);
  23590. document.body.appendChild(elink);
  23591. elink.click();
  23592. document.body.removeChild(elink);
  23593. };
  23594. x.send();
  23595. },
  23596. openLine(url) {
  23597. window.open(url);
  23598. },
  23599. resize() {
  23600. if (document.getElementsByClassName("box_course").length) {
  23601. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23602. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23603. if (this.showType == 2 || this.showType == 3) {
  23604. document.getElementsByClassName("navBox")[0].style.height =
  23605. a - 40 + 0 + "px";
  23606. } else {
  23607. document.getElementsByClassName("navBox")[0].style.height =
  23608. a - 40 + "px";
  23609. }
  23610. }
  23611. this.Stbodywidth =
  23612. document.getElementsByClassName("student_body").length &&
  23613. document.getElementsByClassName("student_body")[0].offsetWidth;
  23614. },
  23615. closeDraw() {
  23616. this.bg = null;
  23617. this.drawShow = false;
  23618. },
  23619. showPicturePaint(url) {
  23620. let params = {
  23621. img: url
  23622. };
  23623. this.ajax
  23624. .get(this.$store.state.api + "imgToBase64", params)
  23625. .then(res => {
  23626. this.drawShow = true;
  23627. this.bg = res.data[0].img;
  23628. })
  23629. .catch(err => {
  23630. console.error(err);
  23631. });
  23632. },
  23633. addImgDraw(base64) {
  23634. let file = { name: "批注图.png" };
  23635. let img = this.dataUrlToFile(base64, file);
  23636. this.beforeUpload1(img, 5);
  23637. },
  23638. addImgDrawImG(url) {
  23639. // console.log(url);
  23640. let params = [
  23641. {
  23642. wid: this.commentDetail.wid,
  23643. img: url
  23644. }
  23645. ];
  23646. this.ajax
  23647. .post(this.$store.state.api + "updateCourseWorks", params)
  23648. .then(res => {
  23649. this.$message({
  23650. message: "提交成功",
  23651. type: "success"
  23652. });
  23653. this.drawShow = false;
  23654. this.bg = "";
  23655. this.selectSWorks();
  23656. this.selectStudent();
  23657. })
  23658. .catch(err => {
  23659. this.$message.error("提交失败");
  23660. console.error(err);
  23661. });
  23662. },
  23663. deletePicturePaint() {
  23664. this.$confirm("确定删除此批注吗?", "提示", {
  23665. confirmButtonText: "确定",
  23666. cancelButtonText: "取消",
  23667. type: "warning"
  23668. })
  23669. .then(() => {
  23670. let params = [
  23671. {
  23672. wid: this.commentDetail.wid,
  23673. img: ""
  23674. }
  23675. ];
  23676. this.ajax
  23677. .post(this.$store.state.api + "updateCourseWorks", params)
  23678. .then(res => {
  23679. this.$message({
  23680. message: "删除成功",
  23681. type: "success"
  23682. });
  23683. this.selectSWorks();
  23684. this.selectStudent();
  23685. })
  23686. .catch(err => {
  23687. this.$message.error("删除失败");
  23688. console.error(err);
  23689. });
  23690. })
  23691. .catch(() => {});
  23692. },
  23693. getAudioVideo(constraintsData) {
  23694. if (navigator.mediaDevices === undefined) {
  23695. navigator.mediaDevices = {};
  23696. }
  23697. if (navigator.mediaDevices.getUserMedia === undefined) {
  23698. navigator.mediaDevices.getUserMedia = function(constraints) {
  23699. // 首先,如果有getUserMedia的话,就获得它
  23700. var getUserMedia =
  23701. navigator.getUserMedia ||
  23702. navigator.webkitGetUserMedia ||
  23703. navigator.mozGetUserMedia ||
  23704. navigator.msGetUserMedia;
  23705. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23706. if (!getUserMedia) {
  23707. return Promise.reject({ code: 404 });
  23708. }
  23709. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23710. return new Promise(function(resolve, reject) {
  23711. getUserMedia.call(navigator, constraints, resolve, reject);
  23712. });
  23713. };
  23714. }
  23715. return navigator.mediaDevices.getUserMedia(constraintsData);
  23716. },
  23717. /**
  23718. * 开始录制
  23719. */
  23720. startRecording(callback) {
  23721. let _function = screenStream => {
  23722. this.addStreamStopListener(screenStream, () => {
  23723. console.log("流停止监听");
  23724. this.stopRecording();
  23725. this.$emit("streamStop", {});
  23726. // this.stopRecording();
  23727. });
  23728. var options = {
  23729. type: "video",
  23730. mimeType: "video/webm",
  23731. disableLogs: false,
  23732. getNativeBlob: false, // enable it for longer recordings
  23733. ignoreMutedMedia: false
  23734. };
  23735. // this.video.srcObject = screenStream;
  23736. this.recorder = RecordRTC(screenStream, options);
  23737. this.recorder.startRecording();
  23738. this.recorder.screen = screenStream;
  23739. this.videoStart = true;
  23740. // callback(true);
  23741. };
  23742. this.getAudioVideo({ audio: true })
  23743. .then(res => {
  23744. this.captureScreen(_function, true);
  23745. console.log("已点击允许,开启成功");
  23746. })
  23747. .catch(err => {
  23748. // console.log('浏览器不支持,请更换浏览器')
  23749. // } else {
  23750. this.captureScreen(_function, false);
  23751. console.log("请检查是否存在麦克风");
  23752. });
  23753. },
  23754. /**
  23755. * 停止录制
  23756. */
  23757. stopRecording(callback) {
  23758. this.recorder.stopRecording(() => {
  23759. // this.video.src = this.video.srcObject = null;
  23760. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23761. const url = URL.createObjectURL(this.recorder.getBlob());
  23762. const a = document.createElement("a"); //this.fileName+
  23763. let videoFile = new File(
  23764. [this.recorder.getBlob()],
  23765. this.courseDetail.title + "录屏.mp4",
  23766. {
  23767. type: "video/mp4"
  23768. }
  23769. );
  23770. let downloadUrl = URL.createObjectURL(videoFile);
  23771. if (this.$refs.classRoomHelperRef) {
  23772. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  23773. }
  23774. document.body.appendChild(a);
  23775. a.style.display = "none";
  23776. a.href = url;
  23777. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  23778. a.click();
  23779. this.recorder.screen.stop();
  23780. this.recorder.destroy();
  23781. this.recorder = null;
  23782. this.videoStart = false;
  23783. // callback(false);
  23784. });
  23785. },
  23786. //初始化
  23787. captureScreen(callback, type) {
  23788. if (navigator.getDisplayMedia) {
  23789. //录制结束,文件下载
  23790. navigator
  23791. .getDisplayMedia({
  23792. video: true
  23793. })
  23794. .then(screenStream => {
  23795. if (type) {
  23796. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23797. screenStream.addTrack(mic.getTracks()[0]);
  23798. callback(screenStream);
  23799. });
  23800. } else {
  23801. callback(screenStream);
  23802. }
  23803. })
  23804. .catch(function(error) {
  23805. console.log("error", error);
  23806. });
  23807. } else if (navigator.mediaDevices.getDisplayMedia) {
  23808. navigator.mediaDevices
  23809. .getDisplayMedia({
  23810. video: true
  23811. })
  23812. .then(screenStream => {
  23813. if (type) {
  23814. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  23815. screenStream.addTrack(mic.getTracks()[0]);
  23816. callback(screenStream);
  23817. });
  23818. } else {
  23819. callback(screenStream);
  23820. }
  23821. })
  23822. .catch(function(error) {
  23823. console.log("error", error);
  23824. });
  23825. } else {
  23826. var error = "getDisplayMedia API are not supported in this browser.";
  23827. console.log("error", error);
  23828. alert(error);
  23829. }
  23830. },
  23831. //流监听
  23832. addStreamStopListener(stream, callback) {
  23833. stream.addEventListener(
  23834. "ended",
  23835. function() {
  23836. callback();
  23837. callback = function() {};
  23838. },
  23839. false
  23840. );
  23841. stream.addEventListener(
  23842. "inactive",
  23843. function() {
  23844. callback();
  23845. callback = function() {};
  23846. },
  23847. false
  23848. );
  23849. stream.getTracks().forEach(function(track) {
  23850. track.addEventListener(
  23851. "ended",
  23852. function() {
  23853. callback();
  23854. callback = function() {};
  23855. },
  23856. false
  23857. );
  23858. track.addEventListener(
  23859. "inactive",
  23860. function() {
  23861. callback();
  23862. callback = function() {};
  23863. },
  23864. false
  23865. );
  23866. });
  23867. },
  23868. updateGroup() {
  23869. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23870. this.dialogVisibleGroup2 = true;
  23871. },
  23872. numberPan() {
  23873. if (
  23874. /[^\d]/.test(this.groupJson.number) ||
  23875. this.groupJson.number < 2 ||
  23876. this.groupJson.number > 10
  23877. ) {
  23878. this.$message.error("请输入2-10的数字");
  23879. this.groupJson.number = "";
  23880. }
  23881. },
  23882. updateGroupJson() {
  23883. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23884. if (
  23885. this.groupStudentUid[this.toolindex][i].length >
  23886. this.groupJson2.number
  23887. ) {
  23888. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23889. return;
  23890. }
  23891. }
  23892. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23893. this.islock = this.groupJson.islock == 1 ? true : false;
  23894. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23895. this.taskCount
  23896. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23897. let params = [
  23898. {
  23899. cid: this.id,
  23900. chapters: JSON.stringify(this.chapInfoList),
  23901. uid: this.userid,
  23902. unitIndex: this.courseType
  23903. }
  23904. ];
  23905. this.ajax
  23906. .post(this.$store.state.api + "updateWorkNew4", params)
  23907. .then(res => {
  23908. this.$message.success("设置成功");
  23909. this.getCourseDetail(2);
  23910. this.dialogVisibleGroup2 = false;
  23911. this.groupJson2 = {};
  23912. this.$forceUpdate();
  23913. })
  23914. .catch(err => {
  23915. this.$message.error("网络不佳");
  23916. console.error(err);
  23917. });
  23918. },
  23919. lockChair() {
  23920. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23921. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23922. this.updateGroupJson();
  23923. },
  23924. selectGroup(index) {
  23925. this.getCourseDetail(2, index);
  23926. },
  23927. joinGroup(index) {
  23928. if (this.groupJson.islock == 2) {
  23929. this.$message.error("位置已被锁定,无法加入");
  23930. return;
  23931. }
  23932. if (
  23933. this.groupStudent[this.toolindex][index].length >
  23934. this.groupJson.number ||
  23935. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23936. ) {
  23937. this.$message.error("位置已满,无法加入");
  23938. return;
  23939. }
  23940. let params = [
  23941. {
  23942. cid: this.id,
  23943. stage: this.courseType,
  23944. task: this.taskCount,
  23945. tool: this.toolindex,
  23946. g: index,
  23947. uid: this.userid
  23948. }
  23949. ];
  23950. this.ajax
  23951. .post(this.$store.state.api + "joinGroup", params)
  23952. .then(res => {
  23953. this.$message.success("加入成功");
  23954. this.getCourseDetail(2);
  23955. })
  23956. .catch(err => {
  23957. this.$message.error("网络不佳");
  23958. console.error(err);
  23959. });
  23960. },
  23961. exitGroup(id) {
  23962. if (this.groupJson.islock == 2) {
  23963. this.$message.error("位置已被锁定,无法退出");
  23964. return;
  23965. }
  23966. let params = [
  23967. {
  23968. gid: id
  23969. }
  23970. ];
  23971. this.ajax
  23972. .post(this.$store.state.api + "exitGroup", params)
  23973. .then(res => {
  23974. this.$message.success("退出成功");
  23975. this.getCourseDetail(2);
  23976. })
  23977. .catch(err => {
  23978. this.$message.error("网络不佳");
  23979. console.error(err);
  23980. });
  23981. },
  23982. groupUpload(index, task, gindex) {
  23983. this.taskCount = task;
  23984. this.toolindex = index;
  23985. this.groupIndex = gindex;
  23986. this.dialogVisibleGroupWork = true;
  23987. },
  23988. updateGroupChair(user) {
  23989. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23990. el.label = index;
  23991. return index != user.group;
  23992. });
  23993. this.updateGroupUser = user;
  23994. this.dialogVisibleUpdateGroup = true;
  23995. },
  23996. updateChair() {
  23997. if (
  23998. this.groupStudent[this.toolindex][this.checkChair].length >
  23999. this.groupJson.number ||
  24000. this.groupStudent[this.toolindex][this.checkChair].length ==
  24001. this.groupJson.number
  24002. ) {
  24003. this.$message.error("位置已满,无法加入");
  24004. return;
  24005. }
  24006. let params = [
  24007. {
  24008. cid: this.id,
  24009. stage: this.courseType,
  24010. task: this.taskCount,
  24011. tool: this.toolindex,
  24012. g: this.checkChair,
  24013. uid: this.updateGroupUser.userid
  24014. }
  24015. ];
  24016. this.ajax
  24017. .post(this.$store.state.api + "joinGroup", params)
  24018. .then(res => {
  24019. this.$message.success("修改成功");
  24020. this.updateGroupUser = {};
  24021. this.checkChair = "";
  24022. this.updateGroupArray = {};
  24023. this.dialogVisibleUpdateGroup = false;
  24024. this.getCourseDetail(2);
  24025. })
  24026. .catch(err => {
  24027. this.$message.error("网络不佳");
  24028. console.error(err);
  24029. });
  24030. },
  24031. deleteGroupChair(gindex) {
  24032. this.checkDeleteGroup = [];
  24033. this.deleteGroupUser = JSON.parse(
  24034. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24035. );
  24036. this.deleteGroupArray = this.groupJson.group[gindex];
  24037. this.groupIndex = gindex;
  24038. this.dialogVisibleDeleteGroup = true;
  24039. },
  24040. async deleteChair() {
  24041. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24042. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  24043. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24044. this.checkDeleteGroup[i]
  24045. )
  24046. ];
  24047. let params = [
  24048. {
  24049. gid: gid.id
  24050. }
  24051. ];
  24052. var a = await this.deleteChairA(params);
  24053. if (i == this.checkDeleteGroup.length - 1) {
  24054. this.$message.success("退出成功");
  24055. this.dialogVisibleDeleteGroup = false;
  24056. this.deleteGroupUser = [];
  24057. this.deleteGroupArray = {};
  24058. this.groupIndex = "";
  24059. this.checkDeleteGroup = [];
  24060. this.getCourseDetail(2);
  24061. }
  24062. }
  24063. },
  24064. deleteChairA(params) {
  24065. return new Promise((resolve, reject) => {
  24066. this.ajax
  24067. .post(this.$store.state.api + "exitGroup", params)
  24068. .then(res => {
  24069. resolve(1);
  24070. })
  24071. .catch(err => {
  24072. this.$message.error("网络不佳");
  24073. console.error(err);
  24074. });
  24075. });
  24076. },
  24077. contract(i) {
  24078. if (this.isCloseList[i].isClose == 0) {
  24079. this.isCloseList[i].isClose = 1;
  24080. } else {
  24081. this.isCloseList[i].isClose = 0;
  24082. }
  24083. this.$forceUpdate();
  24084. },
  24085. openWordCloud(toolindex) {
  24086. this.wordCloudData = '';
  24087. let array = [];
  24088. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24089. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24090. array.push({ name: works });
  24091. }
  24092. if (this.isGroup) {
  24093. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24094. let works = this.courseGroup.group[i].works[toolindex];
  24095. for (var j = 0; j < works.length; j++) {
  24096. let answer = JSON.parse(works[j].works)[0].answer;
  24097. array.push({ name: answer });
  24098. }
  24099. }
  24100. }
  24101. let _result = ''
  24102. array.forEach(e=>{
  24103. _result +=e.name+','
  24104. })
  24105. this.wordCloudData = _result;
  24106. this.dialogVisibleWordCloud = true;
  24107. this.wordCloudKey += 1;
  24108. },
  24109. openTips(i) {
  24110. this.tipsIndex = i;
  24111. this.downDialogVisible = true;
  24112. },
  24113. uploadWorks() {
  24114. this.$confirm("确定导出作业吗?", "提示", {
  24115. confirmButtonText: "确定",
  24116. cancelButtonText: "取消",
  24117. type: "warning"
  24118. })
  24119. .then(() => {
  24120. const loading = this.$loading.service({
  24121. background: "rgba(255, 255, 255, 0.7)",
  24122. target: document.body,
  24123. text: "文件加载中..."
  24124. });
  24125. const _worksStudent = this.worksStudent;
  24126. let url = [];
  24127. var counts = {};
  24128. for (var l = 0; l < _worksStudent[i].length; l++) {
  24129. var item = _worksStudent[i][l];
  24130. var name = item.sName;
  24131. if (!counts.hasOwnProperty(name)) {
  24132. counts[name] = 0;
  24133. } else {
  24134. counts[name]++;
  24135. }
  24136. if (counts[name] > 0) {
  24137. item.sName += " (" + counts[name] + ")";
  24138. }
  24139. }
  24140. for (var l = 0; l < _worksStudent[i].length; l++) {
  24141. var item = _worksStudent[i][l];
  24142. if (
  24143. item.works.indexOf(
  24144. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24145. ) !== -1 &&
  24146. item.works.indexOf("img") === -1
  24147. ) {
  24148. url.push({ name: item.sName, url: item.works });
  24149. }
  24150. }
  24151. // var toolList = [
  24152. // { name: "电子白板", tool: 1 },
  24153. // { name: "思维导图", tool: 3 },
  24154. // { name: "协同文档", tool: 6 },
  24155. // { name: "思维网格", tool: 7 },
  24156. // { name: "素材库", tool: 8 },
  24157. // { name: "学习资料", tool: 17 },
  24158. // { name: "便签", tool: 2 },
  24159. // { name: "问卷调查", tool: 4 },
  24160. // { name: "选择题", tool: 45 },
  24161. // { name: "倒计时", tool: 10 },
  24162. // { name: "问答", tool: 15 },
  24163. // { name: "课程设计", tool: 26 },
  24164. // { name: "训练服务器", tool: 18 },
  24165. // { name: "作业提交", tool: 16 },
  24166. // { name: "批量上传", tool: 50 },
  24167. // { name: "AIoT Blockly", tool: 21 },
  24168. // { name: "AI Python", tool: 23 },
  24169. // { name: "AI Blockly", tool: 24 },
  24170. // { name: "目标管理", tool: 25 },
  24171. // { name: "数学画板", tool: 31 },
  24172. // { name: "翻译", tool: 28 },
  24173. // { name: "魔盒识字", tool: 37 },
  24174. // { name: "数学画板", tool: 31 },
  24175. // { name: "24点", tool: 38 },
  24176. // { name: "GeoGebra", tool: 39 },
  24177. // { name: "源码编辑", tool: 32 },
  24178. // { name: "个人评价", tool: 40 },
  24179. // { name: "选择匹配", tool: 41 },
  24180. // { name: "汉字宫", tool: 44 },
  24181. // { name: "排序", tool: 47 },
  24182. // { name: "表格", tool: 48 },
  24183. // { name: "文档", tool: 52 },
  24184. // { name: "学生分组", tool: 49 },
  24185. // { name: "CocoPi", tool: 57 },
  24186. // { name: "模拟驾驶", tool: 58 },
  24187. // { name: "路径搜索", tool: 59 },
  24188. // { name: "深度学习", tool: 60 },
  24189. // { name: "全历史", tool: 61 },
  24190. // { name: "交互视频", tool: 62 },
  24191. // { name: "海龟编程", tool: 63 },
  24192. // { name: "挑人", tool: 65 },
  24193. // { name: "公式编辑", tool: 66 },
  24194. // { name: "分子结构", tool: 67 },
  24195. // { name: "时间轴", tool: 68 },
  24196. // ];
  24197. // var toolName = "";
  24198. // for(var w = 0;w<toolList.length;w++){
  24199. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24200. // toolName = toolList[w].name;
  24201. // }
  24202. // }
  24203. console.log(url);
  24204. this.downLoadAll(url, loading);
  24205. })
  24206. .catch(() => {});
  24207. },
  24208. downLoadAll(url, loading) {
  24209. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24210. const zip = new JSZip();
  24211. const cache = {};
  24212. const promises = [];
  24213. data.forEach(item => {
  24214. const promise = getFile(item.url).then(data => {
  24215. if (data.data != 1) {
  24216. // 下载文件, 并存成ArrayBuffer对象
  24217. const file_name =
  24218. item.name +
  24219. "." +
  24220. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24221. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24222. cache[file_name] = data.data;
  24223. }
  24224. });
  24225. promises.push(promise);
  24226. });
  24227. Promise.all(promises).then(() => {
  24228. zip.generateAsync({ type: "blob" }).then(content => {
  24229. // 生成二进制流
  24230. FileSaver.saveAs(
  24231. content,
  24232. this.courseDetail.title + "-" + "作业提交工具.zip"
  24233. ); // 利用file-saver保存文件 自定义文件名
  24234. setTimeout(() => {
  24235. loading.close();
  24236. }, 2000);
  24237. });
  24238. });
  24239. },
  24240. pickStudent(stu) {
  24241. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24242. return;
  24243. }
  24244. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24245. confirmButtonText: "确定",
  24246. cancelButtonText: "取消",
  24247. type: "warning"
  24248. })
  24249. .then(() => {
  24250. let params = [
  24251. {
  24252. uid: stu.userid,
  24253. cid: this.id,
  24254. stage: this.courseType,
  24255. task: this.taskCount,
  24256. tool: this.toolindex
  24257. }
  24258. ];
  24259. this.ajax
  24260. .post(this.$store.state.api + "updateCoursePick", params)
  24261. .then(res => {
  24262. this.$message.success("操作成功");
  24263. this.getPick();
  24264. })
  24265. .catch(err => {
  24266. this.$message.error("网络不佳");
  24267. console.error(err);
  24268. });
  24269. })
  24270. .catch(() => {});
  24271. },
  24272. selectUser() {
  24273. let params = {
  24274. userid: this.userid
  24275. };
  24276. this.ajax
  24277. .get(this.$store.state.api + "selectUser", params)
  24278. .then(res => {
  24279. this.userMes = res.data[0];
  24280. })
  24281. .catch(err => {
  24282. console.error(err);
  24283. });
  24284. },
  24285. setEngText(i) {
  24286. this.newEngIndex = i;
  24287. this.$forceUpdate();
  24288. },
  24289. addCorrect() {
  24290. this.$confirm("你确定提交批改嘛?", "提示", {
  24291. confirmButtonText: "确定",
  24292. showCancelButton: false,
  24293. closeOnClickModal: false,
  24294. type: "warning"
  24295. })
  24296. .then(() => {
  24297. let params = {
  24298. cid: this.id,
  24299. s: parseInt(this.courseType),
  24300. t: this.taskCount,
  24301. tool: this.toolindex,
  24302. wid: this.engWid,
  24303. c: this.userid,
  24304. w:
  24305. this.userMes[0].type == 2
  24306. ? JSON.parse(this.newEnglishList)
  24307. : this.newEngIndex == -1 &&
  24308. this.isNoUserid == true &&
  24309. this.newEnglishList1.length
  24310. ? JSON.stringify(this.oldEnglishJson1)
  24311. : this.newEngIndex == -1
  24312. ? JSON.stringify(this.newEnglishList)
  24313. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24314. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24315. : ""
  24316. };
  24317. this.ajax
  24318. .get(this.$store.state.api + "addEngC", params)
  24319. .then(res => {
  24320. this.$message.success("提交成功");
  24321. this.engUpdateDialogVisible = false;
  24322. })
  24323. .catch(err => {
  24324. console.error(err);
  24325. });
  24326. })
  24327. .catch(() => {});
  24328. },
  24329. selectEngC(id, z) {
  24330. let params = {
  24331. workid: id
  24332. };
  24333. this.ajax
  24334. .get(this.$store.state.api + "selectEngC", params)
  24335. .then(res => {
  24336. if (res.data[0].length == 0) {
  24337. this.newEnglishList.engTitle = z.engTitle;
  24338. this.newEnglishList.engText = z.engText;
  24339. } else {
  24340. var a = res.data[0];
  24341. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24342. if (this.userMes[0].type == 2) {
  24343. var snum = 0;
  24344. for (var i = 0; i < a.length; i++) {
  24345. if (this.userMes[0].userid == a[i].correct) {
  24346. this.newEnglishList = JSON.parse(a[i].cWork);
  24347. snum = 1;
  24348. }
  24349. }
  24350. if (snum == 0) {
  24351. this.newEnglishList = { engTitle: "", engText: "" };
  24352. this.newEnglishList.engTitle = z.engTitle;
  24353. this.newEnglishList.engText = z.engText;
  24354. }
  24355. } else if (this.userMes[0].type == 1) {
  24356. var num = 0;
  24357. for (var w = 0; w < a.length; w++) {
  24358. if (this.userMes[0].userid == a[w].correct) {
  24359. num = 1;
  24360. }
  24361. }
  24362. if (num == 0) {
  24363. this.isNoUserid = true;
  24364. var c = JSON.parse(JSON.stringify(z));
  24365. this.oldEnglishJson1 = c;
  24366. } else {
  24367. this.isNoUserid = false;
  24368. }
  24369. var b = a.sort((item, index) => {
  24370. console.log(item);
  24371. if (item.correct === this.userMes[0].userid) {
  24372. return -1; // 将a移到前面
  24373. } else if (index.correct === this.userMes[0].userid) {
  24374. return 1; // 将b移到前面
  24375. } else {
  24376. return 0; // 保持默认顺序
  24377. }
  24378. });
  24379. for (var p = 0; p < b.length; p++) {
  24380. for (var y = 0; y < ppp.length; y++) {
  24381. if (b[p].id == ppp[y].id) {
  24382. b[p].cWork = JSON.parse(ppp[y].cWork);
  24383. break;
  24384. }
  24385. }
  24386. }
  24387. this.newEnglishList1 = b;
  24388. }
  24389. }
  24390. this.greyType = false;
  24391. setTimeout(() => {
  24392. this.topHeight = document.querySelectorAll(
  24393. ".engUpTop"
  24394. )[0].offsetHeight;
  24395. if (this.newEnglishList1.length > 0) {
  24396. if (this.isNoUserid == true) {
  24397. this.engListLength = this.newEnglishList1.length + 1;
  24398. this.newEngIndex = -1;
  24399. } else {
  24400. this.engListLength = this.newEnglishList1.length;
  24401. this.newEngIndex = 0;
  24402. }
  24403. }
  24404. if (this.userMes[0].type == 2) {
  24405. this.correctWord = Diff.diffWordsWithSpace(
  24406. this.oldEnglishJson.engText,
  24407. this.newEnglishList.engText
  24408. );
  24409. } else if (
  24410. this.newEngIndex == -1 &&
  24411. this.isNoUserid == true &&
  24412. this.newEnglishList1.length
  24413. ) {
  24414. this.correctWord = Diff.diffWordsWithSpace(
  24415. this.oldEnglishJson.engText,
  24416. this.oldEnglishJson1.engText
  24417. );
  24418. } else if (this.newEngIndex == -1) {
  24419. this.correctWord = Diff.diffWordsWithSpace(
  24420. this.oldEnglishJson.engText,
  24421. this.newEnglishList.engText
  24422. );
  24423. } else if (
  24424. this.newEngIndex > -1 &&
  24425. this.newEnglishList1.length > 0
  24426. ) {
  24427. this.correctWord = Diff.diffWordsWithSpace(
  24428. this.oldEnglishJson.engText,
  24429. this.newEnglishList1[this.newEngIndex].cWork.engText
  24430. );
  24431. }
  24432. }, 500);
  24433. this.engUpdateDialogVisible = true;
  24434. this.$forceUpdate();
  24435. })
  24436. .catch(err => {
  24437. console.error(err);
  24438. });
  24439. },
  24440. getPick() {
  24441. let params = {
  24442. cid: this.id
  24443. };
  24444. this.ajax
  24445. .get(this.$store.state.api + "getPick", params)
  24446. .then(res => {
  24447. let array = [];
  24448. for (var i = 0; i < res.data[0].length; i++) {
  24449. array.push(res.data[0][i].userid);
  24450. }
  24451. this.isPickStudent = array;
  24452. if (array.indexOf(this.userid) !== -1) {
  24453. this.$confirm("你被老师选到啦!", "提示", {
  24454. confirmButtonText: "确定",
  24455. showCancelButton: false,
  24456. closeOnClickModal: false,
  24457. type: "warning"
  24458. })
  24459. .then(() => {
  24460. let pa = [
  24461. {
  24462. uid: this.userid,
  24463. cid: this.id
  24464. }
  24465. ];
  24466. this.ajax
  24467. .post(this.$store.state.api + "deletePick", pa)
  24468. .then(res => {
  24469. this.getPick();
  24470. })
  24471. .catch(err => {
  24472. this.$message.error("网络不佳");
  24473. console.error(err);
  24474. });
  24475. })
  24476. .catch(() => {});
  24477. }
  24478. })
  24479. .catch(err => {
  24480. this.$message.error("网络不佳");
  24481. console.error(err);
  24482. });
  24483. },
  24484. foldEva() {
  24485. if (
  24486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24487. this.taskCount
  24488. ].isEvaFold2
  24489. ) {
  24490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24491. this.taskCount
  24492. ].isEvaFold2 = false;
  24493. } else {
  24494. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24495. this.taskCount
  24496. ].isEvaFold2 = true;
  24497. setTimeout(() => {
  24498. this.checkEva();
  24499. setTimeout(() => {
  24500. this.checkEva();
  24501. }, 500);
  24502. }, 0);
  24503. }
  24504. this.$forceUpdate();
  24505. },
  24506. panToolHeight(tool) {
  24507. var _tool = document.querySelectorAll("#" + tool)[0];
  24508. var _toolA = _tool ? _tool.offsetHeight : 0;
  24509. var _toolC = 0;
  24510. var _toolC =
  24511. _tool && _tool.children && _tool.children[0]
  24512. ? _tool.children[0].offsetHeight + 50
  24513. : 0;
  24514. let boolean2 = _toolA > _toolC ? true : false;
  24515. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  24516. this.$forceUpdate();
  24517. },
  24518. async checkLink(url) {
  24519. // console.log(url)
  24520. let _url = url;
  24521. try {
  24522. const response = await fetch(url);
  24523. if (!response.ok) {
  24524. _url = await this.checkLink(
  24525. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24526. encodeURIComponent(
  24527. _url.split(
  24528. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  24529. )[1]
  24530. )
  24531. );
  24532. }
  24533. // console.log(response.ok)
  24534. } catch (error) {
  24535. console.error("Error checking link:", error);
  24536. // console.log(false)
  24537. _url = await this.checkLink(
  24538. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24539. encodeURIComponent(
  24540. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24541. )
  24542. );
  24543. }
  24544. // console.log(_url)
  24545. return _url;
  24546. },
  24547. setClassRoomHelperWidth(width) {
  24548. this.classRoomHelperWidth = width;
  24549. },
  24550. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24551. this.$refs.choseWorksDetailDialogRef.open({
  24552. toolType:tooc,
  24553. tType: this.tType,
  24554. toolIndex: toolIndex
  24555. });
  24556. this.changeSplitScreenBehavior({
  24557. code: 1,
  24558. form: {
  24559. toolType:tooc,
  24560. toolIndex: toolIndex,
  24561. courseType: this.courseType,
  24562. taskCount: this.taskCount,
  24563. type: 0
  24564. }
  24565. });
  24566. },
  24567. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24568. this.$refs.statisticalAnalysisRef.open({
  24569. worksStudent: this.worksStudent[toolIndex],
  24570. tType: this.tType,
  24571. toolIndex: toolIndex
  24572. });
  24573. this.changeSplitScreenBehavior({
  24574. code: 2,
  24575. form: {
  24576. toolType:4,
  24577. courseType: this.courseType,
  24578. taskCount: this.taskCount,
  24579. toolIndex: toolIndex,
  24580. type: 0
  24581. }
  24582. });
  24583. },
  24584. statisticalAnalysisRefresh(toolIndex) {
  24585. this.$refs.statisticalAnalysisRef.refreshData({
  24586. worksStudent: this.worksStudent[toolIndex],
  24587. tType: this.tType,
  24588. toolIndex: toolIndex
  24589. });
  24590. },
  24591. async splitScreenBehavior(type = 0) {
  24592. // return;
  24593. if (this.splitScreenData.loading)
  24594. return this.$message.info("操作过快,请稍等");
  24595. if (type == 0) {
  24596. //关闭分屏
  24597. this.splitScreenData.isOpen = false;
  24598. // this.splitScreenData.userId = "";
  24599. // this.splitScreenData.uid = "";
  24600. this.splitScreenData.behavior = null;
  24601. await this.updateSplitScreenData(1);
  24602. this.$message.success("已关闭分屏模式");
  24603. this.studentFreePreview(false);
  24604. this.OpenJobPreview(false);
  24605. // this.followingMode(false);
  24606. } else if (type == 1) {
  24607. //开启分屏
  24608. this.splitScreenData.isOpen = true;
  24609. this.splitScreenData.userId = this.userid;
  24610. this.splitScreenData.uid = this.splitScreenData.myUid;
  24611. this.splitScreenData.behavior = null;
  24612. let status = await this.updateSplitScreenData(0);
  24613. if (status == 1) {
  24614. this.$message.success("已开启分屏");
  24615. this.studentFreePreview(true);
  24616. this.OpenJobPreview(true);
  24617. this.changeSplitScreenBehavior({form:{}})
  24618. // this.followingMode(true);
  24619. } else {
  24620. this.splitScreenData.isOpen = false;
  24621. this.splitScreenData.userId = "";
  24622. this.splitScreenData.uid = "";
  24623. this.splitScreenData.behavior = null;
  24624. this.$message.success("分屏开启失败");
  24625. }
  24626. }
  24627. },
  24628. enterFullScreen() {
  24629. let element = document.documentElement;
  24630. if (element.requestFullscreen) {
  24631. element.requestFullscreen();
  24632. } else if (element.mozRequestFullScreen) { /* Firefox */
  24633. element.mozRequestFullScreen();
  24634. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24635. element.webkitRequestFullscreen();
  24636. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24637. element.msRequestFullscreen();
  24638. }
  24639. },
  24640. exitFullScreen() {
  24641. if (document.exitFullscreen) {
  24642. document.exitFullscreen();
  24643. } else if (document.mozCancelFullScreen) { /* Firefox */
  24644. document.mozCancelFullScreen();
  24645. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24646. document.webkitExitFullscreen();
  24647. } else if (document.msExitFullscreen) { /* IE/Edge */
  24648. document.msExitFullscreen();
  24649. }
  24650. },
  24651. confirmOpen(){
  24652. this.splitScreenData.isOpen = true;
  24653. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24654. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24655. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24656. this.confirmOpenDig = false
  24657. if (!document.fullscreenElement) {
  24658. this.enterFullScreen();
  24659. }
  24660. if (this.timer2) {
  24661. clearInterval(this.timer2);
  24662. this.timer2 = null;
  24663. console.log('清除定时器');
  24664. }
  24665. this.timer2 = setInterval(()=> {
  24666. this.getSplitScreenData();//获取分屏数据
  24667. }, 1000);
  24668. this.$message.success("分屏模式已开启");
  24669. },
  24670. getSplitScreenData() {
  24671. // return;
  24672. // if (this.tType != 1) return;
  24673. let params = {
  24674. cid: this.id
  24675. };
  24676. this.ajax
  24677. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24678. .then(async res => {
  24679. let data = res.data[0][0]["splitScreenData"];
  24680. console.log("获取了分屏数:", data);
  24681. if (data) {
  24682. data = JSON.parse(data);
  24683. if (
  24684. !this.splitScreenData.isOpen &&
  24685. data.isOpen &&
  24686. this.splitScreenData.myUid == data.uid
  24687. ) {
  24688. this.splitScreenData.isOpen = false;
  24689. this.splitScreenData.userId = "";
  24690. this.splitScreenData.uid = "";
  24691. this.splitScreenData.behavior = null;
  24692. await this.updateSplitScreenData(1);
  24693. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24694. this.confirmOpenDig = true
  24695. this.confirmOpenDigData = data
  24696. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24697. this.splitScreenData.isOpen = false;
  24698. this.splitScreenData.userId = "";
  24699. this.splitScreenData.uid = "";
  24700. this.splitScreenData.behavior = null;
  24701. this.$message.error("已结束分屏模式");
  24702. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24703. this.splitScreenData.isOpen = true;
  24704. this.splitScreenData.uid = data.uid;
  24705. this.splitScreenData.userId = data.userId;
  24706. this.splitScreenData.behavior = data.behavior;
  24707. }
  24708. this.doSplitScreenBehavior();
  24709. } else {
  24710. if (this.splitScreenData.isOpen) {
  24711. this.splitScreenData.isOpen = false;
  24712. this.splitScreenData.userId = "";
  24713. this.splitScreenData.uid = "";
  24714. this.splitScreenData.behavior = null;
  24715. this.$message.error("已结束分屏模式");
  24716. if (this.timer2) {
  24717. clearInterval(this.timer2);
  24718. this.timer2 = null;
  24719. }
  24720. this.timer2 = setInterval(()=> {
  24721. this.getSplitScreenData();//获取分屏数据
  24722. }, 5000);
  24723. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  24724. confirmButtonText: '确定', //确认按钮的文字
  24725. showCancelButton: false, //是否显示取消按钮
  24726. showClose: false, //是否显示关闭按钮
  24727. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24728. type: "warning",
  24729. })
  24730. .then(() => {
  24731. if (document.fullscreenElement) {
  24732. this.exitFullScreen();
  24733. }
  24734. })
  24735. .catch(() => {});
  24736. }
  24737. }
  24738. })
  24739. .catch(e => {
  24740. console.log("获取分屏数出错:", e);
  24741. });
  24742. },
  24743. doSplitScreenBehavior() {
  24744. if (
  24745. this.splitScreenData.isOpen &&
  24746. this.splitScreenData.uid != this.splitScreenData.myUid
  24747. ) {
  24748. let behavior = this.splitScreenData.behavior;
  24749. if (behavior) {
  24750. if (behavior.code === 99) {
  24751. //初始化
  24752. this.fullDialogVisible = false;
  24753. if(this.$refs.choseWorksDetailDialogRef.show){
  24754. this.$refs.choseWorksDetailDialogRef.close();
  24755. }
  24756. if(this.$refs.statisticalAnalysisRef.show){
  24757. this.$refs.statisticalAnalysisRef.close();
  24758. }
  24759. }
  24760. if (behavior.code === 0) {
  24761. //开启内容列表弹窗
  24762. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24763. }else{
  24764. this.fullDialogVisible = false;
  24765. }
  24766. if (behavior.code === 1) {
  24767. //关于选择题的作业详细的操作
  24768. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24769. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24770. this.courseType = behavior.form.courseType;
  24771. this.taskCount = behavior.form.taskCount;
  24772. }
  24773. this.$nextTick(() => {
  24774. if (this.$refs.choseWorksDetailDialogRef.show) {
  24775. //已经打开了
  24776. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24777. } else {
  24778. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24779. }
  24780. });
  24781. }else{
  24782. this.$refs.choseWorksDetailDialogRef.close()
  24783. }
  24784. if(behavior.code === 2){
  24785. if(this.$refs.statisticalAnalysisRef.show){
  24786. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24787. }else{
  24788. this.$refs.statisticalAnalysisRef.open({
  24789. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24790. tType: this.tType,
  24791. toolIndex: behavior.form.toolIndex
  24792. });
  24793. }
  24794. }else{
  24795. this.$refs.statisticalAnalysisRef.close();
  24796. }
  24797. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24798. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24799. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24800. if (behavior.form.courseType != this.courseType ||
  24801. behavior.form.taskCount != this.taskCount ||
  24802. behavior.form.toolType != this.toolindex
  24803. ) {
  24804. var a = document.scrollingElement;
  24805. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24806. if (target) {
  24807. target.scrollIntoView(true);
  24808. setTimeout(()=>{
  24809. let scrollBody = document.querySelector('.body_student').parentElement
  24810. scrollBody.scrollTop = scrollBody.scrollTop - 100
  24811. }, 0);
  24812. // setTimeout(() => {
  24813. // a.scrollTop = 0
  24814. // }, 0);
  24815. }
  24816. }
  24817. if(this.courseType !=behavior.form.courseType){
  24818. this.courseType = behavior.form.courseType;
  24819. }
  24820. if(this.taskCount !=behavior.form.taskCount){
  24821. this.taskCount = behavior.form.taskCount;
  24822. }
  24823. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  24824. this.toolindex = behavior.form.toolType;
  24825. }
  24826. // if(behavior.form.navId){
  24827. // this.navId = behavior.form.navId
  24828. // }
  24829. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24830. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24831. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24832. this.getCourseDetail()
  24833. }
  24834. this.setContent2(false)
  24835. }
  24836. } else {
  24837. }
  24838. }
  24839. },
  24840. updateSplitScreenData(empty = 0) {
  24841. return new Promise(resolve => {
  24842. if(this.userid!==this.courseDetail.userid){
  24843. if(!this.courseDetail.userid){
  24844. return setTimeout(()=>{
  24845. this.updateSplitScreenData(empty)
  24846. },2000)
  24847. }
  24848. return;
  24849. };
  24850. if (
  24851. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24852. this.splitScreenData.userId == this.userid
  24853. ) {
  24854. this.splitScreenData.loading = true;
  24855. let params = [
  24856. {
  24857. cid: this.id,
  24858. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24859. }
  24860. ];
  24861. this.ajax
  24862. .post(
  24863. this.$store.state.api + "update_courseSplitScreenData",
  24864. params
  24865. )
  24866. .then(res => {
  24867. this.splitScreenData.loading = false;
  24868. if (res.data == 1) {
  24869. resolve(1);
  24870. console.log("修改分屏数据成功");
  24871. }
  24872. })
  24873. .catch(e => {
  24874. this.splitScreenData.loading = false;
  24875. console.log("修改分屏数据失败", e);
  24876. resoleve(0);
  24877. });
  24878. } else if (empty == 2 && this.tType == 1) {
  24879. let params = [
  24880. {
  24881. cid: this.id,
  24882. nData: ""
  24883. }
  24884. ];
  24885. return this.ajax
  24886. .post(
  24887. this.$store.state.api + "update_courseSplitScreenData",
  24888. params
  24889. )
  24890. .then(_ => resolve(1))
  24891. .catch(_ => resolve(0));
  24892. } else {
  24893. return resolve(0);
  24894. }
  24895. });
  24896. },
  24897. changeSplitScreenBehavior(newValue) {
  24898. if (
  24899. this.splitScreenData.isOpen &&
  24900. this.splitScreenData.uid == this.splitScreenData.myUid
  24901. ) {
  24902. let _behavior = null;
  24903. if(!newValue){
  24904. _behavior = {}
  24905. }else{
  24906. _behavior = newValue
  24907. }
  24908. if(_behavior.form){
  24909. _behavior.form.taskCount = this.taskCount;
  24910. _behavior.form.courseType = this.courseType
  24911. }else{
  24912. _behavior.form = {
  24913. taskCount:this.taskCount,
  24914. courseType:this.courseType
  24915. }
  24916. }
  24917. this.splitScreenData.behavior = _behavior;
  24918. this.updateSplitScreenData(0);
  24919. }
  24920. },
  24921. studentFreePreview(flag) {
  24922. this.IsLookOpen = flag;
  24923. this.followingMode(flag)
  24924. this.updateLookOpen();
  24925. },
  24926. OpenJobPreview(flag) {
  24927. this.sIsOpen = flag;
  24928. this.updateSLook();
  24929. },
  24930. followingMode(flag) {
  24931. this.IsFollow = flag;
  24932. this.updateFollow();
  24933. }
  24934. },
  24935. directives: {
  24936. // 使用局部注册指令的方式
  24937. resize: {
  24938. // 指令的名称
  24939. bind(el, binding) {
  24940. // el为绑定的元素,binding为绑定给指令的对象
  24941. let width = "",
  24942. height = "";
  24943. function isReize() {
  24944. const style = document.defaultView.getComputedStyle(el);
  24945. if (width !== style.width || height !== style.height) {
  24946. binding.value(); // 关键
  24947. }
  24948. width = style.width;
  24949. height = style.height;
  24950. }
  24951. el.__vueSetInterval__ = setInterval(isReize, 300);
  24952. },
  24953. unbind(el) {
  24954. clearInterval(el.__vueSetInterval__);
  24955. }
  24956. },
  24957. autoHeight: {
  24958. update(el, binding) {
  24959. const { value } = binding;
  24960. if (value && typeof value === "number") {
  24961. el.style.height = `${value}px`;
  24962. } else {
  24963. el.style.height = "auto";
  24964. }
  24965. },
  24966. componentUpdated(el) {
  24967. el.style.height = `${el.scrollHeight + 5}px`;
  24968. }
  24969. }
  24970. },
  24971. beforeDestroy() {
  24972. window.onresize = null;
  24973. clearInterval(this.timer);
  24974. this.timer = null;
  24975. clearInterval(this.timer2);
  24976. this.timer2 = null;
  24977. clearInterval(this.opertimer);
  24978. this.opertimer = null;
  24979. this.updateSplitScreenData(1);
  24980. },
  24981. computed: {
  24982. getHeight() {
  24983. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24984. },
  24985. contentConvent() {
  24986. return function(c) {
  24987. return c
  24988. ? c
  24989. .replaceAll(/\r\n/g, "<br/>")
  24990. .replaceAll(/\n/g, "<br/>")
  24991. .replaceAll(/\s/g, " &nbsp")
  24992. : "";
  24993. };
  24994. },
  24995. commentRight() {
  24996. if (
  24997. !this.orgArray.includes(this.org) &&
  24998. !this.oidArray.includes(this.oid)
  24999. ) {
  25000. return "35px";
  25001. }
  25002. return `calc(${this.classRoomHelperWidth} + 5px)`;
  25003. // if(this.$refs["classRoomHelperRef"].type==0){
  25004. // return "100px";
  25005. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25006. // return "502px"
  25007. // }else{
  25008. // return "0px"
  25009. // }
  25010. },
  25011. checkUpload() {
  25012. return function() {
  25013. var studentK = [];
  25014. if (this.plworkFile.length > 0) {
  25015. for (var z = 0; z < this.plworkFile.length; z++) {
  25016. studentK.push(this.plworkFile[z].username);
  25017. }
  25018. studentK = studentK.join(",");
  25019. }
  25020. var a = this.uploadStudentJuri.filter(el => {
  25021. return studentK.indexOf(el.userid) == -1;
  25022. });
  25023. return a;
  25024. };
  25025. },
  25026. getSName() {
  25027. return function(name) {
  25028. var check = name;
  25029. this.uploadStudentJuri.forEach(el => {
  25030. if (el.userid == check) {
  25031. check = el.name ? el.name : el.username;
  25032. }
  25033. });
  25034. return check;
  25035. };
  25036. },
  25037. getImgList() {
  25038. return function(val) {
  25039. let srcList = []; // 定义一个数组用来接收后面的img地址
  25040. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  25041. match,
  25042. capture
  25043. ) {
  25044. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25045. srcList.push(capture);
  25046. });
  25047. return srcList;
  25048. };
  25049. },
  25050. retrnToolHeight() {
  25051. return function(tool) {
  25052. var _tool = document.querySelectorAll("#" + tool)[0];
  25053. return _tool
  25054. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  25055. 30 +
  25056. "px"
  25057. : 0;
  25058. };
  25059. },
  25060. Correct() {
  25061. return function(c) {
  25062. let w = "";
  25063. let a = this.correctWord;
  25064. for (var k = 0; k < a.length; k++) {
  25065. //diffWordsWithSpace
  25066. if (a.length > 1) {
  25067. if (a[k].added == true) {
  25068. w +=
  25069. '<span style="background-color: green;color:#fff">' +
  25070. a[k].value +
  25071. "</span>";
  25072. } else if (a[k].removed == true) {
  25073. w +=
  25074. '<span style="text-decoration: line-through;color:red">' +
  25075. a[k].value +
  25076. "</span>";
  25077. } else {
  25078. w += "<span>" + a[k].value + "</span>";
  25079. }
  25080. } else {
  25081. w = c;
  25082. }
  25083. //diffChars方法
  25084. // if(w == ""){
  25085. // if(a.length > 1){
  25086. // if(a[k].added == true){
  25087. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25088. // }else if(a[k].removed == true){
  25089. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25090. // }
  25091. // }else{
  25092. // w = c
  25093. // }
  25094. // }else{
  25095. // if(k == a.length - 1){
  25096. // if(a[k].added == true){
  25097. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25098. // }else if(a[k].removed == true){
  25099. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25100. // }
  25101. // }else{
  25102. // if(a[k].added == true){
  25103. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25104. // }else if(a[k].removed == true){
  25105. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25106. // }
  25107. // }
  25108. // }
  25109. }
  25110. c = w;
  25111. return c;
  25112. };
  25113. },
  25114. getScoreList() {
  25115. let params = {
  25116. cid: this.id
  25117. };
  25118. this.ajax
  25119. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25120. .then(res => {
  25121. let result = res.data;
  25122. this.scoreList.datalist = result[0];
  25123. this.scoreList.isScoreList = result[1];
  25124. })
  25125. .catch(err => {
  25126. console.error(err);
  25127. });
  25128. }
  25129. },
  25130. mounted() {
  25131. this.updateSplitScreenData(2);
  25132. this.splitScreenData.myUid = uuidv4();
  25133. document.body.addEventListener("click", e => {
  25134. if (this.isUpdateToolDetail1) {
  25135. this.updateToolDetail(this.toolDetailIndex);
  25136. }
  25137. });
  25138. if (this.screenType == 2) {
  25139. window.parent.postMessage({ allScreen: 4 }, "*");
  25140. } else if (this.screenType == 3) {
  25141. window.parent.postMessage({ allScreen: 5 }, "*");
  25142. } else if (this.screenType == 1) {
  25143. window.parent.postMessage({ allScreen: 6 }, "*");
  25144. }
  25145. this.setOperationTime();
  25146. this.selectEva();
  25147. this.getCourseDetail();
  25148. this.selectCount();
  25149. this.getHomeWork();
  25150. this.selectUser();
  25151. this.getAIJ();
  25152. this.contentDialog = true;
  25153. this.setContent2(true);
  25154. if (this.tType == 4) {
  25155. this.pzDialog = true;
  25156. this.selectPz();
  25157. }
  25158. // 获取评分列表
  25159. this.getScoreList();
  25160. document.scrollingElement.scrollTop = 0;
  25161. window.addEventListener("resize", () => {
  25162. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25163. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25164. if (this.showType == 2 || this.showType == 3) {
  25165. document.getElementsByClassName("navBox")[0].style.height =
  25166. a - 40 + 0 + "px";
  25167. } else {
  25168. document.getElementsByClassName("navBox")[0].style.height =
  25169. a - 40 + "px";
  25170. }
  25171. });
  25172. let _this = this;
  25173. setTimeout(() => {
  25174. // _this.vedioTime = [];
  25175. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25176. // _this.vedioTime[i] = document.getElementsByClassName(
  25177. // "vjs-duration-display"
  25178. // )[i].textContent;
  25179. // }
  25180. }, 1000);
  25181. }
  25182. };
  25183. </script>
  25184. <style scoped>
  25185. @media screen and (max-width: 1280px) {
  25186. /* .courseIndex > div:first-child(2) {
  25187. width: 15% !important;
  25188. } */
  25189. /* .navText {
  25190. width: 120px !important;
  25191. } */
  25192. .evaCss {
  25193. flex-direction: column !important;
  25194. align-items: center !important;
  25195. }
  25196. .elist_input {
  25197. width: 90% !important;
  25198. }
  25199. .dialog_diy1 >>> .el-dialog {
  25200. width: 100% !important;
  25201. }
  25202. .rightWidthCss {
  25203. width: 100% !important;
  25204. }
  25205. .dialog_diy3 >>> .el-dialog {
  25206. width: 100% !important;
  25207. }
  25208. .addToolCss {
  25209. right: 0 !important;
  25210. width: 100% !important;
  25211. min-width: unset !important;
  25212. }
  25213. }
  25214. .evaCssMax {
  25215. flex-direction: column !important;
  25216. align-items: center !important;
  25217. }
  25218. .dialog_diy >>> .el-dialog {
  25219. margin-top: 10vh !important;
  25220. }
  25221. .body_student {
  25222. width: 77%;
  25223. height: 100%;
  25224. position: absolute;
  25225. left: 22%;
  25226. top: 0;
  25227. }
  25228. .student_head {
  25229. width: 100%;
  25230. margin: 20px auto 0;
  25231. padding-bottom: 20px;
  25232. display: flex;
  25233. flex-direction: column;
  25234. flex-wrap: nowrap;
  25235. align-items: flex-start;
  25236. justify-content: flex-start;
  25237. }
  25238. .pb_left {
  25239. width: 20%;
  25240. margin-right: 10px;
  25241. background: rgb(255, 255, 255);
  25242. position: fixed;
  25243. height: calc(100% - 40px);
  25244. border-radius: 20px;
  25245. padding-bottom: 15px;
  25246. box-sizing: border-box;
  25247. }
  25248. .wheel > img,
  25249. .project > img,
  25250. .star > img,
  25251. .evaluate > img,
  25252. .up_photo > img,
  25253. .chapter_add > img,
  25254. .deleteWord > img,
  25255. .question > img,
  25256. .homework > img {
  25257. width: 100%;
  25258. height: 100%;
  25259. }
  25260. .upCover > img {
  25261. width: 131px;
  25262. height: 69px;
  25263. object-fit: cover;
  25264. }
  25265. .upCover {
  25266. width: calc(100% / 3.5);
  25267. position: relative;
  25268. margin: 0 15px 10px 0;
  25269. display: flex;
  25270. flex-direction: column;
  25271. flex-wrap: nowrap;
  25272. justify-content: center;
  25273. align-content: center;
  25274. align-items: center;
  25275. height: fit-content;
  25276. }
  25277. .upCover2 {
  25278. width: 100%;
  25279. position: relative;
  25280. margin: 0 15px 10px 0;
  25281. display: flex;
  25282. flex-direction: column;
  25283. flex-wrap: nowrap;
  25284. justify-content: center;
  25285. align-content: center;
  25286. align-items: center;
  25287. }
  25288. .upCover2 > img {
  25289. width: 100%;
  25290. height: 90px;
  25291. object-fit: contain;
  25292. }
  25293. .chapter_add {
  25294. width: 120px;
  25295. position: relative;
  25296. text-align: center;
  25297. }
  25298. .isAddThings {
  25299. margin-top: 20px;
  25300. position: relative;
  25301. text-align: center;
  25302. background: #f7f8fa;
  25303. height: 90px;
  25304. width: 90px;
  25305. display: flex;
  25306. flex-direction: column;
  25307. justify-content: center;
  25308. }
  25309. .deleteWord {
  25310. width: 22px;
  25311. height: 22px;
  25312. position: absolute;
  25313. right: -5px;
  25314. top: -5px;
  25315. cursor: pointer;
  25316. }
  25317. .box_course {
  25318. /* width: 60%; */
  25319. width: calc(100% - 300px);
  25320. }
  25321. .wheel {
  25322. width: 100%;
  25323. /* height: 100%; */
  25324. height: 650px;
  25325. }
  25326. .right_box {
  25327. display: flex;
  25328. flex-direction: column;
  25329. margin-left: 30px;
  25330. justify-content: space-around;
  25331. }
  25332. .right_box_title {
  25333. font-size: 23px;
  25334. }
  25335. .people {
  25336. display: flex;
  25337. }
  25338. .student_body {
  25339. width: 100%;
  25340. margin: 0 auto;
  25341. margin-top: 10px;
  25342. padding: 0 0 20px;
  25343. }
  25344. .study_top {
  25345. margin-top: 100px;
  25346. width: 100%;
  25347. height: auto;
  25348. padding-bottom: 20px;
  25349. margin-left: 2px;
  25350. min-height: 90%;
  25351. }
  25352. .study_top .checkbox {
  25353. display: flex;
  25354. align-items: center;
  25355. padding: 15px 0 15px 30px;
  25356. flex: 0 0 auto;
  25357. font-weight: bold;
  25358. border-bottom: 1px solid #eee;
  25359. }
  25360. .study_top .check {
  25361. padding-bottom: 5px;
  25362. text-align: center;
  25363. cursor: pointer;
  25364. height: 30px;
  25365. box-sizing: border-box;
  25366. display: flex;
  25367. }
  25368. .study_top .checked {
  25369. border-bottom: 4px solid #3fc6a0;
  25370. padding-bottom: 5px;
  25371. color: #3fc6a0;
  25372. display: flex;
  25373. height: 35px;
  25374. }
  25375. .study_top .checked > div,
  25376. .study_top .check > div {
  25377. margin-right: 5px;
  25378. }
  25379. .videoTop {
  25380. display: flex;
  25381. flex-direction: row;
  25382. justify-content: space-between;
  25383. background: #fff;
  25384. align-items: center;
  25385. width: 95%;
  25386. padding: 20px;
  25387. }
  25388. .filebox {
  25389. display: flex;
  25390. flex-wrap: wrap;
  25391. flex-direction: column;
  25392. padding: 0 0 5px;
  25393. position: relative;
  25394. }
  25395. .filebox:before {
  25396. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25397. position: absolute;
  25398. top: 20px;
  25399. left: 13px;
  25400. border-left: 2px dotted #cad1dc;
  25401. height: calc(100% - 15px);
  25402. }
  25403. .toolHeng2 > div:last-child::before {
  25404. height: calc(100% - 43px);
  25405. }
  25406. .filebox .tooldetail {
  25407. width: calc(100%);
  25408. margin: 0px 12px;
  25409. padding: 12px;
  25410. line-height: 30px;
  25411. word-break: break-word;
  25412. background: #ffffff;
  25413. border-radius: 8px 8px 8px 8px;
  25414. opacity: 1;
  25415. border: 1px solid #cad1dc;
  25416. overflow: hidden;
  25417. box-sizing: border-box;
  25418. }
  25419. .file {
  25420. display: flex;
  25421. flex-direction: column;
  25422. align-items: center;
  25423. justify-content: center;
  25424. cursor: pointer;
  25425. width: 200px;
  25426. }
  25427. .file div {
  25428. margin-top: 10px;
  25429. width: 150px;
  25430. text-align: center;
  25431. overflow: hidden;
  25432. white-space: nowrap;
  25433. text-overflow: ellipsis;
  25434. }
  25435. .media {
  25436. display: flex;
  25437. flex-direction: column;
  25438. align-items: center;
  25439. justify-content: center;
  25440. margin: 0 20px 20px 0;
  25441. cursor: pointer;
  25442. margin: 12px 0 5px 15px;
  25443. overflow: hidden;
  25444. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25445. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25446. box-sizing: border-box;
  25447. }
  25448. .media img {
  25449. height: 90px;
  25450. width: 160px;
  25451. object-fit: cover;
  25452. }
  25453. .media .title {
  25454. padding: 5px;
  25455. text-align: left;
  25456. width: 100%;
  25457. box-sizing: border-box;
  25458. }
  25459. .media .btn {
  25460. width: 100%;
  25461. height: 35px;
  25462. line-height: 35px;
  25463. color: #fff;
  25464. background: #606060;
  25465. text-align: center;
  25466. overflow: hidden;
  25467. white-space: nowrap;
  25468. text-overflow: ellipsis;
  25469. }
  25470. .detail_content_top {
  25471. width: 100%;
  25472. padding: 25px 0 25px 0;
  25473. }
  25474. .detail_title {
  25475. text-align: center;
  25476. font-size: 24px;
  25477. }
  25478. .detail_time {
  25479. font-size: 13px;
  25480. padding: 15px 0 0 40px;
  25481. }
  25482. .detail_content {
  25483. line-height: 2pc;
  25484. width: 90%;
  25485. margin: 0 auto;
  25486. padding-top: 30px;
  25487. text-indent: 30px;
  25488. overflow: auto;
  25489. height: 200px;
  25490. }
  25491. .score_box >>> .el-rate {
  25492. margin-left: 10px;
  25493. }
  25494. .dialog_change >>> .el-dialog {
  25495. border-radius: 5px;
  25496. }
  25497. .dialog_change >>> .el-dialog__header {
  25498. background: #f2f2f2;
  25499. text-align: center;
  25500. }
  25501. .dialog_change >>> .el-dialog__title {
  25502. line-height: 5px;
  25503. }
  25504. .dialog_change >>> .el-dialog__body {
  25505. background: #fff;
  25506. padding: 10px 20px;
  25507. }
  25508. .score_box {
  25509. display: flex;
  25510. align-items: center;
  25511. margin-bottom: 18px;
  25512. margin-top: 20px;
  25513. }
  25514. .up_photo {
  25515. width: 120px;
  25516. cursor: pointer;
  25517. margin-top: 10px;
  25518. }
  25519. .up_photo2 {
  25520. width: 180px;
  25521. box-sizing: border-box;
  25522. min-width: 180px;
  25523. height: 180px;
  25524. max-height: 180px;
  25525. min-height: 180px;
  25526. cursor: pointer;
  25527. display: flex;
  25528. flex-direction: column;
  25529. align-items: center;
  25530. justify-content: center;
  25531. background: rgb(242, 246, 255);
  25532. /* padding: 25px; */
  25533. margin-bottom: 10px;
  25534. }
  25535. .up_photo2 img {
  25536. width: 50%;
  25537. height: auto;
  25538. }
  25539. .up_photo2 span {
  25540. color: #898989;
  25541. }
  25542. .plworkBox {
  25543. display: flex;
  25544. align-items: center;
  25545. margin-top: 10px;
  25546. flex-wrap: wrap;
  25547. }
  25548. .upload_send {
  25549. margin: 30px auto 30px;
  25550. width: 60%;
  25551. background: #3681fc;
  25552. text-align: center;
  25553. height: 35px;
  25554. line-height: 35px;
  25555. color: #fff;
  25556. border-radius: 5px;
  25557. cursor: pointer;
  25558. }
  25559. .marginT {
  25560. margin-top: 20px;
  25561. }
  25562. .cd_content_steps {
  25563. display: flex;
  25564. width: 90%;
  25565. justify-content: space-around;
  25566. border-top: 1px solid #eeeeee;
  25567. }
  25568. .cd_steps_box {
  25569. display: flex;
  25570. justify-content: center;
  25571. align-items: center;
  25572. flex-direction: column;
  25573. cursor: pointer;
  25574. }
  25575. .first {
  25576. display: flex;
  25577. align-items: center;
  25578. margin: 15px 0 20px 0;
  25579. font-size: 20px;
  25580. }
  25581. .first > div:nth-child(2) {
  25582. font-size: 16px !important;
  25583. padding-left: 10px;
  25584. line-height: 26px;
  25585. box-sizing: border-box;
  25586. }
  25587. .blue_box_one {
  25588. text-align: center;
  25589. color: #fff;
  25590. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25591. border-radius: 7px;
  25592. margin: 10px;
  25593. cursor: pointer;
  25594. width: 95%;
  25595. height: 45px;
  25596. display: flex;
  25597. flex-direction: row;
  25598. justify-content: flex-start;
  25599. align-items: center;
  25600. }
  25601. .blue_box_one > div:nth-child(1) {
  25602. line-height: 30px;
  25603. margin: 0 5px 0 10px;
  25604. width: 30%;
  25605. min-width: 70px;
  25606. border-radius: 4px;
  25607. }
  25608. .blue_box_one > div:nth-child(2) {
  25609. white-space: nowrap;
  25610. text-overflow: ellipsis;
  25611. overflow: hidden;
  25612. word-break: break-all;
  25613. width: 70%;
  25614. text-align: left;
  25615. margin-right: 10px;
  25616. max-width: calc(100% - 85px);
  25617. }
  25618. .blue_box_one > div:nth-child(2):hover {
  25619. overflow: hidden;
  25620. text-overflow: ellipsis;
  25621. white-space: nowrap;
  25622. cursor: pointer;
  25623. }
  25624. .upFile {
  25625. margin: 0 auto;
  25626. width: 120px;
  25627. background: #3681fc;
  25628. color: #fff;
  25629. height: 30px;
  25630. text-align: center;
  25631. line-height: 30px;
  25632. border-radius: 5px;
  25633. font-size: 14px;
  25634. cursor: pointer;
  25635. }
  25636. .courseTitle {
  25637. width: 85%;
  25638. margin: 10px auto 26px auto;
  25639. display: flex;
  25640. flex-direction: row;
  25641. align-items: center;
  25642. justify-content: space-between;
  25643. text-align: center;
  25644. }
  25645. .courseTitle .ctitle {
  25646. font-size: 20px;
  25647. font-weight: bold;
  25648. color: #0e1e33;
  25649. white-space: nowrap;
  25650. overflow: hidden;
  25651. text-overflow: ellipsis;
  25652. }
  25653. .inviteBox {
  25654. font-size: 14px;
  25655. /* margin-top: 5px; */
  25656. color: #00000099;
  25657. text-align: center;
  25658. }
  25659. .courseTitle >>> .el-tooltip {
  25660. width: 100%;
  25661. white-space: nowrap;
  25662. overflow: hidden;
  25663. text-overflow: ellipsis;
  25664. word-break: break-word;
  25665. }
  25666. .ml {
  25667. margin-left: 20px;
  25668. color: #5b7dba;
  25669. border-left: 3px solid #5b7dba;
  25670. padding-left: 5px;
  25671. font-weight: bold;
  25672. }
  25673. .return {
  25674. width: 2rem;
  25675. height: 2rem;
  25676. cursor: pointer;
  25677. }
  25678. .return > img {
  25679. width: 100%;
  25680. height: 100%;
  25681. }
  25682. .returnBtn {
  25683. width: 86px;
  25684. height: 36px;
  25685. background: #3681fc;
  25686. border-radius: 4px;
  25687. color: #fff;
  25688. text-align: center;
  25689. line-height: 36px;
  25690. margin-right: 20px;
  25691. cursor: pointer;
  25692. font-size: 14px;
  25693. font-weight: 400;
  25694. display: flex;
  25695. flex-direction: row;
  25696. flex-wrap: nowrap;
  25697. align-items: center;
  25698. justify-content: center;
  25699. }
  25700. .reBtnIcon,
  25701. .commentIcon,
  25702. .vedioIcon,
  25703. .vedioIcon1 {
  25704. /* width: 36px; */
  25705. height: 36px;
  25706. border-radius: 4px;
  25707. position: relative;
  25708. /* background: #e0eafb; */
  25709. background: #0061ff;
  25710. cursor: pointer;
  25711. margin-right: 12px;
  25712. display: flex;
  25713. align-items: center;
  25714. padding: 0 10px;
  25715. box-sizing: border-box;
  25716. font-size: 14px;
  25717. color: #fff;
  25718. }
  25719. .reBtnIcon::before,
  25720. .commentIcon::before,
  25721. .vedioIcon::before,
  25722. .vedioIcon1::before {
  25723. content: "";
  25724. display: block;
  25725. background-size: 100% 100%;
  25726. background-repeat: no-repeat;
  25727. width: 20px;
  25728. height: 20px;
  25729. margin-right: 5px;
  25730. /* position: absolute; */
  25731. /* top: 8px;
  25732. left: 8px; */
  25733. }
  25734. .vedioIcon1 {
  25735. background: #f63564;
  25736. }
  25737. .reBtnIcon::before {
  25738. background-image: url("../../assets/icon/newIcons/refresh.png");
  25739. }
  25740. .commentIcon::before {
  25741. background-image: url("../../assets/icon/newIcons/comment.png");
  25742. }
  25743. .vedioIcon::before {
  25744. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25745. }
  25746. .vedioIcon1::before {
  25747. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25748. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25749. }
  25750. .tool {
  25751. display: flex;
  25752. flex-direction: column;
  25753. flex-wrap: nowrap;
  25754. width: 13%;
  25755. margin: 0 30px;
  25756. align-items: center;
  25757. position: relative;
  25758. padding: 10px 25px;
  25759. cursor: pointer;
  25760. }
  25761. .whiteBIcon {
  25762. width: 150px;
  25763. }
  25764. .whiteBIcon > img {
  25765. width: 100%;
  25766. height: 100%;
  25767. }
  25768. .mask {
  25769. background-color: rgba(0, 0, 0, 0);
  25770. position: fixed;
  25771. top: 0;
  25772. left: 0;
  25773. width: 100%;
  25774. height: 100%;
  25775. z-index: 20000;
  25776. display: flex;
  25777. align-items: center;
  25778. justify-content: center;
  25779. }
  25780. .progressBox {
  25781. width: 500px;
  25782. height: 180px;
  25783. background: #fff;
  25784. border-radius: 10px;
  25785. box-shadow: 0 0 6px 1px #bfbfbf;
  25786. display: flex;
  25787. align-items: center;
  25788. justify-content: center;
  25789. flex-direction: column;
  25790. position: relative;
  25791. color: #6c6c6c;
  25792. }
  25793. .progressBox >>> .el-progress-bar__outer {
  25794. background-color: #d1dfff !important;
  25795. }
  25796. .progressBox .lbox {
  25797. height: 50px;
  25798. font-size: 19px;
  25799. display: flex;
  25800. align-items: center;
  25801. color: #747474;
  25802. }
  25803. .progressBox .lbox img {
  25804. width: 40px;
  25805. margin-right: 20px;
  25806. }
  25807. .closeCss {
  25808. position: absolute;
  25809. top: 8px;
  25810. right: 8px;
  25811. cursor: pointer;
  25812. width: 20px;
  25813. height: 20px;
  25814. }
  25815. .closeCss > img {
  25816. width: 100%;
  25817. height: 100%;
  25818. }
  25819. .uploadVedio {
  25820. display: flex;
  25821. flex-direction: column;
  25822. flex-wrap: nowrap;
  25823. justify-content: center;
  25824. align-items: center;
  25825. margin: 0 15px 10px 0;
  25826. }
  25827. .uploadVedio > img {
  25828. width: 30px;
  25829. height: 30px;
  25830. }
  25831. .uploadVedio > span {
  25832. white-space: nowrap;
  25833. overflow: hidden;
  25834. text-overflow: ellipsis;
  25835. width: 75px;
  25836. margin-top: 7px;
  25837. }
  25838. .picName {
  25839. white-space: nowrap;
  25840. overflow: hidden;
  25841. text-overflow: ellipsis;
  25842. width: 75px;
  25843. margin-top: 7px;
  25844. }
  25845. .new_top {
  25846. display: flex;
  25847. background: #fff;
  25848. flex-direction: row;
  25849. justify-content: flex-start;
  25850. align-items: center;
  25851. height: 60px;
  25852. position: fixed;
  25853. top: 20px;
  25854. left: 22%;
  25855. width: 77%;
  25856. z-index: 999;
  25857. border-radius: 12px 12px 0 0;
  25858. border-bottom: 1px solid #cad1dc;
  25859. padding: 10px 0;
  25860. }
  25861. .new_topFixed {
  25862. width: 100%;
  25863. height: 40px;
  25864. position: fixed;
  25865. top: 0px;
  25866. display: block;
  25867. background: #f2f2f2;
  25868. z-index: 998;
  25869. }
  25870. .before {
  25871. position: absolute;
  25872. background: #c3dad4;
  25873. width: 6px;
  25874. height: 100%;
  25875. }
  25876. .courseIndex {
  25877. display: flex;
  25878. flex-direction: row;
  25879. align-items: center;
  25880. width: calc(100% - 745px);
  25881. }
  25882. .courseIndex > div:nth-child(1) {
  25883. margin: 0 0 0 10px;
  25884. font-size: 20px;
  25885. min-width: 100px;
  25886. font-weight: bold;
  25887. border-left: 4px solid #3363b9;
  25888. height: 32px;
  25889. text-align: center;
  25890. line-height: 35px;
  25891. }
  25892. .courseIndex > div:nth-child(2) {
  25893. font-size: 20px;
  25894. /* width: 300px; */
  25895. max-width: calc(100% - 105px);
  25896. white-space: nowrap;
  25897. overflow: hidden;
  25898. text-overflow: ellipsis;
  25899. }
  25900. .courseIndex > div:nth-child(3) {
  25901. border-bottom: 1px solid #d7d7d7;
  25902. padding-bottom: 5px;
  25903. background: #3681fc;
  25904. width: 55px;
  25905. min-width: 55px;
  25906. border-radius: 5px;
  25907. color: #fff;
  25908. text-align: center;
  25909. height: 20px;
  25910. line-height: 26px;
  25911. font-size: 14px;
  25912. margin: 0 0 0 10px;
  25913. }
  25914. .course_text {
  25915. padding: 20px 0 0 15px;
  25916. text-indent: 30px;
  25917. width: 80%;
  25918. min-height: 20px;
  25919. }
  25920. .vedioList {
  25921. background: #f2f2f2;
  25922. border: 1px solid #ececec;
  25923. /* width: 38.8%; */
  25924. /* width: 300px; */
  25925. width: 100%;
  25926. height: 445px;
  25927. border-radius: 10px;
  25928. overflow: hidden;
  25929. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25930. }
  25931. .vedioNav {
  25932. margin: 10px 0 0 15px;
  25933. border-bottom: 1px solid #d7d7d7;
  25934. padding-bottom: 5px;
  25935. background: #3681fc;
  25936. width: 55px;
  25937. min-width: 55px;
  25938. border-radius: 5px;
  25939. color: #fff;
  25940. text-align: center;
  25941. height: 20px;
  25942. line-height: 26px;
  25943. font-size: 14px;
  25944. }
  25945. .queTop {
  25946. display: flex;
  25947. padding: 20px 0 20px 30px;
  25948. width: 100%;
  25949. flex-direction: row;
  25950. justify-content: flex-start;
  25951. align-items: center;
  25952. box-sizing: border-box;
  25953. }
  25954. .queTopTitle {
  25955. display: flex;
  25956. flex-direction: row;
  25957. flex-wrap: nowrap;
  25958. align-items: center;
  25959. font-weight: bold;
  25960. font-size: 20px;
  25961. color: rgb(14, 30, 51);
  25962. }
  25963. .queTopTitle::before {
  25964. content: "";
  25965. width: 2px;
  25966. height: 22px;
  25967. background: #3681fc;
  25968. border-radius: 3px;
  25969. display: block;
  25970. margin: 2px 6px 0 0;
  25971. }
  25972. .queTopRight {
  25973. display: flex;
  25974. flex-direction: row;
  25975. flex-wrap: nowrap;
  25976. align-items: center;
  25977. }
  25978. .queTopClose {
  25979. margin-right: 20px;
  25980. cursor: pointer;
  25981. position: relative;
  25982. display: flex;
  25983. }
  25984. .closeImg,
  25985. .openImg {
  25986. width: 25px;
  25987. height: 25px;
  25988. position: absolute;
  25989. left: -20px;
  25990. top: -1px;
  25991. }
  25992. .closeImg > img,
  25993. .openImg > img {
  25994. width: 100%;
  25995. height: 100%;
  25996. }
  25997. .question {
  25998. width: 40px;
  25999. margin-right: 10px;
  26000. margin-top: 7px;
  26001. }
  26002. .queTitle {
  26003. margin-left: 5px;
  26004. font-size: 25px;
  26005. display: flex;
  26006. align-items: center;
  26007. }
  26008. .addEditor {
  26009. width: 100px;
  26010. height: 30px;
  26011. background: #42cda6;
  26012. color: #fff;
  26013. border-radius: 5px;
  26014. text-align: center;
  26015. line-height: 30px;
  26016. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26017. cursor: pointer;
  26018. }
  26019. /* .vedioName {
  26020. cursor: pointer;
  26021. margin: 0px 0px 10px 5px;
  26022. white-space: nowrap;
  26023. overflow: hidden;
  26024. text-overflow: ellipsis;
  26025. width: 100%;
  26026. } */
  26027. .vedioTime {
  26028. width: 35px;
  26029. position: absolute;
  26030. color: #fff;
  26031. bottom: 0px;
  26032. right: 0px;
  26033. text-align: center;
  26034. background: #46411f;
  26035. height: 20px;
  26036. font-size: 14px;
  26037. line-height: 20px;
  26038. }
  26039. .homework {
  26040. width: 200px;
  26041. display: flex;
  26042. flex-direction: column;
  26043. flex-wrap: nowrap;
  26044. align-items: center;
  26045. cursor: pointer;
  26046. }
  26047. .homebox {
  26048. display: flex;
  26049. flex-wrap: wrap;
  26050. flex-direction: row;
  26051. justify-content: flex-start;
  26052. align-items: center;
  26053. padding: 15px 0;
  26054. }
  26055. .isChooseActive {
  26056. color: #3681fc !important;
  26057. font-weight: bold !important;
  26058. }
  26059. .chooseWho {
  26060. display: flex;
  26061. width: 100%;
  26062. flex-direction: row;
  26063. flex-wrap: nowrap;
  26064. justify-content: flex-start;
  26065. padding-bottom: 10px;
  26066. }
  26067. .chooseWho > div {
  26068. cursor: pointer;
  26069. padding-bottom: 10px;
  26070. margin: 0 30px 0 0;
  26071. font-weight: 400;
  26072. color: #0e1e33;
  26073. }
  26074. .addPoint > div > img {
  26075. cursor: pointer;
  26076. width: 85px;
  26077. border-radius: 15px;
  26078. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26079. }
  26080. .addPoint > div {
  26081. display: flex;
  26082. flex-direction: column;
  26083. flex-wrap: nowrap;
  26084. align-items: center;
  26085. }
  26086. .isBorder > div {
  26087. margin: 0 0 10px 0;
  26088. align-items: flex-start !important;
  26089. }
  26090. .noiframeBox {
  26091. display: flex;
  26092. flex-wrap: wrap;
  26093. }
  26094. .iframeBox iframe {
  26095. width: 100%;
  26096. height: 800px;
  26097. border: none;
  26098. margin-bottom: 20px;
  26099. border: 1px solid #ccc;
  26100. }
  26101. .upload_toolBtn {
  26102. background: #3681fc;
  26103. color: #fff;
  26104. width: 110px;
  26105. text-align: center;
  26106. height: 35px;
  26107. line-height: 35px;
  26108. font-size: 14px;
  26109. border-radius: 5px;
  26110. cursor: pointer;
  26111. position: absolute;
  26112. right: 10px;
  26113. bottom: 0;
  26114. }
  26115. .binfo_input,
  26116. .pj {
  26117. font: inherit;
  26118. color: currentColor;
  26119. width: 100%;
  26120. margin: 0;
  26121. padding: 15px 14px;
  26122. display: block;
  26123. min-width: 0;
  26124. outline: none;
  26125. box-sizing: content-box;
  26126. background: none;
  26127. -webkit-tap-highlight-color: transparent;
  26128. border: 1px solid rgba(0, 0, 0, 0.23);
  26129. border-radius: 4px;
  26130. box-sizing: border-box;
  26131. resize: none;
  26132. }
  26133. .binfo_input:focus-visible {
  26134. border: 1px solid rgba(61, 103, 188);
  26135. }
  26136. .dialog_diyCopy >>> .el-dialog__header {
  26137. display: none !important;
  26138. }
  26139. .dialog_diyCopy >>> .el-dialog__body {
  26140. padding: 0 !important;
  26141. height: 100% !important;
  26142. }
  26143. .confirmOpenDigCss > div{
  26144. font-size: 14px;
  26145. color: rgba(0, 0, 0, 0.6);
  26146. }
  26147. .confirmOpenDigCss >>> .el-dialog{
  26148. border-radius: 6px;
  26149. }
  26150. .confirmOpenDigCss >>> .el-dialog__body{
  26151. padding: 25px !important;
  26152. }
  26153. .confirmOpenDigCss > span{
  26154. font-size: 16px;
  26155. font-weight: 600;
  26156. color: rgba(0, 0, 0, 0.8);
  26157. }
  26158. .dialog_diy >>> .el-dialog__header,
  26159. .dialog_diy1 >>> .el-dialog__header {
  26160. background: #454545 !important;
  26161. padding: 15px 20px;
  26162. }
  26163. .dialog_diy >>> .el-dialog__title,
  26164. .dialog_diy1 >>> .el-dialog__title {
  26165. color: #fff;
  26166. }
  26167. .dialog_diy >>> .el-dialog__headerbtn,
  26168. .dialog_diy1 >>> .el-dialog__headerbtn {
  26169. top: 19px;
  26170. }
  26171. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26172. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26173. color: #fff;
  26174. }
  26175. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26176. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26177. color: #fff;
  26178. }
  26179. .dialog_diy1 >>> .el-dialog__body {
  26180. padding: 0;
  26181. }
  26182. .dialog_diy >>> .el-dialog__body,
  26183. .dialog_diy >>> .el-dialog__footer,
  26184. .dialog_diy1 >>> .el-dialog__footer {
  26185. background: #fafafa;
  26186. }
  26187. .markScore_diy >>> .el-dialog {
  26188. border-radius: 10px;
  26189. }
  26190. .markScore_diy >>> .el-dialog__body {
  26191. padding: 0;
  26192. height: 621px;
  26193. min-height: calc(100% - 60px);
  26194. }
  26195. .markScore_diy >>> .el-dialog__header {
  26196. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26197. }
  26198. .markScore_diy >>> .markScore_diyTit {
  26199. width: calc(100% - 60px);
  26200. display: flex;
  26201. justify-content: space-between;
  26202. align-items: center;
  26203. }
  26204. .a_addBox {
  26205. padding: 0 0 0 15px;
  26206. }
  26207. .a_add_box {
  26208. padding: 10px;
  26209. background: #fff;
  26210. margin-bottom: 10px;
  26211. border-radius: 5px;
  26212. box-shadow: 0 0 5px 0 #d5d5d5;
  26213. }
  26214. .a_add_head {
  26215. display: flex;
  26216. align-items: flex-start;
  26217. /* justify-content: space-between; */
  26218. flex-direction: column;
  26219. /* flex-direction: row; */
  26220. margin: 10px 0 20px 0;
  26221. font-size: 18px;
  26222. width: 100%;
  26223. }
  26224. .askIndex {
  26225. background: #3681fc;
  26226. border-radius: 50%;
  26227. color: #fff;
  26228. width: 25px;
  26229. height: 25px;
  26230. min-width: 25px;
  26231. min-height: 25px;
  26232. text-align: center;
  26233. line-height: 25px;
  26234. margin-right: 5px;
  26235. }
  26236. .a_add_head .a_add_head_input {
  26237. width: 300px;
  26238. }
  26239. .a_add_head .a_add_head_div {
  26240. display: flex;
  26241. align-items: center;
  26242. justify-content: space-between;
  26243. }
  26244. .a_add_body {
  26245. display: flex;
  26246. align-items: center;
  26247. }
  26248. .a_add_input {
  26249. display: flex;
  26250. align-items: center;
  26251. flex-wrap: wrap;
  26252. width: 100%;
  26253. }
  26254. .a_add_input >>> .el-radio-group,
  26255. .a_add_input >>> .el-checkbox-group {
  26256. width: 100%;
  26257. }
  26258. .a_add_input >>> .el-radio,
  26259. .a_add_input >>> .el-checkbox {
  26260. display: flex;
  26261. flex-direction: row;
  26262. flex-wrap: nowrap;
  26263. align-items: center;
  26264. padding: 15px 0;
  26265. }
  26266. .a_add_input >>> .el-radio:not(:last-child),
  26267. .a_add_input >>> .el-checkbox:not(:last-child) {
  26268. width: 100%;
  26269. border-bottom: 1px solid #efefef;
  26270. }
  26271. .redioStyle >>> .el-radio__label {
  26272. font-size: 18px;
  26273. }
  26274. .redioStyle >>> .el-radio__label > span,
  26275. .redioStyle >>> .el-checkbox__label > span {
  26276. word-break: break-all;
  26277. white-space: normal;
  26278. }
  26279. .redioStyle >>> .el-checkbox__label {
  26280. font-size: 18px;
  26281. }
  26282. .toolHeng2 {
  26283. width: 100%;
  26284. padding-left: 15px;
  26285. box-sizing: border-box;
  26286. }
  26287. .workNav {
  26288. font-size: 20px;
  26289. font-weight: bold;
  26290. color: #0e1e33;
  26291. display: flex;
  26292. flex-direction: row;
  26293. flex-wrap: nowrap;
  26294. align-items: center;
  26295. padding: 15px 0 15px 0;
  26296. }
  26297. .workNav::before {
  26298. content: "";
  26299. width: 2px;
  26300. height: 22px;
  26301. background: #3681fc;
  26302. border-radius: 3px;
  26303. display: block;
  26304. margin: 2px 6px 0 0;
  26305. }
  26306. .toolHeng {
  26307. display: flex;
  26308. flex-direction: row;
  26309. flex-wrap: wrap;
  26310. justify-content: flex-start;
  26311. align-items: center;
  26312. width: 100%;
  26313. }
  26314. .toolHeng > div {
  26315. padding-left: 20px;
  26316. }
  26317. .isWidth {
  26318. width: 20%;
  26319. }
  26320. .textTitle {
  26321. display: flex;
  26322. flex-direction: row;
  26323. flex-wrap: nowrap;
  26324. align-items: center;
  26325. width: 95%;
  26326. }
  26327. .textTitle >>> .el-form-item__label {
  26328. font-size: 22px;
  26329. color: #918f8f;
  26330. width: 100px;
  26331. }
  26332. .textTitle >>> .el-form-item__content {
  26333. width: calc(100% - 100px);
  26334. }
  26335. .textCss >>> .el-dialog {
  26336. width: 800px !important;
  26337. height: 400px;
  26338. background: #fafafa;
  26339. }
  26340. .textCss >>> .el-dialog__body {
  26341. margin: 55px 8% 0 8%;
  26342. padding: 0 !important;
  26343. }
  26344. .textCss >>> .el-dialog__footer {
  26345. padding-top: 38px;
  26346. }
  26347. .toolsCss >>> .el-dialog__body {
  26348. padding: 20px;
  26349. }
  26350. .lineCss >>> .el-dialog__body {
  26351. display: flex;
  26352. flex-direction: row;
  26353. align-items: center;
  26354. justify-content: center;
  26355. }
  26356. .newNav {
  26357. display: flex;
  26358. flex-direction: row;
  26359. align-items: baseline;
  26360. justify-content: flex-start;
  26361. }
  26362. .navListItem {
  26363. width: calc(100% - 20px);
  26364. height: 50px;
  26365. margin: 0px auto 10px;
  26366. display: flex;
  26367. flex-direction: row;
  26368. flex-wrap: nowrap;
  26369. align-items: center;
  26370. justify-content: space-between;
  26371. background: #f0f4fa;
  26372. border-radius: 6px 6px 6px 6px;
  26373. }
  26374. .navText {
  26375. cursor: pointer;
  26376. white-space: nowrap;
  26377. overflow: hidden;
  26378. text-overflow: ellipsis;
  26379. width: 220px;
  26380. padding: 0 10px;
  26381. font-weight: 400;
  26382. color: #0e1e33;
  26383. }
  26384. .downIcon {
  26385. width: 20px;
  26386. min-width: 20px;
  26387. height: 20px;
  26388. margin-right: 15px;
  26389. cursor: pointer;
  26390. }
  26391. .downIcon > img {
  26392. width: 100%;
  26393. height: 100%;
  26394. }
  26395. .noVedio {
  26396. display: flex;
  26397. flex-direction: row;
  26398. justify-content: center;
  26399. align-content: center;
  26400. }
  26401. .noNavText {
  26402. cursor: pointer;
  26403. margin: 0px 0px 10px 5px;
  26404. width: 112px;
  26405. }
  26406. .listNoVedio {
  26407. margin: 0 0 0 30px;
  26408. width: 97%;
  26409. }
  26410. .video-player >>> .video-js {
  26411. height: 100%;
  26412. }
  26413. .hangVedioList {
  26414. width: 90% !important;
  26415. height: 150px !important;
  26416. margin: 20px 0 0 30px;
  26417. }
  26418. .hangVedio {
  26419. width: 100%;
  26420. height: 170px !important;
  26421. align-items: flex-start !important;
  26422. }
  26423. .hangHand {
  26424. height: 150px !important;
  26425. }
  26426. .twoChild {
  26427. width: 95%;
  26428. margin: 10px;
  26429. border-radius: 5px;
  26430. background: #f2f2f2;
  26431. display: flex;
  26432. flex-direction: column;
  26433. flex-wrap: nowrap;
  26434. justify-content: flex-start;
  26435. align-items: flex-start;
  26436. transition: all 0.5s;
  26437. overflow: hidden;
  26438. height: 0;
  26439. background: #e7f3ff;
  26440. }
  26441. .twoChild > div:nth-child(1) {
  26442. margin-top: 5px;
  26443. }
  26444. .navChild {
  26445. width: 100%;
  26446. cursor: pointer;
  26447. margin-bottom: 10px;
  26448. position: relative;
  26449. }
  26450. .navChild img {
  26451. position: absolute;
  26452. right: 11px;
  26453. width: 15px;
  26454. top: 50%;
  26455. transform: translateY(-50%);
  26456. }
  26457. .navActive,
  26458. .toolActive {
  26459. height: auto !important;
  26460. overflow: auto !important;
  26461. /* // padding-bottom: 16px; */
  26462. }
  26463. .toolActive {
  26464. padding: 0;
  26465. }
  26466. .navTask {
  26467. display: flex;
  26468. flex-direction: row;
  26469. flex-wrap: nowrap;
  26470. align-items: center;
  26471. align-content: flex-start;
  26472. height: 40px;
  26473. justify-content: flex-start;
  26474. padding: 0 10px;
  26475. width: 100%;
  26476. box-sizing: border-box;
  26477. }
  26478. .navTaskname {
  26479. white-space: nowrap;
  26480. text-overflow: ellipsis;
  26481. overflow: hidden;
  26482. word-break: break-all;
  26483. padding-left: 5px;
  26484. }
  26485. .openTaskActive {
  26486. /* background-color: #e0eafb !important;
  26487. color: #0061ff; */
  26488. color: #fff;
  26489. background: rgb(55, 129, 252) !important;
  26490. }
  26491. .iframeName {
  26492. margin: 5px 0;
  26493. border-left: 4px solid #41c4a4;
  26494. padding-left: 4px;
  26495. }
  26496. .toolTitle {
  26497. margin: 0px 0px 20px;
  26498. font-size: 20px;
  26499. font-weight: 500;
  26500. border-left: 4px solid #41c4a4;
  26501. padding-left: 4px;
  26502. }
  26503. .cru_selectBox {
  26504. overflow: auto;
  26505. width: 95%;
  26506. margin: 17px auto 0;
  26507. height: calc(100% - 40px - 21px - 20px - 17px);
  26508. background: #fff;
  26509. border-radius: 8px;
  26510. }
  26511. .cru_selectBox::-webkit-scrollbar,
  26512. .study_top::-webkit-scrollbar,
  26513. .textContent::-webkit-scrollbar {
  26514. /*滚动条整体样式*/
  26515. width: 6px;
  26516. /*高宽分别对应横竖滚动条的尺寸*/
  26517. height: 6px;
  26518. }
  26519. /*定义滚动条轨道 内阴影+圆角*/
  26520. .cru_selectBox::-webkit-scrollbar-track,
  26521. .study_top::-webkit-scrollbar-track,
  26522. .textContent::-webkit-scrollbar {
  26523. border-radius: 10px;
  26524. background-color: #b8bdc9;
  26525. }
  26526. /*定义滑块 内阴影+圆角*/
  26527. .cru_selectBox::-webkit-scrollbar-thumb,
  26528. .study_top::-webkit-scrollbar-thumb,
  26529. .textContent::-webkit-scrollbar-thumb {
  26530. border-radius: 10px;
  26531. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26532. background-color: #2c5ab3;
  26533. }
  26534. .vedioBox {
  26535. border-radius: 0 0 20px 20px;
  26536. background: #fff;
  26537. overflow: auto;
  26538. }
  26539. .taskBox {
  26540. width: 98%;
  26541. background: #f0f4fa;
  26542. margin: 10px auto;
  26543. padding: 0 10px;
  26544. border-radius: 4px;
  26545. box-sizing: border-box;
  26546. }
  26547. .vedioTaskBox {
  26548. width: 100%;
  26549. display: flex;
  26550. flex-direction: row;
  26551. flex-wrap: nowrap;
  26552. align-items: flex-start;
  26553. position: relative;
  26554. }
  26555. .toolBox {
  26556. margin: 15px 0 0 25px;
  26557. display: flex;
  26558. position: relative;
  26559. padding: 18px 20px;
  26560. border-top-left-radius: 5px;
  26561. border-top-right-radius: 5px;
  26562. width: 90%;
  26563. }
  26564. .btnAll {
  26565. position: absolute;
  26566. right: 0;
  26567. display: flex;
  26568. flex-direction: row;
  26569. flex-wrap: nowrap;
  26570. align-items: center;
  26571. }
  26572. .btnLeft,
  26573. .btnRight {
  26574. display: flex;
  26575. flex-direction: row;
  26576. flex-wrap: nowrap;
  26577. align-items: center;
  26578. padding: 5px 0;
  26579. }
  26580. .btnLeft {
  26581. border-right: 1px solid #cad1dc;
  26582. }
  26583. .btnLeft > .custom-tooltip {
  26584. background: #3681fc;
  26585. color: #fff;
  26586. }
  26587. .last:hover {
  26588. background: #3383fa !important;
  26589. color: #fff;
  26590. border: 1px solid #3383fa !important;
  26591. }
  26592. .last,
  26593. .returnBtn1 {
  26594. width: 90px;
  26595. height: 36px;
  26596. background: #ffffff;
  26597. border-radius: 4px;
  26598. border: 1px solid #0061ff;
  26599. color: #0061ff;
  26600. cursor: pointer;
  26601. display: flex;
  26602. flex-direction: row;
  26603. flex-wrap: nowrap;
  26604. align-items: center;
  26605. justify-content: center;
  26606. margin-left: 12px;
  26607. }
  26608. .returnBtn1 {
  26609. background: #f0f4fa;
  26610. border-radius: 4px;
  26611. border: 1px solid #cad1dc;
  26612. margin: 0 12px;
  26613. }
  26614. .lastImg {
  26615. min-width: 15px;
  26616. width: 15px;
  26617. height: 15px;
  26618. display: flex;
  26619. }
  26620. .lastText {
  26621. padding: 0 5px 0 5px;
  26622. box-sizing: border-box;
  26623. font-size: 14px;
  26624. }
  26625. .lastImg > img {
  26626. width: 100%;
  26627. height: 100%;
  26628. }
  26629. /* .vedioTimeBox {
  26630. display: flex;
  26631. flex-direction: row;
  26632. align-items: center;
  26633. flex-wrap: nowrap;
  26634. position: relative;
  26635. } */
  26636. .navBox {
  26637. background: #fff;
  26638. height: calc(100% - 40px);
  26639. overflow-y: auto;
  26640. overflow-x: hidden;
  26641. }
  26642. .worksBox {
  26643. margin: 0 0 10px 25px;
  26644. border-bottom: 1px solid #eeeeee;
  26645. padding: 18px 20px;
  26646. border-radius: 4px;
  26647. width: 90%;
  26648. }
  26649. .worksBTitle {
  26650. font-size: 20px;
  26651. padding-bottom: 15px;
  26652. border-bottom: 1px solid #eeeeee;
  26653. display: flex;
  26654. align-items: center;
  26655. }
  26656. .greenBox {
  26657. width: 5px;
  26658. height: 30px;
  26659. background: #63b6fa;
  26660. margin-right: 5px;
  26661. }
  26662. .worksDetailBox {
  26663. display: flex;
  26664. width: 100%;
  26665. flex-direction: row;
  26666. flex-wrap: wrap;
  26667. align-items: flex-end;
  26668. justify-content: flex-start;
  26669. padding: 15px 5px;
  26670. box-sizing: border-box;
  26671. }
  26672. .works {
  26673. display: flex;
  26674. flex-direction: column;
  26675. flex-wrap: nowrap;
  26676. align-items: flex-start;
  26677. justify-content: flex-start;
  26678. align-content: center;
  26679. max-width: 240px;
  26680. width: calc(100% / 3 - 10px);
  26681. height: auto;
  26682. margin-right: 10px;
  26683. margin-bottom: 10px;
  26684. overflow: hidden;
  26685. height: 140px;
  26686. box-shadow: 0 0 6px 1px #dfdada;
  26687. border-radius: 15px;
  26688. }
  26689. .workImg {
  26690. width: 100%;
  26691. /* height: calc(100% - 40px); */
  26692. height: 105px;
  26693. position: relative;
  26694. }
  26695. .workImg > img {
  26696. width: 100%;
  26697. height: 100%;
  26698. object-fit: contain;
  26699. cursor: pointer;
  26700. }
  26701. .worksName {
  26702. height: 40px;
  26703. line-height: 40px;
  26704. display: flex;
  26705. width: 100%;
  26706. flex-direction: row;
  26707. flex-wrap: nowrap;
  26708. justify-content: space-between;
  26709. align-items: center;
  26710. margin: 0 0 0 10px;
  26711. }
  26712. .worksName > div:nth-child(1) {
  26713. width: 110px;
  26714. white-space: nowrap;
  26715. overflow: hidden;
  26716. text-overflow: ellipsis;
  26717. }
  26718. .worksName > div:nth-child(2) {
  26719. color: #b7b4b5;
  26720. }
  26721. .noWorksS {
  26722. padding: 15px 0;
  26723. display: flex;
  26724. flex-direction: row;
  26725. flex-wrap: wrap;
  26726. align-items: center;
  26727. justify-content: flex-start;
  26728. }
  26729. .noWorksName,
  26730. .isWorksName,
  26731. .isWorksName2 {
  26732. background: #ddebf8;
  26733. color: #000;
  26734. width: 90px;
  26735. height: 25px;
  26736. text-align: center;
  26737. line-height: 25px;
  26738. border-radius: 4px;
  26739. margin: 10px 15px 10px 0;
  26740. white-space: nowrap;
  26741. overflow: hidden;
  26742. padding: 5px;
  26743. text-overflow: ellipsis;
  26744. cursor: pointer;
  26745. border: 1px solid #ddebf8;
  26746. }
  26747. .noWorksName {
  26748. background: #fff;
  26749. color: #0061ff;
  26750. border: 1px solid #0061ff;
  26751. }
  26752. .noWorksName > span {
  26753. max-width: 100%;
  26754. display: block;
  26755. overflow: hidden;
  26756. text-overflow: ellipsis;
  26757. white-space: nowrap;
  26758. }
  26759. .isWorksName2 {
  26760. width: 100px;
  26761. height: 40px;
  26762. line-height: 40px;
  26763. position: relative;
  26764. background: #dae6f9;
  26765. }
  26766. .isWorksName {
  26767. background: #e7ebf1 !important;
  26768. width: 100px;
  26769. height: 40px;
  26770. line-height: 40px;
  26771. position: relative;
  26772. color: #acb4bf;
  26773. border: 1px solid #cad1dc !important;
  26774. }
  26775. .isSelectName,
  26776. .noWorksName:hover {
  26777. background: #3383fa !important;
  26778. color: #fff !important;
  26779. border: 1px solid #3383fa !important;
  26780. }
  26781. .title {
  26782. background: #1e5cc9;
  26783. /* width: 98%; */
  26784. height: 45px;
  26785. color: #fff;
  26786. line-height: 45px;
  26787. padding-left: 20px;
  26788. box-sizing: border-box;
  26789. }
  26790. .textBox {
  26791. font-size: 20px;
  26792. width: 90%;
  26793. display: flex;
  26794. flex-direction: column;
  26795. align-items: center;
  26796. margin: 20px auto 0;
  26797. max-height: calc(100% - 75px);
  26798. overflow: auto;
  26799. }
  26800. .textContent {
  26801. font-size: 18px;
  26802. width: 95%;
  26803. max-width: 95%;
  26804. }
  26805. .answerBg {
  26806. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26807. background-size: 100% 100%;
  26808. width: 100%;
  26809. height: 100%;
  26810. color: #fff;
  26811. text-align: center;
  26812. display: flex;
  26813. flex-direction: column;
  26814. flex-wrap: nowrap;
  26815. align-items: center;
  26816. position: relative;
  26817. justify-content: center;
  26818. }
  26819. /* .answerBg > div:nth-child(1) { */
  26820. /* font-size: 22px;
  26821. padding: 25px 0 10px; */
  26822. /* } */
  26823. .answerContent {
  26824. width: 215px;
  26825. max-height: 60px;
  26826. word-break: break-all;
  26827. text-align: center;
  26828. /* white-space: nowrap; */
  26829. overflow: hidden;
  26830. text-overflow: ellipsis;
  26831. /* padding: 23px 0 0; */
  26832. -webkit-line-clamp: 3;
  26833. -webkit-box-orient: vertical;
  26834. display: -webkit-box;
  26835. font-size: 15px;
  26836. cursor: pointer;
  26837. }
  26838. .elist_input_box {
  26839. display: flex;
  26840. align-items: flex-start;
  26841. flex-wrap: nowrap;
  26842. padding: 10px 0 15px 30px;
  26843. flex-direction: column;
  26844. }
  26845. .elist_input {
  26846. /* width: 40%; */
  26847. width: 45%;
  26848. padding: 20px;
  26849. /* margin: 20px; */
  26850. box-sizing: border-box;
  26851. }
  26852. .elist_input .elist_input_box input {
  26853. font: inherit;
  26854. color: currentColor;
  26855. width: 200px;
  26856. padding: 8px 14px;
  26857. display: block;
  26858. min-width: 0;
  26859. outline: none;
  26860. border: 1px solid rgba(0, 0, 0, 0.23);
  26861. border-radius: 4px;
  26862. box-sizing: border-box;
  26863. background: #fff;
  26864. margin: 0 20px 0 0;
  26865. }
  26866. .elist_input .elist_input_box span {
  26867. height: 36px;
  26868. line-height: 36px;
  26869. color: rgb(82, 82, 82);
  26870. }
  26871. .elist_input .elist_input_box .remove {
  26872. height: 20px;
  26873. width: 20px;
  26874. background-size: 100% 100%;
  26875. background-position: unset;
  26876. margin-left: 5px;
  26877. }
  26878. .elist_input_box >>> .el-rate {
  26879. display: flex;
  26880. height: 36px;
  26881. align-items: center;
  26882. }
  26883. .elist_input_box .elist_inptu_text {
  26884. min-height: 50px;
  26885. /* width: 500px;
  26886. max-height: 150px; */
  26887. width: 100%;
  26888. line-height: 50px;
  26889. color: rgb(82, 82, 82);
  26890. overflow: auto;
  26891. text-indent: 5px;
  26892. background: #f7f6f9;
  26893. border-radius: 10px;
  26894. }
  26895. .elist_input_box .elist_inptu_text input {
  26896. width: 500px;
  26897. }
  26898. .elist_input_box >>> .el-rate__icon {
  26899. font-size: 24px;
  26900. }
  26901. .isClick {
  26902. background: #4d9def;
  26903. }
  26904. .bzBox {
  26905. display: flex;
  26906. flex-direction: row;
  26907. align-items: center;
  26908. }
  26909. .bzBox .yCss {
  26910. width: 7px;
  26911. height: 7px;
  26912. background: #fff;
  26913. margin: 0 16px 0 6px;
  26914. border-radius: 50%;
  26915. border: 5px solid #3681fc;
  26916. z-index: 99;
  26917. }
  26918. .bzBox > div:nth-child(2) {
  26919. font-size: 18px;
  26920. font-weight: bold;
  26921. color: #0e1e33;
  26922. }
  26923. .navTitile {
  26924. padding: 0 0px 0 15px;
  26925. font-size: 16px;
  26926. font-weight: bold;
  26927. color: #0e1e33;
  26928. height: 40px;
  26929. line-height: 40px;
  26930. }
  26931. .isTypeOne {
  26932. width: 240px;
  26933. height: 170px;
  26934. /* border: 1px solid #f8f8f8; */
  26935. border-radius: 10px;
  26936. box-shadow: 0 0 6px 1px #dfdada;
  26937. }
  26938. .e_add_top {
  26939. display: flex;
  26940. justify-content: space-between;
  26941. padding: 10px 20px;
  26942. border-radius: 3px;
  26943. background: #fff;
  26944. }
  26945. .e_add_title2 {
  26946. display: flex;
  26947. align-items: center;
  26948. }
  26949. .e_add_title2 span {
  26950. width: 40px;
  26951. }
  26952. .e_add_title {
  26953. display: flex;
  26954. align-items: center;
  26955. color: #b8b8b8;
  26956. font-size: 18px;
  26957. position: relative;
  26958. height: 40px;
  26959. }
  26960. .e_add_title span {
  26961. margin-right: 10px;
  26962. }
  26963. .e_add_title .el_input {
  26964. width: 300px;
  26965. }
  26966. .e_add_title >>> .el-input__inner {
  26967. width: 400px;
  26968. }
  26969. .e_add_btn {
  26970. }
  26971. .e_add_content {
  26972. display: flex;
  26973. width: 100%;
  26974. max-width: 650px;
  26975. height: 550px;
  26976. }
  26977. .e_add_list {
  26978. background: #fff;
  26979. height: 500px;
  26980. width: 210px;
  26981. position: relative;
  26982. margin: 15px 5px 0 0;
  26983. flex-shrink: 0;
  26984. display: flex;
  26985. flex-direction: column;
  26986. }
  26987. .e_add_list_title {
  26988. font-size: 20px;
  26989. width: 100%;
  26990. box-sizing: border-box;
  26991. padding: 15px 40px;
  26992. text-align: center;
  26993. border-bottom: 1px solid #eaeaea;
  26994. position: relative;
  26995. display: flex;
  26996. align-items: center;
  26997. justify-content: center;
  26998. height: 57px;
  26999. background: #f6f6f6;
  27000. }
  27001. .e_add_list_title span {
  27002. overflow: hidden;
  27003. white-space: nowrap;
  27004. text-overflow: ellipsis;
  27005. }
  27006. .e_add_list_title img {
  27007. position: absolute;
  27008. right: 15px;
  27009. width: 25px;
  27010. cursor: pointer;
  27011. top: 50%;
  27012. transform: translateY(-50%);
  27013. }
  27014. .e_add_list_body {
  27015. height: calc(100% - 187px);
  27016. overflow: auto;
  27017. }
  27018. .e_add_list_child {
  27019. width: 100%;
  27020. display: flex;
  27021. align-items: center;
  27022. justify-content: center;
  27023. position: relative;
  27024. box-sizing: border-box;
  27025. padding: 15px 40px;
  27026. text-align: center;
  27027. }
  27028. .e_add_list_child span {
  27029. overflow: hidden;
  27030. white-space: nowrap;
  27031. text-overflow: ellipsis;
  27032. cursor: pointer;
  27033. }
  27034. .e_add_list_child img {
  27035. position: absolute;
  27036. right: 10px;
  27037. width: 21px;
  27038. cursor: pointer;
  27039. top: 50%;
  27040. transform: translateY(-50%);
  27041. }
  27042. .e_add_list_child + .e_add_list_child {
  27043. border-top: 1px solid #eaeaea;
  27044. }
  27045. .e_add_list_child .active {
  27046. color: #409eff;
  27047. }
  27048. .e_add_list_btn {
  27049. position: absolute;
  27050. bottom: 0;
  27051. height: 50px;
  27052. background: rgb(120, 120, 254);
  27053. width: 100%;
  27054. color: #fff;
  27055. font-size: 16px;
  27056. text-align: center;
  27057. line-height: 50px;
  27058. cursor: pointer;
  27059. }
  27060. .e_add_list_detail {
  27061. position: absolute;
  27062. bottom: 0;
  27063. height: 130px;
  27064. background: rgb(120, 120, 254);
  27065. width: 100%;
  27066. color: #fff;
  27067. font-size: 16px;
  27068. display: flex;
  27069. align-items: center;
  27070. justify-content: center;
  27071. }
  27072. .e_add_list_detail textarea {
  27073. height: 90%;
  27074. width: 95%;
  27075. border: none;
  27076. resize: none;
  27077. outline: none;
  27078. padding: 5px;
  27079. box-sizing: border-box;
  27080. }
  27081. .e_add_list_pbox {
  27082. width: 100%;
  27083. max-width: 650px;
  27084. /* height: 600px; */
  27085. }
  27086. .e_add_list_pbox_title {
  27087. height: 50px;
  27088. background: #fff;
  27089. display: flex;
  27090. align-items: center;
  27091. width: 100%;
  27092. box-sizing: border-box;
  27093. padding: 0 20px;
  27094. }
  27095. .type_title {
  27096. font-size: 18px;
  27097. font-weight: 700;
  27098. }
  27099. .type_content {
  27100. font-size: 16px;
  27101. /* margin-left: 30px; */
  27102. }
  27103. .type_content span + span {
  27104. margin-left: 20px;
  27105. }
  27106. .type_content span {
  27107. cursor: pointer;
  27108. padding-bottom: 5px;
  27109. box-sizing: border-box;
  27110. }
  27111. .type_content .active {
  27112. color: #409eff;
  27113. border-bottom: 2px solid #409eff;
  27114. }
  27115. .e_add_list_pbox_content {
  27116. height: calc(100% - 50px);
  27117. display: flex;
  27118. align-items: center;
  27119. width: 100%;
  27120. background: #fff;
  27121. }
  27122. .evaCss {
  27123. display: flex;
  27124. flex-direction: row;
  27125. flex-wrap: nowrap;
  27126. align-items: flex-start;
  27127. padding: 0 0 20px;
  27128. }
  27129. .evaCss >>> .cell {
  27130. position: relative;
  27131. overflow: visible;
  27132. }
  27133. .evaCss >>> .el-table__body-wrapper {
  27134. overflow: visible;
  27135. }
  27136. .evaCss >>> .el-table {
  27137. overflow: visible;
  27138. }
  27139. .blueRootCss {
  27140. position: absolute;
  27141. top: 50%;
  27142. left: 0;
  27143. transform: translate(-20px, -50%);
  27144. }
  27145. .cru_line {
  27146. position: absolute;
  27147. bottom: 0px;
  27148. transition: all 0.5s;
  27149. left: 0px;
  27150. width: 125px;
  27151. margin-left: -25px;
  27152. }
  27153. .isNoMessage {
  27154. width: 20%;
  27155. margin: 25% auto 0;
  27156. }
  27157. .isNoMessage > img {
  27158. width: 100%;
  27159. height: 100%;
  27160. }
  27161. .fullStyle >>> .el-dialog__body {
  27162. height: 100% !important;
  27163. }
  27164. .fullStyle >>> .el-dialog,
  27165. .fullStyle {
  27166. width: 100% !important;
  27167. max-width: 100% !important;
  27168. height: 100% !important;
  27169. margin: 0 !important;
  27170. }
  27171. .full_diy >>> .el-dialog {
  27172. margin: 0 !important;
  27173. height: 100%;
  27174. padding: 4px;
  27175. }
  27176. .full_diy >>> .el-dialog__body {
  27177. height: calc(100% - 100px);
  27178. }
  27179. .full_diy2 >>> .el-dialog__body {
  27180. height: calc(100% - 50px);
  27181. padding: 0;
  27182. }
  27183. .switchCss {
  27184. /* width: 100%; */
  27185. display: flex;
  27186. flex-direction: row;
  27187. flex-wrap: nowrap;
  27188. align-items: center;
  27189. /* justify-content: center; */
  27190. }
  27191. .isClickNav {
  27192. /* color: #499eef; */
  27193. color: #000;
  27194. }
  27195. .commentImg {
  27196. width: 25px;
  27197. height: 25px;
  27198. cursor: pointer;
  27199. }
  27200. .commentImg > img {
  27201. width: 100%;
  27202. height: 100%;
  27203. }
  27204. .comment {
  27205. background: #f9f9f9;
  27206. border-radius: 0 0 4px 4px;
  27207. display: flex;
  27208. flex-direction: row;
  27209. flex-wrap: nowrap;
  27210. align-items: center;
  27211. justify-content: flex-end;
  27212. height: 35px;
  27213. }
  27214. .commentList {
  27215. display: flex;
  27216. flex-direction: row;
  27217. flex-wrap: nowrap;
  27218. align-items: center;
  27219. justify-content: center;
  27220. align-content: center;
  27221. /* margin-left: 15px; */
  27222. /* margin-left: 8px; */
  27223. }
  27224. .scoreImg {
  27225. width: 17px;
  27226. height: 17px;
  27227. }
  27228. .studentDetail {
  27229. display: flex;
  27230. flex-direction: row;
  27231. flex-wrap: nowrap;
  27232. /* align-items: center; */
  27233. align-items: flex-start;
  27234. }
  27235. .tx {
  27236. width: 50px;
  27237. }
  27238. .tx > img {
  27239. width: 100%;
  27240. height: 100%;
  27241. }
  27242. .nameAndTime {
  27243. display: flex;
  27244. flex-direction: column;
  27245. flex-wrap: nowrap;
  27246. align-items: flex-start;
  27247. margin-left: 10px;
  27248. }
  27249. .worksAnswer {
  27250. color: #4078dd;
  27251. margin: 10px 0;
  27252. font-size: 16px;
  27253. position: relative;
  27254. }
  27255. .worksAnswer > img {
  27256. width: 500px;
  27257. height: 300px;
  27258. object-fit: contain;
  27259. margin: 0 auto;
  27260. display: block;
  27261. }
  27262. .commentTop {
  27263. border-bottom: 1px solid #eaeaea;
  27264. padding-bottom: 10px;
  27265. }
  27266. .commentBox {
  27267. padding-top: 15px;
  27268. }
  27269. .pl {
  27270. font-size: 18px;
  27271. }
  27272. .plPerson {
  27273. width: 100%;
  27274. }
  27275. .plName {
  27276. display: flex;
  27277. flex-direction: row;
  27278. flex-wrap: nowrap;
  27279. align-items: baseline;
  27280. color: #78787a;
  27281. width: 100%;
  27282. }
  27283. .deleteComment {
  27284. cursor: pointer;
  27285. margin-left: auto;
  27286. color: #237ade;
  27287. }
  27288. .plContent {
  27289. margin-top: 5px;
  27290. }
  27291. .evalCss {
  27292. background: #fff;
  27293. font-size: 18px;
  27294. }
  27295. .nav {
  27296. color: #9d9d9d;
  27297. padding: 5px 0 15px 20px;
  27298. }
  27299. .middleBox {
  27300. padding: 5px 0 15px 20px;
  27301. }
  27302. .pfBox {
  27303. padding-bottom: 30px;
  27304. }
  27305. .nameAndrate {
  27306. display: flex;
  27307. flex-direction: row;
  27308. flex-wrap: nowrap;
  27309. align-items: center;
  27310. padding-bottom: 10px;
  27311. height: 30px;
  27312. line-height: 30px;
  27313. }
  27314. .nameAndrate > div {
  27315. margin-left: 10px;
  27316. color: #000;
  27317. height: 30px;
  27318. }
  27319. .nameAndrate >>> .el-rate__icon {
  27320. font-size: 28px !important;
  27321. }
  27322. .pfBox > div:nth-child(2) {
  27323. background: #f7f6f9;
  27324. width: 400px;
  27325. min-height: 45px;
  27326. border-radius: 10px;
  27327. font-size: 16px;
  27328. display: flex;
  27329. flex-wrap: wrap;
  27330. align-items: center;
  27331. padding: 10px 20px;
  27332. box-sizing: border-box;
  27333. color: #000;
  27334. }
  27335. .bz {
  27336. display: flex;
  27337. flex-direction: row;
  27338. flex-wrap: nowrap;
  27339. align-items: flex-start;
  27340. }
  27341. .bz > div {
  27342. padding: 0 10px;
  27343. }
  27344. .select_box2_title {
  27345. background: #fff;
  27346. border-radius: 5px;
  27347. padding: 15px 10px;
  27348. box-sizing: border-box;
  27349. margin-bottom: 10px;
  27350. display: flex;
  27351. flex-direction: row;
  27352. flex-wrap: nowrap;
  27353. align-items: center;
  27354. }
  27355. .select_box2_title > div:nth-child(2) {
  27356. margin-left: 10px;
  27357. color: #c4c4c4;
  27358. }
  27359. .select_box2_box {
  27360. display: flex;
  27361. height: 500px;
  27362. }
  27363. .select_box2_img {
  27364. width: calc(100% - 310px);
  27365. height: 100%;
  27366. overflow: auto;
  27367. background: #fff;
  27368. border-radius: 5px;
  27369. }
  27370. .select_box2_img img {
  27371. width: 100%;
  27372. }
  27373. .select_box2_answer {
  27374. background: #fff;
  27375. margin-left: 10px;
  27376. border-radius: 5px;
  27377. width: 300px;
  27378. overflow: auto;
  27379. height: 90%;
  27380. display: flex;
  27381. flex-direction: column;
  27382. align-items: flex-start;
  27383. padding-top: 10px;
  27384. box-sizing: border-box;
  27385. position: relative;
  27386. }
  27387. .select_answer_title {
  27388. padding: 0 0 15px 20px;
  27389. color: #c4c4c4;
  27390. }
  27391. .select_box2_answer_box {
  27392. margin: 0 0 10px 20px;
  27393. width: 85%;
  27394. display: flex;
  27395. flex-direction: row;
  27396. flex-wrap: nowrap;
  27397. align-items: center;
  27398. }
  27399. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27400. color: #000;
  27401. }
  27402. .upAnswerCss {
  27403. position: absolute;
  27404. bottom: 15px;
  27405. right: 15px;
  27406. }
  27407. .upAnswerCss >>> .el-button {
  27408. width: 95px;
  27409. height: 35px;
  27410. line-height: 35px;
  27411. padding: 0;
  27412. }
  27413. .rightWidthCss {
  27414. width: 60%;
  27415. display: flex;
  27416. flex-direction: row;
  27417. align-items: flex-start;
  27418. }
  27419. .rightAnswer {
  27420. display: flex;
  27421. flex-direction: row;
  27422. flex-wrap: nowrap;
  27423. align-items: center;
  27424. color: red;
  27425. margin-bottom: 31px;
  27426. }
  27427. .rightAnswerCss {
  27428. display: flex;
  27429. flex-direction: column;
  27430. flex-wrap: nowrap;
  27431. padding-top: 60px;
  27432. }
  27433. .blueCss {
  27434. color: #767de1;
  27435. margin-left: 10px;
  27436. }
  27437. .redCss {
  27438. color: red;
  27439. }
  27440. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27441. color: rgb(0 123 255) !important;
  27442. }
  27443. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27444. color: rgb(0 123 255) !important;
  27445. }
  27446. .zuoyeYulan {
  27447. padding-top: 0;
  27448. font-size: 18px;
  27449. display: flex;
  27450. align-items: flex-end;
  27451. }
  27452. .buttonA {
  27453. margin-left: 10px;
  27454. padding: 0;
  27455. }
  27456. .displayBox {
  27457. margin-bottom: 10px;
  27458. display: block;
  27459. border-bottom: 3px solid #eee;
  27460. display: flex;
  27461. align-items: center;
  27462. }
  27463. .easy_comment {
  27464. width: calc(100% - 90px);
  27465. margin-left: 10px;
  27466. display: flex;
  27467. flex-wrap: wrap;
  27468. }
  27469. .easy_comment > div {
  27470. border: 1px solid #4a4a4a;
  27471. color: #666;
  27472. border-radius: 15px;
  27473. padding: 5px 10px;
  27474. font-size: 16px;
  27475. margin-bottom: 10px;
  27476. margin-right: 5px;
  27477. cursor: pointer;
  27478. }
  27479. .easy_comment div:hover {
  27480. border: 1px solid #f7ba2a;
  27481. color: #c69217;
  27482. }
  27483. .xuan_right_box {
  27484. padding: 10px 0;
  27485. background: #f0f4fa;
  27486. margin: 0 15px 0 25px;
  27487. border-bottom-left-radius: 5px;
  27488. border-bottom-right-radius: 5px;
  27489. width: 91.5%;
  27490. }
  27491. .tool_right_box {
  27492. display: flex;
  27493. align-items: center;
  27494. }
  27495. .tool_right_box + .tool_right_box {
  27496. margin-top: 10px;
  27497. }
  27498. .right_box_xuan {
  27499. border-radius: 5px;
  27500. padding: 5px;
  27501. margin-left: 10px;
  27502. min-width: 85px;
  27503. background: #fff;
  27504. color: #0061ff;
  27505. border: 1px solid #0061ff;
  27506. font-size: 14px;
  27507. }
  27508. .pButton:hover {
  27509. opacity: 1 !important;
  27510. }
  27511. .pButton {
  27512. position: fixed;
  27513. text-align: center;
  27514. cursor: pointer;
  27515. z-index: 999;
  27516. right: 20px;
  27517. top: 110px;
  27518. width: 50px;
  27519. height: 50px;
  27520. display: flex;
  27521. align-items: center;
  27522. justify-content: center;
  27523. border-radius: 5px;
  27524. }
  27525. .pzClass {
  27526. width: calc(100% - 340px);
  27527. }
  27528. .newDialogCss {
  27529. /* position: fixed;
  27530. right: 5%;
  27531. top: 50%;
  27532. width: 340px;
  27533. transform: translateY(-50%);
  27534. height: 60%;
  27535. box-shadow: 0px 0 8px 0px #555555;
  27536. border-radius: 15px;
  27537. z-index: 999; */
  27538. position: fixed;
  27539. right: 20px;
  27540. top: 101px;
  27541. width: 330px;
  27542. height: calc(100% - 80px);
  27543. z-index: 999;
  27544. background: #fff;
  27545. border-top-right-radius: 0px;
  27546. border-bottom-right-radius: 0px;
  27547. overflow: hidden;
  27548. }
  27549. .newDialogCss > .scoreList {
  27550. width: 100%;
  27551. height: 100%;
  27552. box-sizing: border-box;
  27553. padding: 10px 15px;
  27554. overflow: auto;
  27555. padding-bottom: 80px;
  27556. }
  27557. .pzTop {
  27558. color: #fff;
  27559. background: #000;
  27560. display: flex;
  27561. flex-direction: row;
  27562. flex-wrap: nowrap;
  27563. align-items: center;
  27564. justify-content: space-between;
  27565. height: 40px;
  27566. border-radius: 15px 15px 0 0;
  27567. user-select: none;
  27568. }
  27569. .pzTop2 .checkbox {
  27570. display: flex;
  27571. align-items: center;
  27572. padding: 5px 10px;
  27573. flex: 0 0 auto;
  27574. font-weight: bold;
  27575. border-bottom: 1px solid #eee;
  27576. justify-content: space-between;
  27577. }
  27578. .checkbox > .cb-tabList {
  27579. display: flex;
  27580. align-items: center;
  27581. }
  27582. .cb-tabList > div {
  27583. margin-right: 20px;
  27584. font-weight: 400;
  27585. cursor: pointer;
  27586. }
  27587. .cb-tabList > .cb-tabItem {
  27588. color: #1684fc;
  27589. position: relative;
  27590. }
  27591. .cb-tabItem::after {
  27592. content: "";
  27593. width: 100%;
  27594. height: 2px;
  27595. background: #1684fc;
  27596. position: absolute;
  27597. bottom: -5px;
  27598. left: 0;
  27599. }
  27600. .pzTop2 .check {
  27601. text-align: center;
  27602. cursor: pointer;
  27603. box-sizing: border-box;
  27604. display: flex;
  27605. }
  27606. .pzTop2 img {
  27607. width: 25px;
  27608. cursor: pointer;
  27609. }
  27610. .pzTop > div:nth-child(1) {
  27611. padding-left: 10px;
  27612. }
  27613. .pzTop > div:nth-child(2) {
  27614. width: 15px;
  27615. height: 15px;
  27616. padding-right: 10px;
  27617. cursor: pointer;
  27618. }
  27619. .pzTop > div:nth-child(2) > img {
  27620. width: 100%;
  27621. height: 100%;
  27622. }
  27623. .pzBox,
  27624. .noPzBox {
  27625. height: calc(100% - 60px);
  27626. /* background: #ededed; */
  27627. background: #fff;
  27628. /* border-radius: 0 0 15px 15px; */
  27629. }
  27630. .noPzBox {
  27631. display: flex;
  27632. flex-direction: column;
  27633. flex-wrap: nowrap;
  27634. justify-content: center;
  27635. align-items: center;
  27636. }
  27637. .pzList {
  27638. background: #f7f7f7;
  27639. width: 90%;
  27640. margin: 0 auto 15px;
  27641. border-radius: 5px;
  27642. }
  27643. .pzNavTop {
  27644. display: flex;
  27645. flex-direction: row;
  27646. flex-wrap: nowrap;
  27647. padding: 10px 10px 0 10px;
  27648. align-items: center;
  27649. }
  27650. .pzDelete {
  27651. cursor: pointer;
  27652. margin-left: auto;
  27653. font-size: 14px;
  27654. color: #afafaf;
  27655. }
  27656. .pzNavTop > div:nth-child(1) {
  27657. background: #3760af;
  27658. width: 35px;
  27659. height: 35px;
  27660. color: #fff;
  27661. text-align: center;
  27662. line-height: 35px;
  27663. border-radius: 50%;
  27664. font-size: 14px;
  27665. }
  27666. .pzNavTop > div:nth-child(2) {
  27667. font-size: 18px;
  27668. color: #959595;
  27669. margin-left: 5px;
  27670. }
  27671. .pzContent {
  27672. padding: 10px;
  27673. word-break: break-word;
  27674. }
  27675. .pzContent audio {
  27676. width: 100%;
  27677. }
  27678. .pzContent audio::-webkit-media-controls-panel {
  27679. background: #fff;
  27680. }
  27681. .pzContent >>> img {
  27682. max-width: 100%;
  27683. }
  27684. .pzListBox {
  27685. padding-top: 15px;
  27686. height: calc(100% - 110px);
  27687. overflow: auto;
  27688. }
  27689. .addPzButton {
  27690. position: relative;
  27691. margin-top: 3px;
  27692. width: 100%;
  27693. }
  27694. .addPzButton .img1 {
  27695. position: absolute;
  27696. top: 50%;
  27697. right: 25px;
  27698. transform: translateY(-50%);
  27699. height: 100%;
  27700. display: flex;
  27701. align-items: center;
  27702. }
  27703. .addPzButton .img1 div {
  27704. display: flex;
  27705. }
  27706. .addPzButton .img1 div img {
  27707. width: 28px;
  27708. margin-left: 10px;
  27709. cursor: pointer;
  27710. }
  27711. .addPzButton .img1 div span {
  27712. font-size: 14px;
  27713. margin: 4px 0 0 3px;
  27714. color: #afafaf;
  27715. }
  27716. .addPz {
  27717. background: #4b79ce;
  27718. width: 100px;
  27719. color: #fff;
  27720. font-size: 12px;
  27721. height: 30px;
  27722. margin: 0 auto;
  27723. text-align: center;
  27724. line-height: 30px;
  27725. border-radius: 10px;
  27726. cursor: pointer;
  27727. }
  27728. .addDialogCss {
  27729. position: fixed;
  27730. width: 600px;
  27731. height: 70%;
  27732. min-height: 450px;
  27733. box-shadow: 0px 0 8px 0px #555555;
  27734. border-radius: 15px;
  27735. z-index: 999;
  27736. left: 50%;
  27737. top: 50%;
  27738. margin: -18% 0 0 -300px;
  27739. }
  27740. .teacherPz {
  27741. display: flex;
  27742. flex-direction: row;
  27743. align-items: center;
  27744. flex-wrap: nowrap;
  27745. }
  27746. .teacherPzImg {
  27747. width: 30px;
  27748. height: 30px;
  27749. }
  27750. .teacherPzImg > img {
  27751. width: 100%;
  27752. height: 100%;
  27753. }
  27754. .addPzBox {
  27755. height: calc(100% - 40px);
  27756. background: #ededed;
  27757. border-bottom-left-radius: 15px;
  27758. border-bottom-right-radius: 15px;
  27759. }
  27760. .pzAudioClass {
  27761. margin: 15px 14px;
  27762. background: #fff;
  27763. height: 100%;
  27764. display: flex;
  27765. justify-content: center;
  27766. align-items: center;
  27767. }
  27768. .pzConText {
  27769. width: 95%;
  27770. height: 100%;
  27771. margin: 10px auto 0;
  27772. border: none;
  27773. background: #fff;
  27774. border-radius: 0px;
  27775. }
  27776. .pzConText >>> .text {
  27777. height: calc(100% - 82px);
  27778. }
  27779. .addTextCss {
  27780. background: #4b79ce;
  27781. width: 80px;
  27782. height: 30px;
  27783. text-align: center;
  27784. color: #fff;
  27785. line-height: 30px;
  27786. border-radius: 10px;
  27787. margin: 10px auto 0;
  27788. cursor: pointer;
  27789. }
  27790. .pzConText:focus-visible {
  27791. border: none !important;
  27792. }
  27793. .maxWidth {
  27794. width: 1000px;
  27795. }
  27796. .noPz {
  27797. width: 150px;
  27798. margin: 0 auto 20%;
  27799. }
  27800. .noPz > img {
  27801. width: 100%;
  27802. height: 100%;
  27803. }
  27804. .timeAndReply {
  27805. display: flex;
  27806. flex-direction: row;
  27807. flex-wrap: nowrap;
  27808. justify-content: space-between;
  27809. align-items: center;
  27810. font-size: 14px;
  27811. box-sizing: border-box;
  27812. padding: 0 10px 10px 0px;
  27813. }
  27814. .timeAndReply .time {
  27815. color: #bfbfbf;
  27816. padding: 0 0 0 10px;
  27817. box-sizing: border-box;
  27818. }
  27819. .timeAndReply > div:last-child {
  27820. cursor: pointer;
  27821. color: #777;
  27822. }
  27823. /* table 样式 */
  27824. .cont >>> table {
  27825. border-top: 1px solid #ccc;
  27826. border-left: 1px solid #ccc;
  27827. }
  27828. .cont >>> table td,
  27829. .cont >>> table th {
  27830. border-bottom: 1px solid #ccc;
  27831. border-right: 1px solid #ccc;
  27832. /* padding: 20px 5px; */
  27833. padding: 5px 10px;
  27834. max-width: 0px;
  27835. height: 30px;
  27836. vertical-align: baseline;
  27837. box-sizing: border-box;
  27838. }
  27839. .cont >>> table th {
  27840. border-bottom: 2px solid #ccc;
  27841. text-align: center;
  27842. }
  27843. /* blockquote 样式 */
  27844. .cont >>> blockquote {
  27845. display: block;
  27846. border-left: 8px solid #d0e5f2;
  27847. padding: 5px 10px;
  27848. margin: 10px 0;
  27849. line-height: 1.4;
  27850. font-size: 100%;
  27851. background-color: #f1f1f1;
  27852. }
  27853. /* code 样式 */
  27854. .cont >>> code {
  27855. display: inline-block;
  27856. /* *display: inline; */
  27857. zoom: 1;
  27858. background-color: #f1f1f1;
  27859. border-radius: 3px;
  27860. padding: 3px 5px;
  27861. margin: 0 3px;
  27862. }
  27863. .cont >>> pre code {
  27864. display: block;
  27865. }
  27866. /* ul ol 样式 */
  27867. .cont >>> ul,
  27868. ol {
  27869. margin: 10px 0 10px 20px;
  27870. }
  27871. .addPzCheck {
  27872. display: flex;
  27873. flex-direction: row;
  27874. flex-wrap: nowrap;
  27875. padding: 10px 15px 0;
  27876. }
  27877. .addPzCheck span {
  27878. cursor: pointer;
  27879. padding-bottom: 5px;
  27880. font-weight: bold;
  27881. }
  27882. .addPzCheck span + span {
  27883. margin-left: 10px;
  27884. }
  27885. .addPzCheck .isChooseActive {
  27886. color: #3e88f4;
  27887. border-bottom: 2px solid #2f80f3;
  27888. }
  27889. /* code 样式 */
  27890. .cont {
  27891. /* -webkit-user-modify: read-write; */
  27892. overflow-wrap: break-word;
  27893. -webkit-line-break: after-white-space;
  27894. word-break: break-word;
  27895. white-space: pre-line;
  27896. }
  27897. .scoreBox,
  27898. .scoreDetailBox {
  27899. display: flex;
  27900. align-items: center;
  27901. justify-content: flex-start;
  27902. margin-top: 20px;
  27903. font-size: 18px;
  27904. width: 100%;
  27905. }
  27906. .scoreBox .t,
  27907. .scoreDetailBox .t {
  27908. margin-right: 10px;
  27909. width: 100px;
  27910. text-align: right;
  27911. }
  27912. .scoreDetailBox {
  27913. align-items: flex-start;
  27914. }
  27915. .scoreDetailBox >>> .el-textarea {
  27916. width: calc(100% - 200px);
  27917. }
  27918. .scoreBox >>> .el-input {
  27919. width: 130px;
  27920. font-size: 38px;
  27921. }
  27922. .scoreBox >>> .el-input__inner {
  27923. height: 60px;
  27924. }
  27925. .answerScore {
  27926. position: absolute;
  27927. top: 10px;
  27928. right: 10px;
  27929. background: #0000008f;
  27930. border-radius: 5px;
  27931. padding: 3px 5px;
  27932. font-size: 14px;
  27933. color: #fff;
  27934. cursor: pointer;
  27935. }
  27936. .open_box .switch_box {
  27937. width: 100%;
  27938. margin: 0 auto;
  27939. display: flex;
  27940. justify-content: space-between;
  27941. }
  27942. .open_box .switch_box + .switch_box {
  27943. margin-top: 10px;
  27944. }
  27945. .deleteImg,
  27946. .deleteImg1 {
  27947. width: 25px !important;
  27948. height: 25px !important;
  27949. cursor: pointer;
  27950. position: absolute;
  27951. top: 10px;
  27952. right: 10px;
  27953. }
  27954. .deleteImg2 {
  27955. width: 23px !important;
  27956. height: 23px !important;
  27957. top: 5px;
  27958. right: 5px;
  27959. }
  27960. .deleteImg1 {
  27961. width: 23px !important;
  27962. height: 23px !important;
  27963. top: 5px !important;
  27964. right: 30px !important;
  27965. }
  27966. .rightW {
  27967. right: 40px;
  27968. }
  27969. .drawPBox {
  27970. display: flex;
  27971. flex-direction: column;
  27972. position: relative;
  27973. }
  27974. .drawPBox span {
  27975. font-size: 18px;
  27976. color: #606266;
  27977. padding-bottom: 10px;
  27978. margin: 10px 0;
  27979. border-bottom: 1px solid #eaeaea;
  27980. }
  27981. .drawPBox img {
  27982. width: 500px;
  27983. height: 300px;
  27984. object-fit: contain;
  27985. cursor: pointer;
  27986. margin: 0 auto;
  27987. }
  27988. .sentenBox {
  27989. background: #fff;
  27990. height: 450px;
  27991. overflow: auto;
  27992. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27993. background-position: 102%;
  27994. background-repeat: no-repeat;
  27995. background-size: 60%;
  27996. }
  27997. .addSen {
  27998. background: #409efe;
  27999. width: 90px;
  28000. color: #fff;
  28001. height: 35px;
  28002. text-align: center;
  28003. line-height: 35px;
  28004. border-radius: 5px;
  28005. float: right;
  28006. margin: 10px 20px 0 0;
  28007. cursor: pointer;
  28008. }
  28009. .sentenTop {
  28010. display: flex;
  28011. flex-direction: row;
  28012. flex-wrap: nowrap;
  28013. align-items: center;
  28014. padding: 55px 0 0 20px;
  28015. box-sizing: border-box;
  28016. }
  28017. .sentenTop > div:nth-child(2) {
  28018. width: 300px;
  28019. margin: 0 15px;
  28020. }
  28021. .sentenTop > div:nth-child(3) {
  28022. background: #409efe;
  28023. color: #fff;
  28024. width: 65px;
  28025. height: 35px;
  28026. text-align: center;
  28027. line-height: 35px;
  28028. border-radius: 5px;
  28029. cursor: pointer;
  28030. }
  28031. .cardList,
  28032. .cardList1 {
  28033. padding: 10px 0 10px 0;
  28034. display: flex;
  28035. flex-direction: row;
  28036. flex-wrap: wrap;
  28037. align-items: center;
  28038. box-sizing: border-box;
  28039. border-bottom: 1px solid #f4f4f4;
  28040. width: 98%;
  28041. margin: 0 auto;
  28042. min-width: 60%;
  28043. max-width: 85%;
  28044. }
  28045. .cardList1 {
  28046. padding: 10px 0 10px 10px !important;
  28047. margin: 0 !important;
  28048. }
  28049. .cardBox {
  28050. display: flex;
  28051. flex-direction: row;
  28052. flex-wrap: wrap;
  28053. align-items: center;
  28054. align-content: center;
  28055. }
  28056. .cardBox > div {
  28057. margin-bottom: 10px;
  28058. }
  28059. .isCard,
  28060. .isChooseCard,
  28061. .noCard,
  28062. .isCard1 {
  28063. min-width: 130px;
  28064. width: auto;
  28065. height: 60px;
  28066. text-align: center;
  28067. line-height: 60px;
  28068. font-size: 20px;
  28069. cursor: pointer;
  28070. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28071. background-size: cover;
  28072. transition: all 2s;
  28073. margin-right: 20px;
  28074. background-size: 100% 100%;
  28075. padding: 0 20px;
  28076. box-sizing: border-box;
  28077. }
  28078. .isCard > div,
  28079. .noCard > div,
  28080. .isCard1 > div {
  28081. white-space: nowrap;
  28082. overflow: hidden;
  28083. text-overflow: ellipsis;
  28084. width: 100%;
  28085. margin: 0 auto;
  28086. }
  28087. .noCard {
  28088. background-image: none;
  28089. }
  28090. .isCard1 {
  28091. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28092. }
  28093. .isChooseCard {
  28094. background-image: none;
  28095. border: 1px dashed #b9b9b9;
  28096. border-radius: 10px;
  28097. }
  28098. .card {
  28099. width: 130px;
  28100. height: 60px;
  28101. }
  28102. .card > img {
  28103. width: 100%;
  28104. height: 100%;
  28105. }
  28106. .rightCardBox {
  28107. margin: 10px 0 0 10px;
  28108. }
  28109. .rightCardBox > div:nth-child(1) {
  28110. margin-bottom: 10px;
  28111. }
  28112. .cardCss {
  28113. display: flex;
  28114. flex-direction: column;
  28115. flex-wrap: nowrap;
  28116. align-items: center;
  28117. border-bottom: 3px solid #b4c3d3;
  28118. padding: 0 0 5px 0;
  28119. margin-right: 10px;
  28120. }
  28121. .cardCss > div:nth-child(2) {
  28122. background: #5b7b9d;
  28123. color: #fff;
  28124. width: 20px;
  28125. height: 20px;
  28126. border-radius: 50%;
  28127. text-align: center;
  28128. line-height: 20px;
  28129. }
  28130. .isWrong {
  28131. display: flex;
  28132. flex-direction: row;
  28133. flex-wrap: nowrap;
  28134. align-content: center;
  28135. align-items: center;
  28136. }
  28137. .answerRight {
  28138. width: 25%;
  28139. }
  28140. .isTj {
  28141. display: flex;
  28142. flex-direction: row;
  28143. flex-wrap: nowrap;
  28144. align-items: center;
  28145. }
  28146. .isTj > div:nth-child(2) {
  28147. color: #727070;
  28148. margin-left: 10px;
  28149. }
  28150. .isTjImg {
  28151. width: 30px;
  28152. height: 30px;
  28153. }
  28154. .isTjImg > img {
  28155. width: 100%;
  28156. height: 100%;
  28157. }
  28158. .cardAnswerBox {
  28159. font-size: 18px;
  28160. width: 97%;
  28161. border: 5px;
  28162. padding: 0;
  28163. border-radius: 5px;
  28164. margin: 10px auto;
  28165. word-break: break-word;
  28166. }
  28167. .w_name {
  28168. margin-bottom: 10px;
  28169. }
  28170. .w_name span {
  28171. font-size: 16px;
  28172. }
  28173. .w_teachert {
  28174. width: 50px !important;
  28175. position: absolute;
  28176. height: auto !important;
  28177. z-index: 10;
  28178. right: 25px;
  28179. top: -25px;
  28180. }
  28181. /* .group_workBox {
  28182. } */
  28183. .group_workBox + .group_workBox {
  28184. margin-top: 20px;
  28185. }
  28186. .group_box {
  28187. padding-bottom: 20px;
  28188. border-bottom: 2px solid #f0f0f0;
  28189. margin-top: 10px;
  28190. }
  28191. .group_title {
  28192. display: flex;
  28193. align-items: center;
  28194. justify-content: space-between;
  28195. width: 95%;
  28196. }
  28197. .group_name {
  28198. background-image: url(../../assets/icon/groupN.png);
  28199. width: 220px;
  28200. background-size: 100% 100%;
  28201. height: 67px;
  28202. padding: 0 20px 0 43px;
  28203. box-sizing: border-box;
  28204. line-height: 63px;
  28205. color: #fff;
  28206. overflow: hidden;
  28207. white-space: nowrap;
  28208. text-overflow: ellipsis;
  28209. }
  28210. .group_work {
  28211. width: 100%;
  28212. padding: 0 10px;
  28213. box-sizing: border-box;
  28214. display: flex;
  28215. flex-wrap: wrap;
  28216. }
  28217. .g_d_box {
  28218. display: flex;
  28219. flex-flow: wrap;
  28220. justify-content: space-around;
  28221. }
  28222. .g_d_box .isChair {
  28223. background-image: url(../../assets/avatar.png) !important;
  28224. }
  28225. .g_d_group {
  28226. width: 500px;
  28227. margin-bottom: 80px;
  28228. }
  28229. .g_d_group_chair {
  28230. display: flex;
  28231. align-items: center;
  28232. justify-content: center;
  28233. }
  28234. .g_d_group_chair > div + div {
  28235. margin-left: 30px;
  28236. }
  28237. .g_d_group_chair > div,
  28238. .g_d_group_chair2 > div {
  28239. display: flex;
  28240. flex-direction: column;
  28241. align-items: center;
  28242. }
  28243. .g_d_group_chair > div > span:nth-child(1),
  28244. .g_d_group_chair2 > div > span:nth-child(1) {
  28245. background-image: url(../../assets/icon/chair.png);
  28246. width: 50px;
  28247. height: 50px;
  28248. display: block;
  28249. background-size: 100% 100%;
  28250. }
  28251. .g_d_group_tableBox {
  28252. display: flex;
  28253. align-items: center;
  28254. justify-content: center;
  28255. }
  28256. .g_d_group_chair2 {
  28257. display: flex;
  28258. flex-direction: column;
  28259. align-items: center;
  28260. justify-content: center;
  28261. }
  28262. .g_d_group_chair2 > div + div {
  28263. margin-top: 10px;
  28264. }
  28265. .g_d_group_table {
  28266. background-image: url(../../assets/icon/groupBg.png);
  28267. width: 354px;
  28268. height: 196px;
  28269. background-size: 100% 100%;
  28270. display: flex;
  28271. align-items: center;
  28272. justify-content: center;
  28273. flex-direction: column;
  28274. color: #fff;
  28275. }
  28276. .g_d_group_table > div:nth-child(1) {
  28277. font-size: 24px;
  28278. margin-bottom: 5px;
  28279. }
  28280. .g_d_group_table > div:nth-child(2) div {
  28281. cursor: pointer;
  28282. background: #2e77bf;
  28283. padding: 4px 10px;
  28284. border-radius: 5px;
  28285. }
  28286. .groupBox {
  28287. }
  28288. .groupContent + .groupContent {
  28289. margin-top: 30px;
  28290. }
  28291. .groupTitle {
  28292. font-size: 24px;
  28293. color: rgb(80, 80, 80);
  28294. margin-bottom: 20px;
  28295. }
  28296. .groupName {
  28297. display: flex;
  28298. align-items: center;
  28299. }
  28300. .groupn {
  28301. font-size: 15px;
  28302. margin-right: 10px;
  28303. }
  28304. .groupName + .groupName {
  28305. margin-top: 15px;
  28306. }
  28307. .groupBtn {
  28308. margin-left: 10px;
  28309. }
  28310. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28311. text-align: left;
  28312. }
  28313. .g_d_btnBox {
  28314. display: flex;
  28315. justify-content: flex-end;
  28316. align-items: center;
  28317. margin-bottom: 20px;
  28318. }
  28319. .updateChair {
  28320. position: relative;
  28321. }
  28322. .updateChairBtn {
  28323. position: absolute;
  28324. width: 50px;
  28325. height: 50px;
  28326. overflow: hidden;
  28327. /* display: flex; */
  28328. align-items: center;
  28329. justify-content: center;
  28330. background: #00000087;
  28331. color: #fff;
  28332. border-radius: 50px;
  28333. display: none;
  28334. cursor: pointer;
  28335. }
  28336. .updateChair:hover .updateChairBtn {
  28337. display: flex;
  28338. }
  28339. .group_staic_box {
  28340. display: flex;
  28341. padding: 30px 40px 10px;
  28342. flex-wrap: wrap;
  28343. }
  28344. .group_staic {
  28345. /* width: 50%; */
  28346. margin-bottom: 20px;
  28347. display: flex;
  28348. align-items: center;
  28349. }
  28350. .group_staic span:nth-child(1) {
  28351. width: 150px;
  28352. text-align: right;
  28353. margin-right: 15px;
  28354. }
  28355. .group_staic span:nth-child(2) {
  28356. background: rgb(0 123 255);
  28357. color: #fff;
  28358. border-radius: 5px;
  28359. padding: 5px;
  28360. }
  28361. .codeFileBox {
  28362. height: 300px;
  28363. background: #fff;
  28364. display: flex;
  28365. align-items: center;
  28366. justify-content: center;
  28367. }
  28368. .codeFileBox img {
  28369. width: 200px;
  28370. margin: 0;
  28371. height: auto;
  28372. }
  28373. .codeFileBox div {
  28374. background: rgb(80, 142, 226);
  28375. color: #fff;
  28376. padding: 10px 20px;
  28377. border-radius: 25px;
  28378. cursor: pointer;
  28379. margin-left: 15px;
  28380. }
  28381. .radioBox {
  28382. display: flex;
  28383. flex-direction: column;
  28384. flex-wrap: nowrap;
  28385. align-items: flex-start;
  28386. }
  28387. .radioBox > div {
  28388. margin: 10px 0 0 10px;
  28389. }
  28390. /* .radioBox >>> .el-radio__input,
  28391. .radioBox >>> .el-checkbox__inner {
  28392. margin-left: 10px;
  28393. } */
  28394. .radioBox >>> .el-radio__label,
  28395. .radioBox >>> .el-checkbox__label {
  28396. display: flex;
  28397. align-items: center;
  28398. width: 100%;
  28399. }
  28400. .radioBox >>> .el-radio__label > span {
  28401. width: 100%;
  28402. display: -webkit-box;
  28403. overflow: hidden;
  28404. white-space: normal !important;
  28405. text-overflow: ellipsis;
  28406. word-wrap: break-word;
  28407. }
  28408. .inImg {
  28409. width: 100px;
  28410. cursor: pointer;
  28411. }
  28412. .inImg > img {
  28413. width: 100%;
  28414. height: 100%;
  28415. object-fit: cover;
  28416. }
  28417. .timuImgBox {
  28418. margin: 10px 0;
  28419. display: flex;
  28420. flex-direction: column;
  28421. flex-wrap: wrap;
  28422. align-items: flex-start;
  28423. }
  28424. .timuImg {
  28425. width: 150px;
  28426. margin: 5px 0;
  28427. cursor: pointer;
  28428. }
  28429. .timuImg > img {
  28430. width: 100%;
  28431. height: 100%;
  28432. object-fit: cover;
  28433. }
  28434. .worksTop {
  28435. display: flex;
  28436. flex-direction: row;
  28437. align-items: flex-end;
  28438. }
  28439. .worksTitle {
  28440. display: flex;
  28441. flex-direction: row;
  28442. flex-wrap: nowrap;
  28443. align-items: center;
  28444. }
  28445. .worksTitle::before,
  28446. .worksTop::before {
  28447. content: "";
  28448. display: block;
  28449. width: 3px;
  28450. height: 20px;
  28451. background: #0061ff;
  28452. border-radius: 3px;
  28453. margin: 0 5px 0 0;
  28454. }
  28455. .corOpen {
  28456. margin: 0 0 0 10px;
  28457. font-size: 14px;
  28458. cursor: pointer;
  28459. color: #505050;
  28460. }
  28461. .corOpen:hover {
  28462. color: #499eef;
  28463. }
  28464. .navCorOpenBox {
  28465. display: flex;
  28466. flex-direction: row;
  28467. align-items: center;
  28468. justify-content: space-between;
  28469. height: 55px;
  28470. background: #ffffff;
  28471. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28472. border-radius: 8px 8px 0px 0px;
  28473. z-index: 9;
  28474. position: relative;
  28475. }
  28476. .navCorOpen {
  28477. padding-right: 15px;
  28478. cursor: pointer;
  28479. width: 45px;
  28480. display: flex;
  28481. }
  28482. .navCorOpen > img {
  28483. width: 100%;
  28484. height: 100%;
  28485. }
  28486. .mlImg {
  28487. width: 40px !important;
  28488. min-width: 40px;
  28489. cursor: pointer;
  28490. transform: rotate(180deg);
  28491. }
  28492. .mlImg > img {
  28493. width: 100%;
  28494. height: 100%;
  28495. }
  28496. .navLeftCss {
  28497. width: 100% !important;
  28498. left: 0 !important;
  28499. }
  28500. .isContentCss {
  28501. width: 100% !important;
  28502. }
  28503. .isAllWidth {
  28504. width: 100% !important;
  28505. }
  28506. .group_switch {
  28507. margin-right: 10px;
  28508. height: 30px;
  28509. display: flex;
  28510. align-items: center;
  28511. }
  28512. .group_switch > span {
  28513. margin-right: 5px;
  28514. }
  28515. .fileC_box {
  28516. padding-top: 15px;
  28517. }
  28518. .fileC_box > .fileC_title {
  28519. padding: 10px 5px 14px 10px;
  28520. border-top: 1px solid #cad1dc;
  28521. font-size: 14px;
  28522. font-weight: 400;
  28523. color: #cad1dc;
  28524. width: calc(100% - 20px);
  28525. margin: 0 auto;
  28526. box-sizing: border-box;
  28527. }
  28528. .pl_select_box {
  28529. height: 40px;
  28530. line-height: 40px;
  28531. width: 100%;
  28532. cursor: pointer;
  28533. padding: 0 20px;
  28534. box-sizing: border-box;
  28535. border-radius: 5px;
  28536. border: 1px solid #d6d6d6;
  28537. white-space: nowrap;
  28538. overflow: hidden;
  28539. text-overflow: ellipsis;
  28540. background: #fff;
  28541. text-align: left;
  28542. }
  28543. .newButton {
  28544. width: 102px;
  28545. height: 36px;
  28546. background: #e7ebf1;
  28547. border-radius: 4px;
  28548. color: #0e1e33;
  28549. font-weight: 400;
  28550. font-size: 14px;
  28551. border: none;
  28552. float: right;
  28553. margin-left: 10px;
  28554. }
  28555. .el-table >>> .even_row {
  28556. background-color: #f0f4fa;
  28557. }
  28558. .stageBoxCss,
  28559. .stageBoxIsCss {
  28560. display: flex;
  28561. flex-direction: row;
  28562. flex-wrap: nowrap;
  28563. align-items: center;
  28564. height: 50px;
  28565. border-bottom: 1px solid #e2f5fc;
  28566. cursor: pointer;
  28567. width: 100%;
  28568. }
  28569. .stageBoxIsCss {
  28570. background: #0061ff;
  28571. color: #fff;
  28572. border-radius: 8px;
  28573. }
  28574. .closeTri,
  28575. .closeTri1 {
  28576. min-width: 15px;
  28577. width: 15px;
  28578. height: 15px;
  28579. }
  28580. .closeTri1 {
  28581. padding-left: 10px;
  28582. cursor: pointer;
  28583. }
  28584. .closeTri > img,
  28585. .closeTri1 > img {
  28586. width: 100%;
  28587. height: 100%;
  28588. /* transition: all .5s; */
  28589. }
  28590. .noToolBlue {
  28591. min-width: 10px;
  28592. width: 10px;
  28593. height: 10px;
  28594. background: #0061ff;
  28595. border-radius: 50%;
  28596. margin-left: 13px;
  28597. }
  28598. .stageChild,
  28599. .toolChild {
  28600. height: 0;
  28601. overflow: hidden;
  28602. transition: all 0.5s;
  28603. }
  28604. /* .toolChild { */
  28605. /* margin: 0 0 0 17px;
  28606. padding: 0 0 0 20px;
  28607. border-left: 1px solid #d7d7d7; */
  28608. /* } */
  28609. .toolChild > div + div {
  28610. margin-top: 5px;
  28611. }
  28612. .gjCss {
  28613. display: flex;
  28614. flex-direction: row;
  28615. flex-wrap: nowrap;
  28616. align-items: center;
  28617. padding: 10px 0 10px 40px;
  28618. box-sizing: border-box;
  28619. font-size: 14px;
  28620. cursor: pointer;
  28621. border-radius: 5px;
  28622. }
  28623. .toolChild > div {
  28624. position: relative;
  28625. width: 100%;
  28626. }
  28627. /* .toolChild > div::before { */
  28628. /* content: "";
  28629. width: 15px;
  28630. height: 1px;
  28631. background: #cad1dc;
  28632. position: absolute;
  28633. top: 24px;
  28634. left: -20px;
  28635. display: block; */
  28636. /* } */
  28637. .isGjCss {
  28638. /* color: #0061ff; */
  28639. color: #fff;
  28640. background: rgb(55, 129, 252);
  28641. /* background-color: #e0eafb !important;
  28642. color: #0061ff !important; */
  28643. }
  28644. .navItem {
  28645. background: #ffffff;
  28646. border-radius: 4px;
  28647. width: 100%;
  28648. margin: 10px auto;
  28649. position: relative;
  28650. height: 40px;
  28651. display: flex;
  28652. flex-direction: row;
  28653. flex-wrap: nowrap;
  28654. align-items: center;
  28655. }
  28656. .navItemList {
  28657. display: flex;
  28658. flex-direction: row;
  28659. flex-wrap: nowrap;
  28660. align-items: center;
  28661. padding: 0 13px;
  28662. cursor: pointer;
  28663. width: calc(100% - 60px);
  28664. height: 100%;
  28665. }
  28666. .navItemList > div:first-child {
  28667. min-width: 60px;
  28668. }
  28669. .navItemList > div:last-child {
  28670. width: calc(100% - 80px);
  28671. white-space: nowrap;
  28672. overflow: hidden;
  28673. text-overflow: ellipsis;
  28674. word-break: break-word;
  28675. }
  28676. /* .isItemList > div {
  28677. color: #fff !important;
  28678. } */
  28679. .tool_work_box {
  28680. width: 100%;
  28681. padding: 0 37px 0;
  28682. box-sizing: border-box;
  28683. }
  28684. .tool_box {
  28685. width: 100%;
  28686. padding: 0 0 0 20px;
  28687. }
  28688. .tool_type_box {
  28689. display: flex;
  28690. flex-direction: row;
  28691. align-items: baseline;
  28692. flex-wrap: nowrap;
  28693. justify-content: flex-start;
  28694. position: relative;
  28695. }
  28696. .toolSort {
  28697. display: flex;
  28698. flex-direction: row;
  28699. flex-wrap: wrap;
  28700. justify-content: flex-start;
  28701. align-items: flex-start;
  28702. padding: 0 0 15px 0;
  28703. }
  28704. .toolSort > div {
  28705. margin: 0 10px 0 0;
  28706. width: 135px;
  28707. box-sizing: border-box;
  28708. border: 2px solid transparent;
  28709. }
  28710. .tools {
  28711. width: 100%;
  28712. display: flex;
  28713. flex-direction: column;
  28714. flex-wrap: nowrap;
  28715. align-items: flex-start;
  28716. }
  28717. .whiteBIcon {
  28718. width: fit-content;
  28719. cursor: pointer;
  28720. display: flex;
  28721. flex-direction: column;
  28722. flex-wrap: nowrap;
  28723. align-items: center;
  28724. font-size: 14px;
  28725. }
  28726. .tool:hover {
  28727. border: 2px solid #a5c7ff;
  28728. border-radius: 5px;
  28729. }
  28730. .whiteBIcon > img {
  28731. width: 65px;
  28732. height: 100%;
  28733. }
  28734. .whiteBIcon > img {
  28735. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28736. border-radius: 15px;
  28737. }
  28738. .check {
  28739. /* width: 20px;
  28740. height: 20px; */
  28741. cursor: pointer;
  28742. margin: 10px 0;
  28743. position: absolute;
  28744. right: 2px;
  28745. top: -5px;
  28746. }
  28747. .noChoose,
  28748. .isChoose {
  28749. width: 15px;
  28750. height: 15px;
  28751. border-radius: 50%;
  28752. border: 1px solid #adadad;
  28753. }
  28754. .isChoose {
  28755. border: 4px solid #0363ff !important;
  28756. width: 10px;
  28757. height: 10px;
  28758. }
  28759. .isToolChoose {
  28760. border: 2px solid #5394ff !important;
  28761. border-radius: 5px;
  28762. box-shadow: 0 0 6px 0px #5394ff;
  28763. }
  28764. .checkDiv {
  28765. display: flex;
  28766. align-items: center;
  28767. }
  28768. .checkDiv span {
  28769. margin-left: 5px;
  28770. color: #858585;
  28771. }
  28772. .check img {
  28773. width: 20px;
  28774. height: 20px;
  28775. }
  28776. .lockTaskIcon {
  28777. width: 20px;
  28778. height: 20px;
  28779. position: absolute;
  28780. right: 10px;
  28781. top: 10px;
  28782. }
  28783. .lockTaskIcon > img {
  28784. width: 100%;
  28785. height: 100%;
  28786. }
  28787. .pick_box {
  28788. display: flex;
  28789. align-items: flex-start;
  28790. flex-wrap: wrap;
  28791. }
  28792. .selectBox {
  28793. width: 110px;
  28794. margin-left: 10px;
  28795. margin: 0 10px 0 auto;
  28796. }
  28797. .selectBox >>> .el-input__inner {
  28798. height: 30px;
  28799. line-height: 30px;
  28800. }
  28801. .selectBox >>> .el-input__icon {
  28802. line-height: 30px;
  28803. }
  28804. .sentenceTitle {
  28805. display: flex;
  28806. flex-direction: row;
  28807. flex-wrap: nowrap;
  28808. align-items: center;
  28809. }
  28810. .sentenceTitle::before {
  28811. content: attr(index);
  28812. background: #3681fc;
  28813. border-radius: 50%;
  28814. color: #fff;
  28815. width: 25px;
  28816. height: 25px;
  28817. min-width: 25px;
  28818. min-height: 25px;
  28819. text-align: center;
  28820. line-height: 25px;
  28821. margin-right: 5px;
  28822. }
  28823. .hfBox {
  28824. padding: 10px;
  28825. box-sizing: border-box;
  28826. }
  28827. .whoReplyWho {
  28828. display: flex;
  28829. flex-direction: row;
  28830. flex-wrap: nowrap;
  28831. align-items: baseline;
  28832. justify-content: flex-start;
  28833. }
  28834. .hfBottom {
  28835. display: flex;
  28836. flex-direction: row;
  28837. flex-wrap: nowrap;
  28838. align-items: center;
  28839. justify-content: space-between;
  28840. font-size: 14px;
  28841. }
  28842. .deleteHfItem {
  28843. cursor: pointer;
  28844. width: 20px;
  28845. height: 20px;
  28846. }
  28847. .deleteHfItem > img {
  28848. width: 100%;
  28849. height: 100%;
  28850. }
  28851. .whoReplyWho > .hfImg {
  28852. width: 12px;
  28853. height: 12px;
  28854. margin: 0 5px;
  28855. }
  28856. .whoReplyWho > .hfImg > img {
  28857. width: 100%;
  28858. height: 100%;
  28859. }
  28860. .hfContent {
  28861. padding-top: 10px;
  28862. box-sizing: border-box;
  28863. display: -webkit-box;
  28864. overflow: hidden;
  28865. white-space: normal !important;
  28866. text-overflow: ellipsis;
  28867. word-wrap: break-word;
  28868. -webkit-box-orient: vertical;
  28869. }
  28870. .hfTime {
  28871. text-align: left;
  28872. box-sizing: border-box;
  28873. padding: 10px 0 10px 0px;
  28874. color: #bfbfbf;
  28875. font-size: 14px;
  28876. }
  28877. .btnAllNT {
  28878. position: fixed;
  28879. bottom: 100px;
  28880. right: 40px;
  28881. z-index: 999;
  28882. display: flex;
  28883. flex-direction: row;
  28884. }
  28885. .btnAllNT > img {
  28886. cursor: pointer;
  28887. width: 80px;
  28888. }
  28889. .toolMask {
  28890. position: fixed;
  28891. width: 100%;
  28892. height: 100%;
  28893. background: #3f3c3c;
  28894. opacity: 0.5;
  28895. top: 0;
  28896. left: 0;
  28897. z-index: 999;
  28898. }
  28899. .addToolCss {
  28900. position: fixed;
  28901. z-index: 999;
  28902. background: #fff;
  28903. right: 5%;
  28904. bottom: 18%;
  28905. min-width: 1035px;
  28906. min-height: 300px;
  28907. border-radius: 10px;
  28908. box-shadow: 0 0 8px 1px #b2b2b2;
  28909. }
  28910. .toolTop {
  28911. display: flex;
  28912. flex-direction: row;
  28913. flex-wrap: nowrap;
  28914. justify-content: space-between;
  28915. align-items: center;
  28916. padding: 20px;
  28917. }
  28918. .toolTop > div:nth-child(2) {
  28919. width: 15px;
  28920. height: 15px;
  28921. padding-right: 10px;
  28922. cursor: pointer;
  28923. }
  28924. .toolTop > div:nth-child(2) > img {
  28925. width: 100%;
  28926. height: 100%;
  28927. }
  28928. .fullStyle >>> .el-dialog__body {
  28929. height: calc(100% - 125px) !important;
  28930. box-sizing: border-box;
  28931. padding: 30px 0 !important;
  28932. background: #fff !important;
  28933. }
  28934. .fullStyle >>> .el-dialog {
  28935. width: 100% !important;
  28936. max-width: 100% !important;
  28937. height: 100% !important;
  28938. margin: 0 !important;
  28939. }
  28940. .fullStyle {
  28941. width: 100% !important;
  28942. max-width: 100% !important;
  28943. height: 100% !important;
  28944. margin: 0 auto !important;
  28945. }
  28946. .fullStyle >>> .el-dialog__footer {
  28947. background: #fff !important;
  28948. }
  28949. .engUpBox {
  28950. width: 100%;
  28951. height: 100%;
  28952. }
  28953. .engTitle,
  28954. .engText {
  28955. display: flex;
  28956. flex-direction: row;
  28957. flex-wrap: nowrap;
  28958. align-items: flex-start;
  28959. padding: 0 20px 20px 20px;
  28960. box-sizing: border-box;
  28961. }
  28962. .engTitle > .div:first-child,
  28963. .engText > div:first-child {
  28964. min-width: 75px;
  28965. }
  28966. .correctBox {
  28967. width: 100%;
  28968. display: flex;
  28969. flex-direction: row;
  28970. flex-wrap: nowrap;
  28971. align-items: flex-start;
  28972. }
  28973. .oldBox {
  28974. width: 50%;
  28975. height: 100%;
  28976. display: flex;
  28977. flex-direction: column;
  28978. flex-wrap: nowrap;
  28979. align-items: center;
  28980. border-top: 1px solid #d9d9d9;
  28981. border-left: 1px solid #d9d9d9;
  28982. border-right: 1px solid #d9d9d9;
  28983. }
  28984. .oldBox > div:first-child {
  28985. width: 100%;
  28986. text-align: center;
  28987. background: #d9d9d9;
  28988. height: 35px;
  28989. line-height: 35px;
  28990. font-weight: bold;
  28991. }
  28992. .oldText {
  28993. width: 100%;
  28994. height: calc(100% - 35px);
  28995. overflow: auto;
  28996. margin: 10px 0;
  28997. display: flex;
  28998. flex-direction: column;
  28999. flex-wrap: nowrap;
  29000. align-content: center;
  29001. align-items: center;
  29002. }
  29003. .detailBox {
  29004. width: 50%;
  29005. padding: 10px;
  29006. background: #f6f6f6;
  29007. border-radius: 5px;
  29008. }
  29009. .oldDetail,
  29010. .oldDetail1 {
  29011. padding-bottom: 30px;
  29012. }
  29013. .oldImg {
  29014. width: 30px;
  29015. height: 30px;
  29016. }
  29017. .oldImg > img {
  29018. width: 100%;
  29019. height: 100%;
  29020. }
  29021. .allName {
  29022. min-width: 200px;
  29023. white-space: nowrap;
  29024. overflow: hidden;
  29025. text-overflow: ellipsis;
  29026. word-break: break-word;
  29027. cursor: pointer;
  29028. text-align: center;
  29029. border: 1px solid #bcc2cc;
  29030. box-sizing: border-box;
  29031. }
  29032. .engUpTop {
  29033. max-height: 300px;
  29034. overflow: auto;
  29035. }
  29036. .isUpdateToolDetailClass {
  29037. padding: 0 !important;
  29038. }
  29039. .isUpdateToolDetailClass textarea {
  29040. padding: 12px;
  29041. font-size: 16px;
  29042. min-height: 100%;
  29043. width: 100%;
  29044. box-sizing: border-box;
  29045. outline: none;
  29046. border: none;
  29047. line-height: 30px;
  29048. resize: none;
  29049. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  29050. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29051. color: #838383;
  29052. }
  29053. .show_taskD {
  29054. min-width: fit-content;
  29055. margin-left: 10px;
  29056. display: flex;
  29057. align-items: center;
  29058. font-size: 14px;
  29059. cursor: pointer;
  29060. color: #717c8d;
  29061. }
  29062. .show_taskD > img {
  29063. width: 15px;
  29064. margin-right: 5px;
  29065. transition: 0.2s all;
  29066. transform: rotate(-90deg);
  29067. }
  29068. .show_taskD.show > img {
  29069. transform: rotate(0deg);
  29070. }
  29071. .correctCss {
  29072. position: absolute;
  29073. bottom: -70px;
  29074. background: #409eff;
  29075. color: #fff;
  29076. }
  29077. .ScoreBtn {
  29078. background: rgba(87, 159, 248, 1);
  29079. display: flex;
  29080. justify-content: center;
  29081. align-items: center;
  29082. color: #fff;
  29083. font-size: 14px;
  29084. padding: 8px 12px;
  29085. border-radius: 5px;
  29086. cursor: pointer;
  29087. }
  29088. .max-height-popover .el-popover {
  29089. min-height: 200px;
  29090. max-height: 400px; /* 设置最大高度 */
  29091. overflow: auto; /* 超出部分显示滚动条 */
  29092. }
  29093. .blueRootCss {
  29094. display: block;
  29095. margin-right: 5px;
  29096. }
  29097. .stuLookScore {
  29098. position: absolute;
  29099. top: 12px;
  29100. right: 40px;
  29101. background: #0000008f;
  29102. border-radius: 5px;
  29103. padding: 3px 5px;
  29104. font-size: 14px;
  29105. color: #fff;
  29106. cursor: pointer;
  29107. }
  29108. div::-webkit-scrollbar {
  29109. width: 10px;
  29110. height: 6px;
  29111. }
  29112. .Ovh{
  29113. margin: 5px 0;
  29114. width: 4em;
  29115. text-align: center;
  29116. -webkit-line-clamp: 2;
  29117. display: -webkit-box;
  29118. -webkit-box-orient: vertical;
  29119. overflow: hidden;
  29120. text-overflow: ellipsis;
  29121. }
  29122. </style>