studyStudent.vue 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670
  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 class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  262. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  263. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  264. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  265. <div>任务{{ taskCount + 1 }}</div>
  266. <el-tooltip
  267. effect="light"
  268. :content="
  269. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  270. "
  271. placement="top"
  272. >
  273. <div>
  274. {{
  275. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  276. .task
  277. }}
  278. </div>
  279. </el-tooltip>
  280. </div>
  281. <div
  282. class="btnAll"
  283. v-show="
  284. (!orgArray.includes(org) && !oidArray.includes(oid))
  285. "
  286. >
  287. <div class="btnLeft">
  288. <el-tooltip effect="light" content="刷新" placement="top">
  289. <div class="reBtnIcon" @click="refreshCourse">
  290. <span>刷新</span>
  291. </div>
  292. </el-tooltip>
  293. <el-tooltip effect="light" content="评论" placement="top">
  294. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  295. <span>评论</span>
  296. </div>
  297. </el-tooltip>
  298. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  299. <el-tooltip effect="light" content="录制" placement="top">
  300. <div class="vedioIcon" @click="startRecording">
  301. <span>录制</span>
  302. </div>
  303. </el-tooltip>
  304. </div>
  305. <div v-else-if="tType == 1 || tType == 4">
  306. <el-tooltip effect="light" content="下载" placement="top">
  307. <div class="vedioIcon1" @click="stopRecording">
  308. <span>下载</span>
  309. </div>
  310. </el-tooltip>
  311. </div>
  312. </div>
  313. <div class="btnRight">
  314. <div
  315. class="last"
  316. @click="nextOrpreSteps(0)"
  317. v-if="!(IsFollow && tType == 2)"
  318. @mouseover="isHovered = true"
  319. @mouseout="isHovered = false"
  320. >
  321. <div class="lastImg">
  322. <img
  323. :src="
  324. isHovered
  325. ? require('../../assets/icon/newIcons/whiteLast.png')
  326. : require('../../assets/icon/newIcons/last.png')
  327. "
  328. alt=""
  329. />
  330. </div>
  331. <div class="lastText">上一步</div>
  332. </div>
  333. <div
  334. class="last"
  335. @click="nextOrpreSteps(1)"
  336. v-if="!(IsFollow && tType == 2)"
  337. @mouseover="isHovered1 = true"
  338. @mouseout="isHovered1 = false"
  339. >
  340. <div class="lastText">下一步</div>
  341. <div class="lastImg">
  342. <img
  343. :src="
  344. isHovered1
  345. ? require('../../assets/icon/newIcons/whiteNext.png')
  346. : require('../../assets/icon/newIcons/next.png')
  347. "
  348. alt=""
  349. />
  350. </div>
  351. </div>
  352. <div
  353. class="last"
  354. @click="juriVisible = true"
  355. v-if="tType == 1"
  356. @mouseover="isHovered2 = true"
  357. @mouseout="isHovered2 = false"
  358. >
  359. <div class="lastImg">
  360. <img
  361. :src="
  362. isHovered2
  363. ? require('../../assets/icon/newIcons/whiteLock.png')
  364. : require('../../assets/icon/newIcons/lock.png')
  365. "
  366. alt=""
  367. />
  368. </div>
  369. <div class="lastText">权限</div>
  370. </div>
  371. <div
  372. class="returnBtn1 returnIcon"
  373. @click.stop="
  374. goTo(
  375. '/courseDetail?userid=' +
  376. userid +
  377. '&oid=' +
  378. oid +
  379. '&org=' +
  380. org +
  381. '&cid=' +
  382. classId +
  383. '&courseId=' +
  384. id +
  385. '&tType=' +
  386. tType +
  387. '&screenType=' +
  388. screenType
  389. )
  390. "
  391. >
  392. <div class="lastImg">
  393. <img src="../../assets/icon/newIcon/return.png" alt="" />
  394. </div>
  395. <div class="lastText" style="color: #000">返回</div>
  396. </div>
  397. </div>
  398. <!-- <div
  399. class="returnBtn lockIcon"
  400. @click="juriVisible = true"
  401. v-if="tType == 1"
  402. >
  403. 权限
  404. </div>
  405. <div
  406. class="returnBtn vedioIcon"
  407. @click="startRecording"
  408. v-if="!videoStart && (tType == 1 || tType == 4)"
  409. >
  410. 录制
  411. </div>
  412. <div
  413. class="returnBtn"
  414. @click="stopRecording"
  415. v-else-if="tType == 1 || tType == 4"
  416. style="background: #ee5255"
  417. >
  418. 下载
  419. </div>
  420. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  421. 评论
  422. </div>
  423. <div
  424. class="returnBtn"
  425. @click="nextOrpreSteps(0)"
  426. v-if="!(IsFollow && tType == 2)"
  427. >
  428. 上一步
  429. </div>
  430. <div
  431. class="returnBtn"
  432. @click="nextOrpreSteps(1)"
  433. v-if="!(IsFollow && tType == 2)"
  434. >
  435. 下一步
  436. </div>
  437. <div class="returnBtn" @click="refreshCourse">刷新</div>
  438. <div
  439. class="returnBtn returnIcon"
  440. @click.stop="
  441. goTo(
  442. '/courseDetail?userid=' +
  443. userid +
  444. '&oid=' +
  445. oid +
  446. '&org=' +
  447. org +
  448. '&cid=' +
  449. classId +
  450. '&courseId=' +
  451. id +
  452. '&tType=' +
  453. tType +
  454. '&screenType=' +
  455. screenType
  456. )
  457. "
  458. >
  459. 返回
  460. </div> -->
  461. </div>
  462. </div>
  463. <div
  464. class="isNoMessage"
  465. v-if="
  466. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .chapterData.length == 0 &&
  468. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  469. .toolChoose[0].tool.length == 0 &&
  470. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  471. .taskDetail == '' &&
  472. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  473. .eList &&
  474. !(
  475. courseDetail.userid == userid ||
  476. (courseDetail.course_teacher &&
  477. courseDetail.course_teacher.indexOf(userid) != -1)
  478. )
  479. "
  480. >
  481. <img src="../../assets/icon/isNoMessage.png" alt />
  482. </div>
  483. <div class="study_top" :class="{ pzClass: pzDialog }">
  484. <div
  485. class="vedioBox"
  486. v-if="
  487. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  488. .taskDetail != '' ||
  489. vChapterData[taskCount].length > 0 ||
  490. fileC[taskCount].length > 0
  491. "
  492. style="border-radius: 0 0 20px 20px"
  493. >
  494. <div
  495. class="taskBox"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail != ''
  499. "
  500. >
  501. <div
  502. style="
  503. display: flex;
  504. flex-wrap: nowrap;
  505. flex-direction: column;
  506. position: relative;
  507. "
  508. >
  509. <div
  510. style="
  511. padding: 15px 0;
  512. line-height: 29px;
  513. font-size: 18px;
  514. color: #0e1e33;
  515. "
  516. class="cont"
  517. v-if="
  518. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  519. .taskDetail != ''
  520. "
  521. v-html="
  522. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  523. .taskDetail
  524. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  525. taskCount
  526. ].taskDetail
  527. : '暂无描述'
  528. "
  529. ></div>
  530. </div>
  531. </div>
  532. <div
  533. class="student_head"
  534. v-if="
  535. vChapterData[taskCount].length > 0 ||
  536. fileC[taskCount].length > 0
  537. "
  538. >
  539. <div
  540. class="vedioTaskBox"
  541. v-loading="downLoading || showType == 7"
  542. >
  543. <div
  544. :class="
  545. contentDialog == false
  546. ? 'box_course isContentCss'
  547. : 'box_course'
  548. "
  549. v-if="
  550. vChapterData.length > 0 &&
  551. vChapterData[taskCount] &&
  552. showType !== ''
  553. "
  554. >
  555. <div class="wheel" style="height: auto" v-if="showType === 0">
  556. <div
  557. class="workd_media"
  558. style="height: 650px; width: calc(100% - 50px)"
  559. >
  560. <video-player
  561. class="video-player vjs-custom-skin"
  562. :class="contentDialog == false ? 'isAllWidth' : ''"
  563. :playsinline="true"
  564. :options="playerO[taskCount]"
  565. @play="onPlayerPlay($event)"
  566. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  567. ></video-player>
  568. </div>
  569. </div>
  570. <div
  571. class="wheel"
  572. v-if="showType == 1"
  573. style="
  574. box-shadow: 0 0 6px 1px #f2f2f2;
  575. width: 95%;
  576. margin: 0 auto;
  577. background: #f1f1f1;
  578. "
  579. >
  580. <div class="title">查看文档</div>
  581. <el-form class="textBox">
  582. <el-form-item class="textTitle">
  583. <div style="font-size: 22px">
  584. {{ text.name }}
  585. </div>
  586. </el-form-item>
  587. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  588. <div v-html="text.url" class="textContent cont"></div>
  589. </el-form>
  590. </div>
  591. <div
  592. class="wheel"
  593. v-if="
  594. pptImgUrl1.indexOf(
  595. 'https://view.officeapps.live.com/op/view.aspx?src='
  596. ) != -1 && showType == 2
  597. "
  598. style="width: 95%; margin: 0 auto"
  599. >
  600. <iframe
  601. style="width: 100%; height: 100%; border: none"
  602. :src="pptImgUrl1"
  603. ></iframe>
  604. </div>
  605. <div
  606. class="wheel"
  607. v-else-if="showType == 2"
  608. style="width: 95%; margin: 0 auto"
  609. >
  610. <iframe
  611. style="width: 100%; height: 100%; border: none"
  612. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  613. :key="diffKey"
  614. v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
  615. :src="pptImgUrl1"
  616. ></iframe>
  617. <iframe
  618. style="width: 100%; height: 100%; border: none"
  619. security="restricted"
  620. v-else
  621. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  622. :src="pptImgUrl1"
  623. ></iframe>
  624. </div>
  625. <div
  626. class="wheel"
  627. v-if="showType == 3"
  628. style="width: 95%; margin: 0 auto"
  629. >
  630. <pdf
  631. :pdfUrl="pptImgUrl1"
  632. style="width: 100%; height: 100%; overflow: auto"
  633. ></pdf>
  634. </div>
  635. <div
  636. class="wheel"
  637. v-if="showType == 4"
  638. style="width: 95%; margin: 0 auto"
  639. >
  640. <el-image
  641. :src="pptImgUrl1"
  642. fit="contain"
  643. style="width: 100%; height: 100%; cursor: pointer"
  644. @click="previewImg(pptImgUrl1)"
  645. ></el-image>
  646. </div>
  647. </div>
  648. <div
  649. class="pButton"
  650. style="position: absolute; right: 20px; top: 0; z-index: 998"
  651. v-if="!contentDialog"
  652. @click="setContent(true)"
  653. >
  654. <!-- 批 -->
  655. <img
  656. src="../../assets/icon/newIcons/isLeft.png"
  657. style="width: 45px"
  658. alt=""
  659. />
  660. </div>
  661. <div
  662. v-if="contentDialog == true"
  663. :style="{
  664. width:
  665. (vChapterData[taskCount].length > 0 ||
  666. fileC[taskCount].length > 0) &&
  667. showType === ''
  668. ? 'calc(100%)'
  669. : '300px',
  670. margin:
  671. (vChapterData[taskCount].length > 0 ||
  672. fileC[taskCount].length > 0) &&
  673. showType === ''
  674. ? '0 15px'
  675. : '0 15px 0 0'
  676. }"
  677. >
  678. <div
  679. class="vedioList"
  680. v-if="
  681. vChapterData[taskCount].length > 0 ||
  682. fileC[taskCount].length > 0
  683. "
  684. style="height: 650px"
  685. >
  686. <div class="navCorOpenBox">
  687. <div class="navTitile">内容列表:</div>
  688. <div class="navCorOpen" @click="setContent(false)">
  689. <img
  690. src="../../assets/icon/newIcons/isRight.png"
  691. alt=""
  692. />
  693. </div>
  694. </div>
  695. <div class="navBox">
  696. <div
  697. v-show="
  698. vChapterData[taskCount].length > 0 ||
  699. fileC[taskCount].length > 0
  700. "
  701. style="padding: 10px 0 25px 0"
  702. >
  703. <div
  704. class="vedioTimeBox"
  705. v-for="(vitem, vindex) in vChapterData[taskCount]"
  706. :key="vindex + '1'"
  707. >
  708. <div class="navListItem" v-if="vitem.type == 2">
  709. <div
  710. @click="lookVedio(vitem.url, vindex)"
  711. class="navText"
  712. :class="isClickNav == vindex ? 'isClickNav' : ''"
  713. >
  714. <span v-if="vitem.text">{{ vitem.text }}-</span
  715. >{{ vitem.name }}
  716. </div>
  717. <div class="downIcon" @click="downloadFile2(vitem)">
  718. <img
  719. src="../../assets/icon/newIcon/down.png"
  720. alt
  721. />
  722. </div>
  723. </div>
  724. <div class="navListItem" v-if="vitem.type == 6">
  725. <div
  726. @click="lookText(taskCount, vindex)"
  727. class="navText"
  728. :class="isClickNav == vindex ? 'isClickNav' : ''"
  729. >
  730. {{ vitem.name }}.doc
  731. </div>
  732. <div
  733. class="downIcon"
  734. @click="checkFileFull1(vitem.type, vitem)"
  735. >
  736. <img
  737. src="../../assets/icon/newIcon/allScreen.png"
  738. alt
  739. />
  740. </div>
  741. </div>
  742. <div
  743. class="navListItem"
  744. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  745. >
  746. <div
  747. @click="doUrl(vitem.url, vindex)"
  748. class="navText"
  749. :class="isClickNav == vindex ? 'isClickNav' : ''"
  750. >
  751. {{ vitem.title ? vitem.title : vitem.url }}
  752. </div>
  753. <div
  754. class="downIcon"
  755. @click="checkFileFull1(vitem.type, vitem)"
  756. >
  757. <img
  758. src="../../assets/icon/newIcon/allScreen.png"
  759. alt
  760. />
  761. </div>
  762. </div>
  763. <div class="navListItem" v-if="vitem.type == 3">
  764. <div
  765. @click="downFile(vitem, vindex)"
  766. class="navText"
  767. :class="isClickNav == vindex ? 'isClickNav' : ''"
  768. >
  769. <span v-if="vitem.text">{{ vitem.text }}-</span
  770. >{{ vitem.name }}
  771. </div>
  772. <div
  773. class="downIcon"
  774. @click="checkFileFull1(vitem.type, vitem)"
  775. >
  776. <img
  777. src="../../assets/icon/newIcon/allScreen.png"
  778. alt
  779. />
  780. </div>
  781. <div class="downIcon" @click="downloadFile2(vitem)">
  782. <img
  783. src="../../assets/icon/newIcon/down.png"
  784. alt
  785. />
  786. </div>
  787. </div>
  788. <div class="navListItem" v-if="vitem.type == 12">
  789. <div class="navText" @click="downloadFile2(vitem)">
  790. <span v-if="vitem.text">{{ vitem.text }}-</span
  791. >{{ vitem.name }}
  792. </div>
  793. <div
  794. class="downIcon"
  795. @click="checkFileFull1(vitem.type, vitem)"
  796. >
  797. <img
  798. src="../../assets/icon/newIcon/allScreen.png"
  799. alt
  800. />
  801. </div>
  802. <div class="downIcon" @click="downloadFile2(vitem)">
  803. <img
  804. src="../../assets/icon/newIcon/down.png"
  805. alt
  806. />
  807. </div>
  808. </div>
  809. <div class="navListItem" v-if="vitem.type == 13">
  810. <div
  811. class="navText"
  812. @click="checkPhoto(vitem, vindex)"
  813. :class="isClickNav == vindex ? 'isClickNav' : ''"
  814. >
  815. {{ vitem.name }}
  816. </div>
  817. <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div>
  823. </div>
  824. </div>
  825. <div
  826. class="fileC_box"
  827. v-if="fileC[taskCount].length > 0"
  828. >
  829. <div class="fileC_title">以下文件不支持预览</div>
  830. <div
  831. class="vedioTimeBox"
  832. v-for="(vitem, vindex) in fileC[taskCount]"
  833. :key="vindex + '1'"
  834. >
  835. <div class="navListItem" v-if="vitem.type == 12">
  836. <div class="navText" style="color: #acb4bf">
  837. <span v-if="vitem.text">{{ vitem.text }}-</span
  838. >{{ vitem.name }}
  839. </div>
  840. <div
  841. class="downIcon"
  842. @click="downloadFile2(vitem)"
  843. >
  844. <img
  845. src="../../assets/icon/newIcon/down.png"
  846. alt
  847. />
  848. </div>
  849. </div>
  850. </div>
  851. </div>
  852. </div>
  853. </div>
  854. </div>
  855. </div>
  856. </div>
  857. <div style="width: calc(100% - 315px)">
  858. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  859. <!-- <el-button
  860. type="primary"
  861. class="newButton"
  862. @click="checkFileFull(showType, pptImgUrl1)"
  863. >全屏查看</el-button
  864. >
  865. <el-button
  866. type="primary"
  867. class="newButton"
  868. @click="downloadFile(pptImgUrl1)"
  869. v-if="showType != 2"
  870. >文件下载</el-button
  871. > -->
  872. <el-button
  873. class="newButton"
  874. v-if="
  875. showType == 2 &&
  876. pptImgUrl1.indexOf(
  877. 'https://view.officeapps.live.com/op/view.aspx?src='
  878. ) == -1
  879. "
  880. type="primary"
  881. @click="openLine(pptImgUrl1)"
  882. >打开链接
  883. </el-button>
  884. </div>
  885. <!-- <div
  886. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  887. v-if="showType == 1"
  888. >
  889. <el-button
  890. type="primary"
  891. class="newButton"
  892. @click="checkFileFull(showType, text)"
  893. >全屏查看</el-button
  894. >
  895. </div> -->
  896. </div>
  897. </div>
  898. </div>
  899. <div class="student_body" v-resize="resize">
  900. <div
  901. class="vedioBox"
  902. :style="{
  903. borderRadius:
  904. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  905. .taskDetail == '' &&
  906. vChapterData[taskCount].length == 0 &&
  907. fileC[taskCount].length == 0
  908. ? '0 0 20px 20px'
  909. : '20px'
  910. }"
  911. v-if="
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .toolChoose[0].tool &&
  914. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  915. .toolChoose[0].tool.length > 0
  916. "
  917. >
  918. <div
  919. class="toolHeng2"
  920. style="position: relative"
  921. v-if="
  922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  923. .toolChoose[0].tool &&
  924. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  925. .toolChoose[0].tool.length &&
  926. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  927. .toolChoose[0].tool.length > 0
  928. "
  929. >
  930. <div class="workNav">工作区</div>
  931. <div
  932. class="filebox"
  933. style="flex-wrap: nowrap"
  934. v-for="(tool, toolIndex) in chapInfoList[courseType]
  935. .chapterInfo[0].taskJson[taskCount].toolChoose"
  936. :key="toolIndex"
  937. >
  938. <div class="bzBox">
  939. <div class="yCss"></div>
  940. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  941. 工具{{ toolIndex + 1 }}
  942. </div>
  943. <div
  944. v-if="timeWorkList[toolIndex].length > 0"
  945. style="margin: 0 0 0 10px"
  946. >
  947. {{
  948. timeWorkList[toolIndex][0].time
  949. ? "时间:" + timeWorkList[toolIndex][0].time
  950. : ""
  951. }}
  952. </div>
  953. </div>
  954. <div class="toolBox">
  955. <div>
  956. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  957. :key="indexTool"-->
  958. <!-- <div class="iframeBox">
  959. <div
  960. class="addPoint isBorder"
  961. v-for="(tooC, toolCIndex) in tool.tool"
  962. :key="toolCIndex"
  963. >
  964. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  965. <div
  966. class="iframeName"
  967. >
  968. 电子白板
  969. </div>
  970. <iframe
  971. src="https://iwb.cocorobo.cn/"
  972. ref="whiteBoard"
  973. ></iframe>
  974. </div>
  975. </div>
  976. </div>-->
  977. <div class="noiframeBox">
  978. <div
  979. class="addPoint"
  980. v-for="(tooC, toolCIndex) in tool.tool"
  981. :key="toolCIndex"
  982. >
  983. <div v-if="tooC == 1">
  984. <img
  985. src="../../assets/icon/secondToolList/whiteBoard.png"
  986. alt
  987. @click="addTools(tooC, toolIndex, taskCount)"
  988. />
  989. <div style="margin: 5px 0">电子白板</div>
  990. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  991. style="position: absolute;right: 33px;top: -30px;">
  992. 分析
  993. </div>
  994. </div>
  995. <div v-if="tooC == 3">
  996. <img
  997. src="../../assets/icon/secondToolList/mindMapping.png"
  998. alt
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. />
  1001. <div style="margin: 5px 0">思维导图</div>
  1002. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1003. style="position: absolute;right: 33px;top: -30px;">
  1004. 分析
  1005. </div>
  1006. </div>
  1007. <div v-if="tooC == 6">
  1008. <img
  1009. src="../../assets/icon/secondToolList/doc.png"
  1010. alt
  1011. @click="addTools(tooC, toolIndex, taskCount)"
  1012. />
  1013. <div style="margin: 5px 0">协同文档</div>
  1014. </div>
  1015. <div v-if="tooC == 7">
  1016. <img
  1017. src="../../assets/icon/secondToolList/mindNetwork.png"
  1018. alt
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. />
  1021. <div style="margin: 5px 0">思维网格</div>
  1022. <!-- && worksStudent[toolIndex].length>0 -->
  1023. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1024. style="position: absolute;right: 33px;top: -30px;">
  1025. 分析
  1026. </div>
  1027. </div>
  1028. <div v-if="tooC == 8">
  1029. <img
  1030. src="../../assets/icon/secondToolList/library.png"
  1031. alt
  1032. @click="addTools(tooC, toolIndex, taskCount)"
  1033. />
  1034. <div style="margin: 5px 0">素材库</div>
  1035. </div>
  1036. <div v-if="tooC == 17">
  1037. <img
  1038. src="../../assets/icon/secondToolList/library.png"
  1039. alt
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. />
  1042. <div style="margin: 5px 0">学习资料</div>
  1043. </div>
  1044. <div v-if="tooC == 2">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/secondToolList/note.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">便签</div>
  1051. </div>
  1052. <div v-if="tooC == 4">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../assets/icon/thirdToolList/ask.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">问卷调查</div>
  1059. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1060. style="position: absolute;right: 153px;top: -30px;">
  1061. 分析
  1062. </div>
  1063. <div
  1064. class="upload_toolBtn"
  1065. v-if="tType === '1'"
  1066. @click="
  1067. openStatisticalAnalysis(
  1068. tooC,
  1069. toolIndex,
  1070. taskCount,
  1071. 45
  1072. )
  1073. "
  1074. style="position: absolute;right: 33px;top: -30px;"
  1075. >
  1076. 统计分析
  1077. </div>
  1078. </div>
  1079. <div v-if="tooC == 45">
  1080. <img
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. src="../../assets/icon/thirdToolList/choose.png"
  1083. alt
  1084. />
  1085. <div style="margin: 5px 0">选择题</div>
  1086. <div
  1087. class="upload_toolBtn"
  1088. @click="
  1089. openChoseWorksDetailDialog(
  1090. tooC,
  1091. toolIndex,
  1092. taskCount,
  1093. 45
  1094. )
  1095. "
  1096. style="position: absolute;right: 33px;top: -30px;"
  1097. >
  1098. 分析
  1099. </div>
  1100. </div>
  1101. <!-- <div v-if="tooC == 5">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/thirdToolList/score.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">量规评分</div>
  1108. </div> -->
  1109. <div v-if="tooC == 10">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../../assets/icon/thirdToolList/time.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">倒计时</div>
  1116. </div>
  1117. <div v-if="tooC == 15">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/thirdToolList/answer.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">问答</div>
  1124. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1125. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1126. 分析
  1127. </div>
  1128. </div>
  1129. <div v-if="tooC == 26">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/thirdToolList/courseDesign.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">课程设计</div>
  1136. </div>
  1137. <div v-if="tooC == 18">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">训练服务器</div>
  1144. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1145. style="position: absolute;right: 33px;top: -30px;">
  1146. 分析
  1147. </div>
  1148. </div>
  1149. <div v-if="tooC == 16">
  1150. <img
  1151. @click="addTools(tooC, toolIndex, taskCount)"
  1152. src="../../assets/icon/thirdToolList/work.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">作业提交</div>
  1156. </div>
  1157. <div v-if="tooC == 50">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/thirdToolList/plwork.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">批量上传</div>
  1164. </div>
  1165. <div v-if="tooC == 21">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/fourthToolList/program.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">AIoT Blockly</div>
  1172. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1173. style="position: absolute;right: 33px;top: -30px;">
  1174. 分析
  1175. </div>
  1176. </div>
  1177. <!-- <div v-if="tooC == 22">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../../assets/icon/fourthToolList/program.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">AI体验</div>
  1184. </div> -->
  1185. <div v-if="tooC == 23">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">AI Python</div>
  1192. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1193. style="position: absolute;right: 33px;top: -30px;">
  1194. 分析
  1195. </div>
  1196. </div>
  1197. <div v-if="tooC == 24">
  1198. <img
  1199. @click="addTools(tooC, toolIndex, taskCount)"
  1200. src="../../assets/icon/fourthToolList/AIprogram.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">AI Blockly</div>
  1204. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1205. style="position: absolute;right: 33px;top: -30px;">
  1206. 分析
  1207. </div>
  1208. </div>
  1209. <div v-if="tooC == 25">
  1210. <img
  1211. @click="addTools(tooC, toolIndex, taskCount)"
  1212. src="../../assets/icon/thirdToolList/evalua.png"
  1213. alt
  1214. />
  1215. <div style="margin: 5px 0">目标管理</div>
  1216. </div>
  1217. <div v-if="tooC == 31">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../../assets/icon/secondToolList/networkPanel.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">数学画板</div>
  1224. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1225. style="position: absolute;right: 33px;top: -30px;">
  1226. 分析
  1227. </div>
  1228. </div>
  1229. <div v-if="tooC == 28">
  1230. <img
  1231. @click="addTools(tooC, toolIndex, taskCount)"
  1232. src="../../assets/icon/secondToolList/translation.png"
  1233. alt
  1234. />
  1235. <div style="margin: 5px 0">翻译</div>
  1236. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1237. style="position: absolute;right: 33px;top: -30px;">
  1238. 分析
  1239. </div>
  1240. </div>
  1241. <div v-if="tooC == 37">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../../assets/icon/secondToolList/mohe.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">魔盒识字</div>
  1248. </div>
  1249. <div v-if="tooC == 38">
  1250. <img
  1251. @click="addTools(tooC, toolIndex, taskCount)"
  1252. src="../../assets/icon/secondToolList/24game.png"
  1253. alt
  1254. />
  1255. <div style="margin: 5px 0">24点</div>
  1256. </div>
  1257. <div v-if="tooC == 39">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../../assets/icon/secondToolList/GeoGebra.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">GeoGebra</div>
  1264. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1265. style="position: absolute;right: 33px;top: -30px;">
  1266. 分析
  1267. </div>
  1268. </div>
  1269. <div v-if="tooC == 32">
  1270. <img
  1271. @click="addTools(tooC, toolIndex, taskCount)"
  1272. src="../../assets/icon/thirdToolList/code.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">源码编辑</div>
  1276. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1277. style="position: absolute;right: 153px;top: -42px;">
  1278. 分析
  1279. </div>
  1280. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1281. style="position: absolute;left: 110px;bottom: 30px;">
  1282. 上传文件
  1283. <input type="file" accept="*" style="display: none"
  1284. @change="beforeUpload1($event, 7, toolIndex)" />
  1285. </div> -->
  1286. </div>
  1287. <div v-if="tooC == 40">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../../assets/icon/secondToolList/eval.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">个人评价</div>
  1294. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1295. style="position: absolute;right: 33px;top: -30px;">
  1296. 分析
  1297. </div>
  1298. </div>
  1299. <div v-if="tooC == 41">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/thirdToolList/select.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">选择匹配</div>
  1306. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1307. style="position: absolute;right: 33px;top: -30px;">
  1308. 分析
  1309. </div>
  1310. </div>
  1311. <div v-if="tooC == 44">
  1312. <img
  1313. @click="addTools(tooC, toolIndex, taskCount)"
  1314. src="../../assets/icon/thirdToolList/hanClass.png"
  1315. alt
  1316. />
  1317. <div style="margin: 5px 0">汉字宫</div>
  1318. </div>
  1319. <div v-if="tooC == 47">
  1320. <img
  1321. @click="addTools(tooC, toolIndex, taskCount)"
  1322. src="../../assets/icon/fourthToolList/conSentences.png"
  1323. alt
  1324. />
  1325. <div style="margin: 5px 0">排序</div>
  1326. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1327. style="position: absolute;right: 33px;top: -30px;">
  1328. 分析
  1329. </div>
  1330. </div>
  1331. <div v-if="tooC == 48">
  1332. <img
  1333. @click="addTools(tooC, toolIndex, taskCount)"
  1334. src="../../assets/icon/fourthToolList/table.png"
  1335. alt
  1336. />
  1337. <div style="margin: 5px 0">表格</div>
  1338. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1339. style="position: absolute;right: 33px;top: -30px;">
  1340. 分析
  1341. </div>
  1342. </div>
  1343. <div v-if="tooC == 52">
  1344. <img
  1345. @click="addTools(tooC, toolIndex, taskCount)"
  1346. src="../../assets/icon/fourthToolList/text.png"
  1347. alt
  1348. />
  1349. <div style="margin: 5px 0">文档</div>
  1350. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1351. style="position: absolute;right: 33px;top: -30px;">
  1352. 分析
  1353. </div>
  1354. </div>
  1355. <div v-if="tooC == 49">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../../assets/icon/fourthToolList/group.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">学生分组</div>
  1362. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1363. style="position: absolute;right: 33px;top: -30px;">
  1364. 分析
  1365. </div>
  1366. </div>
  1367. <div v-if="tooC == 57">
  1368. <img
  1369. @click="addTools(tooC, toolIndex, taskCount)"
  1370. src="../../assets/icon/fourthToolList/cocopi.png"
  1371. alt
  1372. />
  1373. <div style="margin: 5px 0">CocoPi</div>
  1374. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1375. style="position: absolute;right: 33px;top: -30px;">
  1376. 分析
  1377. </div>
  1378. </div>
  1379. <div v-if="tooC == 58">
  1380. <img
  1381. @click="addTools(tooC, toolIndex, taskCount)"
  1382. src="../../assets/icon/fourthToolList/car.png"
  1383. alt
  1384. />
  1385. <div style="margin: 5px 0">模拟驾驶</div>
  1386. </div>
  1387. <div v-if="tooC == 59">
  1388. <img
  1389. @click="addTools(tooC, toolIndex, taskCount)"
  1390. src="../../assets/icon/fourthToolList/lineSearch.png"
  1391. alt
  1392. />
  1393. <div style="margin: 5px 0">路径搜索</div>
  1394. </div>
  1395. <div v-if="tooC == 60">
  1396. <img
  1397. @click="addTools(tooC, toolIndex, taskCount)"
  1398. src="../../assets/icon/fourthToolList/deepLearning.png"
  1399. alt
  1400. />
  1401. <div style="margin: 5px 0">深度学习</div>
  1402. </div>
  1403. <div v-if="tooC == 61">
  1404. <img
  1405. @click="addTools(tooC, toolIndex, taskCount)"
  1406. src="../../assets/icon/fourthToolList/allHistory.png"
  1407. alt
  1408. />
  1409. <div style="margin: 5px 0">全历史</div>
  1410. </div>
  1411. <div v-if="tooC == 62">
  1412. <img
  1413. @click="addTools(tooC, toolIndex, taskCount)"
  1414. src="../../assets/icon/fourthToolList/interVideo.png"
  1415. alt
  1416. />
  1417. <div style="margin: 5px 0">交互视频</div>
  1418. </div>
  1419. <div v-if="tooC == 63">
  1420. <img
  1421. @click="addTools(tooC, toolIndex, taskCount)"
  1422. src="../../assets/icon/fourthToolList/Wood.png"
  1423. alt
  1424. />
  1425. <div style="margin: 5px 0">海龟编程</div>
  1426. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1427. style="position: absolute;right: 33px;top: -30px;">
  1428. 分析
  1429. </div>
  1430. </div>
  1431. <div v-if="tooC == 71">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/fourthToolList/chatgpt.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">AI智能体</div>
  1438. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1439. style="position: absolute;right: 33px;top: -30px;">
  1440. 分析
  1441. </div>
  1442. </div>
  1443. <div v-if="tooC == 72">
  1444. <img
  1445. style="height: 85px;object-fit: cover;"
  1446. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1447. @click="addTools(tooC, toolIndex, taskCount)"
  1448. :src="tool.appJson.json.icon"
  1449. alt
  1450. />
  1451. <img
  1452. v-else
  1453. @click="addTools(tooC, toolIndex, taskCount)"
  1454. src="../../assets/icon/firstToolList/appStore.png"
  1455. alt
  1456. />
  1457. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1458. <!-- content to trigger tooltip here -->
  1459. <div class="Ovh">
  1460. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1461. </div>
  1462. </el-tooltip>
  1463. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1464. style="position: absolute;right: 33px;top: -30px;">
  1465. 分析
  1466. </div>
  1467. </div>
  1468. <div v-if="tooC == 65">
  1469. <img
  1470. @click="addTools(tooC, toolIndex, taskCount)"
  1471. src="../../assets/icon/firstToolList/pickPeople.png"
  1472. alt
  1473. />
  1474. <div style="margin: 5px 0">挑人</div>
  1475. </div>
  1476. <div v-if="tooC == 66">
  1477. <img
  1478. @click="addTools(tooC, toolIndex, taskCount)"
  1479. src="../../assets/icon/secondToolList/formulaEdi.png"
  1480. alt
  1481. />
  1482. <div style="margin: 5px 0">公式编辑</div>
  1483. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1484. style="position: absolute;right: 33px;top: -30px;">
  1485. 分析
  1486. </div>
  1487. </div>
  1488. <div v-if="tooC == 67">
  1489. <img
  1490. @click="addTools(tooC, toolIndex, taskCount)"
  1491. src="../../assets/icon/secondToolList/molStr.png"
  1492. alt
  1493. />
  1494. <div style="margin: 5px 0">分子结构</div>
  1495. </div>
  1496. <div v-if="tooC == 68">
  1497. <img
  1498. @click="addTools(tooC, toolIndex, taskCount)"
  1499. src="../../assets/icon/secondToolList/timeAxis.png"
  1500. alt
  1501. />
  1502. <div style="margin: 5px 0">时间轴</div>
  1503. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1504. style="position: absolute;right: 33px;top: -30px;">
  1505. 分析
  1506. </div> -->
  1507. </div>
  1508. <div v-if="tooC == 69">
  1509. <img
  1510. @click="addTools(tooC, toolIndex, taskCount)"
  1511. src="../../assets/icon/secondToolList/english.png"
  1512. alt
  1513. />
  1514. <div style="margin: 5px 0">英语写作</div>
  1515. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1516. style="position: absolute;right: 33px;top: -30px;">
  1517. 分析
  1518. </div>
  1519. </div>
  1520. <div v-if="tooC == 70">
  1521. <img
  1522. @click="addTools(tooC, toolIndex, taskCount)"
  1523. src="../../assets/icon/thirdToolList/englishVoice.png"
  1524. alt
  1525. />
  1526. <div style="margin: 5px 0">英语口语</div>
  1527. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1528. style="position: absolute;right: 33px;top: -30px;">
  1529. 分析
  1530. </div>
  1531. </div>
  1532. </div>
  1533. </div>
  1534. </div>
  1535. <div
  1536. class="tooldetail"
  1537. v-if="tool.toolDetail != ''"
  1538. :class="{
  1539. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1540. }"
  1541. >
  1542. <!-- <div class="toolTitle">工具描述</div> -->
  1543. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1544. <div
  1545. style="height:100%;"
  1546. v-html="contentConvent(tool.toolDetail)"
  1547. v-if="toolDetailIndex != toolIndex"
  1548. ></div>
  1549. <div v-else @click.stop="" style="height:100%;">
  1550. <textarea
  1551. @change="
  1552. () => {
  1553. $forceUpdate();
  1554. }
  1555. "
  1556. class="checkTextArea"
  1557. rows="3"
  1558. v-autoHeight="70"
  1559. type="text"
  1560. placeholder="请输入任务描述"
  1561. v-model="updateToolDetailInner"
  1562. ></textarea>
  1563. </div>
  1564. </div>
  1565. <el-button
  1566. type="primary"
  1567. v-if="tool.tool[0] == 32"
  1568. style="position: absolute; right: 30px; top: -45px"
  1569. @click="addImg($event)"
  1570. >上传作业<input
  1571. type="file"
  1572. accept="*"
  1573. style="display: none"
  1574. @change="beforeUpload1($event, 7, toolIndex)"
  1575. /></el-button>
  1576. <el-button
  1577. type="primary"
  1578. v-if="tool.tool[0] == 15"
  1579. style="position: absolute; right: 30px; top: -45px"
  1580. @click="openWordCloud(toolIndex)"
  1581. >生成词云</el-button
  1582. >
  1583. <el-button
  1584. type="primary"
  1585. v-if="
  1586. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1587. "
  1588. style="position: absolute; right: 30px; top: -45px"
  1589. @click="uploadWorks(toolIndex)"
  1590. >导出作业</el-button
  1591. >
  1592. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1593. position: absolute;
  1594. right: 30px;
  1595. transform: translateY(-130%);
  1596. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1597. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1598. </div>
  1599. <div
  1600. v-if="
  1601. tType &&
  1602. tType == 2 &&
  1603. !sIsOpen &&
  1604. tool.tool.indexOf(16) != -1
  1605. "
  1606. class="worksBox"
  1607. >
  1608. <div
  1609. class="zuoyeYulan"
  1610. v-if="workStudent[toolIndex].length > 0"
  1611. >
  1612. <span class="worksTitle">作业预览</span>
  1613. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1614. </div>
  1615. <div
  1616. class="worksDetailBox"
  1617. v-if="workStudent[toolIndex].length > 0"
  1618. >
  1619. <div
  1620. class="works"
  1621. style="
  1622. width: 200px;
  1623. height: 140px;
  1624. margin: 10px 10px 10px 0;
  1625. box-shadow: 0 0 6px 1px #dfdada;
  1626. "
  1627. v-for="(w, wIndex) in workStudent[toolIndex]"
  1628. :key="wIndex"
  1629. >
  1630. <div class="workImg" v-if="w.type == 0">
  1631. <img
  1632. :src="w.works"
  1633. @click="previewImg(w.works, w)"
  1634. alt
  1635. />
  1636. <div
  1637. class="answerScore"
  1638. v-if="w.score"
  1639. @click.stop="openScore(w)"
  1640. :class="{
  1641. rightW:
  1642. w.userid == userid || tType == 1 || tType == 4
  1643. }"
  1644. >
  1645. {{ JSON.parse(w.score).wScore }}分
  1646. </div>
  1647. <div
  1648. class="answerScore"
  1649. @click.stop="openScore(w)"
  1650. v-else-if="courseDetail.userid == userid"
  1651. :class="{
  1652. rightW:
  1653. w.userid == userid || tType == 1 || tType == 4
  1654. }"
  1655. >
  1656. 评分
  1657. </div>
  1658. <div
  1659. class="stuLookScore"
  1660. v-if="
  1661. w.userid == userid ||
  1662. (tType == 1 &&
  1663. courseDetail.state == 5 &&
  1664. ((chapInfoList[courseType].chapterInfo[0]
  1665. .taskJson[taskCount].eList &&
  1666. chapInfoList[courseType].chapterInfo[0]
  1667. .taskJson[taskCount].eList.length) ||
  1668. (tool.eList && tool.eList.length)))
  1669. "
  1670. >
  1671. <el-popover
  1672. placement="top"
  1673. width="318"
  1674. trigger="hover"
  1675. >
  1676. <markScore
  1677. :loading="AIloading[toolIndex][wIndex].loading"
  1678. :markScoreVisible="markScoreVisible"
  1679. :ref="`markSco${toolIndex}${wIndex}`"
  1680. @updateLoading="updateLoading"
  1681. @updateDocSco="updateDocSco"
  1682. @refreshOther="refreshOther"
  1683. @markScoreDig="markScoreDig"
  1684. :tool="tool"
  1685. :wIndex="wIndex"
  1686. :scoCon="w"
  1687. :toolIndex="toolIndex"
  1688. :key="refreshKey"
  1689. :stage="courseType"
  1690. :task="taskCount"
  1691. :scoTit="
  1692. chapInfoList[courseType].chapterInfo[0]
  1693. .taskJson[taskCount].eList
  1694. "
  1695. >
  1696. </markScore>
  1697. <div
  1698. @click="
  1699. markScoreDig2(
  1700. w.sName,
  1701. worksStudent,
  1702. w.userid,
  1703. toolIndex,
  1704. chapInfoList[courseType].chapterInfo[0]
  1705. .taskJson[taskCount].eList,
  1706. AIloading[toolIndex][wIndex].loading,
  1707. tool
  1708. )
  1709. "
  1710. slot="reference"
  1711. >
  1712. <span v-if="AIloading[toolIndex][wIndex].sco">
  1713. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1714. </span>
  1715. <span v-else>
  1716. 评分
  1717. </span>
  1718. </div>
  1719. </el-popover>
  1720. </div>
  1721. <img
  1722. class="deleteImg"
  1723. src="../../assets/deleteworks.png"
  1724. v-if="
  1725. w.userid == userid || tType == 1 || tType == 4
  1726. "
  1727. @click.stop="deleteWorks(w.wid)"
  1728. alt
  1729. />
  1730. </div>
  1731. <div class="workImg" v-if="w.type == 1">
  1732. <img :src="word" @click="openFile(w.works)" alt />
  1733. <div
  1734. class="answerScore"
  1735. v-if="w.score"
  1736. @click.stop="openScore(w)"
  1737. :class="{
  1738. rightW:
  1739. w.userid == userid || tType == 1 || tType == 4
  1740. }"
  1741. >
  1742. {{ JSON.parse(w.score).wScore }}分
  1743. </div>
  1744. <div
  1745. class="answerScore"
  1746. @click.stop="openScore(w)"
  1747. v-else-if="courseDetail.userid == userid"
  1748. :class="{
  1749. rightW:
  1750. w.userid == userid || tType == 1 || tType == 4
  1751. }"
  1752. >
  1753. 评分
  1754. </div>
  1755. <div
  1756. class="stuLookScore"
  1757. v-if="
  1758. w.userid == userid ||
  1759. (tType == 1 &&
  1760. courseDetail.state == 5 &&
  1761. ((chapInfoList[courseType].chapterInfo[0]
  1762. .taskJson[taskCount].eList &&
  1763. chapInfoList[courseType].chapterInfo[0]
  1764. .taskJson[taskCount].eList.length) ||
  1765. (tool.eList && tool.eList.length)))
  1766. "
  1767. >
  1768. <el-popover
  1769. placement="top"
  1770. width="318"
  1771. trigger="hover"
  1772. >
  1773. <markScore
  1774. :loading="AIloading[toolIndex][wIndex].loading"
  1775. :markScoreVisible="markScoreVisible"
  1776. :ref="`markSco${toolIndex}${wIndex}`"
  1777. @updateLoading="updateLoading"
  1778. @updateDocSco="updateDocSco"
  1779. @refreshOther="refreshOther"
  1780. @markScoreDig="markScoreDig"
  1781. :tool="tool"
  1782. :wIndex="wIndex"
  1783. :scoCon="w"
  1784. :toolIndex="toolIndex"
  1785. :key="refreshKey"
  1786. :stage="courseType"
  1787. :task="taskCount"
  1788. :scoTit="
  1789. chapInfoList[courseType].chapterInfo[0]
  1790. .taskJson[taskCount].eList
  1791. "
  1792. >
  1793. </markScore>
  1794. <div
  1795. @click="
  1796. markScoreDig2(
  1797. w.sName,
  1798. worksStudent,
  1799. w.userid,
  1800. toolIndex,
  1801. chapInfoList[courseType].chapterInfo[0]
  1802. .taskJson[taskCount].eList,
  1803. AIloading[toolIndex][wIndex].loading,
  1804. tool
  1805. )
  1806. "
  1807. slot="reference"
  1808. >
  1809. <span v-if="AIloading[toolIndex][wIndex].sco">
  1810. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1811. </span>
  1812. <span v-else>
  1813. 评分
  1814. </span>
  1815. </div>
  1816. </el-popover>
  1817. </div>
  1818. <img
  1819. class="deleteImg"
  1820. src="../../assets/deleteworks.png"
  1821. v-if="
  1822. w.userid == userid || tType == 1 || tType == 4
  1823. "
  1824. @click.stop="deleteWorks(w.wid)"
  1825. alt
  1826. />
  1827. </div>
  1828. <div class="workImg" v-if="w.type == 3">
  1829. <img
  1830. style="cursor: pointer"
  1831. :src="video"
  1832. @click="openVideo(w)"
  1833. alt
  1834. />
  1835. <div
  1836. class="answerScore"
  1837. v-if="w.score"
  1838. @click.stop="openScore(w)"
  1839. :class="{
  1840. rightW:
  1841. w.userid == userid || tType == 1 || tType == 4
  1842. }"
  1843. >
  1844. {{ JSON.parse(w.score).wScore }}分
  1845. </div>
  1846. <div
  1847. class="answerScore"
  1848. @click.stop="openScore(w)"
  1849. v-else-if="courseDetail.userid == userid"
  1850. :class="{
  1851. rightW:
  1852. w.userid == userid || tType == 1 || tType == 4
  1853. }"
  1854. >
  1855. 评分
  1856. </div>
  1857. <div
  1858. class="stuLookScore"
  1859. v-if="
  1860. w.userid == userid ||
  1861. (tType == 1 &&
  1862. courseDetail.state == 5 &&
  1863. ((chapInfoList[courseType].chapterInfo[0]
  1864. .taskJson[taskCount].eList &&
  1865. chapInfoList[courseType].chapterInfo[0]
  1866. .taskJson[taskCount].eList.length) ||
  1867. (tool.eList && tool.eList.length)))
  1868. "
  1869. >
  1870. <el-popover
  1871. placement="top"
  1872. width="318"
  1873. trigger="hover"
  1874. >
  1875. <markScore
  1876. :loading="AIloading[toolIndex][wIndex].loading"
  1877. :markScoreVisible="markScoreVisible"
  1878. :ref="`markSco${toolIndex}${wIndex}`"
  1879. @updateLoading="updateLoading"
  1880. @updateDocSco="updateDocSco"
  1881. @refreshOther="refreshOther"
  1882. @markScoreDig="markScoreDig"
  1883. :tool="tool"
  1884. :wIndex="wIndex"
  1885. :scoCon="w"
  1886. :toolIndex="toolIndex"
  1887. :key="refreshKey"
  1888. :stage="courseType"
  1889. :task="taskCount"
  1890. :scoTit="
  1891. chapInfoList[courseType].chapterInfo[0]
  1892. .taskJson[taskCount].eList
  1893. "
  1894. >
  1895. </markScore>
  1896. <div
  1897. @click="
  1898. markScoreDig2(
  1899. w.sName,
  1900. worksStudent,
  1901. w.userid,
  1902. toolIndex,
  1903. chapInfoList[courseType].chapterInfo[0]
  1904. .taskJson[taskCount].eList,
  1905. AIloading[toolIndex][wIndex].loading,
  1906. tool
  1907. )
  1908. "
  1909. slot="reference"
  1910. >
  1911. <span v-if="AIloading[toolIndex][wIndex].sco">
  1912. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1913. </span>
  1914. <span v-else>
  1915. 评分
  1916. </span>
  1917. </div>
  1918. </el-popover>
  1919. </div>
  1920. <img
  1921. class="deleteImg"
  1922. src="../../assets/deleteworks.png"
  1923. v-if="
  1924. w.userid == userid || tType == 1 || tType == 4
  1925. "
  1926. @click.stop="deleteWorks(w.wid)"
  1927. alt
  1928. />
  1929. </div>
  1930. <div class="workImg" v-if="w.type == 12">
  1931. <img
  1932. style="cursor: pointer"
  1933. :src="word2"
  1934. @click="downloadFile(w.works)"
  1935. alt
  1936. />
  1937. <div
  1938. class="answerScore"
  1939. v-if="w.score"
  1940. @click.stop="openScore(w)"
  1941. :class="{
  1942. rightW:
  1943. w.userid == userid || tType == 1 || tType == 4
  1944. }"
  1945. >
  1946. {{ JSON.parse(w.score).wScore }}分
  1947. </div>
  1948. <div
  1949. class="answerScore"
  1950. @click.stop="openScore(w)"
  1951. v-else-if="courseDetail.userid == userid"
  1952. :class="{
  1953. rightW:
  1954. w.userid == userid || tType == 1 || tType == 4
  1955. }"
  1956. >
  1957. 评分
  1958. </div>
  1959. <div
  1960. class="stuLookScore"
  1961. v-if="
  1962. w.userid == userid ||
  1963. (tType == 1 &&
  1964. courseDetail.state == 5 &&
  1965. ((chapInfoList[courseType].chapterInfo[0]
  1966. .taskJson[taskCount].eList &&
  1967. chapInfoList[courseType].chapterInfo[0]
  1968. .taskJson[taskCount].eList.length) ||
  1969. (tool.eList && tool.eList.length)))
  1970. "
  1971. >
  1972. <el-popover
  1973. placement="top"
  1974. width="318"
  1975. trigger="hover"
  1976. >
  1977. <markScore
  1978. :loading="AIloading[toolIndex][wIndex].loading"
  1979. :markScoreVisible="markScoreVisible"
  1980. :ref="`markSco${toolIndex}${wIndex}`"
  1981. @updateLoading="updateLoading"
  1982. @updateDocSco="updateDocSco"
  1983. @refreshOther="refreshOther"
  1984. @markScoreDig="markScoreDig"
  1985. :tool="tool"
  1986. :wIndex="wIndex"
  1987. :scoCon="w"
  1988. :toolIndex="toolIndex"
  1989. :key="refreshKey"
  1990. :stage="courseType"
  1991. :task="taskCount"
  1992. :scoTit="
  1993. chapInfoList[courseType].chapterInfo[0]
  1994. .taskJson[taskCount].eList
  1995. "
  1996. >
  1997. </markScore>
  1998. <div
  1999. @click="
  2000. markScoreDig2(
  2001. w.sName,
  2002. worksStudent,
  2003. w.userid,
  2004. toolIndex,
  2005. chapInfoList[courseType].chapterInfo[0]
  2006. .taskJson[taskCount].eList,
  2007. AIloading[toolIndex][wIndex].loading,
  2008. tool
  2009. )
  2010. "
  2011. slot="reference"
  2012. >
  2013. <span v-if="AIloading[toolIndex][wIndex].sco">
  2014. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2015. </span>
  2016. <span v-else>
  2017. 评分
  2018. </span>
  2019. </div>
  2020. </el-popover>
  2021. </div>
  2022. <img
  2023. class="deleteImg"
  2024. src="../../assets/deleteworks.png"
  2025. v-if="
  2026. w.userid == userid || tType == 1 || tType == 4
  2027. "
  2028. @click.stop="deleteWorks(w.wid)"
  2029. alt
  2030. />
  2031. </div>
  2032. <div class="worksName">
  2033. <div>{{ w.sName }}</div>
  2034. </div>
  2035. </div>
  2036. </div>
  2037. </div>
  2038. <div
  2039. v-if="
  2040. tType &&
  2041. tType == 2 &&
  2042. !sIsOpen &&
  2043. tool.tool.indexOf(32) != -1
  2044. "
  2045. class="worksBox"
  2046. >
  2047. <div
  2048. class="zuoyeYulan"
  2049. v-if="workStudent[toolIndex].length > 0"
  2050. >
  2051. <span class="worksTitle">作业预览</span>
  2052. </div>
  2053. <div
  2054. class="worksDetailBox"
  2055. v-if="workStudent[toolIndex].length > 0"
  2056. >
  2057. <div
  2058. class="works"
  2059. style="
  2060. width: 200px;
  2061. height: 140px;
  2062. margin: 10px 10px 10px 0;
  2063. box-shadow: 0 0 6px 1px #dfdada;
  2064. "
  2065. v-for="(w, wIndex) in workStudent[toolIndex]"
  2066. :key="wIndex"
  2067. >
  2068. <div class="workImg">
  2069. <img
  2070. :src="word2"
  2071. @click="downloadFile(w.works)"
  2072. alt
  2073. />
  2074. <div
  2075. class="answerScore"
  2076. v-if="w.score"
  2077. @click.stop="openScore(w)"
  2078. :class="{
  2079. rightW:
  2080. w.userid == userid || tType == 1 || tType == 4
  2081. }"
  2082. >
  2083. {{ JSON.parse(w.score).wScore }}分
  2084. </div>
  2085. <div
  2086. class="answerScore"
  2087. @click.stop="openScore(w)"
  2088. v-else-if="courseDetail.userid == userid"
  2089. :class="{
  2090. rightW:
  2091. w.userid == userid || tType == 1 || tType == 4
  2092. }"
  2093. >
  2094. 评分
  2095. </div>
  2096. <img
  2097. class="deleteImg"
  2098. src="../../assets/deleteworks.png"
  2099. v-if="
  2100. w.userid == userid || tType == 1 || tType == 4
  2101. "
  2102. @click.stop="deleteWorks(w.wid)"
  2103. alt
  2104. />
  2105. </div>
  2106. <div class="worksName">
  2107. <div>{{ w.sName }}</div>
  2108. </div>
  2109. </div>
  2110. </div>
  2111. </div>
  2112. <div
  2113. v-if="
  2114. tType &&
  2115. tType == 2 &&
  2116. !sIsOpen &&
  2117. tool.tool.indexOf(57) != -1
  2118. "
  2119. class="worksBox"
  2120. >
  2121. <div
  2122. class="zuoyeYulan"
  2123. v-if="workStudent[toolIndex].length > 0"
  2124. >
  2125. <span class="worksTitle">作业预览</span>
  2126. </div>
  2127. <div
  2128. class="worksDetailBox"
  2129. v-if="workStudent[toolIndex].length > 0"
  2130. >
  2131. <div
  2132. class="works"
  2133. style="
  2134. width: 200px;
  2135. height: 140px;
  2136. margin: 10px 10px 10px 0;
  2137. box-shadow: 0 0 6px 1px #dfdada;
  2138. "
  2139. v-for="(w, wIndex) in workStudent[toolIndex]"
  2140. :key="wIndex"
  2141. >
  2142. <div class="workImg">
  2143. <img
  2144. :src="word2"
  2145. @click="downloadFile(w.works)"
  2146. v-if="w.type == 12"
  2147. alt
  2148. />
  2149. <img
  2150. :src="word2"
  2151. @click="
  2152. openCocoPi(57, toolIndex, w.userid, w.sName)
  2153. "
  2154. v-else-if="w.type == 15"
  2155. alt
  2156. />
  2157. <div
  2158. class="answerScore"
  2159. v-if="w.score"
  2160. @click.stop="openScore(w)"
  2161. :class="{
  2162. rightW:
  2163. w.userid == userid || tType == 1 || tType == 4
  2164. }"
  2165. >
  2166. {{ JSON.parse(w.score).wScore }}分
  2167. </div>
  2168. <div
  2169. class="answerScore"
  2170. @click.stop="openScore(w)"
  2171. v-else-if="courseDetail.userid == userid"
  2172. :class="{
  2173. rightW:
  2174. w.userid == userid || tType == 1 || tType == 4
  2175. }"
  2176. >
  2177. 评分
  2178. </div>
  2179. <img
  2180. class="deleteImg"
  2181. src="../../assets/deleteworks.png"
  2182. v-if="
  2183. w.userid == userid || tType == 1 || tType == 4
  2184. "
  2185. @click.stop="deleteWorks(w.wid)"
  2186. alt
  2187. />
  2188. </div>
  2189. <div class="worksName">
  2190. <div>{{ w.sName }}</div>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. </div>
  2195. <div
  2196. v-if="
  2197. tType &&
  2198. tType == 2 &&
  2199. !sIsOpen &&
  2200. tool.tool.indexOf(4) != -1
  2201. "
  2202. class="worksBox"
  2203. >
  2204. <div
  2205. class="zuoyeYulan"
  2206. v-if="workStudent[toolIndex].length > 0"
  2207. >
  2208. <span class="worksTitle">作业预览</span>
  2209. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2210. </div>
  2211. <div
  2212. class="worksDetailBox"
  2213. v-if="workStudent[toolIndex].length > 0"
  2214. >
  2215. <div
  2216. class="isWorksName2"
  2217. v-for="(w, wIndex) in workStudent[toolIndex]"
  2218. :key="wIndex"
  2219. @click="
  2220. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2221. "
  2222. >
  2223. {{ w.sName }}
  2224. <img
  2225. class="deleteImg deleteImg2"
  2226. src="../../assets/deleteworks.png"
  2227. v-if="w.userid == userid || tType == 1 || tType == 4"
  2228. @click.stop="deleteWorks(w.wid)"
  2229. alt
  2230. />
  2231. </div>
  2232. <!-- <div
  2233. class="works"
  2234. style="
  2235. width: 200px;
  2236. height: 140px;
  2237. border-radius: 10px;
  2238. box-shadow: 0 0 6px 1px #dfdada;
  2239. overflow: hidden;
  2240. "
  2241. v-for="(w, wIndex) in workStudent[toolIndex]"
  2242. :key="wIndex"
  2243. >
  2244. <div class="workImg">
  2245. <img
  2246. src="../../assets/icon/works/noImg.png"
  2247. @click="
  2248. openTools(
  2249. 4,
  2250. toolIndex,
  2251. taskCount,
  2252. w.works,
  2253. w.sName
  2254. )
  2255. "
  2256. alt
  2257. />
  2258. </div>
  2259. <div class="worksName">
  2260. <div>{{ w.sName }}</div>
  2261. <div>{{ w.time }}</div>
  2262. </div>
  2263. </div> -->
  2264. </div>
  2265. </div>
  2266. <div
  2267. v-if="
  2268. tType &&
  2269. ((tType == 2 && sIsOpen == true) ||
  2270. tType == 1 ||
  2271. tType == 4) &&
  2272. tool.tool.indexOf(62) != -1
  2273. "
  2274. class="worksBox"
  2275. >
  2276. <div
  2277. class="zuoyeYulan"
  2278. v-if="
  2279. worksStudent.length &&
  2280. worksStudent[toolIndex].length > 0
  2281. "
  2282. >
  2283. <div class="worksTop">
  2284. <div>作业预览</div>
  2285. <div
  2286. class="corOpen"
  2287. @click="contract(toolIndex)"
  2288. v-if="
  2289. isCloseList[toolIndex].isCloseBoolean &&
  2290. isCloseList[toolIndex].isClose == 0
  2291. "
  2292. >
  2293. 折叠
  2294. </div>
  2295. <div
  2296. class="corOpen"
  2297. @click="contract(toolIndex)"
  2298. v-if="isCloseList[toolIndex].isClose == 1"
  2299. >
  2300. 展开
  2301. </div>
  2302. </div>
  2303. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2304. </div>
  2305. <div>
  2306. <div
  2307. :id="'tool-' + toolIndex"
  2308. :style="{
  2309. height:
  2310. isCloseList[toolIndex].isClose == 1
  2311. ? retrnToolHeight('tool-' + toolIndex)
  2312. : 'auto',
  2313. overflow:
  2314. isCloseList[toolIndex].isClose == 1
  2315. ? 'hidden'
  2316. : 'unset'
  2317. }"
  2318. class="worksDetailBox"
  2319. v-if="
  2320. worksStudent.length &&
  2321. worksStudent[toolIndex].length > 0
  2322. "
  2323. >
  2324. <div
  2325. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2326. :key="wIndex"
  2327. class="isWorksName2"
  2328. @click="
  2329. openTools(
  2330. 62,
  2331. toolIndex,
  2332. taskCount,
  2333. w.works,
  2334. w.sName
  2335. )
  2336. "
  2337. >
  2338. {{ w.sName }}
  2339. <img
  2340. class="deleteImg deleteImg2"
  2341. src="../../assets/deleteworks.png"
  2342. v-if="
  2343. w.userid == userid || tType == 1 || tType == 4
  2344. "
  2345. @click.stop="deleteWorks(w.wid)"
  2346. alt
  2347. />
  2348. </div>
  2349. </div>
  2350. </div>
  2351. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2352. 未提交
  2353. </div>
  2354. <div
  2355. class="noWorksS"
  2356. v-if="noWorksS && noWorksS[toolIndex].length"
  2357. >
  2358. <div
  2359. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2360. :key="sIndex"
  2361. class="noWorksName"
  2362. >
  2363. <el-tooltip
  2364. effect="dark"
  2365. :content="s.student"
  2366. placement="top"
  2367. >
  2368. <span>{{ s.student }}</span>
  2369. </el-tooltip>
  2370. </div>
  2371. </div>
  2372. </div>
  2373. <div
  2374. v-if="
  2375. tType &&
  2376. tType == 2 &&
  2377. !sIsOpen &&
  2378. tool.tool.indexOf(62) != -1
  2379. "
  2380. class="worksBox"
  2381. >
  2382. <div
  2383. class="zuoyeYulan"
  2384. v-if="workStudent[toolIndex].length > 0"
  2385. >
  2386. <span class="worksTitle">作业预览</span>
  2387. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2388. </div>
  2389. <div
  2390. class="worksDetailBox"
  2391. v-if="workStudent[toolIndex].length > 0"
  2392. >
  2393. <div
  2394. class="isWorksName2"
  2395. v-for="(w, wIndex) in workStudent[toolIndex]"
  2396. :key="wIndex"
  2397. @click="
  2398. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2399. "
  2400. >
  2401. {{ w.sName }}
  2402. <img
  2403. class="deleteImg deleteImg2"
  2404. src="../../assets/deleteworks.png"
  2405. v-if="w.userid == userid || tType == 1 || tType == 4"
  2406. @click.stop="deleteWorks(w.wid)"
  2407. alt
  2408. />
  2409. </div>
  2410. </div>
  2411. </div>
  2412. <div
  2413. v-if="
  2414. tType &&
  2415. tType == 2 &&
  2416. !sIsOpen &&
  2417. tool.tool.indexOf(45) != -1
  2418. "
  2419. class="worksBox"
  2420. >
  2421. <div
  2422. class="zuoyeYulan"
  2423. v-if="workStudent[toolIndex].length > 0"
  2424. >
  2425. <span class="worksTitle">作业预览</span>
  2426. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2427. </div>
  2428. <div
  2429. class="worksDetailBox"
  2430. v-if="workStudent[toolIndex].length > 0"
  2431. >
  2432. <div
  2433. class="isWorksName2"
  2434. v-for="(w, wIndex) in workStudent[toolIndex]"
  2435. :key="wIndex"
  2436. @click="
  2437. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2438. "
  2439. >
  2440. {{ w.sName }}
  2441. <img
  2442. class="deleteImg deleteImg2"
  2443. src="../../assets/deleteworks.png"
  2444. v-if="w.userid == userid || tType == 1 || tType == 4"
  2445. @click.stop="deleteWorks(w.wid)"
  2446. alt
  2447. />
  2448. </div>
  2449. </div>
  2450. </div>
  2451. <div
  2452. v-if="
  2453. tType &&
  2454. tType == 2 &&
  2455. !sIsOpen &&
  2456. tool.tool.indexOf(69) != -1
  2457. "
  2458. class="worksBox"
  2459. >
  2460. <div
  2461. class="zuoyeYulan"
  2462. v-if="workStudent[toolIndex].length > 0"
  2463. >
  2464. <span class="worksTitle">作业预览</span>
  2465. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2466. </div>
  2467. <div
  2468. class="worksDetailBox"
  2469. v-if="workStudent[toolIndex].length > 0"
  2470. >
  2471. <div
  2472. class="isWorksName2"
  2473. v-for="(w, wIndex) in workStudent[toolIndex]"
  2474. :key="wIndex"
  2475. @click="
  2476. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2477. "
  2478. >
  2479. {{ w.sName }}
  2480. <img
  2481. class="deleteImg deleteImg2"
  2482. src="../../assets/deleteworks.png"
  2483. v-if="w.userid == userid || tType == 1 || tType == 4"
  2484. @click.stop="deleteWorks(w.wid)"
  2485. alt
  2486. />
  2487. </div>
  2488. </div>
  2489. </div>
  2490. <div
  2491. v-if="
  2492. tType &&
  2493. tType == 2 &&
  2494. !sIsOpen &&
  2495. tool.tool.indexOf(15) != -1
  2496. "
  2497. class="worksBox"
  2498. >
  2499. <div
  2500. class="zuoyeYulan"
  2501. v-if="workStudent[toolIndex].length > 0"
  2502. >
  2503. <span class="worksTitle">作业预览</span>
  2504. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2505. </div>
  2506. <div
  2507. class="worksDetailBox"
  2508. v-if="workStudent[toolIndex].length > 0"
  2509. >
  2510. <div
  2511. class="works"
  2512. v-for="(w, wIndex) in workStudent[toolIndex]"
  2513. :key="wIndex"
  2514. >
  2515. <div class="workImg">
  2516. <!-- <img
  2517. src="../../assets/icon/works/noImg.png"
  2518. @click="openTools(15, toolIndex, taskCount, w.works)"
  2519. alt=""
  2520. />-->
  2521. <div class="answerBg">
  2522. <!-- <div>{{ w.sName }}</div> -->
  2523. <el-tooltip
  2524. class="item"
  2525. effect="light"
  2526. :content="JSON.parse(w.works)[0].answer"
  2527. placement="top"
  2528. >
  2529. <div class="answerContent">
  2530. {{ JSON.parse(w.works)[0].answer }}
  2531. </div>
  2532. </el-tooltip>
  2533. <div
  2534. class="answerScore"
  2535. v-if="w.score"
  2536. @click.stop="openScore(w)"
  2537. :class="{
  2538. rightW:
  2539. w.userid == userid || tType == 1 || tType == 4
  2540. }"
  2541. >
  2542. {{ JSON.parse(w.score).wScore }}分
  2543. </div>
  2544. <div
  2545. class="answerScore"
  2546. @click.stop="openScore(w)"
  2547. v-else-if="courseDetail.userid == userid"
  2548. :class="{
  2549. rightW:
  2550. w.userid == userid || tType == 1 || tType == 4
  2551. }"
  2552. >
  2553. 评分
  2554. </div>
  2555. <img
  2556. class="deleteImg"
  2557. src="../../assets/deleteworks.png"
  2558. v-if="
  2559. w.userid == userid || tType == 1 || tType == 4
  2560. "
  2561. @click.stop="deleteWorks(w.wid)"
  2562. alt
  2563. />
  2564. </div>
  2565. <div class="comment">
  2566. <div class="worksName">
  2567. <div>{{ w.sName }}</div>
  2568. </div>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. <div
  2575. v-if="
  2576. tType &&
  2577. tType == 2 &&
  2578. !sIsOpen &&
  2579. tool.tool.indexOf(1) != -1
  2580. "
  2581. class="worksBox"
  2582. >
  2583. <div
  2584. class="zuoyeYulan"
  2585. v-if="workStudent[toolIndex].length > 0"
  2586. >
  2587. <span class="worksTitle">作业预览</span>
  2588. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2589. </div>
  2590. <div
  2591. class="worksDetailBox"
  2592. v-if="workStudent[toolIndex].length > 0"
  2593. >
  2594. <div
  2595. class="works"
  2596. style="
  2597. width: 200px;
  2598. height: 140px;
  2599. margin: 10px 10px 10px 0;
  2600. box-shadow: 0 0 6px 1px #dfdada;
  2601. "
  2602. v-for="(w, wIndex) in workStudent[toolIndex]"
  2603. :key="wIndex"
  2604. >
  2605. <div class="workImg">
  2606. <img
  2607. :src="w.works"
  2608. @click="previewImg(w.works, w)"
  2609. alt
  2610. />
  2611. <div
  2612. class="answerScore"
  2613. v-if="w.score"
  2614. @click.stop="openScore(w)"
  2615. :class="{
  2616. rightW:
  2617. w.userid == userid || tType == 1 || tType == 4
  2618. }"
  2619. >
  2620. {{ JSON.parse(w.score).wScore }}分
  2621. </div>
  2622. <div
  2623. class="answerScore"
  2624. @click.stop="openScore(w)"
  2625. v-else-if="courseDetail.userid == userid"
  2626. :class="{
  2627. rightW:
  2628. w.userid == userid || tType == 1 || tType == 4
  2629. }"
  2630. >
  2631. 评分
  2632. </div>
  2633. <div
  2634. class="stuLookScore"
  2635. v-if="
  2636. w.userid == userid ||
  2637. (tType == 1 &&
  2638. courseDetail.state == 5 &&
  2639. ((chapInfoList[courseType].chapterInfo[0]
  2640. .taskJson[taskCount].eList &&
  2641. chapInfoList[courseType].chapterInfo[0]
  2642. .taskJson[taskCount].eList.length) ||
  2643. (tool.eList && tool.eList.length)))
  2644. "
  2645. >
  2646. <el-popover
  2647. placement="top"
  2648. width="318"
  2649. trigger="hover"
  2650. >
  2651. <markScore
  2652. :loading="AIloading[toolIndex][wIndex].loading"
  2653. :markScoreVisible="markScoreVisible"
  2654. :ref="`markSco${toolIndex}${wIndex}`"
  2655. @updateLoading="updateLoading"
  2656. @updateDocSco="updateDocSco"
  2657. @refreshOther="refreshOther"
  2658. @markScoreDig="markScoreDig"
  2659. :tool="tool"
  2660. :wIndex="wIndex"
  2661. :scoCon="w"
  2662. :toolIndex="toolIndex"
  2663. :key="refreshKey"
  2664. :stage="courseType"
  2665. :task="taskCount"
  2666. :scoTit="
  2667. chapInfoList[courseType].chapterInfo[0]
  2668. .taskJson[taskCount].eList
  2669. "
  2670. >
  2671. </markScore>
  2672. <div
  2673. @click="
  2674. markScoreDig2(
  2675. w.sName,
  2676. worksStudent,
  2677. w.userid,
  2678. toolIndex,
  2679. chapInfoList[courseType].chapterInfo[0]
  2680. .taskJson[taskCount].eList,
  2681. AIloading[toolIndex][wIndex].loading,
  2682. tool
  2683. )
  2684. "
  2685. slot="reference"
  2686. >
  2687. <span v-if="AIloading[toolIndex][wIndex].sco">
  2688. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2689. </span>
  2690. <span v-else>
  2691. 评分
  2692. </span>
  2693. </div>
  2694. </el-popover>
  2695. </div>
  2696. <img
  2697. class="deleteImg"
  2698. src="../../assets/deleteworks.png"
  2699. v-if="
  2700. w.userid == userid || tType == 1 || tType == 4
  2701. "
  2702. @click.stop="deleteWorks(w.wid)"
  2703. alt
  2704. />
  2705. </div>
  2706. <div class="worksName">
  2707. <div>{{ w.sName }}</div>
  2708. </div>
  2709. </div>
  2710. </div>
  2711. </div>
  2712. <div
  2713. v-if="
  2714. tType &&
  2715. tType == 2 &&
  2716. !sIsOpen &&
  2717. tool.tool.indexOf(3) != -1
  2718. "
  2719. class="worksBox"
  2720. >
  2721. <div
  2722. class="zuoyeYulan"
  2723. v-if="workStudent[toolIndex].length > 0"
  2724. >
  2725. <span class="worksTitle">作业预览</span>
  2726. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2727. </div>
  2728. <div
  2729. class="worksDetailBox"
  2730. v-if="workStudent[toolIndex].length > 0"
  2731. >
  2732. <div
  2733. class="works"
  2734. style="
  2735. width: 200px;
  2736. height: 140px;
  2737. margin: 10px 10px 10px 0;
  2738. box-shadow: 0 0 6px 1px #dfdada;
  2739. "
  2740. v-for="(w, wIndex) in workStudent[toolIndex]"
  2741. :key="wIndex"
  2742. >
  2743. <div class="workImg">
  2744. <img
  2745. :src="w.works"
  2746. @click="previewImg(w.works, w)"
  2747. alt
  2748. />
  2749. <div
  2750. class="answerScore"
  2751. v-if="w.score"
  2752. @click.stop="openScore(w)"
  2753. :class="{
  2754. rightW:
  2755. w.userid == userid || tType == 1 || tType == 4
  2756. }"
  2757. >
  2758. {{ JSON.parse(w.score).wScore }}分
  2759. </div>
  2760. <div
  2761. class="answerScore"
  2762. @click.stop="openScore(w)"
  2763. v-else-if="courseDetail.userid == userid"
  2764. :class="{
  2765. rightW:
  2766. w.userid == userid || tType == 1 || tType == 4
  2767. }"
  2768. >
  2769. 评分
  2770. </div>
  2771. <div
  2772. class="stuLookScore"
  2773. v-if="
  2774. w.userid == userid ||
  2775. (tType == 1 &&
  2776. courseDetail.state == 5 &&
  2777. ((chapInfoList[courseType].chapterInfo[0]
  2778. .taskJson[taskCount].eList &&
  2779. chapInfoList[courseType].chapterInfo[0]
  2780. .taskJson[taskCount].eList.length) ||
  2781. (tool.eList && tool.eList.length)))
  2782. "
  2783. >
  2784. <el-popover
  2785. placement="top"
  2786. width="318"
  2787. trigger="hover"
  2788. >
  2789. <markScore
  2790. :loading="AIloading[toolIndex][wIndex].loading"
  2791. :markScoreVisible="markScoreVisible"
  2792. :ref="`markSco${toolIndex}${wIndex}`"
  2793. @updateLoading="updateLoading"
  2794. @updateDocSco="updateDocSco"
  2795. @refreshOther="refreshOther"
  2796. @markScoreDig="markScoreDig"
  2797. :tool="tool"
  2798. :wIndex="wIndex"
  2799. :scoCon="w"
  2800. :toolIndex="toolIndex"
  2801. :key="refreshKey"
  2802. :stage="courseType"
  2803. :task="taskCount"
  2804. :scoTit="
  2805. chapInfoList[courseType].chapterInfo[0]
  2806. .taskJson[taskCount].eList
  2807. "
  2808. >
  2809. </markScore>
  2810. <div
  2811. @click="
  2812. markScoreDig2(
  2813. w.sName,
  2814. worksStudent,
  2815. w.userid,
  2816. toolIndex,
  2817. chapInfoList[courseType].chapterInfo[0]
  2818. .taskJson[taskCount].eList,
  2819. AIloading[toolIndex][wIndex].loading,
  2820. tool
  2821. )
  2822. "
  2823. slot="reference"
  2824. >
  2825. <span v-if="AIloading[toolIndex][wIndex].sco">
  2826. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2827. </span>
  2828. <span v-else>
  2829. 评分
  2830. </span>
  2831. </div>
  2832. </el-popover>
  2833. </div>
  2834. <img
  2835. class="deleteImg"
  2836. src="../../assets/deleteworks.png"
  2837. v-if="
  2838. w.userid == userid || tType == 1 || tType == 4
  2839. "
  2840. @click.stop="deleteWorks(w.wid)"
  2841. alt
  2842. />
  2843. </div>
  2844. <div class="worksName">
  2845. <div>{{ w.sName }}</div>
  2846. </div>
  2847. </div>
  2848. </div>
  2849. </div>
  2850. <div
  2851. v-if="
  2852. tType &&
  2853. tType == 2 &&
  2854. !sIsOpen &&
  2855. tool.tool.indexOf(6) != -1
  2856. "
  2857. class="worksBox"
  2858. >
  2859. <div
  2860. class="zuoyeYulan"
  2861. v-if="workStudent[toolIndex].length > 0"
  2862. >
  2863. <span class="worksTitle">作业预览</span>
  2864. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2865. </div>
  2866. <div
  2867. class="worksDetailBox"
  2868. v-if="workStudent[toolIndex].length > 0"
  2869. >
  2870. <div
  2871. class="works"
  2872. style="
  2873. width: 200px;
  2874. height: 140px;
  2875. margin: 10px 10px 10px 0;
  2876. box-shadow: 0 0 6px 1px #dfdada;
  2877. "
  2878. v-for="(w, wIndex) in workStudent[toolIndex]"
  2879. :key="wIndex"
  2880. >
  2881. <div class="workImg">
  2882. <img
  2883. :src="w.works"
  2884. @click="previewImg(w.works, w)"
  2885. alt
  2886. />
  2887. <div
  2888. class="answerScore"
  2889. v-if="w.score"
  2890. @click.stop="openScore(w)"
  2891. :class="{
  2892. rightW:
  2893. w.userid == userid || tType == 1 || tType == 4
  2894. }"
  2895. >
  2896. {{ JSON.parse(w.score).wScore }}分
  2897. </div>
  2898. <div
  2899. class="answerScore"
  2900. @click.stop="openScore(w)"
  2901. v-else-if="courseDetail.userid == userid"
  2902. :class="{
  2903. rightW:
  2904. w.userid == userid || tType == 1 || tType == 4
  2905. }"
  2906. >
  2907. 评分
  2908. </div>
  2909. <img
  2910. class="deleteImg"
  2911. src="../../assets/deleteworks.png"
  2912. v-if="
  2913. w.userid == userid || tType == 1 || tType == 4
  2914. "
  2915. @click.stop="deleteWorks(w.wid)"
  2916. alt
  2917. />
  2918. </div>
  2919. <div class="worksName">
  2920. <div>{{ w.sName }}</div>
  2921. </div>
  2922. </div>
  2923. </div>
  2924. </div>
  2925. <div
  2926. v-if="
  2927. tType &&
  2928. tType == 2 &&
  2929. !sIsOpen &&
  2930. tool.tool.indexOf(7) != -1
  2931. "
  2932. class="worksBox"
  2933. >
  2934. <div
  2935. class="zuoyeYulan"
  2936. v-if="workStudent[toolIndex].length > 0"
  2937. >
  2938. <span class="worksTitle">作业预览</span>
  2939. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2940. </div>
  2941. <div
  2942. class="worksDetailBox"
  2943. v-if="workStudent[toolIndex].length > 0"
  2944. >
  2945. <div
  2946. class="works"
  2947. style="
  2948. width: 200px;
  2949. height: 140px;
  2950. margin: 10px 10px 10px 0;
  2951. box-shadow: 0 0 6px 1px #dfdada;
  2952. "
  2953. v-for="(w, wIndex) in workStudent[toolIndex]"
  2954. :key="wIndex"
  2955. >
  2956. <div class="workImg">
  2957. <img
  2958. :src="w.works"
  2959. @click="previewImg(w.works, w)"
  2960. alt
  2961. />
  2962. <div
  2963. class="answerScore"
  2964. v-if="w.score"
  2965. @click.stop="openScore(w)"
  2966. :class="{
  2967. rightW:
  2968. w.userid == userid || tType == 1 || tType == 4
  2969. }"
  2970. >
  2971. {{ JSON.parse(w.score).wScore }}分
  2972. </div>
  2973. <div
  2974. class="answerScore"
  2975. @click.stop="openScore(w)"
  2976. v-else-if="courseDetail.userid == userid"
  2977. :class="{
  2978. rightW:
  2979. w.userid == userid || tType == 1 || tType == 4
  2980. }"
  2981. >
  2982. 评分
  2983. </div>
  2984. <div
  2985. class="stuLookScore"
  2986. v-if="
  2987. w.userid == userid ||
  2988. (tType == 1 &&
  2989. courseDetail.state == 5 &&
  2990. ((chapInfoList[courseType].chapterInfo[0]
  2991. .taskJson[taskCount].eList &&
  2992. chapInfoList[courseType].chapterInfo[0]
  2993. .taskJson[taskCount].eList.length) ||
  2994. (tool.eList && tool.eList.length)))
  2995. "
  2996. >
  2997. <el-popover
  2998. placement="top"
  2999. width="318"
  3000. trigger="hover"
  3001. >
  3002. <markScore
  3003. :loading="AIloading[toolIndex][wIndex].loading"
  3004. :markScoreVisible="markScoreVisible"
  3005. :ref="`markSco${toolIndex}${wIndex}`"
  3006. @updateLoading="updateLoading"
  3007. @updateDocSco="updateDocSco"
  3008. @refreshOther="refreshOther"
  3009. @markScoreDig="markScoreDig"
  3010. :tool="tool"
  3011. :wIndex="wIndex"
  3012. :scoCon="w"
  3013. :toolIndex="toolIndex"
  3014. :key="refreshKey"
  3015. :stage="courseType"
  3016. :task="taskCount"
  3017. :scoTit="
  3018. chapInfoList[courseType].chapterInfo[0]
  3019. .taskJson[taskCount].eList
  3020. "
  3021. >
  3022. </markScore>
  3023. <div
  3024. @click="
  3025. markScoreDig2(
  3026. w.sName,
  3027. worksStudent,
  3028. w.userid,
  3029. toolIndex,
  3030. chapInfoList[courseType].chapterInfo[0]
  3031. .taskJson[taskCount].eList,
  3032. AIloading[toolIndex][wIndex].loading,
  3033. tool
  3034. )
  3035. "
  3036. slot="reference"
  3037. >
  3038. <span v-if="AIloading[toolIndex][wIndex].sco">
  3039. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3040. </span>
  3041. <span v-else>
  3042. 评分
  3043. </span>
  3044. </div>
  3045. </el-popover>
  3046. </div>
  3047. <img
  3048. class="deleteImg"
  3049. src="../../assets/deleteworks.png"
  3050. v-if="
  3051. w.userid == userid || tType == 1 || tType == 4
  3052. "
  3053. @click.stop="deleteWorks(w.wid)"
  3054. alt
  3055. />
  3056. </div>
  3057. <div class="worksName">
  3058. <div>{{ w.sName }}</div>
  3059. </div>
  3060. </div>
  3061. </div>
  3062. </div>
  3063. <div
  3064. v-if="
  3065. tType &&
  3066. tType == 2 &&
  3067. !sIsOpen &&
  3068. tool.tool.indexOf(26) != -1
  3069. "
  3070. class="worksBox"
  3071. >
  3072. <div
  3073. class="zuoyeYulan"
  3074. v-if="workStudent[toolIndex].length > 0"
  3075. >
  3076. <span class="worksTitle">作业预览</span>
  3077. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3078. </div>
  3079. <div
  3080. class="worksDetailBox"
  3081. v-if="workStudent[toolIndex].length > 0"
  3082. >
  3083. <div
  3084. class="works"
  3085. style="
  3086. width: 200px;
  3087. height: 140px;
  3088. margin: 10px 10px 10px 0;
  3089. box-shadow: 0 0 6px 1px #dfdada;
  3090. "
  3091. v-for="(w, wIndex) in workStudent[toolIndex]"
  3092. :key="wIndex"
  3093. >
  3094. <div class="workImg">
  3095. <img
  3096. :src="w.works"
  3097. @click="previewImg(w.works, w)"
  3098. alt
  3099. />
  3100. <img
  3101. class="deleteImg"
  3102. src="../../assets/deleteworks.png"
  3103. v-if="
  3104. w.userid == userid || tType == 1 || tType == 4
  3105. "
  3106. @click.stop="deleteWorks(w.wid)"
  3107. alt
  3108. />
  3109. </div>
  3110. <div class="worksName">
  3111. <div>{{ w.sName }}</div>
  3112. </div>
  3113. </div>
  3114. </div>
  3115. </div>
  3116. <div
  3117. v-if="
  3118. tType &&
  3119. ((tType == 2 && sIsOpen == true) ||
  3120. tType == 1 ||
  3121. tType == 4) &&
  3122. tool.tool.indexOf(16) != -1
  3123. "
  3124. class="worksBox"
  3125. >
  3126. <div
  3127. class="zuoyeYulan"
  3128. style="display: flex;justify-content: space-between;align-items: center;"
  3129. v-if="
  3130. (worksStudent.length &&
  3131. worksStudent[toolIndex].length > 0) ||
  3132. (courseGroup.group && courseGroup.group.length)
  3133. "
  3134. >
  3135. <div class="worksTop">
  3136. <div>作业预览</div>
  3137. <div
  3138. class="corOpen"
  3139. @click="contract(toolIndex)"
  3140. v-if="
  3141. isCloseList[toolIndex].isCloseBoolean &&
  3142. isCloseList[toolIndex].isClose == 0
  3143. "
  3144. >
  3145. 折叠
  3146. </div>
  3147. <div
  3148. class="corOpen"
  3149. @click="contract(toolIndex)"
  3150. v-if="isCloseList[toolIndex].isClose == 1"
  3151. >
  3152. 展开
  3153. </div>
  3154. </div>
  3155. <div
  3156. style="display: flex;"
  3157. v-if="
  3158. (courseDetail.userid == userid ||
  3159. (courseDetail.course_teacher &&
  3160. courseDetail.course_teacher.indexOf(userid) !=
  3161. -1)) &&
  3162. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3163. taskCount
  3164. ].eList &&
  3165. chapInfoList[courseType].chapterInfo[0].taskJson[
  3166. taskCount
  3167. ].eList.length) ||
  3168. (tool.eList && tool.eList.length)) &&
  3169. courseDetail.state == 5
  3170. "
  3171. >
  3172. <!-- <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"> -->
  3173. <div
  3174. style="margin-right:10px"
  3175. class="ScoreBtn"
  3176. @click="
  3177. resetLoopEva(
  3178. worksStudent[toolIndex],
  3179. chapInfoList[courseType].chapterInfo[0].taskJson[
  3180. taskCount
  3181. ].eList,
  3182. courseType,
  3183. taskCount,
  3184. toolIndex,
  3185. tool.toolDetail,
  3186. worksStudent
  3187. )
  3188. "
  3189. >
  3190. 一键重置
  3191. </div>
  3192. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3193. <img
  3194. src="../../assets/icon/newIcons/rootImg.png"
  3195. alt=""
  3196. />
  3197. AI评分
  3198. </div>
  3199. <div
  3200. class="ScoreBtn"
  3201. v-else-if="!loopLoading[toolIndex].loading"
  3202. @click="
  3203. loopEva(
  3204. worksStudent[toolIndex],
  3205. chapInfoList[courseType].chapterInfo[0].taskJson[
  3206. taskCount
  3207. ].eList,
  3208. courseType,
  3209. taskCount,
  3210. toolIndex,
  3211. tool.toolDetail,
  3212. chapInfoList[courseType].chapterInfo[0].taskJson[
  3213. taskCount
  3214. ].taskDetail,
  3215. tool
  3216. )
  3217. "
  3218. >
  3219. <img
  3220. src="../../assets/icon/newIcons/rootImg.png"
  3221. alt=""
  3222. />
  3223. AI评分
  3224. </div>
  3225. <div class="ScoreBtn" v-else>
  3226. <img
  3227. src="../../assets/icon/newIcons/rootImg.png"
  3228. alt=""
  3229. />
  3230. 正在评分
  3231. </div>
  3232. </div>
  3233. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3234. </div>
  3235. <div
  3236. class="group_workBox"
  3237. v-for="(g, gindex) in courseGroup.group"
  3238. :key="gindex"
  3239. >
  3240. <div class="group_box">
  3241. <div class="group_title">
  3242. <el-tooltip
  3243. class="item"
  3244. effect="light"
  3245. :content="g.name"
  3246. placement="top"
  3247. >
  3248. <div class="group_name">{{ g.name }}</div>
  3249. </el-tooltip>
  3250. </div>
  3251. <div
  3252. class="group_work"
  3253. v-if="
  3254. g.works &&
  3255. g.works.length &&
  3256. g.works[toolIndex].length
  3257. "
  3258. >
  3259. <div
  3260. class="works"
  3261. style="
  3262. width: 200px;
  3263. height: 140px;
  3264. margin: 10px 10px 10px 0;
  3265. border-radius: 15px;
  3266. box-shadow: 0 0 6px 1px #dfdada;
  3267. "
  3268. v-for="(w, wIndex) in g.works[toolIndex]"
  3269. :key="wIndex"
  3270. :class="w.type == 1 ? 'isTypeOne' : ''"
  3271. >
  3272. <div class="workImg" v-if="w.type == 0">
  3273. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3274. <img
  3275. :src="w.works"
  3276. @click="previewImg(w.works, w)"
  3277. alt
  3278. />
  3279. <div
  3280. class="answerScore"
  3281. v-if="w.score"
  3282. @click.stop="openScore(w)"
  3283. :class="{
  3284. rightW:
  3285. w.userid == userid ||
  3286. tType == 1 ||
  3287. tType == 4 ||
  3288. w.ateacher == userid
  3289. }"
  3290. >
  3291. {{ JSON.parse(w.score).wScore }}分
  3292. </div>
  3293. <div
  3294. class="answerScore"
  3295. @click.stop="openScore(w)"
  3296. v-else-if="courseDetail.userid == userid"
  3297. :class="{
  3298. rightW:
  3299. w.userid == userid ||
  3300. tType == 1 ||
  3301. tType == 4 ||
  3302. w.ateacher == userid
  3303. }"
  3304. >
  3305. 评分
  3306. </div>
  3307. <img
  3308. class="deleteImg"
  3309. src="../../assets/deleteworks.png"
  3310. v-if="
  3311. w.userid == userid || tType == 1 || tType == 4
  3312. "
  3313. @click.stop="deleteWorks(w.wid)"
  3314. alt
  3315. />
  3316. </div>
  3317. <div class="workImg" v-if="w.type == 1">
  3318. <img :src="word" @click="openFile(w.works)" alt />
  3319. <!-- @click="openFile(w.works)" -->
  3320. <div
  3321. class="answerScore"
  3322. v-if="w.score"
  3323. @click.stop="openScore(w)"
  3324. :class="{
  3325. rightW:
  3326. w.userid == userid ||
  3327. tType == 1 ||
  3328. tType == 4 ||
  3329. w.ateacher == userid
  3330. }"
  3331. >
  3332. {{ JSON.parse(w.score).wScore }}分
  3333. </div>
  3334. <div
  3335. class="answerScore"
  3336. @click.stop="openScore(w)"
  3337. v-else-if="courseDetail.userid == userid"
  3338. :class="{
  3339. rightW:
  3340. w.userid == userid ||
  3341. tType == 1 ||
  3342. tType == 4 ||
  3343. w.ateacher == userid
  3344. }"
  3345. >
  3346. 评分
  3347. </div>
  3348. <img
  3349. class="deleteImg"
  3350. src="../../assets/deleteworks.png"
  3351. v-if="
  3352. w.userid == userid || tType == 1 || tType == 4
  3353. "
  3354. @click.stop="deleteWorks(w.wid)"
  3355. alt
  3356. />
  3357. </div>
  3358. <div class="workImg" v-if="w.type == 3">
  3359. <img
  3360. style="cursor: pointer"
  3361. :src="video"
  3362. @click="openVideo(w)"
  3363. alt
  3364. />
  3365. <!-- @click="openVideo(w.works)" -->
  3366. <div
  3367. class="answerScore"
  3368. v-if="w.score"
  3369. @click.stop="openScore(w)"
  3370. :class="{
  3371. rightW:
  3372. w.userid == userid ||
  3373. tType == 1 ||
  3374. tType == 4 ||
  3375. w.ateacher == userid
  3376. }"
  3377. >
  3378. {{ JSON.parse(w.score).wScore }}分
  3379. </div>
  3380. <div
  3381. class="answerScore"
  3382. @click.stop="openScore(w)"
  3383. v-else-if="courseDetail.userid == userid"
  3384. :class="{
  3385. rightW:
  3386. w.userid == userid ||
  3387. tType == 1 ||
  3388. tType == 4 ||
  3389. w.ateacher == userid
  3390. }"
  3391. >
  3392. 评分
  3393. </div>
  3394. <img
  3395. class="deleteImg"
  3396. src="../../assets/deleteworks.png"
  3397. v-if="
  3398. w.userid == userid || tType == 1 || tType == 4
  3399. "
  3400. @click.stop="deleteWorks(w.wid)"
  3401. alt
  3402. />
  3403. </div>
  3404. <div class="workImg" v-if="w.type == 12">
  3405. <img
  3406. style="cursor: pointer"
  3407. :src="word2"
  3408. @click="downloadFile(w.works)"
  3409. alt
  3410. />
  3411. <!-- @click="openVideo(w.works)" -->
  3412. <div
  3413. class="answerScore"
  3414. v-if="w.score"
  3415. @click.stop="openScore(w)"
  3416. :class="{
  3417. rightW:
  3418. w.userid == userid ||
  3419. tType == 1 ||
  3420. tType == 4 ||
  3421. w.ateacher == userid
  3422. }"
  3423. >
  3424. {{ JSON.parse(w.score).wScore }}分
  3425. </div>
  3426. <div
  3427. class="answerScore"
  3428. @click.stop="openScore(w)"
  3429. v-else-if="courseDetail.userid == userid"
  3430. :class="{
  3431. rightW:
  3432. w.userid == userid ||
  3433. tType == 1 ||
  3434. tType == 4 ||
  3435. w.ateacher == userid
  3436. }"
  3437. >
  3438. 评分
  3439. </div>
  3440. <img
  3441. class="deleteImg"
  3442. src="../../assets/deleteworks.png"
  3443. v-if="
  3444. w.userid == userid || tType == 1 || tType == 4
  3445. "
  3446. @click.stop="deleteWorks(w.wid)"
  3447. alt
  3448. />
  3449. </div>
  3450. <div class="comment" style="min-width: 200px">
  3451. <div class="worksName">
  3452. <div>{{ w.sName }}</div>
  3453. </div>
  3454. <div class="commentList">
  3455. <div class="commentList">
  3456. <div
  3457. class="commentImg"
  3458. @click="
  3459. isLikes(
  3460. w.wid,
  3461. userid,
  3462. 1,
  3463. null,
  3464. w.isLikes,
  3465. w.sName
  3466. )
  3467. "
  3468. >
  3469. <img
  3470. :src="w.isLikes == true ? likes : noLikes"
  3471. alt=""
  3472. />
  3473. </div>
  3474. <div>{{ w.likesCount }}</div>
  3475. </div>
  3476. <div
  3477. class="commentList"
  3478. style="margin-right: 15px"
  3479. >
  3480. <div
  3481. class="commentImg"
  3482. @click="
  3483. commentOther(
  3484. w,
  3485. toolIndex,
  3486. wIndex,
  3487. null,
  3488. g.id
  3489. )
  3490. "
  3491. >
  3492. <img
  3493. src="../../assets/icon/comment/comment.png"
  3494. alt=""
  3495. />
  3496. </div>
  3497. <div>{{ w.commentCount }}</div>
  3498. </div>
  3499. </div>
  3500. </div>
  3501. </div>
  3502. </div>
  3503. <div class="group_work" v-else>暂无提交作业</div>
  3504. </div>
  3505. </div>
  3506. <div
  3507. :id="'tool-' + toolIndex"
  3508. :style="{
  3509. height:
  3510. isCloseList[toolIndex].isClose == 1
  3511. ? retrnToolHeight('tool-' + toolIndex)
  3512. : 'auto',
  3513. overflow:
  3514. isCloseList[toolIndex].isClose == 1
  3515. ? 'hidden'
  3516. : 'unset'
  3517. }"
  3518. class="worksDetailBox"
  3519. v-if="
  3520. worksStudent.length &&
  3521. worksStudent[toolIndex].length > 0
  3522. "
  3523. >
  3524. <div
  3525. class="works"
  3526. style="
  3527. width: 200px;
  3528. height: 140px;
  3529. margin: 10px 10px 10px 0;
  3530. border-radius: 15px;
  3531. box-shadow: 0 0 6px 1px #dfdada;
  3532. "
  3533. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3534. :key="wIndex"
  3535. :class="w.type == 1 ? 'isTypeOne' : ''"
  3536. >
  3537. <div class="workImg" v-if="w.type == 0">
  3538. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3539. <img
  3540. :src="w.works"
  3541. @click="previewImg(w.works, w)"
  3542. alt
  3543. />
  3544. <div
  3545. class="answerScore"
  3546. v-if="w.score"
  3547. @click.stop="openScore(w)"
  3548. :class="{
  3549. rightW:
  3550. w.userid == userid ||
  3551. tType == 1 ||
  3552. tType == 4 ||
  3553. w.ateacher == userid
  3554. }"
  3555. >
  3556. {{ JSON.parse(w.score).wScore }}分
  3557. </div>
  3558. <div
  3559. class="answerScore"
  3560. @click.stop="openScore(w)"
  3561. v-else-if="
  3562. courseDetail.userid == userid &&
  3563. courseDetail.state != 5 &&
  3564. chapInfoList[courseType].chapterInfo[0]
  3565. .taskJson[taskCount].eList &&
  3566. chapInfoList[courseType].chapterInfo[0]
  3567. .taskJson[taskCount].eList.length
  3568. "
  3569. :class="{
  3570. rightW:
  3571. w.userid == userid ||
  3572. tType == 1 ||
  3573. tType == 4 ||
  3574. w.ateacher == userid
  3575. }"
  3576. >
  3577. 评分
  3578. </div>
  3579. <!-- <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"> -->
  3580. <div
  3581. v-else-if="
  3582. (courseDetail.userid == userid ||
  3583. (courseDetail.course_teacher &&
  3584. courseDetail.course_teacher.indexOf(userid) !=
  3585. -1) ||
  3586. (w.userid == userid && sIsOpen)) &&
  3587. courseDetail.state == 5 &&
  3588. ((chapInfoList[courseType].chapterInfo[0]
  3589. .taskJson[taskCount].eList &&
  3590. chapInfoList[courseType].chapterInfo[0]
  3591. .taskJson[taskCount].eList.length) ||
  3592. (tool.eList && tool.eList.length))
  3593. "
  3594. >
  3595. <el-popover
  3596. placement="top"
  3597. width="318"
  3598. :disabled="AIloading[toolIndex][wIndex].loading"
  3599. trigger="hover"
  3600. >
  3601. <markScore
  3602. :loading="AIloading[toolIndex][wIndex].loading"
  3603. :markScoreVisible="markScoreVisible"
  3604. :ref="`markSco${toolIndex}${wIndex}`"
  3605. @updateLoading="updateLoading"
  3606. @updateDocSco="updateDocSco"
  3607. @refreshOther="refreshOther"
  3608. @markScoreDig="markScoreDig"
  3609. :tool="tool"
  3610. :wIndex="wIndex"
  3611. :scoCon="w"
  3612. :toolIndex="toolIndex"
  3613. :key="refreshKey"
  3614. :stage="courseType"
  3615. :task="taskCount"
  3616. :scoTit="
  3617. chapInfoList[courseType].chapterInfo[0]
  3618. .taskJson[taskCount].eList
  3619. "
  3620. >
  3621. </markScore>
  3622. <div
  3623. class="answerScore"
  3624. @click="
  3625. markScoreDig2(
  3626. w.sName,
  3627. worksStudent,
  3628. w.userid,
  3629. toolIndex,
  3630. chapInfoList[courseType].chapterInfo[0]
  3631. .taskJson[taskCount].eList,
  3632. AIloading[toolIndex][wIndex].loading,
  3633. tool
  3634. )
  3635. "
  3636. slot="reference"
  3637. :class="{
  3638. rightW:
  3639. w.userid == userid ||
  3640. tType == 1 ||
  3641. tType == 4 ||
  3642. w.ateacher == userid
  3643. }"
  3644. >
  3645. <span v-if="AIloading[toolIndex][wIndex].sco">
  3646. {{
  3647. AIloading[toolIndex][wIndex].loading
  3648. ? "评分中"
  3649. : AIloading[toolIndex][wIndex].sco + "分"
  3650. }}
  3651. </span>
  3652. <span v-else>
  3653. {{
  3654. AIloading[toolIndex][wIndex].loading
  3655. ? "评分中"
  3656. : "评分"
  3657. }}
  3658. </span>
  3659. </div>
  3660. </el-popover>
  3661. </div>
  3662. <img
  3663. class="deleteImg"
  3664. src="../../assets/deleteworks.png"
  3665. v-if="
  3666. w.userid == userid || tType == 1 || tType == 4
  3667. "
  3668. @click.stop="deleteWorks(w.wid)"
  3669. alt
  3670. />
  3671. </div>
  3672. <div class="workImg" v-if="w.type == 1">
  3673. <img :src="word" @click="openFile(w.works)" alt />
  3674. <!-- @click="openFile(w.works)" -->
  3675. <div
  3676. class="answerScore"
  3677. v-if="w.score"
  3678. @click.stop="openScore(w)"
  3679. :class="{
  3680. rightW:
  3681. w.userid == userid ||
  3682. tType == 1 ||
  3683. tType == 4 ||
  3684. w.ateacher == userid
  3685. }"
  3686. >
  3687. {{ JSON.parse(w.score).wScore }}分
  3688. </div>
  3689. <div
  3690. class="answerScore"
  3691. @click.stop="openScore(w)"
  3692. v-else-if="
  3693. courseDetail.userid == userid &&
  3694. courseDetail.state != 5 &&
  3695. chapInfoList[courseType].chapterInfo[0]
  3696. .taskJson[taskCount].eList &&
  3697. chapInfoList[courseType].chapterInfo[0]
  3698. .taskJson[taskCount].eList.length
  3699. "
  3700. :class="{
  3701. rightW:
  3702. w.userid == userid ||
  3703. tType == 1 ||
  3704. tType == 4 ||
  3705. w.ateacher == userid
  3706. }"
  3707. >
  3708. 评分
  3709. </div>
  3710. <!-- <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"> -->
  3711. <div
  3712. v-else-if="
  3713. (courseDetail.userid == userid ||
  3714. (courseDetail.course_teacher &&
  3715. courseDetail.course_teacher.indexOf(userid) !=
  3716. -1) ||
  3717. (w.userid == userid && sIsOpen)) &&
  3718. courseDetail.state == 5 &&
  3719. ((chapInfoList[courseType].chapterInfo[0]
  3720. .taskJson[taskCount].eList &&
  3721. chapInfoList[courseType].chapterInfo[0]
  3722. .taskJson[taskCount].eList.length) ||
  3723. (tool.eList && tool.eList.length))
  3724. "
  3725. >
  3726. <el-popover
  3727. placement="top"
  3728. width="318"
  3729. :disabled="AIloading[toolIndex][wIndex].loading"
  3730. trigger="hover"
  3731. >
  3732. <markScore
  3733. :loading="AIloading[toolIndex][wIndex].loading"
  3734. :markScoreVisible="markScoreVisible"
  3735. :ref="`markSco${toolIndex}${wIndex}`"
  3736. @updateLoading="updateLoading"
  3737. @updateDocSco="updateDocSco"
  3738. @refreshOther="refreshOther"
  3739. @markScoreDig="markScoreDig"
  3740. :tool="tool"
  3741. :wIndex="wIndex"
  3742. :scoCon="w"
  3743. :toolIndex="toolIndex"
  3744. :key="refreshKey"
  3745. :stage="courseType"
  3746. :task="taskCount"
  3747. :scoTit="
  3748. chapInfoList[courseType].chapterInfo[0]
  3749. .taskJson[taskCount].eList
  3750. "
  3751. >
  3752. </markScore>
  3753. <div
  3754. class="answerScore"
  3755. @click="
  3756. markScoreDig2(
  3757. w.sName,
  3758. worksStudent,
  3759. w.userid,
  3760. toolIndex,
  3761. chapInfoList[courseType].chapterInfo[0]
  3762. .taskJson[taskCount].eList,
  3763. AIloading[toolIndex][wIndex].loading,
  3764. tool
  3765. )
  3766. "
  3767. slot="reference"
  3768. :class="{
  3769. rightW:
  3770. w.userid == userid ||
  3771. tType == 1 ||
  3772. tType == 4 ||
  3773. w.ateacher == userid
  3774. }"
  3775. >
  3776. <span v-if="AIloading[toolIndex][wIndex].sco">
  3777. {{
  3778. AIloading[toolIndex][wIndex].loading
  3779. ? "评分中"
  3780. : AIloading[toolIndex][wIndex].sco + "分"
  3781. }}
  3782. </span>
  3783. <span v-else>
  3784. {{
  3785. AIloading[toolIndex][wIndex].loading
  3786. ? "评分中"
  3787. : "评分"
  3788. }}
  3789. </span>
  3790. </div>
  3791. </el-popover>
  3792. </div>
  3793. <img
  3794. class="deleteImg"
  3795. src="../../assets/deleteworks.png"
  3796. v-if="
  3797. w.userid == userid || tType == 1 || tType == 4
  3798. "
  3799. @click.stop="deleteWorks(w.wid)"
  3800. alt
  3801. />
  3802. </div>
  3803. <div class="workImg" v-if="w.type == 3">
  3804. <img
  3805. style="cursor: pointer"
  3806. :src="video"
  3807. @click="openVideo(w)"
  3808. alt
  3809. />
  3810. <!-- @click="openVideo(w.works)" -->
  3811. <div
  3812. class="answerScore"
  3813. v-if="w.score"
  3814. @click.stop="openScore(w)"
  3815. :class="{
  3816. rightW:
  3817. w.userid == userid ||
  3818. tType == 1 ||
  3819. tType == 4 ||
  3820. w.ateacher == userid
  3821. }"
  3822. >
  3823. {{ JSON.parse(w.score).wScore }}分
  3824. </div>
  3825. <div
  3826. class="answerScore"
  3827. @click.stop="openScore(w)"
  3828. v-else-if="
  3829. courseDetail.userid == userid &&
  3830. courseDetail.state != 5 &&
  3831. chapInfoList[courseType].chapterInfo[0]
  3832. .taskJson[taskCount].eList &&
  3833. chapInfoList[courseType].chapterInfo[0]
  3834. .taskJson[taskCount].eList.length
  3835. "
  3836. :class="{
  3837. rightW:
  3838. w.userid == userid ||
  3839. tType == 1 ||
  3840. tType == 4 ||
  3841. w.ateacher == userid
  3842. }"
  3843. >
  3844. 评分
  3845. </div>
  3846. <!-- <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"> -->
  3847. <div
  3848. v-else-if="
  3849. (courseDetail.userid == userid ||
  3850. (courseDetail.course_teacher &&
  3851. courseDetail.course_teacher.indexOf(userid) !=
  3852. -1) ||
  3853. (w.userid == userid && sIsOpen)) &&
  3854. courseDetail.state == 5 &&
  3855. ((chapInfoList[courseType].chapterInfo[0]
  3856. .taskJson[taskCount].eList &&
  3857. chapInfoList[courseType].chapterInfo[0]
  3858. .taskJson[taskCount].eList.length) ||
  3859. (tool.eList && tool.eList.length))
  3860. "
  3861. >
  3862. <el-popover
  3863. placement="top"
  3864. width="318"
  3865. :disabled="AIloading[toolIndex][wIndex].loading"
  3866. trigger="hover"
  3867. >
  3868. <markScore
  3869. :loading="AIloading[toolIndex][wIndex].loading"
  3870. :markScoreVisible="markScoreVisible"
  3871. :ref="`markSco${toolIndex}${wIndex}`"
  3872. @updateLoading="updateLoading"
  3873. @updateDocSco="updateDocSco"
  3874. @refreshOther="refreshOther"
  3875. @markScoreDig="markScoreDig"
  3876. :tool="tool"
  3877. :wIndex="wIndex"
  3878. :scoCon="w"
  3879. :toolIndex="toolIndex"
  3880. :key="refreshKey"
  3881. :stage="courseType"
  3882. :task="taskCount"
  3883. :scoTit="
  3884. chapInfoList[courseType].chapterInfo[0]
  3885. .taskJson[taskCount].eList
  3886. "
  3887. >
  3888. </markScore>
  3889. <div
  3890. class="answerScore"
  3891. @click="
  3892. markScoreDig2(
  3893. w.sName,
  3894. worksStudent,
  3895. w.userid,
  3896. toolIndex,
  3897. chapInfoList[courseType].chapterInfo[0]
  3898. .taskJson[taskCount].eList,
  3899. AIloading[toolIndex][wIndex].loading,
  3900. tool
  3901. )
  3902. "
  3903. slot="reference"
  3904. :class="{
  3905. rightW:
  3906. w.userid == userid ||
  3907. tType == 1 ||
  3908. tType == 4 ||
  3909. w.ateacher == userid
  3910. }"
  3911. >
  3912. <span v-if="AIloading[toolIndex][wIndex].sco">
  3913. {{
  3914. AIloading[toolIndex][wIndex].loading
  3915. ? "评分中"
  3916. : AIloading[toolIndex][wIndex].sco + "分"
  3917. }}
  3918. </span>
  3919. <span v-else>
  3920. {{
  3921. AIloading[toolIndex][wIndex].loading
  3922. ? "评分中"
  3923. : "评分"
  3924. }}
  3925. </span>
  3926. </div>
  3927. </el-popover>
  3928. </div>
  3929. <img
  3930. class="deleteImg"
  3931. src="../../assets/deleteworks.png"
  3932. v-if="
  3933. w.userid == userid || tType == 1 || tType == 4
  3934. "
  3935. @click.stop="deleteWorks(w.wid)"
  3936. alt
  3937. />
  3938. </div>
  3939. <div class="workImg" v-if="w.type == 12">
  3940. <img
  3941. style="cursor: pointer"
  3942. :src="word2"
  3943. @click="downloadFile(w.works)"
  3944. alt
  3945. />
  3946. <!-- @click="openVideo(w.works)" -->
  3947. <div
  3948. class="answerScore"
  3949. v-if="w.score"
  3950. @click.stop="openScore(w)"
  3951. :class="{
  3952. rightW:
  3953. w.userid == userid ||
  3954. tType == 1 ||
  3955. tType == 4 ||
  3956. w.ateacher == userid
  3957. }"
  3958. >
  3959. {{ JSON.parse(w.score).wScore }}分
  3960. </div>
  3961. <div
  3962. class="answerScore"
  3963. @click.stop="openScore(w)"
  3964. v-else-if="
  3965. courseDetail.userid == userid &&
  3966. courseDetail.state != 5 &&
  3967. chapInfoList[courseType].chapterInfo[0]
  3968. .taskJson[taskCount].eList &&
  3969. chapInfoList[courseType].chapterInfo[0]
  3970. .taskJson[taskCount].eList.length
  3971. "
  3972. :class="{
  3973. rightW:
  3974. w.userid == userid ||
  3975. tType == 1 ||
  3976. tType == 4 ||
  3977. w.ateacher == userid
  3978. }"
  3979. >
  3980. 评分
  3981. </div>
  3982. <!-- <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"> -->
  3983. <div
  3984. v-else-if="
  3985. (courseDetail.userid == userid ||
  3986. (courseDetail.course_teacher &&
  3987. courseDetail.course_teacher.indexOf(userid) !=
  3988. -1) ||
  3989. (w.userid == userid && sIsOpen)) &&
  3990. courseDetail.state == 5 &&
  3991. ((chapInfoList[courseType].chapterInfo[0]
  3992. .taskJson[taskCount].eList &&
  3993. chapInfoList[courseType].chapterInfo[0]
  3994. .taskJson[taskCount].eList.length) ||
  3995. (tool.eList && tool.eList.length))
  3996. "
  3997. >
  3998. <el-popover
  3999. placement="top"
  4000. width="318"
  4001. :disabled="AIloading[toolIndex][wIndex].loading"
  4002. trigger="hover"
  4003. >
  4004. <markScore
  4005. :loading="AIloading[toolIndex][wIndex].loading"
  4006. :markScoreVisible="markScoreVisible"
  4007. :ref="`markSco${toolIndex}${wIndex}`"
  4008. @updateLoading="updateLoading"
  4009. @updateDocSco="updateDocSco"
  4010. @refreshOther="refreshOther"
  4011. @markScoreDig="markScoreDig"
  4012. :tool="tool"
  4013. :wIndex="wIndex"
  4014. :scoCon="w"
  4015. :toolIndex="toolIndex"
  4016. :key="refreshKey"
  4017. :stage="courseType"
  4018. :task="taskCount"
  4019. :scoTit="
  4020. chapInfoList[courseType].chapterInfo[0]
  4021. .taskJson[taskCount].eList
  4022. "
  4023. >
  4024. </markScore>
  4025. <div
  4026. class="answerScore"
  4027. @click="
  4028. markScoreDig2(
  4029. w.sName,
  4030. worksStudent,
  4031. w.userid,
  4032. toolIndex,
  4033. chapInfoList[courseType].chapterInfo[0]
  4034. .taskJson[taskCount].eList,
  4035. AIloading[toolIndex][wIndex].loading,
  4036. tool
  4037. )
  4038. "
  4039. slot="reference"
  4040. :class="{
  4041. rightW:
  4042. w.userid == userid ||
  4043. tType == 1 ||
  4044. tType == 4 ||
  4045. w.ateacher == userid
  4046. }"
  4047. >
  4048. <span v-if="AIloading[toolIndex][wIndex].sco">
  4049. {{
  4050. AIloading[toolIndex][wIndex].loading
  4051. ? "评分中"
  4052. : AIloading[toolIndex][wIndex].sco + "分"
  4053. }}
  4054. </span>
  4055. <span v-else>
  4056. {{
  4057. AIloading[toolIndex][wIndex].loading
  4058. ? "评分中"
  4059. : "评分"
  4060. }}
  4061. </span>
  4062. </div>
  4063. </el-popover>
  4064. </div>
  4065. <img
  4066. class="deleteImg"
  4067. src="../../assets/deleteworks.png"
  4068. v-if="
  4069. w.userid == userid || tType == 1 || tType == 4
  4070. "
  4071. @click.stop="deleteWorks(w.wid)"
  4072. alt
  4073. />
  4074. </div>
  4075. <div class="comment" style="min-width: 200px">
  4076. <div class="worksName">
  4077. <div>{{ w.sName }}</div>
  4078. </div>
  4079. <div class="commentList">
  4080. <div class="commentList">
  4081. <div
  4082. class="commentImg"
  4083. @click="
  4084. isLikes(
  4085. w.wid,
  4086. userid,
  4087. 1,
  4088. null,
  4089. w.isLikes,
  4090. w.sName
  4091. )
  4092. "
  4093. >
  4094. <img
  4095. :src="w.isLikes == true ? likes : noLikes"
  4096. alt=""
  4097. />
  4098. </div>
  4099. <div>{{ w.likesCount }}</div>
  4100. </div>
  4101. <div class="commentList" style="margin-right: 15px">
  4102. <div
  4103. class="commentImg"
  4104. @click="commentOther(w, toolIndex, wIndex)"
  4105. >
  4106. <img
  4107. src="../../assets/icon/comment/comment.png"
  4108. alt=""
  4109. />
  4110. </div>
  4111. <div>{{ w.commentCount }}</div>
  4112. </div>
  4113. </div>
  4114. </div>
  4115. </div>
  4116. </div>
  4117. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4118. 未提交
  4119. </div>
  4120. <div
  4121. class="noWorksS"
  4122. v-if="noWorksS && noWorksS[toolIndex].length"
  4123. >
  4124. <div
  4125. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4126. :key="sIndex"
  4127. class="noWorksName"
  4128. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4129. >
  4130. <el-tooltip
  4131. effect="dark"
  4132. :content="s.student"
  4133. placement="top"
  4134. >
  4135. <span>{{ s.student }}</span>
  4136. </el-tooltip>
  4137. </div>
  4138. </div>
  4139. </div>
  4140. <div
  4141. v-if="
  4142. tType &&
  4143. ((tType == 2 && sIsOpen == true) ||
  4144. tType == 1 ||
  4145. tType == 4) &&
  4146. tool.tool.indexOf(70) != -1
  4147. "
  4148. class="worksBox"
  4149. >
  4150. <div
  4151. class="zuoyeYulan"
  4152. v-if="
  4153. worksStudent.length &&
  4154. worksStudent[toolIndex].length > 0
  4155. "
  4156. >
  4157. <div class="worksTop">
  4158. <div>作业预览</div>
  4159. <div
  4160. class="corOpen"
  4161. @click="contract(toolIndex)"
  4162. v-if="
  4163. isCloseList[toolIndex].isCloseBoolean &&
  4164. isCloseList[toolIndex].isClose == 0
  4165. "
  4166. >
  4167. 折叠
  4168. </div>
  4169. <div
  4170. class="corOpen"
  4171. @click="contract(toolIndex)"
  4172. v-if="isCloseList[toolIndex].isClose == 1"
  4173. >
  4174. 展开
  4175. </div>
  4176. </div>
  4177. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4178. </div>
  4179. <div
  4180. :id="'tool-' + toolIndex"
  4181. :style="{
  4182. height:
  4183. isCloseList[toolIndex].isClose == 1
  4184. ? retrnToolHeight('tool-' + toolIndex)
  4185. : 'auto',
  4186. overflow:
  4187. isCloseList[toolIndex].isClose == 1
  4188. ? 'hidden'
  4189. : 'unset'
  4190. }"
  4191. class="worksDetailBox"
  4192. v-if="
  4193. worksStudent.length &&
  4194. worksStudent[toolIndex].length > 0
  4195. "
  4196. >
  4197. <div
  4198. class="works"
  4199. style="
  4200. width: 200px;
  4201. height: 140px;
  4202. margin: 10px 10px 10px 0;
  4203. border-radius: 15px;
  4204. box-shadow: 0 0 6px 1px #dfdada;
  4205. "
  4206. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4207. :key="wIndex"
  4208. :class="w.type == 1 ? 'isTypeOne' : ''"
  4209. >
  4210. <div
  4211. class="workImg"
  4212. @click.stop="openScore(w, toolIndex)"
  4213. >
  4214. <img :src="word" alt />
  4215. <img
  4216. class="deleteImg"
  4217. src="../../assets/deleteworks.png"
  4218. v-if="
  4219. w.userid == userid || tType == 1 || tType == 4
  4220. "
  4221. @click.stop="deleteWorks(w.wid)"
  4222. alt
  4223. />
  4224. </div>
  4225. <div class="comment" style="min-width: 200px">
  4226. <div class="worksName">
  4227. <div>{{ w.sName }}</div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4233. 未提交
  4234. </div>
  4235. <div
  4236. class="noWorksS"
  4237. v-if="noWorksS && noWorksS[toolIndex].length"
  4238. >
  4239. <div
  4240. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4241. :key="sIndex"
  4242. class="noWorksName"
  4243. >
  4244. <el-tooltip
  4245. effect="dark"
  4246. :content="s.student"
  4247. placement="top"
  4248. >
  4249. <span>{{ s.student }}</span>
  4250. </el-tooltip>
  4251. </div>
  4252. </div>
  4253. </div>
  4254. <div
  4255. v-if="
  4256. tType &&
  4257. tType == 2 &&
  4258. !sIsOpen &&
  4259. tool.tool.indexOf(70) != -1
  4260. "
  4261. class="worksBox"
  4262. >
  4263. <div
  4264. class="zuoyeYulan"
  4265. v-if="workStudent[toolIndex].length > 0"
  4266. >
  4267. <span class="worksTitle">作业预览</span>
  4268. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4269. </div>
  4270. <div
  4271. class="worksDetailBox"
  4272. v-if="workStudent[toolIndex].length > 0"
  4273. >
  4274. <div
  4275. class="works"
  4276. style="
  4277. width: 200px;
  4278. height: 140px;
  4279. margin: 10px 10px 10px 0;
  4280. box-shadow: 0 0 6px 1px #dfdada;
  4281. "
  4282. v-for="(w, wIndex) in workStudent[toolIndex]"
  4283. :key="wIndex"
  4284. >
  4285. <div
  4286. class="workImg"
  4287. @click.stop="openScore(w, toolIndex)"
  4288. >
  4289. <img :src="word" alt />
  4290. <img
  4291. class="deleteImg"
  4292. src="../../assets/deleteworks.png"
  4293. v-if="
  4294. w.userid == userid || tType == 1 || tType == 4
  4295. "
  4296. @click.stop="deleteWorks(w.wid)"
  4297. alt
  4298. />
  4299. </div>
  4300. <div class="worksName">
  4301. <div>{{ w.sName }}</div>
  4302. </div>
  4303. </div>
  4304. </div>
  4305. </div>
  4306. <div
  4307. v-if="
  4308. tType &&
  4309. ((tType == 2 && sIsOpen == true) ||
  4310. tType == 1 ||
  4311. tType == 4) &&
  4312. tool.tool.indexOf(32) != -1
  4313. "
  4314. class="worksBox"
  4315. >
  4316. <div
  4317. class="zuoyeYulan"
  4318. v-if="
  4319. worksStudent.length &&
  4320. worksStudent[toolIndex].length > 0
  4321. "
  4322. >
  4323. <div class="worksTop">
  4324. <div>作业预览</div>
  4325. <div
  4326. class="corOpen"
  4327. @click="contract(toolIndex)"
  4328. v-if="
  4329. isCloseList[toolIndex].isCloseBoolean &&
  4330. isCloseList[toolIndex].isClose == 0
  4331. "
  4332. >
  4333. 折叠
  4334. </div>
  4335. <div
  4336. class="corOpen"
  4337. @click="contract(toolIndex)"
  4338. v-if="isCloseList[toolIndex].isClose == 1"
  4339. >
  4340. 展开
  4341. </div>
  4342. </div>
  4343. </div>
  4344. <div
  4345. :id="'tool-' + toolIndex"
  4346. :style="{
  4347. height:
  4348. isCloseList[toolIndex].isClose == 1
  4349. ? retrnToolHeight('tool-' + toolIndex)
  4350. : 'auto',
  4351. overflow:
  4352. isCloseList[toolIndex].isClose == 1
  4353. ? 'hidden'
  4354. : 'unset'
  4355. }"
  4356. class="worksDetailBox"
  4357. v-if="
  4358. worksStudent.length &&
  4359. worksStudent[toolIndex].length > 0
  4360. "
  4361. >
  4362. <div
  4363. class="works"
  4364. style="
  4365. width: 200px;
  4366. height: 140px;
  4367. margin: 10px 10px 10px 0;
  4368. border-radius: 15px;
  4369. box-shadow: 0 0 6px 1px #dfdada;
  4370. "
  4371. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4372. :key="wIndex"
  4373. :class="w.type == 1 ? 'isTypeOne' : ''"
  4374. >
  4375. <div class="workImg">
  4376. <img
  4377. :src="word2"
  4378. @click="downloadFile(w.works)"
  4379. alt
  4380. />
  4381. <div
  4382. class="answerScore"
  4383. v-if="w.score"
  4384. @click.stop="openScore(w)"
  4385. :class="{
  4386. rightW:
  4387. w.userid == userid ||
  4388. tType == 1 ||
  4389. tType == 4 ||
  4390. w.ateacher == userid
  4391. }"
  4392. >
  4393. {{ JSON.parse(w.score).wScore }}分
  4394. </div>
  4395. <div
  4396. class="answerScore"
  4397. @click.stop="openScore(w)"
  4398. v-else-if="courseDetail.userid == userid"
  4399. :class="{
  4400. rightW:
  4401. w.userid == userid ||
  4402. tType == 1 ||
  4403. tType == 4 ||
  4404. w.ateacher == userid
  4405. }"
  4406. >
  4407. 评分
  4408. </div>
  4409. <img
  4410. class="deleteImg"
  4411. src="../../assets/deleteworks.png"
  4412. v-if="
  4413. w.userid == userid || tType == 1 || tType == 4
  4414. "
  4415. @click.stop="deleteWorks(w.wid)"
  4416. alt
  4417. />
  4418. </div>
  4419. <div class="comment" style="min-width: 200px">
  4420. <div class="worksName">
  4421. <div>{{ w.sName }}</div>
  4422. </div>
  4423. <div class="commentList">
  4424. <div class="commentList">
  4425. <div
  4426. class="commentImg"
  4427. @click="
  4428. isLikes(
  4429. w.wid,
  4430. userid,
  4431. 1,
  4432. null,
  4433. w.isLikes,
  4434. w.sName
  4435. )
  4436. "
  4437. >
  4438. <img
  4439. :src="w.isLikes == true ? likes : noLikes"
  4440. alt=""
  4441. />
  4442. </div>
  4443. <div>{{ w.likesCount }}</div>
  4444. </div>
  4445. <div class="commentList" style="margin-right: 15px">
  4446. <div
  4447. class="commentImg"
  4448. @click="commentOther(w, toolIndex, wIndex)"
  4449. >
  4450. <img
  4451. src="../../assets/icon/comment/comment.png"
  4452. alt=""
  4453. />
  4454. </div>
  4455. <div>{{ w.commentCount }}</div>
  4456. </div>
  4457. </div>
  4458. </div>
  4459. </div>
  4460. </div>
  4461. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4462. 未提交
  4463. </div>
  4464. <div
  4465. class="noWorksS"
  4466. v-if="noWorksS && noWorksS[toolIndex].length"
  4467. >
  4468. <div
  4469. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4470. :key="sIndex"
  4471. class="noWorksName"
  4472. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4473. >
  4474. <el-tooltip
  4475. effect="dark"
  4476. :content="s.student"
  4477. placement="top"
  4478. >
  4479. <span>{{ s.student }}</span>
  4480. </el-tooltip>
  4481. </div>
  4482. </div>
  4483. </div>
  4484. <div
  4485. v-if="
  4486. tType &&
  4487. ((tType == 2 && sIsOpen == true) ||
  4488. tType == 1 ||
  4489. tType == 4) &&
  4490. tool.tool.indexOf(57) != -1
  4491. "
  4492. class="worksBox"
  4493. >
  4494. <div
  4495. class="zuoyeYulan"
  4496. v-if="
  4497. worksStudent.length &&
  4498. worksStudent[toolIndex].length > 0
  4499. "
  4500. >
  4501. <div class="worksTop">
  4502. <div>作业预览</div>
  4503. <div
  4504. class="corOpen"
  4505. @click="contract(toolIndex)"
  4506. v-if="
  4507. isCloseList[toolIndex].isCloseBoolean &&
  4508. isCloseList[toolIndex].isClose == 0
  4509. "
  4510. >
  4511. 折叠
  4512. </div>
  4513. <div
  4514. class="corOpen"
  4515. @click="contract(toolIndex)"
  4516. v-if="isCloseList[toolIndex].isClose == 1"
  4517. >
  4518. 展开
  4519. </div>
  4520. </div>
  4521. </div>
  4522. <div
  4523. :id="'tool-' + toolIndex"
  4524. :style="{
  4525. height:
  4526. isCloseList[toolIndex].isClose == 1
  4527. ? retrnToolHeight('tool-' + toolIndex)
  4528. : 'auto',
  4529. overflow:
  4530. isCloseList[toolIndex].isClose == 1
  4531. ? 'hidden'
  4532. : 'unset'
  4533. }"
  4534. class="worksDetailBox"
  4535. v-if="
  4536. worksStudent.length &&
  4537. worksStudent[toolIndex].length > 0
  4538. "
  4539. >
  4540. <div
  4541. class="works"
  4542. style="
  4543. width: 200px;
  4544. height: 140px;
  4545. margin: 10px 10px 10px 0;
  4546. border-radius: 15px;
  4547. box-shadow: 0 0 6px 1px #dfdada;
  4548. "
  4549. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4550. :key="wIndex"
  4551. :class="w.type == 1 ? 'isTypeOne' : ''"
  4552. >
  4553. <div class="workImg">
  4554. <img
  4555. :src="word2"
  4556. @click="downloadFile(w.works)"
  4557. v-if="w.type == 12"
  4558. alt
  4559. />
  4560. <img
  4561. :src="word2"
  4562. @click="
  4563. openCocoPi(57, toolIndex, w.userid, w.sName)
  4564. "
  4565. v-else-if="w.type == 15"
  4566. alt
  4567. />
  4568. <div
  4569. class="answerScore"
  4570. v-if="w.score"
  4571. @click.stop="openScore(w)"
  4572. :class="{
  4573. rightW:
  4574. w.userid == userid ||
  4575. tType == 1 ||
  4576. tType == 4 ||
  4577. w.ateacher == userid
  4578. }"
  4579. >
  4580. {{ JSON.parse(w.score).wScore }}分
  4581. </div>
  4582. <div
  4583. class="answerScore"
  4584. @click.stop="openScore(w)"
  4585. v-else-if="
  4586. courseDetail.userid == userid &&
  4587. courseDetail.state != 5 &&
  4588. chapInfoList[courseType].chapterInfo[0]
  4589. .taskJson[taskCount].eList &&
  4590. chapInfoList[courseType].chapterInfo[0]
  4591. .taskJson[taskCount].eList.length
  4592. "
  4593. :class="{
  4594. rightW:
  4595. w.userid == userid ||
  4596. tType == 1 ||
  4597. tType == 4 ||
  4598. w.ateacher == userid
  4599. }"
  4600. >
  4601. 评分
  4602. </div>
  4603. <!-- <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"> -->
  4604. <div
  4605. v-else-if="
  4606. (courseDetail.userid == userid ||
  4607. (courseDetail.course_teacher &&
  4608. courseDetail.course_teacher.indexOf(userid) !=
  4609. -1) ||
  4610. (w.userid == userid && sIsOpen)) &&
  4611. courseDetail.state == 5 &&
  4612. ((chapInfoList[courseType].chapterInfo[0]
  4613. .taskJson[taskCount].eList &&
  4614. chapInfoList[courseType].chapterInfo[0]
  4615. .taskJson[taskCount].eList.length) ||
  4616. (tool.eList && tool.eList.length))
  4617. "
  4618. >
  4619. <el-popover
  4620. placement="top"
  4621. width="318"
  4622. :disabled="AIloading[toolIndex][wIndex].loading"
  4623. trigger="hover"
  4624. >
  4625. <markScore
  4626. :loading="AIloading[toolIndex][wIndex].loading"
  4627. :markScoreVisible="markScoreVisible"
  4628. :ref="`markSco${toolIndex}${wIndex}`"
  4629. @updateLoading="updateLoading"
  4630. @updateDocSco="updateDocSco"
  4631. @refreshOther="refreshOther"
  4632. @markScoreDig="markScoreDig"
  4633. :tool="tool"
  4634. :wIndex="wIndex"
  4635. :scoCon="w"
  4636. :toolIndex="toolIndex"
  4637. :key="refreshKey"
  4638. :stage="courseType"
  4639. :task="taskCount"
  4640. :scoTit="
  4641. chapInfoList[courseType].chapterInfo[0]
  4642. .taskJson[taskCount].eList
  4643. "
  4644. >
  4645. </markScore>
  4646. <div
  4647. class="answerScore"
  4648. @click="
  4649. markScoreDig2(
  4650. w.sName,
  4651. worksStudent,
  4652. w.userid,
  4653. toolIndex,
  4654. chapInfoList[courseType].chapterInfo[0]
  4655. .taskJson[taskCount].eList,
  4656. AIloading[toolIndex][wIndex].loading,
  4657. tool
  4658. )
  4659. "
  4660. slot="reference"
  4661. :class="{
  4662. rightW:
  4663. w.userid == userid ||
  4664. tType == 1 ||
  4665. tType == 4 ||
  4666. w.ateacher == userid
  4667. }"
  4668. >
  4669. <span v-if="AIloading[toolIndex][wIndex].sco">
  4670. {{
  4671. AIloading[toolIndex][wIndex].loading
  4672. ? "评分中"
  4673. : AIloading[toolIndex][wIndex].sco + "分"
  4674. }}
  4675. </span>
  4676. <span v-else>
  4677. {{
  4678. AIloading[toolIndex][wIndex].loading
  4679. ? "评分中"
  4680. : "评分"
  4681. }}
  4682. </span>
  4683. </div>
  4684. </el-popover>
  4685. </div>
  4686. <img
  4687. class="deleteImg"
  4688. src="../../assets/deleteworks.png"
  4689. v-if="
  4690. w.userid == userid || tType == 1 || tType == 4
  4691. "
  4692. @click.stop="deleteWorks(w.wid)"
  4693. alt
  4694. />
  4695. </div>
  4696. <div class="comment" style="min-width: 200px">
  4697. <div class="worksName">
  4698. <div>{{ w.sName }}</div>
  4699. </div>
  4700. <div class="commentList">
  4701. <div class="commentList">
  4702. <div
  4703. class="commentImg"
  4704. @click="
  4705. isLikes(
  4706. w.wid,
  4707. userid,
  4708. 1,
  4709. null,
  4710. w.isLikes,
  4711. w.sName
  4712. )
  4713. "
  4714. >
  4715. <img
  4716. :src="w.isLikes == true ? likes : noLikes"
  4717. alt=""
  4718. />
  4719. </div>
  4720. <div>{{ w.likesCount }}</div>
  4721. </div>
  4722. <div class="commentList" style="margin-right: 15px">
  4723. <div
  4724. class="commentImg"
  4725. @click="commentOther(w, toolIndex, wIndex)"
  4726. >
  4727. <img
  4728. src="../../assets/icon/comment/comment.png"
  4729. alt=""
  4730. />
  4731. </div>
  4732. <div>{{ w.commentCount }}</div>
  4733. </div>
  4734. </div>
  4735. </div>
  4736. </div>
  4737. </div>
  4738. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4739. 未提交
  4740. </div>
  4741. <div
  4742. class="noWorksS"
  4743. v-if="noWorksS && noWorksS[toolIndex].length"
  4744. >
  4745. <div
  4746. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4747. :key="sIndex"
  4748. class="noWorksName"
  4749. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4750. >
  4751. <el-tooltip
  4752. effect="dark"
  4753. :content="s.student"
  4754. placement="top"
  4755. >
  4756. <span>{{ s.student }}</span>
  4757. </el-tooltip>
  4758. </div>
  4759. </div>
  4760. </div>
  4761. <div
  4762. v-if="
  4763. tType &&
  4764. ((tType == 2 && sIsOpen == true) ||
  4765. tType == 1 ||
  4766. tType == 4) &&
  4767. tool.tool.indexOf(72) != -1
  4768. "
  4769. class="worksBox"
  4770. >
  4771. <div
  4772. class="zuoyeYulan"
  4773. style="display: flex;justify-content: space-between;align-items: center;"
  4774. v-if="
  4775. worksStudent.length &&
  4776. worksStudent[toolIndex].length > 0
  4777. "
  4778. >
  4779. <div class="worksTop">
  4780. <div>作业预览</div>
  4781. <div
  4782. class="corOpen"
  4783. @click="contract(toolIndex)"
  4784. v-if="
  4785. isCloseList[toolIndex].isCloseBoolean &&
  4786. isCloseList[toolIndex].isClose == 0
  4787. "
  4788. >
  4789. 折叠
  4790. </div>
  4791. <div
  4792. class="corOpen"
  4793. @click="contract(toolIndex)"
  4794. v-if="isCloseList[toolIndex].isClose == 1"
  4795. >
  4796. 展开
  4797. </div>
  4798. </div>
  4799. <div
  4800. style="display: flex;"
  4801. v-if="
  4802. (courseDetail.userid == userid ||
  4803. (courseDetail.course_teacher &&
  4804. courseDetail.course_teacher.indexOf(userid) !=
  4805. -1)) &&
  4806. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4807. taskCount
  4808. ].eList &&
  4809. chapInfoList[courseType].chapterInfo[0].taskJson[
  4810. taskCount
  4811. ].eList.length) ||
  4812. (tool.eList && tool.eList.length)) &&
  4813. courseDetail.state == 5
  4814. "
  4815. >
  4816. <!-- <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"> -->
  4817. <div
  4818. @click="
  4819. resetLoopEva(
  4820. worksStudent[toolIndex],
  4821. chapInfoList[courseType].chapterInfo[0].taskJson[
  4822. taskCount
  4823. ].eList,
  4824. courseType,
  4825. taskCount,
  4826. toolIndex,
  4827. tool.toolDetail,
  4828. tool
  4829. )
  4830. "
  4831. style="margin-right:10px"
  4832. class="ScoreBtn"
  4833. >
  4834. 一键重置
  4835. </div>
  4836. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4837. <img
  4838. src="../../assets/icon/newIcons/rootImg.png"
  4839. alt=""
  4840. />
  4841. AI评分
  4842. </div>
  4843. <div
  4844. class="ScoreBtn"
  4845. v-else-if="!loopLoading[toolIndex].loading"
  4846. @click="
  4847. loopEva(
  4848. worksStudent[toolIndex],
  4849. chapInfoList[courseType].chapterInfo[0].taskJson[
  4850. taskCount
  4851. ].eList,
  4852. courseType,
  4853. taskCount,
  4854. toolIndex,
  4855. tool.toolDetail,
  4856. chapInfoList[courseType].chapterInfo[0].taskJson[
  4857. taskCount
  4858. ].taskDetail,
  4859. tool
  4860. )
  4861. "
  4862. >
  4863. <img
  4864. src="../../assets/icon/newIcons/rootImg.png"
  4865. alt=""
  4866. />
  4867. AI评分
  4868. </div>
  4869. <div class="ScoreBtn" v-else>
  4870. <img
  4871. src="../../assets/icon/newIcons/rootImg.png"
  4872. alt=""
  4873. />
  4874. 正在评分
  4875. </div>
  4876. </div>
  4877. </div>
  4878. <div
  4879. :id="'tool-' + toolIndex"
  4880. :style="{
  4881. height:
  4882. isCloseList[toolIndex].isClose == 1
  4883. ? retrnToolHeight('tool-' + toolIndex)
  4884. : 'auto',
  4885. overflow:
  4886. isCloseList[toolIndex].isClose == 1
  4887. ? 'hidden'
  4888. : 'unset'
  4889. }"
  4890. class="worksDetailBox"
  4891. v-if="
  4892. worksStudent.length &&
  4893. worksStudent[toolIndex].length > 0
  4894. "
  4895. >
  4896. <div
  4897. class="works"
  4898. style="
  4899. width: 200px;
  4900. height: 140px;
  4901. margin: 10px 10px 10px 0;
  4902. border-radius: 15px;
  4903. box-shadow: 0 0 6px 1px #dfdada;
  4904. "
  4905. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4906. :key="wIndex"
  4907. :class="w.type == 1 ? 'isTypeOne' : ''"
  4908. >
  4909. <div class="workImg">
  4910. <!-- <img
  4911. :src="word2"
  4912. @click="downloadFile(w.works)"
  4913. v-if="w.type == 12"
  4914. alt
  4915. /> -->
  4916. <img
  4917. :src="word2"
  4918. @click="
  4919. openCocoFlow(w)
  4920. "
  4921. alt
  4922. />
  4923. <div
  4924. class="answerScore"
  4925. v-if="w.score"
  4926. @click.stop="openScore(w)"
  4927. :class="{
  4928. rightW:
  4929. w.userid == userid ||
  4930. tType == 1 ||
  4931. tType == 4 ||
  4932. w.ateacher == userid
  4933. }"
  4934. >
  4935. {{ JSON.parse(w.score).wScore }}分
  4936. </div>
  4937. <div
  4938. class="answerScore"
  4939. @click.stop="openScore(w)"
  4940. v-else-if="
  4941. courseDetail.userid == userid &&
  4942. courseDetail.state != 5 &&
  4943. chapInfoList[courseType].chapterInfo[0]
  4944. .taskJson[taskCount].eList &&
  4945. chapInfoList[courseType].chapterInfo[0]
  4946. .taskJson[taskCount].eList.length
  4947. "
  4948. :class="{
  4949. rightW:
  4950. w.userid == userid ||
  4951. tType == 1 ||
  4952. tType == 4 ||
  4953. w.ateacher == userid
  4954. }"
  4955. >
  4956. 评分
  4957. </div>
  4958. <div
  4959. v-else-if="
  4960. (courseDetail.userid == userid ||
  4961. (courseDetail.course_teacher &&
  4962. courseDetail.course_teacher.indexOf(userid) !=
  4963. -1) ||
  4964. (w.userid == userid && sIsOpen)) &&
  4965. courseDetail.state == 5 &&
  4966. ((chapInfoList[courseType].chapterInfo[0]
  4967. .taskJson[taskCount].eList &&
  4968. chapInfoList[courseType].chapterInfo[0]
  4969. .taskJson[taskCount].eList.length) ||
  4970. (tool.eList && tool.eList.length))
  4971. "
  4972. >
  4973. <!-- <div
  4974. class="answerScore"
  4975. @click="markScoreDig(w.userid,toolIndex)"
  4976. :class="{
  4977. rightW:
  4978. w.userid == userid ||
  4979. tType == 1 ||
  4980. tType == 4 ||
  4981. w.ateacher == userid,
  4982. }"
  4983. >
  4984. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  4985. </div> -->
  4986. <!-- @show="handleShow(toolIndex,wIndex)"
  4987. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  4988. <el-popover
  4989. placement="top"
  4990. width="318"
  4991. :disabled="AIloading[toolIndex][wIndex].loading"
  4992. trigger="hover"
  4993. >
  4994. <markScore
  4995. :loading="AIloading[toolIndex][wIndex].loading"
  4996. :markScoreVisible="markScoreVisible"
  4997. :ref="`markSco${toolIndex}${wIndex}`"
  4998. @updateLoading="updateLoading"
  4999. @updateDocSco="updateDocSco"
  5000. @refreshOther="refreshOther"
  5001. @markScoreDig="markScoreDig"
  5002. :tool="tool"
  5003. :wIndex="wIndex"
  5004. :scoCon="w"
  5005. :toolIndex="toolIndex"
  5006. :key="refreshKey"
  5007. :stage="courseType"
  5008. :task="taskCount"
  5009. :scoTit="
  5010. chapInfoList[courseType].chapterInfo[0]
  5011. .taskJson[taskCount].eList
  5012. "
  5013. >
  5014. </markScore>
  5015. <div
  5016. class="answerScore"
  5017. @click="
  5018. markScoreDig2(
  5019. w.sName,
  5020. worksStudent,
  5021. w.userid,
  5022. toolIndex,
  5023. chapInfoList[courseType].chapterInfo[0]
  5024. .taskJson[taskCount].eList,
  5025. AIloading[toolIndex][wIndex].loading,
  5026. tool
  5027. )
  5028. "
  5029. slot="reference"
  5030. :class="{
  5031. rightW:
  5032. w.userid == userid ||
  5033. tType == 1 ||
  5034. tType == 4 ||
  5035. w.ateacher == userid
  5036. }"
  5037. >
  5038. <span v-if="AIloading[toolIndex][wIndex].sco">
  5039. {{
  5040. AIloading[toolIndex][wIndex].loading
  5041. ? "评分中"
  5042. : AIloading[toolIndex][wIndex].sco + "分"
  5043. }}
  5044. </span>
  5045. <span v-else>
  5046. {{
  5047. AIloading[toolIndex][wIndex].loading
  5048. ? "评分中"
  5049. : "评分"
  5050. }}
  5051. </span>
  5052. </div>
  5053. </el-popover>
  5054. </div>
  5055. <img
  5056. class="deleteImg"
  5057. src="../../assets/deleteworks.png"
  5058. v-if="
  5059. w.userid == userid || tType == 1 || tType == 4
  5060. "
  5061. @click.stop="deleteWorks(w.wid)"
  5062. alt
  5063. />
  5064. </div>
  5065. <div class="comment" style="min-width: 200px">
  5066. <div class="worksName">
  5067. <div>{{ w.sName }}</div>
  5068. </div>
  5069. <div class="commentList">
  5070. <div class="commentList">
  5071. <div
  5072. class="commentImg"
  5073. @click="
  5074. isLikes(
  5075. w.wid,
  5076. userid,
  5077. 1,
  5078. null,
  5079. w.isLikes,
  5080. w.sName
  5081. )
  5082. "
  5083. >
  5084. <img
  5085. :src="w.isLikes == true ? likes : noLikes"
  5086. alt=""
  5087. />
  5088. </div>
  5089. <div>{{ w.likesCount }}</div>
  5090. </div>
  5091. <div class="commentList" style="margin-right: 15px">
  5092. <div
  5093. class="commentImg"
  5094. @click="commentOther(w, toolIndex, wIndex)"
  5095. >
  5096. <img
  5097. src="../../assets/icon/comment/comment.png"
  5098. alt=""
  5099. />
  5100. </div>
  5101. <div>{{ w.commentCount }}</div>
  5102. </div>
  5103. </div>
  5104. </div>
  5105. </div>
  5106. </div>
  5107. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5108. 未提交
  5109. </div>
  5110. <div
  5111. class="noWorksS"
  5112. v-if="noWorksS && noWorksS[toolIndex].length"
  5113. >
  5114. <div
  5115. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5116. :key="sIndex"
  5117. class="noWorksName"
  5118. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5119. >
  5120. <el-tooltip
  5121. effect="dark"
  5122. :content="s.student"
  5123. placement="top"
  5124. >
  5125. <span>{{ s.student }}</span>
  5126. </el-tooltip>
  5127. </div>
  5128. </div>
  5129. </div>
  5130. <div
  5131. v-if="
  5132. tType &&
  5133. tType == 2 &&
  5134. !sIsOpen &&
  5135. tool.tool.indexOf(72) != -1
  5136. "
  5137. class="worksBox"
  5138. >
  5139. <div
  5140. class="zuoyeYulan"
  5141. v-if="workStudent[toolIndex].length > 0"
  5142. >
  5143. <span class="worksTitle">作业预览</span>
  5144. </div>
  5145. <div
  5146. class="worksDetailBox"
  5147. v-if="workStudent[toolIndex].length > 0"
  5148. >
  5149. <div
  5150. class="works"
  5151. style="
  5152. width: 200px;
  5153. height: 140px;
  5154. margin: 10px 10px 10px 0;
  5155. box-shadow: 0 0 6px 1px #dfdada;
  5156. "
  5157. v-for="(w, wIndex) in workStudent[toolIndex]"
  5158. :key="wIndex"
  5159. >
  5160. <div class="workImg">
  5161. <!-- <img
  5162. :src="word2"
  5163. @click="downloadFile(w.works)"
  5164. v-if="w.type == 12"
  5165. alt
  5166. /> -->
  5167. <img
  5168. :src="word2"
  5169. @click="
  5170. openCocoFlow(w)
  5171. "
  5172. alt
  5173. />
  5174. <div
  5175. class="answerScore"
  5176. v-if="w.score"
  5177. @click.stop="openScore(w)"
  5178. :class="{
  5179. rightW:
  5180. w.userid == userid || tType == 1 || tType == 4
  5181. }"
  5182. >
  5183. {{ JSON.parse(w.score).wScore }}分
  5184. </div>
  5185. <div
  5186. class="answerScore"
  5187. @click.stop="openScore(w)"
  5188. v-else-if="courseDetail.userid == userid"
  5189. :class="{
  5190. rightW:
  5191. w.userid == userid || tType == 1 || tType == 4
  5192. }"
  5193. >
  5194. 评分
  5195. </div>
  5196. <div
  5197. class="stuLookScore"
  5198. v-if="
  5199. w.userid == userid ||
  5200. (tType == 1 &&
  5201. courseDetail.state == 5 &&
  5202. ((chapInfoList[courseType].chapterInfo[0]
  5203. .taskJson[taskCount].eList &&
  5204. chapInfoList[courseType].chapterInfo[0]
  5205. .taskJson[taskCount].eList.length) ||
  5206. (tool.eList && tool.eList.length)))
  5207. "
  5208. >
  5209. <el-popover
  5210. placement="top"
  5211. width="318"
  5212. trigger="hover"
  5213. >
  5214. <markScore
  5215. :loading="AIloading[toolIndex][wIndex].loading"
  5216. :markScoreVisible="markScoreVisible"
  5217. :ref="`markSco${toolIndex}${wIndex}`"
  5218. @updateLoading="updateLoading"
  5219. @updateDocSco="updateDocSco"
  5220. @refreshOther="refreshOther"
  5221. @markScoreDig="markScoreDig"
  5222. :tool="tool"
  5223. :wIndex="wIndex"
  5224. :scoCon="w"
  5225. :toolIndex="toolIndex"
  5226. :key="refreshKey"
  5227. :stage="courseType"
  5228. :task="taskCount"
  5229. :scoTit="
  5230. chapInfoList[courseType].chapterInfo[0]
  5231. .taskJson[taskCount].eList
  5232. "
  5233. >
  5234. </markScore>
  5235. <div
  5236. @click="
  5237. markScoreDig2(
  5238. w.sName,
  5239. worksStudent,
  5240. w.userid,
  5241. toolIndex,
  5242. chapInfoList[courseType].chapterInfo[0]
  5243. .taskJson[taskCount].eList,
  5244. AIloading[toolIndex][wIndex].loading,
  5245. tool
  5246. )
  5247. "
  5248. slot="reference"
  5249. >
  5250. <span v-if="AIloading[toolIndex][wIndex].sco">
  5251. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5252. </span>
  5253. <span v-else>
  5254. 评分
  5255. </span>
  5256. </div>
  5257. </el-popover>
  5258. </div>
  5259. <img
  5260. class="deleteImg"
  5261. src="../../assets/deleteworks.png"
  5262. v-if="
  5263. w.userid == userid || tType == 1 || tType == 4
  5264. "
  5265. @click.stop="deleteWorks(w.wid)"
  5266. alt
  5267. />
  5268. </div>
  5269. <div class="worksName">
  5270. <div>{{ w.sName }}</div>
  5271. </div>
  5272. </div>
  5273. </div>
  5274. </div>
  5275. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5276. <div
  5277. style="display: flex;justify-content: space-between;align-items: center;"
  5278. >
  5279. <div
  5280. class="zuoyeYulan"
  5281. v-if="
  5282. worksStudent.length &&
  5283. worksStudent[toolIndex].length > 0
  5284. "
  5285. >
  5286. <span class="worksTitle">作业预览</span>
  5287. <div
  5288. class="corOpen"
  5289. @click="contract(toolIndex)"
  5290. v-if="
  5291. isCloseList[toolIndex].isCloseBoolean &&
  5292. isCloseList[toolIndex].isClose == 0
  5293. "
  5294. >
  5295. 折叠
  5296. </div>
  5297. <div
  5298. class="corOpen"
  5299. @click="contract(toolIndex)"
  5300. v-if="isCloseList[toolIndex].isClose == 1"
  5301. >
  5302. 展开
  5303. </div>
  5304. </div>
  5305. <div
  5306. style="display: flex;"
  5307. v-if="
  5308. (courseDetail.userid == userid ||
  5309. (courseDetail.course_teacher &&
  5310. courseDetail.course_teacher.indexOf(userid) !=
  5311. -1)) &&
  5312. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5313. taskCount
  5314. ].eList &&
  5315. chapInfoList[courseType].chapterInfo[0].taskJson[
  5316. taskCount
  5317. ].eList.length) ||
  5318. (tool.eList && tool.eList.length)) &&
  5319. courseDetail.state == 5
  5320. "
  5321. >
  5322. <!-- <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 "> -->
  5323. <div
  5324. style="margin-right:10px"
  5325. class="ScoreBtn"
  5326. @click="
  5327. resetLoopEva(
  5328. worksStudent[toolIndex],
  5329. chapInfoList[courseType].chapterInfo[0].taskJson[
  5330. taskCount
  5331. ].eList,
  5332. courseType,
  5333. taskCount,
  5334. toolIndex,
  5335. tool.toolDetail,
  5336. worksStudent
  5337. )
  5338. "
  5339. >
  5340. 一键重置
  5341. </div>
  5342. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5343. <img
  5344. src="../../assets/icon/newIcons/rootImg.png"
  5345. alt=""
  5346. />
  5347. AI评分
  5348. </div>
  5349. <div
  5350. class="ScoreBtn"
  5351. v-else-if="!loopLoading[toolIndex].loading"
  5352. @click="
  5353. loopEva(
  5354. worksStudent[toolIndex],
  5355. chapInfoList[courseType].chapterInfo[0].taskJson[
  5356. taskCount
  5357. ].eList,
  5358. courseType,
  5359. taskCount,
  5360. toolIndex,
  5361. tool.toolDetail,
  5362. chapInfoList[courseType].chapterInfo[0].taskJson[
  5363. taskCount
  5364. ].taskDetail,
  5365. tool
  5366. )
  5367. "
  5368. >
  5369. <img
  5370. src="../../assets/icon/newIcons/rootImg.png"
  5371. alt=""
  5372. />
  5373. AI评分
  5374. </div>
  5375. <div class="ScoreBtn" v-else>
  5376. <img
  5377. src="../../assets/icon/newIcons/rootImg.png"
  5378. alt=""
  5379. />
  5380. 正在评分
  5381. </div>
  5382. </div>
  5383. </div>
  5384. <div
  5385. :id="'tool-' + toolIndex"
  5386. :style="{
  5387. height:
  5388. isCloseList[toolIndex].isClose == 1
  5389. ? retrnToolHeight('tool-' + toolIndex)
  5390. : 'auto',
  5391. overflow:
  5392. isCloseList[toolIndex].isClose == 1
  5393. ? 'hidden'
  5394. : 'unset'
  5395. }"
  5396. class="worksDetailBox"
  5397. v-if="
  5398. worksStudent.length &&
  5399. worksStudent[toolIndex].length > 0
  5400. "
  5401. >
  5402. <div
  5403. class="works"
  5404. style="
  5405. width: 200px;
  5406. height: 140px;
  5407. margin: 10px 10px 10px 0;
  5408. border-radius: 15px;
  5409. box-shadow: 0 0 6px 1px #dfdada;
  5410. "
  5411. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5412. :key="wIndex"
  5413. :class="w.type == 1 ? 'isTypeOne' : ''"
  5414. >
  5415. <div class="workImg" v-if="w.type == 0">
  5416. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5417. <img
  5418. :src="w.works"
  5419. @click="previewImg(w.works, w)"
  5420. alt
  5421. />
  5422. <div
  5423. class="answerScore"
  5424. v-if="w.score"
  5425. @click.stop="openScore(w)"
  5426. :class="{
  5427. rightW:
  5428. w.userid == userid ||
  5429. tType == 1 ||
  5430. tType == 4 ||
  5431. w.ateacher == userid
  5432. }"
  5433. >
  5434. {{ JSON.parse(w.score).wScore }}分
  5435. </div>
  5436. <div
  5437. class="answerScore"
  5438. @click.stop="openScore(w)"
  5439. v-else-if="
  5440. courseDetail.userid == userid &&
  5441. courseDetail.state != 5 &&
  5442. chapInfoList[courseType].chapterInfo[0]
  5443. .taskJson[taskCount].eList &&
  5444. chapInfoList[courseType].chapterInfo[0]
  5445. .taskJson[taskCount].eList.length
  5446. "
  5447. :class="{
  5448. rightW:
  5449. w.userid == userid ||
  5450. tType == 1 ||
  5451. tType == 4 ||
  5452. w.ateacher == userid
  5453. }"
  5454. >
  5455. 评分
  5456. </div>
  5457. <!-- <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"> -->
  5458. <div
  5459. v-else-if="
  5460. (courseDetail.userid == userid ||
  5461. (courseDetail.course_teacher &&
  5462. courseDetail.course_teacher.indexOf(userid) !=
  5463. -1) ||
  5464. (w.userid == userid && sIsOpen)) &&
  5465. courseDetail.state == 5 &&
  5466. ((chapInfoList[courseType].chapterInfo[0]
  5467. .taskJson[taskCount].eList &&
  5468. chapInfoList[courseType].chapterInfo[0]
  5469. .taskJson[taskCount].eList.length) ||
  5470. (tool.eList && tool.eList.length))
  5471. "
  5472. >
  5473. <el-popover
  5474. placement="top"
  5475. width="318"
  5476. :disabled="AIloading[toolIndex][wIndex].loading"
  5477. trigger="hover"
  5478. >
  5479. <markScore
  5480. :loading="AIloading[toolIndex][wIndex].loading"
  5481. :markScoreVisible="markScoreVisible"
  5482. :ref="`markSco${toolIndex}${wIndex}`"
  5483. @updateLoading="updateLoading"
  5484. @updateDocSco="updateDocSco"
  5485. @refreshOther="refreshOther"
  5486. @markScoreDig="markScoreDig"
  5487. :tool="tool"
  5488. :wIndex="wIndex"
  5489. :scoCon="w"
  5490. :toolIndex="toolIndex"
  5491. :key="refreshKey"
  5492. :stage="courseType"
  5493. :task="taskCount"
  5494. :scoTit="
  5495. chapInfoList[courseType].chapterInfo[0]
  5496. .taskJson[taskCount].eList
  5497. "
  5498. >
  5499. </markScore>
  5500. <div
  5501. class="answerScore"
  5502. @click="
  5503. markScoreDig2(
  5504. w.sName,
  5505. worksStudent,
  5506. w.userid,
  5507. toolIndex,
  5508. chapInfoList[courseType].chapterInfo[0]
  5509. .taskJson[taskCount].eList,
  5510. AIloading[toolIndex][wIndex].loading,
  5511. tool
  5512. )
  5513. "
  5514. slot="reference"
  5515. :class="{
  5516. rightW:
  5517. w.userid == userid ||
  5518. tType == 1 ||
  5519. tType == 4 ||
  5520. w.ateacher == userid
  5521. }"
  5522. >
  5523. <span v-if="AIloading[toolIndex][wIndex].sco">
  5524. {{
  5525. AIloading[toolIndex][wIndex].loading
  5526. ? "评分中"
  5527. : AIloading[toolIndex][wIndex].sco + "分"
  5528. }}
  5529. </span>
  5530. <span v-else>
  5531. {{
  5532. AIloading[toolIndex][wIndex].loading
  5533. ? "评分中"
  5534. : "评分"
  5535. }}
  5536. </span>
  5537. </div>
  5538. </el-popover>
  5539. </div>
  5540. <img
  5541. class="deleteImg"
  5542. src="../../assets/deleteworks.png"
  5543. v-if="
  5544. w.userid == userid || tType == 1 || tType == 4
  5545. "
  5546. @click.stop="deleteWorks(w.wid)"
  5547. alt
  5548. />
  5549. </div>
  5550. <div
  5551. class="workImg"
  5552. style="cursor: pointer"
  5553. v-if="w.type == 1"
  5554. >
  5555. <img :src="word" @click="openFile(w.works)" alt />
  5556. <!-- @click="openFile(w.works)" -->
  5557. <div
  5558. class="answerScore"
  5559. v-if="w.score"
  5560. @click.stop="openScore(w)"
  5561. :class="{
  5562. rightW:
  5563. w.userid == userid ||
  5564. tType == 1 ||
  5565. tType == 4 ||
  5566. w.ateacher == userid
  5567. }"
  5568. >
  5569. {{ JSON.parse(w.score).wScore }}分
  5570. </div>
  5571. <div
  5572. class="answerScore"
  5573. @click.stop="openScore(w)"
  5574. v-else-if="
  5575. courseDetail.userid == userid &&
  5576. courseDetail.state != 5 &&
  5577. chapInfoList[courseType].chapterInfo[0]
  5578. .taskJson[taskCount].eList &&
  5579. chapInfoList[courseType].chapterInfo[0]
  5580. .taskJson[taskCount].eList.length
  5581. "
  5582. :class="{
  5583. rightW:
  5584. w.userid == userid ||
  5585. tType == 1 ||
  5586. tType == 4 ||
  5587. w.ateacher == userid
  5588. }"
  5589. >
  5590. 评分
  5591. </div>
  5592. <!-- <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"> -->
  5593. <div
  5594. v-else-if="
  5595. (courseDetail.userid == userid ||
  5596. (courseDetail.course_teacher &&
  5597. courseDetail.course_teacher.indexOf(userid) !=
  5598. -1) ||
  5599. (w.userid == userid && sIsOpen)) &&
  5600. courseDetail.state == 5 &&
  5601. ((chapInfoList[courseType].chapterInfo[0]
  5602. .taskJson[taskCount].eList &&
  5603. chapInfoList[courseType].chapterInfo[0]
  5604. .taskJson[taskCount].eList.length) ||
  5605. (tool.eList && tool.eList.length))
  5606. "
  5607. >
  5608. <el-popover
  5609. placement="top"
  5610. width="318"
  5611. :disabled="AIloading[toolIndex][wIndex].loading"
  5612. trigger="hover"
  5613. >
  5614. <markScore
  5615. :loading="AIloading[toolIndex][wIndex].loading"
  5616. :markScoreVisible="markScoreVisible"
  5617. :ref="`markSco${toolIndex}${wIndex}`"
  5618. @updateLoading="updateLoading"
  5619. @updateDocSco="updateDocSco"
  5620. @refreshOther="refreshOther"
  5621. @markScoreDig="markScoreDig"
  5622. :tool="tool"
  5623. :wIndex="wIndex"
  5624. :scoCon="w"
  5625. :toolIndex="toolIndex"
  5626. :key="refreshKey"
  5627. :stage="courseType"
  5628. :task="taskCount"
  5629. :scoTit="
  5630. chapInfoList[courseType].chapterInfo[0]
  5631. .taskJson[taskCount].eList
  5632. "
  5633. >
  5634. </markScore>
  5635. <div
  5636. class="answerScore"
  5637. @click="
  5638. markScoreDig2(
  5639. w.sName,
  5640. worksStudent,
  5641. w.userid,
  5642. toolIndex,
  5643. chapInfoList[courseType].chapterInfo[0]
  5644. .taskJson[taskCount].eList,
  5645. AIloading[toolIndex][wIndex].loading,
  5646. tool
  5647. )
  5648. "
  5649. slot="reference"
  5650. :class="{
  5651. rightW:
  5652. w.userid == userid ||
  5653. tType == 1 ||
  5654. tType == 4 ||
  5655. w.ateacher == userid
  5656. }"
  5657. >
  5658. <span v-if="AIloading[toolIndex][wIndex].sco">
  5659. {{
  5660. AIloading[toolIndex][wIndex].loading
  5661. ? "评分中"
  5662. : AIloading[toolIndex][wIndex].sco + "分"
  5663. }}
  5664. </span>
  5665. <span v-else>
  5666. {{
  5667. AIloading[toolIndex][wIndex].loading
  5668. ? "评分中"
  5669. : "评分"
  5670. }}
  5671. </span>
  5672. </div>
  5673. </el-popover>
  5674. </div>
  5675. <img
  5676. class="deleteImg"
  5677. src="../../assets/deleteworks.png"
  5678. v-if="
  5679. w.userid == userid || tType == 1 || tType == 4
  5680. "
  5681. @click.stop="deleteWorks(w.wid)"
  5682. alt
  5683. />
  5684. </div>
  5685. <div class="workImg" v-if="w.type == 3">
  5686. <img
  5687. style="cursor: pointer"
  5688. :src="video"
  5689. @click="openVideo(w)"
  5690. alt
  5691. />
  5692. <!-- @click="openVideo(w.works)" -->
  5693. <div
  5694. class="answerScore"
  5695. v-if="w.score"
  5696. @click.stop="openScore(w)"
  5697. :class="{
  5698. rightW:
  5699. w.userid == userid ||
  5700. tType == 1 ||
  5701. tType == 4 ||
  5702. w.ateacher == userid
  5703. }"
  5704. >
  5705. {{ JSON.parse(w.score).wScore }}分
  5706. </div>
  5707. <div
  5708. class="answerScore"
  5709. @click.stop="openScore(w)"
  5710. v-else-if="
  5711. courseDetail.userid == userid &&
  5712. courseDetail.state != 5 &&
  5713. chapInfoList[courseType].chapterInfo[0]
  5714. .taskJson[taskCount].eList &&
  5715. chapInfoList[courseType].chapterInfo[0]
  5716. .taskJson[taskCount].eList.length
  5717. "
  5718. :class="{
  5719. rightW:
  5720. w.userid == userid ||
  5721. tType == 1 ||
  5722. tType == 4 ||
  5723. w.ateacher == userid
  5724. }"
  5725. >
  5726. 评分
  5727. </div>
  5728. <!-- <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"> -->
  5729. <div
  5730. v-else-if="
  5731. (courseDetail.userid == userid ||
  5732. (courseDetail.course_teacher &&
  5733. courseDetail.course_teacher.indexOf(userid) !=
  5734. -1) ||
  5735. (w.userid == userid && sIsOpen)) &&
  5736. courseDetail.state == 5 &&
  5737. ((chapInfoList[courseType].chapterInfo[0]
  5738. .taskJson[taskCount].eList &&
  5739. chapInfoList[courseType].chapterInfo[0]
  5740. .taskJson[taskCount].eList.length) ||
  5741. (tool.eList && tool.eList.length))
  5742. "
  5743. >
  5744. <el-popover
  5745. placement="top"
  5746. width="318"
  5747. :disabled="AIloading[toolIndex][wIndex].loading"
  5748. trigger="hover"
  5749. >
  5750. <markScore
  5751. :loading="AIloading[toolIndex][wIndex].loading"
  5752. :markScoreVisible="markScoreVisible"
  5753. :ref="`markSco${toolIndex}${wIndex}`"
  5754. @updateLoading="updateLoading"
  5755. @updateDocSco="updateDocSco"
  5756. @refreshOther="refreshOther"
  5757. @markScoreDig="markScoreDig"
  5758. :tool="tool"
  5759. :wIndex="wIndex"
  5760. :scoCon="w"
  5761. :toolIndex="toolIndex"
  5762. :key="refreshKey"
  5763. :stage="courseType"
  5764. :task="taskCount"
  5765. :scoTit="
  5766. chapInfoList[courseType].chapterInfo[0]
  5767. .taskJson[taskCount].eList
  5768. "
  5769. >
  5770. </markScore>
  5771. <div
  5772. class="answerScore"
  5773. @click="
  5774. markScoreDig2(
  5775. w.sName,
  5776. worksStudent,
  5777. w.userid,
  5778. toolIndex,
  5779. chapInfoList[courseType].chapterInfo[0]
  5780. .taskJson[taskCount].eList,
  5781. AIloading[toolIndex][wIndex].loading,
  5782. tool
  5783. )
  5784. "
  5785. slot="reference"
  5786. :class="{
  5787. rightW:
  5788. w.userid == userid ||
  5789. tType == 1 ||
  5790. tType == 4 ||
  5791. w.ateacher == userid
  5792. }"
  5793. >
  5794. <span v-if="AIloading[toolIndex][wIndex].sco">
  5795. {{
  5796. AIloading[toolIndex][wIndex].loading
  5797. ? "评分中"
  5798. : AIloading[toolIndex][wIndex].sco + "分"
  5799. }}
  5800. </span>
  5801. <span v-else>
  5802. {{
  5803. AIloading[toolIndex][wIndex].loading
  5804. ? "评分中"
  5805. : "评分"
  5806. }}
  5807. </span>
  5808. </div>
  5809. </el-popover>
  5810. </div>
  5811. <img
  5812. class="deleteImg"
  5813. src="../../assets/deleteworks.png"
  5814. v-if="
  5815. w.userid == userid || tType == 1 || tType == 4
  5816. "
  5817. @click.stop="deleteWorks(w.wid)"
  5818. alt
  5819. />
  5820. </div>
  5821. <div class="comment" style="min-width: 200px">
  5822. <div class="worksName">
  5823. <div
  5824. style="cursor: pointer"
  5825. @click="
  5826. openSname(w.sName, w.wid, toolIndex, w.userid)
  5827. "
  5828. >
  5829. {{ w.sName }}
  5830. </div>
  5831. </div>
  5832. <div class="commentList">
  5833. <div class="commentList">
  5834. <div
  5835. class="commentImg"
  5836. @click="
  5837. isLikes(
  5838. w.wid,
  5839. userid,
  5840. 1,
  5841. null,
  5842. w.isLikes,
  5843. w.sName
  5844. )
  5845. "
  5846. >
  5847. <img
  5848. :src="w.isLikes == true ? likes : noLikes"
  5849. alt=""
  5850. />
  5851. </div>
  5852. <div>{{ w.likesCount }}</div>
  5853. </div>
  5854. <div class="commentList" style="margin-right: 15px">
  5855. <div
  5856. class="commentImg"
  5857. @click="commentOther(w, toolIndex, wIndex)"
  5858. >
  5859. <img
  5860. src="../../assets/icon/comment/comment.png"
  5861. alt=""
  5862. />
  5863. </div>
  5864. <div>{{ w.commentCount }}</div>
  5865. </div>
  5866. </div>
  5867. </div>
  5868. </div>
  5869. </div>
  5870. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5871. 未提交
  5872. </div>
  5873. <div
  5874. class="noWorksS"
  5875. v-if="noWorksS && noWorksS[toolIndex].length"
  5876. >
  5877. <div
  5878. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5879. :key="sIndex"
  5880. class="noWorksName"
  5881. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5882. >
  5883. <el-tooltip
  5884. effect="dark"
  5885. :content="s.student"
  5886. placement="top"
  5887. >
  5888. <span>{{ s.student }}</span>
  5889. </el-tooltip>
  5890. </div>
  5891. </div>
  5892. </div>
  5893. <div
  5894. v-if="
  5895. tType &&
  5896. ((tType == 2 && sIsOpen == true) ||
  5897. tType == 1 ||
  5898. tType == 4) &&
  5899. tool.tool.indexOf(4) != -1 &&
  5900. (tool.askJson[0].answer ||
  5901. tool.askJson[0].answer === 0) &&
  5902. checkJson[toolIndex].length
  5903. "
  5904. class="xuan_right_box"
  5905. >
  5906. <div
  5907. class="tool_right_box"
  5908. v-for="(item, index) in tool.askJson"
  5909. :key="index"
  5910. >
  5911. <div style="width: calc(100% - 30px);">
  5912. <el-tooltip
  5913. effect="light"
  5914. :content="index + 1 + '、' + item.askstitle"
  5915. placement="top"
  5916. popper-class="text_tooltip"
  5917. >
  5918. <div
  5919. style="
  5920. width: calc(100% - 130px);
  5921. display: block;
  5922. white-space: nowrap;
  5923. overflow: hidden;
  5924. text-overflow: ellipsis;
  5925. word-break: break-word;
  5926. cursor: pointer;
  5927. "
  5928. >
  5929. {{ index + 1 + "、" + item.askstitle }}
  5930. </div>
  5931. </el-tooltip>
  5932. </div>
  5933. <div class="right_box_xuan">
  5934. <span>正确率</span>
  5935. <span>{{
  5936. (checkJson[toolIndex][index].right
  5937. ? checkJson[toolIndex][index].right
  5938. : 0) + "%"
  5939. }}</span>
  5940. </div>
  5941. </div>
  5942. </div>
  5943. <div
  5944. class="xuan_right_box"
  5945. style="background: unset; padding: 0 10px"
  5946. v-if="
  5947. tType &&
  5948. ((tType == 2 && sIsOpen == true) ||
  5949. tType == 1 ||
  5950. tType == 4) &&
  5951. tool.tool.indexOf(4) != -1
  5952. "
  5953. >
  5954. <AskStatic
  5955. v-if="
  5956. worksStudent.length &&
  5957. worksStudent[toolIndex].length > 0
  5958. "
  5959. :askJSON="tool"
  5960. :checkJson="checkJson[toolIndex]"
  5961. ></AskStatic>
  5962. </div>
  5963. <div
  5964. v-if="
  5965. tType &&
  5966. ((tType == 2 && sIsOpen == true) ||
  5967. tType == 1 ||
  5968. tType == 4) &&
  5969. tool.tool.indexOf(4) != -1
  5970. "
  5971. class="worksBox"
  5972. >
  5973. <div
  5974. class="zuoyeYulan"
  5975. v-if="
  5976. worksStudent.length &&
  5977. worksStudent[toolIndex].length > 0
  5978. "
  5979. >
  5980. <div class="worksTop">
  5981. <div>作业预览</div>
  5982. <div
  5983. class="corOpen"
  5984. @click="contract(toolIndex)"
  5985. v-if="
  5986. isCloseList[toolIndex].isCloseBoolean &&
  5987. isCloseList[toolIndex].isClose == 0
  5988. "
  5989. >
  5990. 折叠
  5991. </div>
  5992. <div
  5993. class="corOpen"
  5994. @click="contract(toolIndex)"
  5995. v-if="isCloseList[toolIndex].isClose == 1"
  5996. >
  5997. 展开
  5998. </div>
  5999. </div>
  6000. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6001. </div>
  6002. <div>
  6003. <div
  6004. :id="'tool-' + toolIndex"
  6005. :style="{
  6006. height:
  6007. isCloseList[toolIndex].isClose == 1
  6008. ? retrnToolHeight('tool-' + toolIndex)
  6009. : 'auto',
  6010. overflow:
  6011. isCloseList[toolIndex].isClose == 1
  6012. ? 'hidden'
  6013. : 'unset'
  6014. }"
  6015. class="worksDetailBox"
  6016. v-if="
  6017. worksStudent.length &&
  6018. worksStudent[toolIndex].length > 0
  6019. "
  6020. >
  6021. <div
  6022. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6023. :key="wIndex"
  6024. class="isWorksName2"
  6025. @click="
  6026. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6027. "
  6028. >
  6029. {{ w.sName }}
  6030. <img
  6031. class="deleteImg deleteImg2"
  6032. src="../../assets/deleteworks.png"
  6033. v-if="
  6034. w.userid == userid || tType == 1 || tType == 4
  6035. "
  6036. @click.stop="deleteWorks(w.wid)"
  6037. alt
  6038. />
  6039. </div>
  6040. <!-- <div class="works" style="
  6041. width: 200px;
  6042. height: 140px;
  6043. border-radius: 10px;
  6044. box-shadow: 0 0 6px 1px #dfdada;
  6045. overflow: hidden;
  6046. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6047. <div class="workImg">
  6048. <img src="../../assets/icon/works/noImg.png" @click="
  6049. openTools(
  6050. 4,
  6051. toolIndex,
  6052. taskCount,
  6053. w.works,
  6054. w.sName
  6055. )
  6056. " alt />
  6057. </div>
  6058. <div class="worksName">
  6059. <div>{{ w.sName }}</div>
  6060. <div>{{ w.time }}</div>
  6061. </div>
  6062. </div> -->
  6063. </div>
  6064. </div>
  6065. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6066. 未提交
  6067. </div>
  6068. <div
  6069. class="noWorksS"
  6070. v-if="noWorksS && noWorksS[toolIndex].length"
  6071. >
  6072. <div
  6073. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6074. :key="sIndex"
  6075. class="noWorksName"
  6076. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6077. >
  6078. <el-tooltip
  6079. effect="dark"
  6080. :content="s.student"
  6081. placement="top"
  6082. >
  6083. <span>{{ s.student }}</span>
  6084. </el-tooltip>
  6085. </div>
  6086. </div>
  6087. </div>
  6088. <div
  6089. v-if="
  6090. tType &&
  6091. ((tType == 2 && sIsOpen == true) ||
  6092. tType == 1 ||
  6093. tType == 4) &&
  6094. tool.tool.indexOf(45) != -1 &&
  6095. (tool.testJson.testJson[0].answer ||
  6096. tool.testJson.testJson[0].answer === 0) &&
  6097. checkJson[toolIndex].length
  6098. "
  6099. class="xuan_right_box"
  6100. >
  6101. <div
  6102. class="tool_right_box"
  6103. v-for="(item, index) in tool.testJson.testJson"
  6104. :key="index"
  6105. >
  6106. <div class="right_box_xuan" style="margin-right: 10px">
  6107. <span>正确率</span>
  6108. <span>{{
  6109. (checkJson[toolIndex][index].right
  6110. ? checkJson[toolIndex][index].right
  6111. : 0) + "%"
  6112. }}</span>
  6113. </div>
  6114. <div style="width: calc(100% - 30px);">
  6115. <el-tooltip
  6116. effect="light"
  6117. :content="index + 1 + '、' + item.teststitle"
  6118. placement="top"
  6119. popper-class="text_tooltip"
  6120. >
  6121. <div
  6122. style="
  6123. width: calc(100% - 130px);
  6124. display: block;
  6125. white-space: nowrap;
  6126. overflow: hidden;
  6127. text-overflow: ellipsis;
  6128. word-break: break-word;
  6129. cursor: pointer;
  6130. "
  6131. >
  6132. {{ index + 1 + "、" + item.teststitle }}
  6133. </div>
  6134. </el-tooltip>
  6135. </div>
  6136. </div>
  6137. </div>
  6138. <div
  6139. class="xuan_right_box"
  6140. style="background: unset; padding: 0 10px; width: 91.5%"
  6141. v-if="
  6142. tType &&
  6143. ((tType == 2 && sIsOpen == true) ||
  6144. tType == 1 ||
  6145. tType == 4) &&
  6146. tool.tool.indexOf(45) != -1
  6147. "
  6148. >
  6149. <AskStatic2
  6150. v-if="
  6151. worksStudent.length &&
  6152. worksStudent[toolIndex].length > 0
  6153. "
  6154. :askJSON="tool"
  6155. :checkJson="checkJson[toolIndex]"
  6156. ></AskStatic2>
  6157. </div>
  6158. <div
  6159. v-if="
  6160. tType &&
  6161. ((tType == 2 && sIsOpen == true) ||
  6162. tType == 1 ||
  6163. tType == 4) &&
  6164. tool.tool.indexOf(45) != -1
  6165. "
  6166. class="worksBox"
  6167. >
  6168. <div
  6169. class="zuoyeYulan"
  6170. v-if="
  6171. worksStudent.length &&
  6172. worksStudent[toolIndex].length > 0
  6173. "
  6174. >
  6175. <div class="worksTop">
  6176. <div>作业预览</div>
  6177. <div
  6178. class="corOpen"
  6179. @click="contract(toolIndex)"
  6180. v-if="
  6181. isCloseList[toolIndex].isCloseBoolean &&
  6182. isCloseList[toolIndex].isClose == 0
  6183. "
  6184. >
  6185. 折叠
  6186. </div>
  6187. <div
  6188. class="corOpen"
  6189. @click="contract(toolIndex)"
  6190. v-if="isCloseList[toolIndex].isClose == 1"
  6191. >
  6192. 展开
  6193. </div>
  6194. </div>
  6195. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6196. </div>
  6197. <div>
  6198. <div
  6199. :id="'tool-' + toolIndex"
  6200. :style="{
  6201. height:
  6202. isCloseList[toolIndex].isClose == 1
  6203. ? retrnToolHeight('tool-' + toolIndex)
  6204. : 'auto',
  6205. overflow:
  6206. isCloseList[toolIndex].isClose == 1
  6207. ? 'hidden'
  6208. : 'unset'
  6209. }"
  6210. class="worksDetailBox"
  6211. v-if="
  6212. worksStudent.length &&
  6213. worksStudent[toolIndex].length > 0
  6214. "
  6215. >
  6216. <div
  6217. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6218. :key="wIndex"
  6219. class="isWorksName2"
  6220. @click="
  6221. openTools(
  6222. 45,
  6223. toolIndex,
  6224. taskCount,
  6225. w.works,
  6226. w.sName
  6227. )
  6228. "
  6229. >
  6230. {{ w.sName }}
  6231. <img
  6232. class="deleteImg deleteImg2"
  6233. src="../../assets/deleteworks.png"
  6234. v-if="
  6235. w.userid == userid || tType == 1 || tType == 4
  6236. "
  6237. @click.stop="deleteWorks(w.wid)"
  6238. alt
  6239. />
  6240. </div>
  6241. </div>
  6242. </div>
  6243. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6244. 未提交
  6245. </div>
  6246. <div
  6247. class="noWorksS"
  6248. v-if="noWorksS && noWorksS[toolIndex].length"
  6249. >
  6250. <div
  6251. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6252. :key="sIndex"
  6253. class="noWorksName"
  6254. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6255. >
  6256. <el-tooltip
  6257. effect="dark"
  6258. :content="s.student"
  6259. placement="top"
  6260. >
  6261. <span>{{ s.student }}</span>
  6262. </el-tooltip>
  6263. </div>
  6264. </div>
  6265. </div>
  6266. <div
  6267. v-if="
  6268. tType &&
  6269. ((tType == 2 && sIsOpen == true) ||
  6270. tType == 1 ||
  6271. tType == 4) &&
  6272. tool.tool.indexOf(69) != -1
  6273. "
  6274. class="worksBox"
  6275. >
  6276. <div
  6277. class="zuoyeYulan"
  6278. v-if="
  6279. worksStudent.length &&
  6280. worksStudent[toolIndex].length > 0
  6281. "
  6282. >
  6283. <div class="worksTop">
  6284. <div>作业预览</div>
  6285. <div
  6286. class="corOpen"
  6287. @click="contract(toolIndex)"
  6288. v-if="
  6289. isCloseList[toolIndex].isCloseBoolean &&
  6290. isCloseList[toolIndex].isClose == 0
  6291. "
  6292. >
  6293. 折叠
  6294. </div>
  6295. <div
  6296. class="corOpen"
  6297. @click="contract(toolIndex)"
  6298. v-if="isCloseList[toolIndex].isClose == 1"
  6299. >
  6300. 展开
  6301. </div>
  6302. </div>
  6303. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6304. </div>
  6305. <div>
  6306. <div
  6307. :id="'tool-' + toolIndex"
  6308. :style="{
  6309. height:
  6310. isCloseList[toolIndex].isClose == 1
  6311. ? retrnToolHeight('tool-' + toolIndex)
  6312. : 'auto',
  6313. overflow:
  6314. isCloseList[toolIndex].isClose == 1
  6315. ? 'hidden'
  6316. : 'unset'
  6317. }"
  6318. class="worksDetailBox"
  6319. v-if="
  6320. worksStudent.length &&
  6321. worksStudent[toolIndex].length > 0
  6322. "
  6323. >
  6324. <div
  6325. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6326. :key="wIndex"
  6327. class="isWorksName2"
  6328. style="width: 160px;height: 65px;line-height: 65px;"
  6329. @click="
  6330. openTools(
  6331. 69,
  6332. toolIndex,
  6333. taskCount,
  6334. w.works,
  6335. w.sName,
  6336. w.wid
  6337. )
  6338. "
  6339. >
  6340. {{ w.sName }}
  6341. <img
  6342. class="deleteImg1"
  6343. src="../../assets/evaEnglish.png"
  6344. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6345. alt
  6346. v-if="
  6347. (courseDetail &&
  6348. (courseDetail.userid == userid ||
  6349. (courseDetail.course_teacher &&
  6350. courseDetail.course_teacher.indexOf(
  6351. userid
  6352. ) != -1))) ||
  6353. w.aiCode || w.teacherCode
  6354. "
  6355. />
  6356. <img
  6357. class="deleteImg deleteImg2"
  6358. src="../../assets/deleteworks.png"
  6359. v-if="
  6360. w.userid == userid || tType == 1 || tType == 4
  6361. "
  6362. @click.stop="deleteWorks(w.wid)"
  6363. alt
  6364. />
  6365. </div>
  6366. </div>
  6367. </div>
  6368. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6369. 未提交
  6370. </div>
  6371. <div
  6372. class="noWorksS"
  6373. v-if="noWorksS && noWorksS[toolIndex].length"
  6374. >
  6375. <div
  6376. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6377. :key="sIndex"
  6378. class="noWorksName"
  6379. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6380. >
  6381. <el-tooltip
  6382. effect="dark"
  6383. :content="s.student"
  6384. placement="top"
  6385. >
  6386. <span>{{ s.student }}</span>
  6387. </el-tooltip>
  6388. </div>
  6389. </div>
  6390. </div>
  6391. <div
  6392. v-if="
  6393. tType &&
  6394. ((tType == 2 && sIsOpen == true) ||
  6395. tType == 1 ||
  6396. tType == 4) &&
  6397. tool.tool.indexOf(15) != -1
  6398. "
  6399. class="worksBox"
  6400. >
  6401. <div
  6402. class="zuoyeYulan"
  6403. v-if="
  6404. (worksStudent.length &&
  6405. worksStudent[toolIndex].length > 0) ||
  6406. (courseGroup.group && courseGroup.group.length)
  6407. "
  6408. >
  6409. <div class="worksTop">
  6410. <div>作业预览</div>
  6411. <div
  6412. class="corOpen"
  6413. @click="contract(toolIndex)"
  6414. v-if="
  6415. isCloseList[toolIndex].isCloseBoolean &&
  6416. isCloseList[toolIndex].isClose == 0
  6417. "
  6418. >
  6419. 折叠
  6420. </div>
  6421. <div
  6422. class="corOpen"
  6423. @click="contract(toolIndex)"
  6424. v-if="isCloseList[toolIndex].isClose == 1"
  6425. >
  6426. 展开
  6427. </div>
  6428. </div>
  6429. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6430. </div>
  6431. <div
  6432. class="group_workBox"
  6433. v-for="(g, gindex) in courseGroup.group"
  6434. :key="gindex"
  6435. >
  6436. <div class="group_box">
  6437. <div class="group_title">
  6438. <el-tooltip
  6439. class="item"
  6440. effect="light"
  6441. :content="g.name"
  6442. placement="top"
  6443. >
  6444. <div class="group_name">{{ g.name }}</div>
  6445. </el-tooltip>
  6446. </div>
  6447. <div
  6448. class="group_work"
  6449. v-if="
  6450. g.works &&
  6451. g.works.length &&
  6452. g.works[toolIndex].length
  6453. "
  6454. >
  6455. <div
  6456. class="works"
  6457. v-for="(w, wIndex) in g.works[toolIndex]"
  6458. :key="wIndex"
  6459. >
  6460. <div
  6461. class="workImg"
  6462. style="
  6463. border-radius: 15px;
  6464. box-shadow: 0px 0px 5px 5px #eee;
  6465. "
  6466. >
  6467. <div
  6468. class="answerBg"
  6469. style="border-radius: 15px 15px 0 0"
  6470. @click="
  6471. commentOther(w, toolIndex, wIndex, null, g.id)
  6472. "
  6473. >
  6474. <div class="answerContent">
  6475. {{ JSON.parse(w.works)[0].answer }}
  6476. </div>
  6477. <div
  6478. class="answerScore"
  6479. v-if="w.score"
  6480. @click.stop="openScore(w)"
  6481. :class="{
  6482. rightW:
  6483. w.userid == userid ||
  6484. tType == 1 ||
  6485. tType == 4
  6486. }"
  6487. >
  6488. {{ JSON.parse(w.score).wScore }}分
  6489. </div>
  6490. <div
  6491. class="answerScore"
  6492. @click.stop="openScore(w)"
  6493. v-else-if="
  6494. courseDetail.userid == userid &&
  6495. courseDetail.state != 5 &&
  6496. chapInfoList[courseType].chapterInfo[0]
  6497. .taskJson[taskCount].eList &&
  6498. chapInfoList[courseType].chapterInfo[0]
  6499. .taskJson[taskCount].eList.length
  6500. "
  6501. :class="{
  6502. rightW:
  6503. w.userid == userid ||
  6504. tType == 1 ||
  6505. tType == 4
  6506. }"
  6507. >
  6508. 评分
  6509. </div>
  6510. <!-- <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"> -->
  6511. <div
  6512. v-else-if="
  6513. (courseDetail.userid == userid ||
  6514. (courseDetail.course_teacher &&
  6515. courseDetail.course_teacher.indexOf(
  6516. userid
  6517. ) != -1) ||
  6518. (w.userid == userid && sIsOpen)) &&
  6519. courseDetail.state == 5 &&
  6520. ((chapInfoList[courseType].chapterInfo[0]
  6521. .taskJson[taskCount].eList &&
  6522. chapInfoList[courseType].chapterInfo[0]
  6523. .taskJson[taskCount].eList.length) ||
  6524. (tool.eList && tool.eList.length))
  6525. "
  6526. >
  6527. <el-popover
  6528. placement="top"
  6529. width="318"
  6530. :disabled="
  6531. AIloading[toolIndex][wIndex].loading
  6532. "
  6533. trigger="hover"
  6534. >
  6535. <markScore
  6536. :loading="
  6537. AIloading[toolIndex][wIndex].loading
  6538. "
  6539. :markScoreVisible="markScoreVisible"
  6540. :ref="`markSco${toolIndex}${wIndex}`"
  6541. @updateLoading="updateLoading"
  6542. @updateDocSco="updateDocSco"
  6543. @refreshOther="refreshOther"
  6544. @markScoreDig="markScoreDig"
  6545. :tool="tool"
  6546. :wIndex="wIndex"
  6547. :scoCon="w"
  6548. :toolIndex="toolIndex"
  6549. :key="refreshKey"
  6550. :stage="courseType"
  6551. :task="taskCount"
  6552. :scoTit="
  6553. chapInfoList[courseType].chapterInfo[0]
  6554. .taskJson[taskCount].eList
  6555. "
  6556. >
  6557. </markScore>
  6558. <div
  6559. class="answerScore"
  6560. @click.stop="
  6561. markScoreDig2(
  6562. w.sName,
  6563. worksStudent,
  6564. w.userid,
  6565. toolIndex,
  6566. chapInfoList[courseType]
  6567. .chapterInfo[0].taskJson[taskCount]
  6568. .eList,
  6569. AIloading[toolIndex][wIndex].loading,
  6570. tool
  6571. )
  6572. "
  6573. slot="reference"
  6574. :class="{
  6575. rightW:
  6576. w.userid == userid ||
  6577. tType == 1 ||
  6578. tType == 4 ||
  6579. w.ateacher == userid
  6580. }"
  6581. >
  6582. <span
  6583. v-if="AIloading[toolIndex][wIndex].sco"
  6584. >
  6585. {{
  6586. AIloading[toolIndex][wIndex].loading
  6587. ? "评分中"
  6588. : AIloading[toolIndex][wIndex].sco +
  6589. "分"
  6590. }}
  6591. </span>
  6592. <span v-else>
  6593. {{
  6594. AIloading[toolIndex][wIndex].loading
  6595. ? "评分中"
  6596. : "评分"
  6597. }}
  6598. </span>
  6599. </div>
  6600. </el-popover>
  6601. </div>
  6602. <img
  6603. class="deleteImg"
  6604. src="../../assets/deleteworks.png"
  6605. v-if="
  6606. w.userid == userid ||
  6607. tType == 1 ||
  6608. tType == 4
  6609. "
  6610. @click.stop="deleteWorks(w.wid)"
  6611. alt
  6612. />
  6613. </div>
  6614. <div class="comment">
  6615. <div class="worksName">
  6616. <div>{{ w.sName }}</div>
  6617. </div>
  6618. <div class="commentList">
  6619. <div
  6620. class="commentImg"
  6621. @click="
  6622. isLikes(
  6623. w.wid,
  6624. userid,
  6625. 1,
  6626. null,
  6627. w.isLikes,
  6628. w.sName
  6629. )
  6630. "
  6631. >
  6632. <img
  6633. :src="w.isLikes == true ? likes : noLikes"
  6634. alt=""
  6635. />
  6636. </div>
  6637. <div>{{ w.likesCount }}</div>
  6638. </div>
  6639. <div
  6640. class="commentList"
  6641. style="margin-right: 15px"
  6642. >
  6643. <div
  6644. class="commentImg"
  6645. @click="
  6646. commentOther(
  6647. w,
  6648. toolIndex,
  6649. wIndex,
  6650. null,
  6651. g.id
  6652. )
  6653. "
  6654. >
  6655. <img
  6656. src="../../assets/icon/comment/comment.png"
  6657. alt=""
  6658. />
  6659. </div>
  6660. <div>{{ w.commentCount }}</div>
  6661. </div>
  6662. </div>
  6663. </div>
  6664. </div>
  6665. </div>
  6666. <div class="group_work" v-else>暂无提交作业</div>
  6667. </div>
  6668. </div>
  6669. <div
  6670. :id="'tool-' + toolIndex"
  6671. :style="{
  6672. height:
  6673. isCloseList[toolIndex].isClose == 1
  6674. ? retrnToolHeight('tool-' + toolIndex)
  6675. : 'auto',
  6676. overflow:
  6677. isCloseList[toolIndex].isClose == 1
  6678. ? 'hidden'
  6679. : 'unset'
  6680. }"
  6681. class="worksDetailBox"
  6682. v-if="
  6683. worksStudent.length &&
  6684. worksStudent[toolIndex].length > 0
  6685. "
  6686. >
  6687. <div
  6688. class="works"
  6689. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6690. :key="wIndex"
  6691. >
  6692. <div
  6693. class="workImg"
  6694. style="
  6695. border-radius: 15px;
  6696. box-shadow: 0px 0px 5px 5px #eee;
  6697. "
  6698. >
  6699. <!-- <img
  6700. src="../../assets/icon/works/noImg.png"
  6701. @click="openTools(15, toolIndex, taskCount, w.works)"
  6702. alt=""
  6703. />-->
  6704. <div
  6705. class="answerBg"
  6706. style="border-radius: 15px 15px 0 0"
  6707. @click="commentOther(w, toolIndex, wIndex)"
  6708. >
  6709. <!-- <div>{{ w.sName }}</div> -->
  6710. <div class="answerContent">
  6711. {{ JSON.parse(w.works)[0].answer }}
  6712. </div>
  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 v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6743. <div
  6744. v-else-if="
  6745. (courseDetail.userid == userid ||
  6746. (courseDetail.course_teacher &&
  6747. courseDetail.course_teacher.indexOf(
  6748. userid
  6749. ) != -1) ||
  6750. (w.userid == userid && sIsOpen)) &&
  6751. courseDetail.state == 5 &&
  6752. ((chapInfoList[courseType].chapterInfo[0]
  6753. .taskJson[taskCount].eList &&
  6754. chapInfoList[courseType].chapterInfo[0]
  6755. .taskJson[taskCount].eList.length) ||
  6756. (tool.eList && tool.eList.length))
  6757. "
  6758. >
  6759. <el-popover
  6760. placement="top"
  6761. width="318"
  6762. :disabled="AIloading[toolIndex][wIndex].loading"
  6763. trigger="hover"
  6764. >
  6765. <markScore
  6766. :loading="
  6767. AIloading[toolIndex][wIndex].loading
  6768. "
  6769. :markScoreVisible="markScoreVisible"
  6770. :ref="`markSco${toolIndex}${wIndex}`"
  6771. @updateLoading="updateLoading"
  6772. @updateDocSco="updateDocSco"
  6773. @refreshOther="refreshOther"
  6774. @markScoreDig="markScoreDig"
  6775. :tool="tool"
  6776. :wIndex="wIndex"
  6777. :scoCon="w"
  6778. :toolIndex="toolIndex"
  6779. :key="refreshKey"
  6780. :stage="courseType"
  6781. :task="taskCount"
  6782. :scoTit="
  6783. chapInfoList[courseType].chapterInfo[0]
  6784. .taskJson[taskCount].eList
  6785. "
  6786. >
  6787. </markScore>
  6788. <div
  6789. class="answerScore"
  6790. @click.stop="
  6791. markScoreDig2(
  6792. w.sName,
  6793. worksStudent,
  6794. w.userid,
  6795. toolIndex,
  6796. chapInfoList[courseType].chapterInfo[0]
  6797. .taskJson[taskCount].eList,
  6798. AIloading[toolIndex][wIndex].loading,
  6799. tool
  6800. )
  6801. "
  6802. slot="reference"
  6803. :class="{
  6804. rightW:
  6805. w.userid == userid ||
  6806. tType == 1 ||
  6807. tType == 4 ||
  6808. w.ateacher == userid
  6809. }"
  6810. >
  6811. <span v-if="AIloading[toolIndex][wIndex].sco">
  6812. {{
  6813. AIloading[toolIndex][wIndex].loading
  6814. ? "评分中"
  6815. : AIloading[toolIndex][wIndex].sco +
  6816. "分"
  6817. }}
  6818. </span>
  6819. <span v-else>
  6820. {{
  6821. AIloading[toolIndex][wIndex].loading
  6822. ? "评分中"
  6823. : "评分"
  6824. }}
  6825. </span>
  6826. </div>
  6827. </el-popover>
  6828. </div>
  6829. <img
  6830. class="deleteImg"
  6831. src="../../assets/deleteworks.png"
  6832. v-if="
  6833. w.userid == userid || tType == 1 || tType == 4
  6834. "
  6835. @click.stop="deleteWorks(w.wid)"
  6836. alt
  6837. />
  6838. </div>
  6839. <div class="comment">
  6840. <div class="worksName">
  6841. <div>{{ w.sName }}</div>
  6842. </div>
  6843. <div class="commentList">
  6844. <div
  6845. class="commentImg"
  6846. @click="
  6847. isLikes(
  6848. w.wid,
  6849. userid,
  6850. 1,
  6851. null,
  6852. w.isLikes,
  6853. w.sName
  6854. )
  6855. "
  6856. >
  6857. <img
  6858. :src="w.isLikes == true ? likes : noLikes"
  6859. alt=""
  6860. />
  6861. </div>
  6862. <div>{{ w.likesCount }}</div>
  6863. </div>
  6864. <div class="commentList" style="margin-right: 15px">
  6865. <div
  6866. class="commentImg"
  6867. @click="commentOther(w, toolIndex, wIndex)"
  6868. >
  6869. <img
  6870. src="../../assets/icon/comment/comment.png"
  6871. alt=""
  6872. />
  6873. </div>
  6874. <div>{{ w.commentCount }}</div>
  6875. </div>
  6876. </div>
  6877. </div>
  6878. </div>
  6879. </div>
  6880. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6881. 未提交
  6882. </div>
  6883. <div
  6884. class="noWorksS"
  6885. v-if="noWorksS && noWorksS[toolIndex].length"
  6886. >
  6887. <div
  6888. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6889. :key="sIndex"
  6890. class="noWorksName"
  6891. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6892. >
  6893. <el-tooltip
  6894. effect="dark"
  6895. :content="s.student"
  6896. placement="top"
  6897. >
  6898. <span>{{ s.student }}</span>
  6899. </el-tooltip>
  6900. </div>
  6901. </div>
  6902. </div>
  6903. <div
  6904. v-if="
  6905. tType &&
  6906. ((tType == 2 && sIsOpen == true) ||
  6907. tType == 1 ||
  6908. tType == 4) &&
  6909. tool.tool.indexOf(1) != -1
  6910. "
  6911. class="worksBox"
  6912. >
  6913. <div
  6914. class="zuoyeYulan"
  6915. style="display: flex;justify-content: space-between;align-items: center;"
  6916. v-if="
  6917. (worksStudent.length &&
  6918. worksStudent[toolIndex].length > 0) ||
  6919. (courseGroup.group && courseGroup.group.length)
  6920. "
  6921. >
  6922. <div class="worksTop">
  6923. <div>作业预览</div>
  6924. <div
  6925. class="corOpen"
  6926. @click="contract(toolIndex)"
  6927. v-if="
  6928. isCloseList[toolIndex].isCloseBoolean &&
  6929. isCloseList[toolIndex].isClose == 0
  6930. "
  6931. >
  6932. 折叠
  6933. </div>
  6934. <div
  6935. class="corOpen"
  6936. @click="contract(toolIndex)"
  6937. v-if="isCloseList[toolIndex].isClose == 1"
  6938. >
  6939. 展开
  6940. </div>
  6941. </div>
  6942. <div
  6943. style="display: flex;"
  6944. v-if="
  6945. (courseDetail.userid == userid ||
  6946. (courseDetail.course_teacher &&
  6947. courseDetail.course_teacher.indexOf(userid) !=
  6948. -1)) &&
  6949. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6950. taskCount
  6951. ].eList &&
  6952. chapInfoList[courseType].chapterInfo[0].taskJson[
  6953. taskCount
  6954. ].eList.length) ||
  6955. (tool.eList && tool.eList.length)) &&
  6956. courseDetail.state == 5
  6957. "
  6958. >
  6959. <div
  6960. style="margin-right:10px"
  6961. class="ScoreBtn"
  6962. @click="
  6963. resetLoopEva(
  6964. worksStudent[toolIndex],
  6965. chapInfoList[courseType].chapterInfo[0].taskJson[
  6966. taskCount
  6967. ].eList,
  6968. courseType,
  6969. taskCount,
  6970. toolIndex,
  6971. tool.toolDetail,
  6972. worksStudent
  6973. )
  6974. "
  6975. >
  6976. 一键重置
  6977. </div>
  6978. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6979. <img
  6980. src="../../assets/icon/newIcons/rootImg.png"
  6981. alt=""
  6982. />
  6983. AI评分
  6984. </div>
  6985. <div
  6986. class="ScoreBtn"
  6987. v-else-if="!loopLoading[toolIndex].loading"
  6988. @click="
  6989. loopEva(
  6990. worksStudent[toolIndex],
  6991. chapInfoList[courseType].chapterInfo[0].taskJson[
  6992. taskCount
  6993. ].eList,
  6994. courseType,
  6995. taskCount,
  6996. toolIndex,
  6997. tool.toolDetail,
  6998. chapInfoList[courseType].chapterInfo[0].taskJson[
  6999. taskCount
  7000. ].taskDetail,
  7001. tool
  7002. )
  7003. "
  7004. >
  7005. <img
  7006. src="../../assets/icon/newIcons/rootImg.png"
  7007. alt=""
  7008. />
  7009. AI评分
  7010. </div>
  7011. <div class="ScoreBtn" v-else>
  7012. <img
  7013. src="../../assets/icon/newIcons/rootImg.png"
  7014. alt=""
  7015. />
  7016. 正在评分
  7017. </div>
  7018. </div>
  7019. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7020. </div>
  7021. <div
  7022. class="group_workBox"
  7023. v-for="(g, gindex) in courseGroup.group"
  7024. :key="gindex"
  7025. >
  7026. <div class="group_box">
  7027. <div class="group_title">
  7028. <el-tooltip
  7029. class="item"
  7030. effect="light"
  7031. :content="g.name"
  7032. placement="top"
  7033. >
  7034. <div class="group_name">{{ g.name }}</div>
  7035. </el-tooltip>
  7036. </div>
  7037. <div
  7038. class="group_work"
  7039. v-if="
  7040. g.works &&
  7041. g.works.length &&
  7042. g.works[toolIndex].length
  7043. "
  7044. >
  7045. <div
  7046. class="works"
  7047. style="
  7048. width: 200px;
  7049. height: 140px;
  7050. margin: 10px 10px 10px 0;
  7051. border-radius: 15px;
  7052. box-shadow: 0 0 6px 1px #dfdada;
  7053. "
  7054. v-for="(w, wIndex) in g.works[toolIndex]"
  7055. :key="wIndex"
  7056. :class="w.type == 1 ? 'isTypeOne' : ''"
  7057. >
  7058. <div class="workImg">
  7059. <img
  7060. :src="w.works"
  7061. @click="previewImg(w.works, w)"
  7062. alt
  7063. />
  7064. <div
  7065. class="answerScore"
  7066. v-if="w.score"
  7067. @click.stop="openScore(w)"
  7068. :class="{
  7069. rightW:
  7070. w.userid == userid ||
  7071. tType == 1 ||
  7072. tType == 4
  7073. }"
  7074. >
  7075. {{ JSON.parse(w.score).wScore }}分
  7076. </div>
  7077. <div
  7078. class="answerScore"
  7079. @click.stop="openScore(w)"
  7080. v-else-if="courseDetail.userid == userid"
  7081. :class="{
  7082. rightW:
  7083. w.userid == userid ||
  7084. tType == 1 ||
  7085. tType == 4
  7086. }"
  7087. >
  7088. 评分
  7089. </div>
  7090. <img
  7091. class="deleteImg"
  7092. src="../../assets/deleteworks.png"
  7093. v-if="
  7094. w.userid == userid || tType == 1 || tType == 4
  7095. "
  7096. @click.stop="deleteWorks(w.wid)"
  7097. alt
  7098. />
  7099. </div>
  7100. <div class="comment" style="min-width: 200px">
  7101. <div class="worksName">
  7102. <div>{{ w.sName }}</div>
  7103. </div>
  7104. <div class="commentList">
  7105. <div class="commentList">
  7106. <div
  7107. class="commentImg"
  7108. @click="
  7109. isLikes(
  7110. w.wid,
  7111. userid,
  7112. 1,
  7113. null,
  7114. w.isLikes,
  7115. w.sName
  7116. )
  7117. "
  7118. >
  7119. <img
  7120. :src="w.isLikes == true ? likes : noLikes"
  7121. alt=""
  7122. />
  7123. </div>
  7124. <div>{{ w.likesCount }}</div>
  7125. </div>
  7126. <div
  7127. class="commentList"
  7128. style="margin-right: 15px"
  7129. >
  7130. <div
  7131. class="commentImg"
  7132. @click="
  7133. commentOther(
  7134. w,
  7135. toolIndex,
  7136. wIndex,
  7137. null,
  7138. g.id
  7139. )
  7140. "
  7141. >
  7142. <img
  7143. src="../../assets/icon/comment/comment.png"
  7144. alt=""
  7145. />
  7146. </div>
  7147. <div>{{ w.commentCount }}</div>
  7148. </div>
  7149. </div>
  7150. </div>
  7151. </div>
  7152. </div>
  7153. <div class="group_work" v-else>暂无提交作业</div>
  7154. </div>
  7155. </div>
  7156. <div
  7157. :id="'tool-' + toolIndex"
  7158. :style="{
  7159. height:
  7160. isCloseList[toolIndex].isClose == 1
  7161. ? retrnToolHeight('tool-' + toolIndex)
  7162. : 'auto',
  7163. overflow:
  7164. isCloseList[toolIndex].isClose == 1
  7165. ? 'hidden'
  7166. : 'unset'
  7167. }"
  7168. class="worksDetailBox"
  7169. v-if="
  7170. worksStudent.length &&
  7171. worksStudent[toolIndex].length > 0
  7172. "
  7173. >
  7174. <div
  7175. class="works"
  7176. style="
  7177. width: 200px;
  7178. height: 140px;
  7179. margin: 10px 10px 10px 0;
  7180. border-radius: 15px;
  7181. box-shadow: 0 0 6px 1px #dfdada;
  7182. "
  7183. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7184. :key="wIndex"
  7185. >
  7186. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7187. <div class="workImg">
  7188. <img
  7189. :src="w.works"
  7190. @click="previewImg(w.works, w)"
  7191. alt
  7192. />
  7193. <div
  7194. class="answerScore"
  7195. v-if="w.score"
  7196. @click.stop="openScore(w)"
  7197. :class="{
  7198. rightW:
  7199. w.userid == userid || tType == 1 || tType == 4
  7200. }"
  7201. >
  7202. {{ JSON.parse(w.score).wScore }}分
  7203. </div>
  7204. <div
  7205. class="answerScore"
  7206. @click.stop="openScore(w)"
  7207. v-else-if="
  7208. courseDetail.userid == userid &&
  7209. courseDetail.state != 5 &&
  7210. chapInfoList[courseType].chapterInfo[0]
  7211. .taskJson[taskCount].eList &&
  7212. chapInfoList[courseType].chapterInfo[0]
  7213. .taskJson[taskCount].eList.length
  7214. "
  7215. :class="{
  7216. rightW:
  7217. w.userid == userid || tType == 1 || tType == 4
  7218. }"
  7219. >
  7220. 评分
  7221. </div>
  7222. <div
  7223. v-else-if="
  7224. (courseDetail.userid == userid ||
  7225. (courseDetail.course_teacher &&
  7226. courseDetail.course_teacher.indexOf(userid) !=
  7227. -1) ||
  7228. (courseDetail.course_teacher &&
  7229. courseDetail.course_teacher.indexOf(userid) !=
  7230. -1) ||
  7231. (courseDetail.course_teacher &&
  7232. courseDetail.course_teacher.indexOf(userid) !=
  7233. -1) ||
  7234. (w.userid == userid && sIsOpen)) &&
  7235. courseDetail.state == 5 &&
  7236. ((chapInfoList[courseType].chapterInfo[0]
  7237. .taskJson[taskCount].eList &&
  7238. chapInfoList[courseType].chapterInfo[0]
  7239. .taskJson[taskCount].eList.length) ||
  7240. (tool.eList && tool.eList.length))
  7241. "
  7242. >
  7243. <el-popover
  7244. placement="top"
  7245. width="318"
  7246. :disabled="AIloading[toolIndex][wIndex].loading"
  7247. trigger="hover"
  7248. >
  7249. <markScore
  7250. :loading="AIloading[toolIndex][wIndex].loading"
  7251. :markScoreVisible="markScoreVisible"
  7252. :ref="`markSco${toolIndex}${wIndex}`"
  7253. @updateLoading="updateLoading"
  7254. @updateDocSco="updateDocSco"
  7255. @refreshOther="refreshOther"
  7256. @markScoreDig="markScoreDig"
  7257. :tool="tool"
  7258. :wIndex="wIndex"
  7259. :scoCon="w"
  7260. :toolIndex="toolIndex"
  7261. :key="refreshKey"
  7262. :stage="courseType"
  7263. :task="taskCount"
  7264. :scoTit="
  7265. chapInfoList[courseType].chapterInfo[0]
  7266. .taskJson[taskCount].eList
  7267. "
  7268. >
  7269. </markScore>
  7270. <div
  7271. class="answerScore"
  7272. @click="
  7273. markScoreDig2(
  7274. w.sName,
  7275. worksStudent,
  7276. w.userid,
  7277. toolIndex,
  7278. chapInfoList[courseType].chapterInfo[0]
  7279. .taskJson[taskCount].eList,
  7280. AIloading[toolIndex][wIndex].loading,
  7281. tool
  7282. )
  7283. "
  7284. slot="reference"
  7285. :class="{
  7286. rightW:
  7287. w.userid == userid ||
  7288. tType == 1 ||
  7289. tType == 4 ||
  7290. w.ateacher == userid
  7291. }"
  7292. >
  7293. <span v-if="AIloading[toolIndex][wIndex].sco">
  7294. {{
  7295. AIloading[toolIndex][wIndex].loading
  7296. ? "评分中"
  7297. : AIloading[toolIndex][wIndex].sco + "分"
  7298. }}
  7299. </span>
  7300. <span v-else>
  7301. {{
  7302. AIloading[toolIndex][wIndex].loading
  7303. ? "评分中"
  7304. : "评分"
  7305. }}
  7306. </span>
  7307. </div>
  7308. </el-popover>
  7309. </div>
  7310. <img
  7311. class="deleteImg"
  7312. src="../../assets/deleteworks.png"
  7313. v-if="
  7314. w.userid == userid || tType == 1 || tType == 4
  7315. "
  7316. @click.stop="deleteWorks(w.wid)"
  7317. alt
  7318. />
  7319. </div>
  7320. <div class="comment" style="min-width: 200px">
  7321. <div class="worksName">
  7322. <div>{{ w.sName }}</div>
  7323. </div>
  7324. <div class="commentList">
  7325. <div class="commentList">
  7326. <div
  7327. class="commentImg"
  7328. @click="
  7329. isLikes(
  7330. w.wid,
  7331. userid,
  7332. 1,
  7333. null,
  7334. w.isLikes,
  7335. w.sName
  7336. )
  7337. "
  7338. >
  7339. <img
  7340. :src="w.isLikes == true ? likes : noLikes"
  7341. alt=""
  7342. />
  7343. </div>
  7344. <div>{{ w.likesCount }}</div>
  7345. </div>
  7346. <div class="commentList" style="margin-right: 15px">
  7347. <div
  7348. class="commentImg"
  7349. @click="commentOther(w, toolIndex, wIndex)"
  7350. >
  7351. <img
  7352. src="../../assets/icon/comment/comment.png"
  7353. alt=""
  7354. />
  7355. </div>
  7356. <div>{{ w.commentCount }}</div>
  7357. </div>
  7358. </div>
  7359. </div>
  7360. </div>
  7361. </div>
  7362. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7363. 未提交
  7364. </div>
  7365. <div
  7366. class="noWorksS"
  7367. v-if="noWorksS && noWorksS[toolIndex].length"
  7368. >
  7369. <div
  7370. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7371. :key="sIndex"
  7372. class="noWorksName"
  7373. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7374. >
  7375. <el-tooltip
  7376. effect="dark"
  7377. :content="s.student"
  7378. placement="top"
  7379. >
  7380. <span>{{ s.student }}</span>
  7381. </el-tooltip>
  7382. </div>
  7383. </div>
  7384. </div>
  7385. <div
  7386. v-if="
  7387. tType &&
  7388. ((tType == 2 && sIsOpen == true) ||
  7389. tType == 1 ||
  7390. tType == 4) &&
  7391. tool.tool.indexOf(3) != -1
  7392. "
  7393. class="worksBox"
  7394. >
  7395. <div
  7396. class="zuoyeYulan"
  7397. style="display: flex;justify-content: space-between;align-items: center;"
  7398. v-if="
  7399. (worksStudent.length &&
  7400. worksStudent[toolIndex].length > 0) ||
  7401. (courseGroup.group && courseGroup.group.length)
  7402. "
  7403. >
  7404. <div class="worksTop">
  7405. <div>作业预览</div>
  7406. <div
  7407. class="corOpen"
  7408. @click="contract(toolIndex)"
  7409. v-if="
  7410. isCloseList[toolIndex].isCloseBoolean &&
  7411. isCloseList[toolIndex].isClose == 0
  7412. "
  7413. >
  7414. 折叠
  7415. </div>
  7416. <div
  7417. class="corOpen"
  7418. @click="contract(toolIndex)"
  7419. v-if="isCloseList[toolIndex].isClose == 1"
  7420. >
  7421. 展开
  7422. </div>
  7423. </div>
  7424. <div
  7425. style="display: flex;"
  7426. v-if="
  7427. (courseDetail.userid == userid ||
  7428. (courseDetail.course_teacher &&
  7429. courseDetail.course_teacher.indexOf(userid) !=
  7430. -1)) &&
  7431. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7432. taskCount
  7433. ].eList &&
  7434. chapInfoList[courseType].chapterInfo[0].taskJson[
  7435. taskCount
  7436. ].eList.length) ||
  7437. (tool.eList && tool.eList.length)) &&
  7438. courseDetail.state == 5
  7439. "
  7440. >
  7441. <div
  7442. style="margin-right:10px"
  7443. class="ScoreBtn"
  7444. @click="
  7445. resetLoopEva(
  7446. worksStudent[toolIndex],
  7447. chapInfoList[courseType].chapterInfo[0].taskJson[
  7448. taskCount
  7449. ].eList,
  7450. courseType,
  7451. taskCount,
  7452. toolIndex,
  7453. tool.toolDetail,
  7454. worksStudent
  7455. )
  7456. "
  7457. >
  7458. 一键重置
  7459. </div>
  7460. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7461. <img
  7462. src="../../assets/icon/newIcons/rootImg.png"
  7463. alt=""
  7464. />
  7465. AI评分
  7466. </div>
  7467. <div
  7468. class="ScoreBtn"
  7469. v-else-if="!loopLoading[toolIndex].loading"
  7470. @click="
  7471. loopEva(
  7472. worksStudent[toolIndex],
  7473. chapInfoList[courseType].chapterInfo[0].taskJson[
  7474. taskCount
  7475. ].eList,
  7476. courseType,
  7477. taskCount,
  7478. toolIndex,
  7479. tool.toolDetail,
  7480. chapInfoList[courseType].chapterInfo[0].taskJson[
  7481. taskCount
  7482. ].taskDetail,
  7483. tool
  7484. )
  7485. "
  7486. >
  7487. <img
  7488. src="../../assets/icon/newIcons/rootImg.png"
  7489. alt=""
  7490. />
  7491. AI评分
  7492. </div>
  7493. <div class="ScoreBtn" v-else>
  7494. <img
  7495. src="../../assets/icon/newIcons/rootImg.png"
  7496. alt=""
  7497. />
  7498. 正在评分
  7499. </div>
  7500. </div>
  7501. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7502. </div>
  7503. <div
  7504. class="group_workBox"
  7505. v-for="(g, gindex) in courseGroup.group"
  7506. :key="gindex"
  7507. >
  7508. <div class="group_box">
  7509. <div class="group_title">
  7510. <el-tooltip
  7511. class="item"
  7512. effect="light"
  7513. :content="g.name"
  7514. placement="top"
  7515. >
  7516. <div class="group_name">{{ g.name }}</div>
  7517. </el-tooltip>
  7518. </div>
  7519. <div
  7520. class="group_work"
  7521. v-if="
  7522. g.works &&
  7523. g.works.length &&
  7524. g.works[toolIndex].length
  7525. "
  7526. >
  7527. <div
  7528. class="works"
  7529. style="
  7530. width: 200px;
  7531. height: 140px;
  7532. margin: 10px 10px 10px 0;
  7533. border-radius: 15px;
  7534. box-shadow: 0 0 6px 1px #dfdada;
  7535. "
  7536. v-for="(w, wIndex) in g.works[toolIndex]"
  7537. :key="wIndex"
  7538. :class="w.type == 1 ? 'isTypeOne' : ''"
  7539. >
  7540. <div class="workImg">
  7541. <img
  7542. :src="w.works"
  7543. @click="previewImg(w.works, w)"
  7544. alt
  7545. />
  7546. <div
  7547. class="answerScore"
  7548. v-if="w.score"
  7549. @click.stop="openScore(w)"
  7550. :class="{
  7551. rightW:
  7552. w.userid == userid ||
  7553. tType == 1 ||
  7554. tType == 4
  7555. }"
  7556. >
  7557. {{ JSON.parse(w.score).wScore }}分
  7558. </div>
  7559. <div
  7560. class="answerScore"
  7561. @click.stop="openScore(w)"
  7562. v-else-if="courseDetail.userid == userid"
  7563. :class="{
  7564. rightW:
  7565. w.userid == userid ||
  7566. tType == 1 ||
  7567. tType == 4
  7568. }"
  7569. >
  7570. 评分
  7571. </div>
  7572. <img
  7573. class="deleteImg"
  7574. src="../../assets/deleteworks.png"
  7575. v-if="
  7576. w.userid == userid || tType == 1 || tType == 4
  7577. "
  7578. @click.stop="deleteWorks(w.wid)"
  7579. alt
  7580. />
  7581. </div>
  7582. <div class="comment" style="min-width: 200px">
  7583. <div class="worksName">
  7584. <div>{{ w.sName }}</div>
  7585. </div>
  7586. <div class="commentList">
  7587. <div class="commentList">
  7588. <div
  7589. class="commentImg"
  7590. @click="
  7591. isLikes(
  7592. w.wid,
  7593. userid,
  7594. 1,
  7595. null,
  7596. w.isLikes,
  7597. w.sName
  7598. )
  7599. "
  7600. >
  7601. <img
  7602. :src="w.isLikes == true ? likes : noLikes"
  7603. alt=""
  7604. />
  7605. </div>
  7606. <div>{{ w.likesCount }}</div>
  7607. </div>
  7608. <div
  7609. class="commentList"
  7610. style="margin-right: 15px"
  7611. >
  7612. <div
  7613. class="commentImg"
  7614. @click="
  7615. commentOther(
  7616. w,
  7617. toolIndex,
  7618. wIndex,
  7619. null,
  7620. g.id
  7621. )
  7622. "
  7623. >
  7624. <img
  7625. src="../../assets/icon/comment/comment.png"
  7626. alt=""
  7627. />
  7628. </div>
  7629. <div>{{ w.commentCount }}</div>
  7630. </div>
  7631. </div>
  7632. </div>
  7633. </div>
  7634. </div>
  7635. <div class="group_work" v-else>暂无提交作业</div>
  7636. </div>
  7637. </div>
  7638. <div
  7639. :id="'tool-' + toolIndex"
  7640. :style="{
  7641. height:
  7642. isCloseList[toolIndex].isClose == 1
  7643. ? retrnToolHeight('tool-' + toolIndex)
  7644. : 'auto',
  7645. overflow:
  7646. isCloseList[toolIndex].isClose == 1
  7647. ? 'hidden'
  7648. : 'unset'
  7649. }"
  7650. class="worksDetailBox"
  7651. v-if="
  7652. worksStudent.length &&
  7653. worksStudent[toolIndex].length > 0
  7654. "
  7655. >
  7656. <div
  7657. class="works"
  7658. style="
  7659. width: 200px;
  7660. height: 140px;
  7661. margin: 10px 10px 10px 0;
  7662. border-radius: 15px;
  7663. box-shadow: 0 0 6px 1px #dfdada;
  7664. "
  7665. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7666. :key="wIndex"
  7667. >
  7668. <!-- @click="previewImg(w.works)" -->
  7669. <div class="workImg">
  7670. <img
  7671. :src="w.works"
  7672. @click="previewImg(w.works, w)"
  7673. alt
  7674. />
  7675. <div
  7676. class="answerScore"
  7677. v-if="w.score"
  7678. @click.stop="openScore(w)"
  7679. :class="{
  7680. rightW:
  7681. w.userid == userid || tType == 1 || tType == 4
  7682. }"
  7683. >
  7684. {{ JSON.parse(w.score).wScore }}分
  7685. </div>
  7686. <div
  7687. class="answerScore"
  7688. @click.stop="openScore(w)"
  7689. v-else-if="
  7690. courseDetail.userid == userid &&
  7691. courseDetail.state != 5 &&
  7692. chapInfoList[courseType].chapterInfo[0]
  7693. .taskJson[taskCount].eList &&
  7694. chapInfoList[courseType].chapterInfo[0]
  7695. .taskJson[taskCount].eList.length
  7696. "
  7697. :class="{
  7698. rightW:
  7699. w.userid == userid || tType == 1 || tType == 4
  7700. }"
  7701. >
  7702. 评分
  7703. </div>
  7704. <!-- <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"> -->
  7705. <div
  7706. v-else-if="
  7707. (courseDetail.userid == userid ||
  7708. (courseDetail.course_teacher &&
  7709. courseDetail.course_teacher.indexOf(userid) !=
  7710. -1) ||
  7711. (w.userid == userid && sIsOpen)) &&
  7712. courseDetail.state == 5 &&
  7713. ((chapInfoList[courseType].chapterInfo[0]
  7714. .taskJson[taskCount].eList &&
  7715. chapInfoList[courseType].chapterInfo[0]
  7716. .taskJson[taskCount].eList.length) ||
  7717. (tool.eList && tool.eList.length))
  7718. "
  7719. >
  7720. <el-popover
  7721. placement="top"
  7722. width="318"
  7723. :disabled="AIloading[toolIndex][wIndex].loading"
  7724. trigger="hover"
  7725. >
  7726. <markScore
  7727. :loading="AIloading[toolIndex][wIndex].loading"
  7728. :markScoreVisible="markScoreVisible"
  7729. :ref="`markSco${toolIndex}${wIndex}`"
  7730. @updateLoading="updateLoading"
  7731. @updateDocSco="updateDocSco"
  7732. @refreshOther="refreshOther"
  7733. @markScoreDig="markScoreDig"
  7734. :tool="tool"
  7735. :wIndex="wIndex"
  7736. :scoCon="w"
  7737. :toolIndex="toolIndex"
  7738. :key="refreshKey"
  7739. :stage="courseType"
  7740. :task="taskCount"
  7741. :scoTit="
  7742. chapInfoList[courseType].chapterInfo[0]
  7743. .taskJson[taskCount].eList
  7744. "
  7745. >
  7746. </markScore>
  7747. <div
  7748. class="answerScore"
  7749. @click="
  7750. markScoreDig2(
  7751. w.sName,
  7752. worksStudent,
  7753. w.userid,
  7754. toolIndex,
  7755. chapInfoList[courseType].chapterInfo[0]
  7756. .taskJson[taskCount].eList,
  7757. AIloading[toolIndex][wIndex].loading,
  7758. tool
  7759. )
  7760. "
  7761. slot="reference"
  7762. :class="{
  7763. rightW:
  7764. w.userid == userid ||
  7765. tType == 1 ||
  7766. tType == 4 ||
  7767. w.ateacher == userid
  7768. }"
  7769. >
  7770. <span v-if="AIloading[toolIndex][wIndex].sco">
  7771. {{
  7772. AIloading[toolIndex][wIndex].loading
  7773. ? "评分中"
  7774. : AIloading[toolIndex][wIndex].sco + "分"
  7775. }}
  7776. </span>
  7777. <span v-else>
  7778. {{
  7779. AIloading[toolIndex][wIndex].loading
  7780. ? "评分中"
  7781. : "评分"
  7782. }}
  7783. </span>
  7784. </div>
  7785. </el-popover>
  7786. </div>
  7787. <img
  7788. class="deleteImg"
  7789. src="../../assets/deleteworks.png"
  7790. v-if="
  7791. w.userid == userid || tType == 1 || tType == 4
  7792. "
  7793. @click.stop="deleteWorks(w.wid)"
  7794. alt
  7795. />
  7796. </div>
  7797. <div class="comment" style="min-width: 200px">
  7798. <div class="worksName">
  7799. <div>{{ w.sName }}</div>
  7800. </div>
  7801. <div class="commentList">
  7802. <div class="commentList">
  7803. <div
  7804. class="commentImg"
  7805. @click="
  7806. isLikes(
  7807. w.wid,
  7808. userid,
  7809. 1,
  7810. null,
  7811. w.isLikes,
  7812. w.sName
  7813. )
  7814. "
  7815. >
  7816. <img
  7817. :src="w.isLikes == true ? likes : noLikes"
  7818. alt=""
  7819. />
  7820. </div>
  7821. <div>{{ w.likesCount }}</div>
  7822. </div>
  7823. <div class="commentList" style="margin-right: 15px">
  7824. <div
  7825. class="commentImg"
  7826. @click="commentOther(w, toolIndex, wIndex)"
  7827. >
  7828. <img
  7829. src="../../assets/icon/comment/comment.png"
  7830. alt=""
  7831. />
  7832. </div>
  7833. <div>{{ w.commentCount }}</div>
  7834. </div>
  7835. </div>
  7836. </div>
  7837. </div>
  7838. </div>
  7839. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7840. 未提交
  7841. </div>
  7842. <div
  7843. class="noWorksS"
  7844. v-if="noWorksS && noWorksS[toolIndex].length"
  7845. >
  7846. <div
  7847. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7848. :key="sIndex"
  7849. class="noWorksName"
  7850. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7851. >
  7852. <el-tooltip
  7853. effect="dark"
  7854. :content="s.student"
  7855. placement="top"
  7856. >
  7857. <span>{{ s.student }}</span>
  7858. </el-tooltip>
  7859. </div>
  7860. </div>
  7861. </div>
  7862. <div
  7863. v-if="
  7864. tType &&
  7865. ((tType == 2 && sIsOpen == true) ||
  7866. tType == 1 ||
  7867. tType == 4) &&
  7868. tool.tool.indexOf(6) != -1
  7869. "
  7870. class="worksBox"
  7871. >
  7872. <div
  7873. class="zuoyeYulan"
  7874. v-if="
  7875. (worksStudent.length &&
  7876. worksStudent[toolIndex].length > 0) ||
  7877. (courseGroup.group && courseGroup.group.length)
  7878. "
  7879. >
  7880. <div class="worksTop">
  7881. <div>作业预览</div>
  7882. <div
  7883. class="corOpen"
  7884. @click="contract(toolIndex)"
  7885. v-if="
  7886. isCloseList[toolIndex].isCloseBoolean &&
  7887. isCloseList[toolIndex].isClose == 0
  7888. "
  7889. >
  7890. 折叠
  7891. </div>
  7892. <div
  7893. class="corOpen"
  7894. @click="contract(toolIndex)"
  7895. v-if="isCloseList[toolIndex].isClose == 1"
  7896. >
  7897. 展开
  7898. </div>
  7899. </div>
  7900. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7901. </div>
  7902. <div
  7903. class="group_workBox"
  7904. v-for="(g, gindex) in courseGroup.group"
  7905. :key="gindex"
  7906. >
  7907. <div class="group_box">
  7908. <div class="group_title">
  7909. <el-tooltip
  7910. class="item"
  7911. effect="light"
  7912. :content="g.name"
  7913. placement="top"
  7914. >
  7915. <div class="group_name">{{ g.name }}</div>
  7916. </el-tooltip>
  7917. </div>
  7918. <div
  7919. class="group_work"
  7920. v-if="
  7921. g.works &&
  7922. g.works.length &&
  7923. g.works[toolIndex].length
  7924. "
  7925. >
  7926. <div
  7927. class="works"
  7928. style="
  7929. width: 200px;
  7930. height: 140px;
  7931. margin: 10px 10px 10px 0;
  7932. border-radius: 15px;
  7933. box-shadow: 0 0 6px 1px #dfdada;
  7934. "
  7935. v-for="(w, wIndex) in g.works[toolIndex]"
  7936. :key="wIndex"
  7937. :class="w.type == 1 ? 'isTypeOne' : ''"
  7938. >
  7939. <div class="workImg">
  7940. <img
  7941. :src="w.works"
  7942. @click="previewImg(w.works, w)"
  7943. alt
  7944. />
  7945. <div
  7946. class="answerScore"
  7947. v-if="w.score"
  7948. @click.stop="openScore(w)"
  7949. :class="{
  7950. rightW:
  7951. w.userid == userid ||
  7952. tType == 1 ||
  7953. tType == 4
  7954. }"
  7955. >
  7956. {{ JSON.parse(w.score).wScore }}分
  7957. </div>
  7958. <div
  7959. class="answerScore"
  7960. @click.stop="openScore(w)"
  7961. v-else-if="courseDetail.userid == userid"
  7962. :class="{
  7963. rightW:
  7964. w.userid == userid ||
  7965. tType == 1 ||
  7966. tType == 4
  7967. }"
  7968. >
  7969. 评分
  7970. </div>
  7971. <img
  7972. class="deleteImg"
  7973. src="../../assets/deleteworks.png"
  7974. v-if="
  7975. w.userid == userid || tType == 1 || tType == 4
  7976. "
  7977. @click.stop="deleteWorks(w.wid)"
  7978. alt
  7979. />
  7980. </div>
  7981. <div class="comment" style="min-width: 200px">
  7982. <div class="worksName">
  7983. <div>{{ w.sName }}</div>
  7984. </div>
  7985. <div class="commentList">
  7986. <div class="commentList">
  7987. <div
  7988. class="commentImg"
  7989. @click="
  7990. isLikes(
  7991. w.wid,
  7992. userid,
  7993. 1,
  7994. null,
  7995. w.isLikes,
  7996. w.sName
  7997. )
  7998. "
  7999. >
  8000. <img
  8001. :src="w.isLikes == true ? likes : noLikes"
  8002. alt=""
  8003. />
  8004. </div>
  8005. <div>{{ w.likesCount }}</div>
  8006. </div>
  8007. <div
  8008. class="commentList"
  8009. style="margin-right: 15px"
  8010. >
  8011. <div
  8012. class="commentImg"
  8013. @click="
  8014. commentOther(
  8015. w,
  8016. toolIndex,
  8017. wIndex,
  8018. null,
  8019. g.id
  8020. )
  8021. "
  8022. >
  8023. <img
  8024. src="../../assets/icon/comment/comment.png"
  8025. alt=""
  8026. />
  8027. </div>
  8028. <div>{{ w.commentCount }}</div>
  8029. </div>
  8030. </div>
  8031. </div>
  8032. </div>
  8033. </div>
  8034. <div class="group_work" v-else>暂无提交作业</div>
  8035. </div>
  8036. </div>
  8037. <div
  8038. :id="'tool-' + toolIndex"
  8039. :style="{
  8040. height:
  8041. isCloseList[toolIndex].isClose == 1
  8042. ? retrnToolHeight('tool-' + toolIndex)
  8043. : 'auto',
  8044. overflow:
  8045. isCloseList[toolIndex].isClose == 1
  8046. ? 'hidden'
  8047. : 'unset'
  8048. }"
  8049. class="worksDetailBox"
  8050. v-if="
  8051. worksStudent.length &&
  8052. worksStudent[toolIndex].length > 0
  8053. "
  8054. >
  8055. <div
  8056. class="works"
  8057. style="
  8058. width: 200px;
  8059. height: 140px;
  8060. margin: 10px 10px 10px 0;
  8061. border-radius: 15px;
  8062. box-shadow: 0 0 6px 1px #dfdada;
  8063. "
  8064. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8065. :key="wIndex"
  8066. >
  8067. <!-- @click="previewImg(w.works)" -->
  8068. <div class="workImg">
  8069. <img
  8070. :src="w.works"
  8071. @click="previewImg(w.works, w)"
  8072. alt
  8073. />
  8074. <div
  8075. class="answerScore"
  8076. v-if="w.score"
  8077. @click.stop="openScore(w)"
  8078. :class="{
  8079. rightW:
  8080. w.userid == userid || tType == 1 || tType == 4
  8081. }"
  8082. >
  8083. {{ JSON.parse(w.score).wScore }}分
  8084. </div>
  8085. <div
  8086. class="answerScore"
  8087. @click.stop="openScore(w)"
  8088. v-else-if="courseDetail.userid == userid"
  8089. :class="{
  8090. rightW:
  8091. w.userid == userid || tType == 1 || tType == 4
  8092. }"
  8093. >
  8094. 评分
  8095. </div>
  8096. <img
  8097. class="deleteImg"
  8098. src="../../assets/deleteworks.png"
  8099. v-if="
  8100. w.userid == userid || tType == 1 || tType == 4
  8101. "
  8102. @click.stop="deleteWorks(w.wid)"
  8103. alt
  8104. />
  8105. </div>
  8106. <div class="comment" style="min-width: 200px">
  8107. <div class="worksName">
  8108. <div>{{ w.sName }}</div>
  8109. </div>
  8110. <div class="commentList">
  8111. <div class="commentList">
  8112. <div
  8113. class="commentImg"
  8114. @click="
  8115. isLikes(
  8116. w.wid,
  8117. userid,
  8118. 1,
  8119. null,
  8120. w.isLikes,
  8121. w.sName
  8122. )
  8123. "
  8124. >
  8125. <img
  8126. :src="w.isLikes == true ? likes : noLikes"
  8127. alt=""
  8128. />
  8129. </div>
  8130. <div>{{ w.likesCount }}</div>
  8131. </div>
  8132. <div class="commentList" style="margin-right: 15px">
  8133. <div
  8134. class="commentImg"
  8135. @click="commentOther(w, toolIndex, wIndex)"
  8136. >
  8137. <img
  8138. src="../../assets/icon/comment/comment.png"
  8139. alt=""
  8140. />
  8141. </div>
  8142. <div>{{ w.commentCount }}</div>
  8143. </div>
  8144. </div>
  8145. </div>
  8146. </div>
  8147. </div>
  8148. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8149. 未提交
  8150. </div>
  8151. <div
  8152. class="noWorksS"
  8153. v-if="noWorksS && noWorksS[toolIndex].length"
  8154. >
  8155. <div
  8156. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8157. :key="sIndex"
  8158. class="noWorksName"
  8159. >
  8160. <el-tooltip
  8161. effect="dark"
  8162. :content="s.student"
  8163. placement="top"
  8164. >
  8165. <span>{{ s.student }}</span>
  8166. </el-tooltip>
  8167. </div>
  8168. </div>
  8169. </div>
  8170. <div
  8171. v-if="
  8172. tType &&
  8173. ((tType == 2 && sIsOpen == true) ||
  8174. tType == 1 ||
  8175. tType == 4) &&
  8176. tool.tool.indexOf(7) != -1
  8177. "
  8178. class="worksBox"
  8179. >
  8180. <div
  8181. class="zuoyeYulan"
  8182. style="display: flex;justify-content: space-between;align-items: center;"
  8183. v-if="
  8184. (worksStudent.length &&
  8185. worksStudent[toolIndex].length > 0) ||
  8186. (courseGroup.group && courseGroup.group.length)
  8187. "
  8188. >
  8189. <div class="worksTop">
  8190. <div>作业预览</div>
  8191. <div
  8192. class="corOpen"
  8193. @click="contract(toolIndex)"
  8194. v-if="
  8195. isCloseList[toolIndex].isCloseBoolean &&
  8196. isCloseList[toolIndex].isClose == 0
  8197. "
  8198. >
  8199. 折叠
  8200. </div>
  8201. <div
  8202. class="corOpen"
  8203. @click="contract(toolIndex)"
  8204. v-if="isCloseList[toolIndex].isClose == 1"
  8205. >
  8206. 展开
  8207. </div>
  8208. </div>
  8209. <div
  8210. style="display: flex;"
  8211. v-if="
  8212. (courseDetail.userid == userid ||
  8213. (courseDetail.course_teacher &&
  8214. courseDetail.course_teacher.indexOf(userid) !=
  8215. -1)) &&
  8216. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8217. taskCount
  8218. ].eList &&
  8219. chapInfoList[courseType].chapterInfo[0].taskJson[
  8220. taskCount
  8221. ].eList.length) ||
  8222. (tool.eList && tool.eList.length)) &&
  8223. courseDetail.state == 5
  8224. "
  8225. >
  8226. <div
  8227. style="margin-right:10px"
  8228. class="ScoreBtn"
  8229. @click="
  8230. resetLoopEva(
  8231. worksStudent[toolIndex],
  8232. chapInfoList[courseType].chapterInfo[0].taskJson[
  8233. taskCount
  8234. ].eList,
  8235. courseType,
  8236. taskCount,
  8237. toolIndex,
  8238. tool.toolDetail,
  8239. worksStudent
  8240. )
  8241. "
  8242. >
  8243. 一键重置
  8244. </div>
  8245. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8246. <img
  8247. src="../../assets/icon/newIcons/rootImg.png"
  8248. alt=""
  8249. />
  8250. AI评分
  8251. </div>
  8252. <div
  8253. class="ScoreBtn"
  8254. v-else-if="!loopLoading[toolIndex].loading"
  8255. @click="
  8256. loopEva(
  8257. worksStudent[toolIndex],
  8258. chapInfoList[courseType].chapterInfo[0].taskJson[
  8259. taskCount
  8260. ].eList,
  8261. courseType,
  8262. taskCount,
  8263. toolIndex,
  8264. tool.toolDetail,
  8265. chapInfoList[courseType].chapterInfo[0].taskJson[
  8266. taskCount
  8267. ].taskDetail,
  8268. tool
  8269. )
  8270. "
  8271. >
  8272. <img
  8273. src="../../assets/icon/newIcons/rootImg.png"
  8274. alt=""
  8275. />
  8276. AI评分
  8277. </div>
  8278. <div class="ScoreBtn" v-else>
  8279. <img
  8280. src="../../assets/icon/newIcons/rootImg.png"
  8281. alt=""
  8282. />
  8283. 正在评分
  8284. </div>
  8285. </div>
  8286. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8287. </div>
  8288. <div
  8289. class="group_workBox"
  8290. v-for="(g, gindex) in courseGroup.group"
  8291. :key="gindex"
  8292. >
  8293. <div class="group_box">
  8294. <div class="group_title">
  8295. <el-tooltip
  8296. class="item"
  8297. effect="light"
  8298. :content="g.name"
  8299. placement="top"
  8300. >
  8301. <div class="group_name">{{ g.name }}</div>
  8302. </el-tooltip>
  8303. </div>
  8304. <div
  8305. class="group_work"
  8306. v-if="
  8307. g.works &&
  8308. g.works.length &&
  8309. g.works[toolIndex].length
  8310. "
  8311. >
  8312. <div
  8313. class="works"
  8314. style="
  8315. width: 200px;
  8316. height: 140px;
  8317. margin: 10px 10px 10px 0;
  8318. border-radius: 15px;
  8319. box-shadow: 0 0 6px 1px #dfdada;
  8320. "
  8321. v-for="(w, wIndex) in g.works[toolIndex]"
  8322. :key="wIndex"
  8323. :class="w.type == 1 ? 'isTypeOne' : ''"
  8324. >
  8325. <div class="workImg">
  8326. <img
  8327. :src="w.works"
  8328. @click="previewImg(w.works, w)"
  8329. alt
  8330. />
  8331. <div
  8332. class="answerScore"
  8333. v-if="w.score"
  8334. @click.stop="openScore(w)"
  8335. :class="{
  8336. rightW:
  8337. w.userid == userid ||
  8338. tType == 1 ||
  8339. tType == 4
  8340. }"
  8341. >
  8342. {{ JSON.parse(w.score).wScore }}分
  8343. </div>
  8344. <div
  8345. class="answerScore"
  8346. @click.stop="openScore(w)"
  8347. v-else-if="courseDetail.userid == userid"
  8348. :class="{
  8349. rightW:
  8350. w.userid == userid ||
  8351. tType == 1 ||
  8352. tType == 4
  8353. }"
  8354. >
  8355. 评分
  8356. </div>
  8357. <img
  8358. class="deleteImg"
  8359. src="../../assets/deleteworks.png"
  8360. v-if="
  8361. w.userid == userid || tType == 1 || tType == 4
  8362. "
  8363. @click.stop="deleteWorks(w.wid)"
  8364. alt
  8365. />
  8366. </div>
  8367. <div class="comment" style="min-width: 200px">
  8368. <div class="worksName">
  8369. <div>{{ w.sName }}</div>
  8370. </div>
  8371. <div class="commentList">
  8372. <div class="commentList">
  8373. <div
  8374. class="commentImg"
  8375. @click="
  8376. isLikes(
  8377. w.wid,
  8378. userid,
  8379. 1,
  8380. null,
  8381. w.isLikes,
  8382. w.sName
  8383. )
  8384. "
  8385. >
  8386. <img
  8387. :src="w.isLikes == true ? likes : noLikes"
  8388. alt=""
  8389. />
  8390. </div>
  8391. <div>{{ w.likesCount }}</div>
  8392. </div>
  8393. <div
  8394. class="commentList"
  8395. style="margin-right: 15px"
  8396. >
  8397. <div
  8398. class="commentImg"
  8399. @click="
  8400. commentOther(
  8401. w,
  8402. toolIndex,
  8403. wIndex,
  8404. null,
  8405. g.id
  8406. )
  8407. "
  8408. >
  8409. <img
  8410. src="../../assets/icon/comment/comment.png"
  8411. alt=""
  8412. />
  8413. </div>
  8414. <div>{{ w.commentCount }}</div>
  8415. </div>
  8416. </div>
  8417. </div>
  8418. </div>
  8419. </div>
  8420. <div class="group_work" v-else>暂无提交作业</div>
  8421. </div>
  8422. </div>
  8423. <div
  8424. :id="'tool-' + toolIndex"
  8425. :style="{
  8426. height:
  8427. isCloseList[toolIndex].isClose == 1
  8428. ? retrnToolHeight('tool-' + toolIndex)
  8429. : 'auto',
  8430. overflow:
  8431. isCloseList[toolIndex].isClose == 1
  8432. ? 'hidden'
  8433. : 'unset'
  8434. }"
  8435. class="worksDetailBox"
  8436. v-if="
  8437. worksStudent.length &&
  8438. worksStudent[toolIndex].length > 0
  8439. "
  8440. >
  8441. <div
  8442. class="works"
  8443. style="
  8444. width: 200px;
  8445. height: 140px;
  8446. margin: 10px 10px 10px 0;
  8447. border-radius: 15px;
  8448. box-shadow: 0 0 6px 1px #dfdada;
  8449. "
  8450. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8451. :key="wIndex"
  8452. >
  8453. <!-- @click="previewImg(w.works)" -->
  8454. <div class="workImg">
  8455. <img
  8456. :src="w.works"
  8457. @click="previewImg(w.works, w)"
  8458. alt
  8459. />
  8460. <div
  8461. class="answerScore"
  8462. v-if="w.score"
  8463. @click.stop="openScore(w)"
  8464. :class="{
  8465. rightW:
  8466. w.userid == userid || tType == 1 || tType == 4
  8467. }"
  8468. >
  8469. {{ JSON.parse(w.score).wScore }}分
  8470. </div>
  8471. <div
  8472. class="answerScore"
  8473. @click.stop="openScore(w)"
  8474. v-else-if="
  8475. courseDetail.userid == userid &&
  8476. courseDetail.state != 5 &&
  8477. chapInfoList[courseType].chapterInfo[0]
  8478. .taskJson[taskCount].eList &&
  8479. chapInfoList[courseType].chapterInfo[0]
  8480. .taskJson[taskCount].eList.length
  8481. "
  8482. :class="{
  8483. rightW:
  8484. w.userid == userid || tType == 1 || tType == 4
  8485. }"
  8486. >
  8487. 评分
  8488. </div>
  8489. <!-- <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"> -->
  8490. <div
  8491. v-else-if="
  8492. (courseDetail.userid == userid ||
  8493. (courseDetail.course_teacher &&
  8494. courseDetail.course_teacher.indexOf(userid) !=
  8495. -1) ||
  8496. (w.userid == userid && sIsOpen)) &&
  8497. courseDetail.state == 5 &&
  8498. ((chapInfoList[courseType].chapterInfo[0]
  8499. .taskJson[taskCount].eList &&
  8500. chapInfoList[courseType].chapterInfo[0]
  8501. .taskJson[taskCount].eList.length) ||
  8502. (tool.eList && tool.eList.length))
  8503. "
  8504. >
  8505. <el-popover
  8506. placement="top"
  8507. width="318"
  8508. :disabled="AIloading[toolIndex][wIndex].loading"
  8509. trigger="hover"
  8510. >
  8511. <markScore
  8512. :loading="AIloading[toolIndex][wIndex].loading"
  8513. :markScoreVisible="markScoreVisible"
  8514. :ref="`markSco${toolIndex}${wIndex}`"
  8515. @updateLoading="updateLoading"
  8516. @updateDocSco="updateDocSco"
  8517. @refreshOther="refreshOther"
  8518. @markScoreDig="markScoreDig"
  8519. :tool="tool"
  8520. :wIndex="wIndex"
  8521. :scoCon="w"
  8522. :toolIndex="toolIndex"
  8523. :key="refreshKey"
  8524. :stage="courseType"
  8525. :task="taskCount"
  8526. :scoTit="
  8527. chapInfoList[courseType].chapterInfo[0]
  8528. .taskJson[taskCount].eList
  8529. "
  8530. >
  8531. </markScore>
  8532. <div
  8533. class="answerScore"
  8534. @click="
  8535. markScoreDig2(
  8536. w.sName,
  8537. worksStudent,
  8538. w.userid,
  8539. toolIndex,
  8540. chapInfoList[courseType].chapterInfo[0]
  8541. .taskJson[taskCount].eList,
  8542. AIloading[toolIndex][wIndex].loading,
  8543. tool
  8544. )
  8545. "
  8546. slot="reference"
  8547. :class="{
  8548. rightW:
  8549. w.userid == userid ||
  8550. tType == 1 ||
  8551. tType == 4 ||
  8552. w.ateacher == userid
  8553. }"
  8554. >
  8555. <span v-if="AIloading[toolIndex][wIndex].sco">
  8556. {{
  8557. AIloading[toolIndex][wIndex].loading
  8558. ? "评分中"
  8559. : AIloading[toolIndex][wIndex].sco + "分"
  8560. }}
  8561. </span>
  8562. <span v-else>
  8563. {{
  8564. AIloading[toolIndex][wIndex].loading
  8565. ? "评分中"
  8566. : "评分"
  8567. }}
  8568. </span>
  8569. </div>
  8570. </el-popover>
  8571. </div>
  8572. <img
  8573. class="deleteImg"
  8574. src="../../assets/deleteworks.png"
  8575. v-if="
  8576. w.userid == userid || tType == 1 || tType == 4
  8577. "
  8578. @click.stop="deleteWorks(w.wid)"
  8579. alt
  8580. />
  8581. </div>
  8582. <div class="comment" style="min-width: 200px">
  8583. <div class="worksName">
  8584. <div>{{ w.sName }}</div>
  8585. </div>
  8586. <div class="commentList">
  8587. <div class="commentList">
  8588. <div
  8589. class="commentImg"
  8590. @click="
  8591. isLikes(
  8592. w.wid,
  8593. userid,
  8594. 1,
  8595. null,
  8596. w.isLikes,
  8597. w.sName
  8598. )
  8599. "
  8600. >
  8601. <img
  8602. :src="w.isLikes == true ? likes : noLikes"
  8603. alt=""
  8604. />
  8605. </div>
  8606. <div>{{ w.likesCount }}</div>
  8607. </div>
  8608. <div class="commentList" style="margin-right: 15px">
  8609. <div
  8610. class="commentImg"
  8611. @click="commentOther(w, toolIndex, wIndex)"
  8612. >
  8613. <img
  8614. src="../../assets/icon/comment/comment.png"
  8615. alt=""
  8616. />
  8617. </div>
  8618. <div>{{ w.commentCount }}</div>
  8619. </div>
  8620. </div>
  8621. </div>
  8622. </div>
  8623. </div>
  8624. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8625. 未提交
  8626. </div>
  8627. <div
  8628. class="noWorksS"
  8629. v-if="noWorksS && noWorksS[toolIndex].length"
  8630. >
  8631. <div
  8632. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8633. :key="sIndex"
  8634. class="noWorksName"
  8635. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8636. >
  8637. <el-tooltip
  8638. effect="dark"
  8639. :content="s.student"
  8640. placement="top"
  8641. >
  8642. <span>{{ s.student }}</span>
  8643. </el-tooltip>
  8644. </div>
  8645. </div>
  8646. </div>
  8647. <div
  8648. v-if="
  8649. tType &&
  8650. ((tType == 2 && sIsOpen == true) ||
  8651. tType == 1 ||
  8652. tType == 4) &&
  8653. tool.tool.indexOf(26) != -1
  8654. "
  8655. class="worksBox"
  8656. >
  8657. <div
  8658. class="zuoyeYulan"
  8659. v-if="
  8660. worksStudent.length &&
  8661. worksStudent[toolIndex].length > 0
  8662. "
  8663. >
  8664. <div class="worksTop">
  8665. <div>作业预览</div>
  8666. <div
  8667. class="corOpen"
  8668. @click="contract(toolIndex)"
  8669. v-if="
  8670. isCloseList[toolIndex].isCloseBoolean &&
  8671. isCloseList[toolIndex].isClose == 0
  8672. "
  8673. >
  8674. 折叠
  8675. </div>
  8676. <div
  8677. class="corOpen"
  8678. @click="contract(toolIndex)"
  8679. v-if="isCloseList[toolIndex].isClose == 1"
  8680. >
  8681. 展开
  8682. </div>
  8683. </div>
  8684. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8685. </div>
  8686. <div
  8687. :id="'tool-' + toolIndex"
  8688. :style="{
  8689. height:
  8690. isCloseList[toolIndex].isClose == 1
  8691. ? retrnToolHeight('tool-' + toolIndex)
  8692. : 'auto',
  8693. overflow:
  8694. isCloseList[toolIndex].isClose == 1
  8695. ? 'hidden'
  8696. : 'unset'
  8697. }"
  8698. class="worksDetailBox"
  8699. v-if="
  8700. worksStudent.length &&
  8701. worksStudent[toolIndex].length > 0
  8702. "
  8703. >
  8704. <div
  8705. class="works"
  8706. style="width: 240px; height: 140px; overflow: hidden"
  8707. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8708. :key="wIndex"
  8709. :class="w.type == 1 ? 'isTypeOne' : ''"
  8710. >
  8711. <div class="workImg" v-if="w.type == 0">
  8712. <img
  8713. :src="w.works"
  8714. @click="previewImg(w.works, w)"
  8715. alt
  8716. />
  8717. <img
  8718. class="deleteImg"
  8719. src="../../assets/deleteworks.png"
  8720. v-if="
  8721. w.userid == userid || tType == 1 || tType == 4
  8722. "
  8723. @click.stop="deleteWorks(w.wid)"
  8724. alt
  8725. />
  8726. </div>
  8727. <div class="workImg" v-if="w.type == 1">
  8728. <img :src="word" @click="openFile(w.works)" alt />
  8729. <img
  8730. class="deleteImg"
  8731. src="../../assets/deleteworks.png"
  8732. v-if="
  8733. w.userid == userid || tType == 1 || tType == 4
  8734. "
  8735. @click.stop="deleteWorks(w.wid)"
  8736. alt
  8737. />
  8738. </div>
  8739. <div class="worksName">
  8740. <div>{{ w.sName }}</div>
  8741. </div>
  8742. </div>
  8743. </div>
  8744. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8745. 未提交
  8746. </div>
  8747. <div
  8748. class="noWorksS"
  8749. v-if="noWorksS && noWorksS[toolIndex].length"
  8750. >
  8751. <div
  8752. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8753. :key="sIndex"
  8754. class="noWorksName"
  8755. >
  8756. <el-tooltip
  8757. effect="dark"
  8758. :content="s.student"
  8759. placement="top"
  8760. >
  8761. <span>{{ s.student }}</span>
  8762. </el-tooltip>
  8763. </div>
  8764. </div>
  8765. </div>
  8766. <div
  8767. v-if="
  8768. tType &&
  8769. ((tType == 2 && sIsOpen == true) ||
  8770. tType == 1 ||
  8771. tType == 4) &&
  8772. tool.tool.indexOf(40) != -1
  8773. "
  8774. class="worksBox"
  8775. >
  8776. <div
  8777. class="zuoyeYulan"
  8778. v-if="
  8779. worksStudent.length &&
  8780. worksStudent[toolIndex].length > 0
  8781. "
  8782. >
  8783. <div class="worksTop">
  8784. <div>作业预览</div>
  8785. <div
  8786. class="corOpen"
  8787. @click="contract(toolIndex)"
  8788. v-if="
  8789. isCloseList[toolIndex].isCloseBoolean &&
  8790. isCloseList[toolIndex].isClose == 0
  8791. "
  8792. >
  8793. 折叠
  8794. </div>
  8795. <div
  8796. class="corOpen"
  8797. @click="contract(toolIndex)"
  8798. v-if="isCloseList[toolIndex].isClose == 1"
  8799. >
  8800. 展开
  8801. </div>
  8802. </div>
  8803. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8804. </div>
  8805. <div
  8806. :id="'tool-' + toolIndex"
  8807. :style="{
  8808. height:
  8809. isCloseList[toolIndex].isClose == 1
  8810. ? retrnToolHeight('tool-' + toolIndex)
  8811. : 'auto',
  8812. overflow:
  8813. isCloseList[toolIndex].isClose == 1
  8814. ? 'hidden'
  8815. : 'unset'
  8816. }"
  8817. class="worksDetailBox"
  8818. v-if="
  8819. worksStudent.length &&
  8820. worksStudent[toolIndex].length > 0
  8821. "
  8822. >
  8823. <div
  8824. class="works"
  8825. style="
  8826. width: 200px;
  8827. height: 140px;
  8828. margin: 10px 10px 10px 0;
  8829. border-radius: 15px;
  8830. box-shadow: 0 0 6px 1px #dfdada;
  8831. "
  8832. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8833. :key="wIndex"
  8834. :class="w.type == 1 ? 'isTypeOne' : ''"
  8835. >
  8836. <div class="workImg">
  8837. <img
  8838. src="../../assets/icon/works/noImg.png"
  8839. @click="openPj(w.works, toolIndex)"
  8840. alt
  8841. />
  8842. <img
  8843. class="deleteImg"
  8844. src="../../assets/deleteworks.png"
  8845. v-if="
  8846. w.userid == userid || tType == 1 || tType == 4
  8847. "
  8848. @click.stop="deleteWorks(w.wid)"
  8849. alt
  8850. />
  8851. </div>
  8852. <div class="comment" style="min-width: 200px">
  8853. <div class="worksName">
  8854. <div>{{ w.sName }}</div>
  8855. </div>
  8856. <div class="commentList">
  8857. <div class="commentList">
  8858. <div
  8859. class="commentImg"
  8860. @click="
  8861. isLikes(
  8862. w.wid,
  8863. userid,
  8864. 1,
  8865. null,
  8866. w.isLikes,
  8867. w.sName
  8868. )
  8869. "
  8870. >
  8871. <img
  8872. :src="w.isLikes == true ? likes : noLikes"
  8873. alt=""
  8874. />
  8875. </div>
  8876. <div>{{ w.likesCount }}</div>
  8877. </div>
  8878. <div class="commentList" style="margin-right: 15px">
  8879. <div
  8880. class="commentImg"
  8881. @click="commentOther(w, toolIndex, wIndex)"
  8882. >
  8883. <img
  8884. src="../../assets/icon/comment/comment.png"
  8885. alt=""
  8886. />
  8887. </div>
  8888. <div>{{ w.commentCount }}</div>
  8889. </div>
  8890. </div>
  8891. </div>
  8892. </div>
  8893. </div>
  8894. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8895. 未提交
  8896. </div>
  8897. <div
  8898. class="noWorksS"
  8899. v-if="noWorksS && noWorksS[toolIndex].length"
  8900. >
  8901. <div
  8902. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8903. :key="sIndex"
  8904. class="noWorksName"
  8905. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8906. >
  8907. <el-tooltip
  8908. effect="dark"
  8909. :content="s.student"
  8910. placement="top"
  8911. >
  8912. <span>{{ s.student }}</span>
  8913. </el-tooltip>
  8914. </div>
  8915. </div>
  8916. </div>
  8917. <div
  8918. v-if="
  8919. tType &&
  8920. tType == 2 &&
  8921. !sIsOpen &&
  8922. tool.tool.indexOf(40) != -1
  8923. "
  8924. class="worksBox"
  8925. >
  8926. <div
  8927. class="zuoyeYulan"
  8928. v-if="workStudent[toolIndex].length > 0"
  8929. >
  8930. <span class="worksTitle">作业预览</span>
  8931. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8932. </div>
  8933. <div
  8934. class="worksDetailBox"
  8935. v-if="workStudent[toolIndex].length > 0"
  8936. >
  8937. <div
  8938. class="works"
  8939. style="
  8940. width: 200px;
  8941. height: 140px;
  8942. margin: 10px 10px 10px 0;
  8943. "
  8944. v-for="(w, wIndex) in workStudent[toolIndex]"
  8945. :key="wIndex"
  8946. >
  8947. <div class="workImg">
  8948. <img
  8949. src="../../assets/icon/works/noImg.png"
  8950. @click="openPj(w.works, toolIndex)"
  8951. alt
  8952. />
  8953. <img
  8954. class="deleteImg"
  8955. src="../../assets/deleteworks.png"
  8956. v-if="
  8957. w.userid == userid || tType == 1 || tType == 4
  8958. "
  8959. @click.stop="deleteWorks(w.wid)"
  8960. alt
  8961. />
  8962. </div>
  8963. <div class="worksName">
  8964. <div>{{ w.sName }}</div>
  8965. </div>
  8966. </div>
  8967. </div>
  8968. </div>
  8969. <div
  8970. v-if="
  8971. tType &&
  8972. ((tType == 2 && sIsOpen == true) ||
  8973. tType == 1 ||
  8974. tType == 4) &&
  8975. tool.tool.indexOf(41) != -1
  8976. "
  8977. >
  8978. <AnswerData2
  8979. v-if="
  8980. worksStudent.length &&
  8981. worksStudent[toolIndex].length > 0
  8982. "
  8983. :problemJson="tool.selectJson.answer"
  8984. :people="worksStudent[toolIndex]"
  8985. ></AnswerData2>
  8986. </div>
  8987. <div
  8988. v-if="
  8989. tType &&
  8990. ((tType == 2 && sIsOpen == true) ||
  8991. tType == 1 ||
  8992. tType == 4) &&
  8993. tool.tool.indexOf(41) != -1
  8994. "
  8995. class="worksBox"
  8996. >
  8997. <div
  8998. class="zuoyeYulan"
  8999. v-if="
  9000. worksStudent.length &&
  9001. worksStudent[toolIndex].length > 0
  9002. "
  9003. >
  9004. <div class="worksTop">
  9005. <div>作业预览</div>
  9006. <div
  9007. class="corOpen"
  9008. @click="contract(toolIndex)"
  9009. v-if="
  9010. isCloseList[toolIndex].isCloseBoolean &&
  9011. isCloseList[toolIndex].isClose == 0
  9012. "
  9013. >
  9014. 折叠
  9015. </div>
  9016. <div
  9017. class="corOpen"
  9018. @click="contract(toolIndex)"
  9019. v-if="isCloseList[toolIndex].isClose == 1"
  9020. >
  9021. 展开
  9022. </div>
  9023. </div>
  9024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9025. </div>
  9026. <div
  9027. :id="'tool-' + toolIndex"
  9028. :style="{
  9029. height:
  9030. isCloseList[toolIndex].isClose == 1
  9031. ? retrnToolHeight('tool-' + toolIndex)
  9032. : 'auto',
  9033. overflow:
  9034. isCloseList[toolIndex].isClose == 1
  9035. ? 'hidden'
  9036. : 'unset'
  9037. }"
  9038. class="worksDetailBox"
  9039. v-if="
  9040. worksStudent.length &&
  9041. worksStudent[toolIndex].length > 0
  9042. "
  9043. >
  9044. <div
  9045. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9046. :key="wIndex"
  9047. class="isWorksName2"
  9048. @click="openXz(w, toolIndex)"
  9049. >
  9050. {{ w.sName }}
  9051. <img
  9052. class="deleteImg deleteImg2"
  9053. src="../../assets/deleteworks.png"
  9054. v-if="w.userid == userid || tType == 1 || tType == 4"
  9055. @click.stop="deleteWorks(w.wid)"
  9056. alt
  9057. />
  9058. </div>
  9059. <!-- <div
  9060. class="works"
  9061. style="
  9062. width: 200px;
  9063. height: 140px;
  9064. margin: 10px 10px 10px 0;
  9065. border-radius: 15px;
  9066. box-shadow: 0 0 6px 1px #dfdada;
  9067. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9068. :class="w.type == 5 ? 'isTypeOne' : ''">
  9069. <div class="workImg">
  9070. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9071. </div>
  9072. <div class="worksName">
  9073. <div>{{ w.sName }}</div>
  9074. </div>
  9075. </div> -->
  9076. </div>
  9077. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9078. 未提交
  9079. </div>
  9080. <div
  9081. class="noWorksS"
  9082. v-if="noWorksS && noWorksS[toolIndex].length"
  9083. >
  9084. <div
  9085. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9086. :key="sIndex"
  9087. class="noWorksName"
  9088. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9089. >
  9090. <el-tooltip
  9091. effect="dark"
  9092. :content="s.student"
  9093. placement="top"
  9094. >
  9095. <span>{{ s.student }}</span>
  9096. </el-tooltip>
  9097. </div>
  9098. </div>
  9099. </div>
  9100. <div
  9101. v-if="
  9102. tType &&
  9103. tType == 2 &&
  9104. !sIsOpen &&
  9105. tool.tool.indexOf(41) != -1
  9106. "
  9107. class="worksBox"
  9108. >
  9109. <div
  9110. class="zuoyeYulan"
  9111. v-if="workStudent[toolIndex].length > 0"
  9112. >
  9113. <span class="worksTitle">作业预览</span>
  9114. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9115. </div>
  9116. <div
  9117. class="worksDetailBox"
  9118. v-if="workStudent[toolIndex].length > 0"
  9119. >
  9120. <div
  9121. class="works"
  9122. style="
  9123. width: 200px;
  9124. height: 140px;
  9125. margin: 10px 10px 10px 0;
  9126. "
  9127. v-for="(w, wIndex) in workStudent[toolIndex]"
  9128. :key="wIndex"
  9129. >
  9130. <div class="workImg">
  9131. <img
  9132. src="../../assets/icon/works/noImg.png"
  9133. @click="openXz(w, toolIndex)"
  9134. alt
  9135. />
  9136. <img
  9137. class="deleteImg"
  9138. src="../../assets/deleteworks.png"
  9139. v-if="
  9140. w.userid == userid || tType == 1 || tType == 4
  9141. "
  9142. @click.stop="deleteWorks(w.wid)"
  9143. alt
  9144. />
  9145. </div>
  9146. <div class="worksName">
  9147. <div>{{ w.sName }}</div>
  9148. </div>
  9149. </div>
  9150. </div>
  9151. </div>
  9152. <div v-if="false" class="xuan_right_box">
  9153. <div
  9154. class="tool_right_box"
  9155. v-for="(item, index) in tool.sentenceList"
  9156. :key="index"
  9157. >
  9158. <div>
  9159. <span
  9160. style="word-break: break-all; white-space: normal"
  9161. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9162. >
  9163. </div>
  9164. <div class="right_box_xuan">
  9165. <span>正确率</span>
  9166. <span>{{
  9167. (checkJson[toolIndex][index].right
  9168. ? checkJson[toolIndex][index].right
  9169. : 0) + "%"
  9170. }}</span>
  9171. </div>
  9172. <div class="right_box_xuan">
  9173. <span>答对人数</span>
  9174. <span>{{
  9175. checkJson[toolIndex][index].rightPerson.length
  9176. }}</span>
  9177. </div>
  9178. </div>
  9179. </div>
  9180. <div
  9181. v-if="
  9182. tType &&
  9183. ((tType == 2 && sIsOpen == true) ||
  9184. tType == 1 ||
  9185. tType == 4) &&
  9186. tool.tool.indexOf(47) != -1
  9187. "
  9188. >
  9189. <AnswerData
  9190. v-if="
  9191. checkJson[toolIndex].length &&
  9192. (tool.sentenceList || tool.sentenceList.length > 0)
  9193. "
  9194. :people="checkJson[toolIndex]"
  9195. ></AnswerData>
  9196. </div>
  9197. <div
  9198. v-if="
  9199. tType &&
  9200. tType == 2 &&
  9201. !sIsOpen &&
  9202. tool.tool.indexOf(47) != -1
  9203. "
  9204. class="worksBox"
  9205. >
  9206. <div
  9207. class="zuoyeYulan"
  9208. v-if="workStudent[toolIndex].length > 0"
  9209. >
  9210. <span class="worksTitle">作业预览</span>
  9211. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9212. </div>
  9213. <div
  9214. class="worksDetailBox"
  9215. v-if="workStudent[toolIndex].length > 0"
  9216. >
  9217. <div
  9218. class="works"
  9219. style="
  9220. width: 200px;
  9221. height: 140px;
  9222. margin: 10px 10px 10px 0;
  9223. "
  9224. v-for="(w, wIndex) in workStudent[toolIndex]"
  9225. :key="wIndex"
  9226. >
  9227. <!-- @click="openXz(w, toolIndex)" -->
  9228. <div class="workImg" @click="openSen(w, toolIndex)">
  9229. <img src="../../assets/icon/works/noImg.png" alt />
  9230. <img
  9231. class="deleteImg"
  9232. src="../../assets/deleteworks.png"
  9233. v-if="
  9234. w.userid == userid || tType == 1 || tType == 4
  9235. "
  9236. @click.stop="deleteWorks(w.wid)"
  9237. alt
  9238. />
  9239. </div>
  9240. <div class="worksName">
  9241. <div>
  9242. {{ w.sName }}
  9243. </div>
  9244. </div>
  9245. </div>
  9246. </div>
  9247. </div>
  9248. <div
  9249. v-if="
  9250. tType &&
  9251. ((tType == 2 && sIsOpen == true) ||
  9252. tType == 1 ||
  9253. tType == 4) &&
  9254. tool.tool.indexOf(47) != -1
  9255. "
  9256. class="worksBox"
  9257. >
  9258. <div
  9259. class="zuoyeYulan"
  9260. v-if="
  9261. worksStudent.length &&
  9262. worksStudent[toolIndex].length > 0
  9263. "
  9264. >
  9265. <div class="worksTop">
  9266. <div>作业预览</div>
  9267. <div
  9268. class="corOpen"
  9269. @click="contract(toolIndex)"
  9270. v-if="
  9271. isCloseList[toolIndex].isCloseBoolean &&
  9272. isCloseList[toolIndex].isClose == 0
  9273. "
  9274. >
  9275. 折叠
  9276. </div>
  9277. <div
  9278. class="corOpen"
  9279. @click="contract(toolIndex)"
  9280. v-if="isCloseList[toolIndex].isClose == 1"
  9281. >
  9282. 展开
  9283. </div>
  9284. </div>
  9285. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9286. </div>
  9287. <div
  9288. :id="'tool-' + toolIndex"
  9289. :style="{
  9290. height:
  9291. isCloseList[toolIndex].isClose == 1
  9292. ? retrnToolHeight('tool-' + toolIndex)
  9293. : 'auto',
  9294. overflow:
  9295. isCloseList[toolIndex].isClose == 1
  9296. ? 'hidden'
  9297. : 'unset'
  9298. }"
  9299. class="worksDetailBox"
  9300. v-if="
  9301. worksStudent.length &&
  9302. worksStudent[toolIndex].length > 0
  9303. "
  9304. >
  9305. <!-- @click="openXz(w, toolIndex)" -->
  9306. <div
  9307. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9308. :key="wIndex"
  9309. class="isWorksName2"
  9310. @click="openSen(w, toolIndex)"
  9311. >
  9312. {{ w.sName }}
  9313. <img
  9314. class="deleteImg deleteImg2"
  9315. src="../../assets/deleteworks.png"
  9316. v-if="w.userid == userid || tType == 1 || tType == 4"
  9317. @click.stop="deleteWorks(w.wid)"
  9318. alt
  9319. />
  9320. </div>
  9321. </div>
  9322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9323. 未提交
  9324. </div>
  9325. <div
  9326. class="noWorksS"
  9327. v-if="noWorksS && noWorksS[toolIndex].length"
  9328. >
  9329. <div
  9330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9331. :key="sIndex"
  9332. class="noWorksName"
  9333. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9334. >
  9335. <el-tooltip
  9336. effect="dark"
  9337. :content="s.student"
  9338. placement="top"
  9339. >
  9340. <span>{{ s.student }}</span>
  9341. </el-tooltip>
  9342. </div>
  9343. </div>
  9344. </div>
  9345. <div
  9346. v-if="
  9347. tType &&
  9348. ((tType == 2 && sIsOpen == true) ||
  9349. tType == 1 ||
  9350. tType == 4) &&
  9351. tool.tool.indexOf(48) != -1
  9352. "
  9353. class="worksBox"
  9354. >
  9355. <div
  9356. class="zuoyeYulan"
  9357. style="display: flex;justify-content: space-between;align-items: center;"
  9358. v-if="
  9359. worksStudent.length &&
  9360. worksStudent[toolIndex].length > 0
  9361. "
  9362. >
  9363. <div class="worksTop">
  9364. <div>作业预览</div>
  9365. <div
  9366. class="corOpen"
  9367. @click="contract(toolIndex)"
  9368. v-if="
  9369. isCloseList[toolIndex].isCloseBoolean &&
  9370. isCloseList[toolIndex].isClose == 0
  9371. "
  9372. >
  9373. 折叠
  9374. </div>
  9375. <div
  9376. class="corOpen"
  9377. @click="contract(toolIndex)"
  9378. v-if="isCloseList[toolIndex].isClose == 1"
  9379. >
  9380. 展开
  9381. </div>
  9382. </div>
  9383. <div
  9384. style="display: flex;"
  9385. v-if="
  9386. (courseDetail.userid == userid ||
  9387. (courseDetail.course_teacher &&
  9388. courseDetail.course_teacher.indexOf(userid) !=
  9389. -1)) &&
  9390. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9391. taskCount
  9392. ].eList &&
  9393. chapInfoList[courseType].chapterInfo[0].taskJson[
  9394. taskCount
  9395. ].eList.length) ||
  9396. (tool.eList && tool.eList.length)) &&
  9397. courseDetail.state == 5
  9398. "
  9399. >
  9400. <div
  9401. style="margin-right:10px"
  9402. class="ScoreBtn"
  9403. @click="
  9404. resetLoopEva(
  9405. worksStudent[toolIndex],
  9406. chapInfoList[courseType].chapterInfo[0].taskJson[
  9407. taskCount
  9408. ].eList,
  9409. courseType,
  9410. taskCount,
  9411. toolIndex,
  9412. tool.toolDetail,
  9413. worksStudent
  9414. )
  9415. "
  9416. >
  9417. 一键重置
  9418. </div>
  9419. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9420. <img
  9421. src="../../assets/icon/newIcons/rootImg.png"
  9422. alt=""
  9423. />
  9424. AI评分
  9425. </div>
  9426. <div
  9427. class="ScoreBtn"
  9428. v-else-if="!loopLoading[toolIndex].loading"
  9429. @click="
  9430. loopEva(
  9431. worksStudent[toolIndex],
  9432. chapInfoList[courseType].chapterInfo[0].taskJson[
  9433. taskCount
  9434. ].eList,
  9435. courseType,
  9436. taskCount,
  9437. toolIndex,
  9438. tool.toolDetail,
  9439. chapInfoList[courseType].chapterInfo[0].taskJson[
  9440. taskCount
  9441. ].taskDetail,
  9442. tool
  9443. )
  9444. "
  9445. >
  9446. <img
  9447. src="../../assets/icon/newIcons/rootImg.png"
  9448. alt=""
  9449. />
  9450. AI评分
  9451. </div>
  9452. <div class="ScoreBtn" v-else>
  9453. <img
  9454. src="../../assets/icon/newIcons/rootImg.png"
  9455. alt=""
  9456. />
  9457. 正在评分
  9458. </div>
  9459. </div>
  9460. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9461. </div>
  9462. <div
  9463. :id="'tool-' + toolIndex"
  9464. :style="{
  9465. height:
  9466. isCloseList[toolIndex].isClose == 1
  9467. ? retrnToolHeight('tool-' + toolIndex)
  9468. : 'auto',
  9469. overflow:
  9470. isCloseList[toolIndex].isClose == 1
  9471. ? 'hidden'
  9472. : 'unset'
  9473. }"
  9474. class="worksDetailBox"
  9475. v-if="
  9476. worksStudent.length &&
  9477. worksStudent[toolIndex].length > 0
  9478. "
  9479. >
  9480. <div
  9481. class="works"
  9482. style="
  9483. width: 200px;
  9484. height: 140px;
  9485. margin: 10px 10px 10px 0;
  9486. border-radius: 15px;
  9487. box-shadow: 0 0 6px 1px #dfdada;
  9488. "
  9489. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9490. :key="wIndex"
  9491. :class="w.type == 1 ? 'isTypeOne' : ''"
  9492. >
  9493. <div class="workImg">
  9494. <img :src="word" @click="openTable(w)" alt />
  9495. <!-- @click="openFile(w.works)" -->
  9496. <div
  9497. class="answerScore"
  9498. v-if="w.score"
  9499. @click.stop="openScore(w)"
  9500. :class="{
  9501. rightW:
  9502. w.userid == userid ||
  9503. tType == 1 ||
  9504. tType == 4 ||
  9505. w.ateacher == userid
  9506. }"
  9507. >
  9508. {{ JSON.parse(w.score).wScore }}分
  9509. </div>
  9510. <div
  9511. class="answerScore"
  9512. @click.stop="openScore(w)"
  9513. v-else-if="
  9514. courseDetail.userid == userid &&
  9515. courseDetail.state != 5 &&
  9516. chapInfoList[courseType].chapterInfo[0]
  9517. .taskJson[taskCount].eList &&
  9518. chapInfoList[courseType].chapterInfo[0]
  9519. .taskJson[taskCount].eList.length
  9520. "
  9521. :class="{
  9522. rightW:
  9523. w.userid == userid ||
  9524. tType == 1 ||
  9525. tType == 4 ||
  9526. w.ateacher == userid
  9527. }"
  9528. >
  9529. 评分
  9530. </div>
  9531. <!-- <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"> -->
  9532. <div
  9533. v-else-if="
  9534. (courseDetail.userid == userid ||
  9535. (courseDetail.course_teacher &&
  9536. courseDetail.course_teacher.indexOf(userid) !=
  9537. -1) ||
  9538. (w.userid == userid && sIsOpen)) &&
  9539. courseDetail.state == 5 &&
  9540. ((chapInfoList[courseType].chapterInfo[0]
  9541. .taskJson[taskCount].eList &&
  9542. chapInfoList[courseType].chapterInfo[0]
  9543. .taskJson[taskCount].eList.length) ||
  9544. (tool.eList && tool.eList.length))
  9545. "
  9546. >
  9547. <el-popover
  9548. placement="top"
  9549. width="318"
  9550. :disabled="AIloading[toolIndex][wIndex].loading"
  9551. trigger="hover"
  9552. >
  9553. <markScore
  9554. :loading="AIloading[toolIndex][wIndex].loading"
  9555. :markScoreVisible="markScoreVisible"
  9556. :ref="`markSco${toolIndex}${wIndex}`"
  9557. @updateLoading="updateLoading"
  9558. @updateDocSco="updateDocSco"
  9559. @refreshOther="refreshOther"
  9560. @markScoreDig="markScoreDig"
  9561. :tool="tool"
  9562. :wIndex="wIndex"
  9563. :scoCon="w"
  9564. :toolIndex="toolIndex"
  9565. :key="refreshKey"
  9566. :stage="courseType"
  9567. :task="taskCount"
  9568. :scoTit="
  9569. chapInfoList[courseType].chapterInfo[0]
  9570. .taskJson[taskCount].eList
  9571. "
  9572. >
  9573. </markScore>
  9574. <div
  9575. class="answerScore"
  9576. @click="
  9577. markScoreDig2(
  9578. w.sName,
  9579. worksStudent,
  9580. w.userid,
  9581. toolIndex,
  9582. chapInfoList[courseType].chapterInfo[0]
  9583. .taskJson[taskCount].eList,
  9584. AIloading[toolIndex][wIndex].loading,
  9585. tool
  9586. )
  9587. "
  9588. slot="reference"
  9589. :class="{
  9590. rightW:
  9591. w.userid == userid ||
  9592. tType == 1 ||
  9593. tType == 4 ||
  9594. w.ateacher == userid
  9595. }"
  9596. >
  9597. <span v-if="AIloading[toolIndex][wIndex].sco">
  9598. {{
  9599. AIloading[toolIndex][wIndex].loading
  9600. ? "评分中"
  9601. : AIloading[toolIndex][wIndex].sco + "分"
  9602. }}
  9603. </span>
  9604. <span v-else>
  9605. {{
  9606. AIloading[toolIndex][wIndex].loading
  9607. ? "评分中"
  9608. : "评分"
  9609. }}
  9610. </span>
  9611. </div>
  9612. </el-popover>
  9613. </div>
  9614. <img
  9615. class="deleteImg"
  9616. src="../../assets/deleteworks.png"
  9617. v-if="
  9618. w.userid == userid || tType == 1 || tType == 4
  9619. "
  9620. @click.stop="deleteWorks(w.wid)"
  9621. alt
  9622. />
  9623. </div>
  9624. <div class="comment" style="min-width: 200px">
  9625. <div class="worksName">
  9626. <div>{{ w.sName }}</div>
  9627. </div>
  9628. <div class="commentList">
  9629. <div class="commentList">
  9630. <div
  9631. class="commentImg"
  9632. @click="
  9633. isLikes(
  9634. w.wid,
  9635. userid,
  9636. 1,
  9637. null,
  9638. w.isLikes,
  9639. w.sName
  9640. )
  9641. "
  9642. >
  9643. <img
  9644. :src="w.isLikes == true ? likes : noLikes"
  9645. alt=""
  9646. />
  9647. </div>
  9648. <div>{{ w.likesCount }}</div>
  9649. </div>
  9650. <div class="commentList" style="margin-right: 15px">
  9651. <div
  9652. class="commentImg"
  9653. @click="commentOther(w, toolIndex, wIndex)"
  9654. >
  9655. <img
  9656. src="../../assets/icon/comment/comment.png"
  9657. alt=""
  9658. />
  9659. </div>
  9660. <div>{{ w.commentCount }}</div>
  9661. </div>
  9662. </div>
  9663. </div>
  9664. </div>
  9665. </div>
  9666. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9667. 未提交
  9668. </div>
  9669. <div
  9670. class="noWorksS"
  9671. v-if="noWorksS && noWorksS[toolIndex].length"
  9672. >
  9673. <div
  9674. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9675. :key="sIndex"
  9676. class="noWorksName"
  9677. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9678. >
  9679. <el-tooltip
  9680. effect="dark"
  9681. :content="s.student"
  9682. placement="top"
  9683. >
  9684. <span>{{ s.student }}</span>
  9685. </el-tooltip>
  9686. </div>
  9687. </div>
  9688. </div>
  9689. <div
  9690. v-if="
  9691. tType &&
  9692. tType == 2 &&
  9693. !sIsOpen &&
  9694. tool.tool.indexOf(48) != -1
  9695. "
  9696. class="worksBox"
  9697. >
  9698. <div
  9699. class="zuoyeYulan"
  9700. v-if="workStudent[toolIndex].length > 0"
  9701. >
  9702. <span class="worksTitle">作业预览</span>
  9703. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9704. </div>
  9705. <div
  9706. class="worksDetailBox"
  9707. v-if="workStudent[toolIndex].length > 0"
  9708. >
  9709. <div
  9710. class="works"
  9711. style="
  9712. width: 200px;
  9713. height: 140px;
  9714. margin: 10px 10px 10px 0;
  9715. box-shadow: 0 0 6px 1px #dfdada;
  9716. "
  9717. v-for="(w, wIndex) in workStudent[toolIndex]"
  9718. :key="wIndex"
  9719. >
  9720. <div class="workImg">
  9721. <img :src="word" @click="openTable(w)" alt />
  9722. <div
  9723. class="answerScore"
  9724. v-if="w.score"
  9725. @click.stop="openScore(w)"
  9726. :class="{
  9727. rightW:
  9728. w.userid == userid || tType == 1 || tType == 4
  9729. }"
  9730. >
  9731. {{ JSON.parse(w.score).wScore }}分
  9732. </div>
  9733. <div
  9734. class="answerScore"
  9735. @click.stop="openScore(w)"
  9736. v-else-if="courseDetail.userid == userid"
  9737. :class="{
  9738. rightW:
  9739. w.userid == userid || tType == 1 || tType == 4
  9740. }"
  9741. >
  9742. 评分
  9743. </div>
  9744. <div
  9745. class="stuLookScore"
  9746. v-if="
  9747. w.userid == userid ||
  9748. (tType == 1 &&
  9749. courseDetail.state == 5 &&
  9750. ((chapInfoList[courseType].chapterInfo[0]
  9751. .taskJson[taskCount].eList &&
  9752. chapInfoList[courseType].chapterInfo[0]
  9753. .taskJson[taskCount].eList.length) ||
  9754. (tool.eList && tool.eList.length)))
  9755. "
  9756. >
  9757. <el-popover
  9758. placement="top"
  9759. width="318"
  9760. trigger="hover"
  9761. >
  9762. <markScore
  9763. :loading="AIloading[toolIndex][wIndex].loading"
  9764. :markScoreVisible="markScoreVisible"
  9765. :ref="`markSco${toolIndex}${wIndex}`"
  9766. @updateLoading="updateLoading"
  9767. @updateDocSco="updateDocSco"
  9768. @refreshOther="refreshOther"
  9769. @markScoreDig="markScoreDig"
  9770. :tool="tool"
  9771. :wIndex="wIndex"
  9772. :scoCon="w"
  9773. :toolIndex="toolIndex"
  9774. :key="refreshKey"
  9775. :stage="courseType"
  9776. :task="taskCount"
  9777. :scoTit="
  9778. chapInfoList[courseType].chapterInfo[0]
  9779. .taskJson[taskCount].eList
  9780. "
  9781. >
  9782. </markScore>
  9783. <div
  9784. @click="
  9785. markScoreDig2(
  9786. w.sName,
  9787. worksStudent,
  9788. w.userid,
  9789. toolIndex,
  9790. chapInfoList[courseType].chapterInfo[0]
  9791. .taskJson[taskCount].eList,
  9792. AIloading[toolIndex][wIndex].loading,
  9793. tool
  9794. )
  9795. "
  9796. slot="reference"
  9797. >
  9798. <span v-if="AIloading[toolIndex][wIndex].sco">
  9799. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9800. </span>
  9801. <span v-else>
  9802. 评分
  9803. </span>
  9804. </div>
  9805. </el-popover>
  9806. </div>
  9807. <img
  9808. class="deleteImg"
  9809. src="../../assets/deleteworks.png"
  9810. v-if="
  9811. w.userid == userid || tType == 1 || tType == 4
  9812. "
  9813. @click.stop="deleteWorks(w.wid)"
  9814. alt
  9815. />
  9816. </div>
  9817. <div class="worksName">
  9818. <div>{{ w.sName }}</div>
  9819. </div>
  9820. </div>
  9821. </div>
  9822. </div>
  9823. <div
  9824. v-if="
  9825. tType &&
  9826. ((tType == 2 && sIsOpen == true) ||
  9827. tType == 1 ||
  9828. tType == 4) &&
  9829. tool.tool.indexOf(52) != -1
  9830. "
  9831. class="worksBox"
  9832. >
  9833. <div
  9834. class="zuoyeYulan"
  9835. style="display: flex;justify-content: space-between;align-items: center;"
  9836. v-if="
  9837. worksStudent.length &&
  9838. worksStudent[toolIndex].length > 0
  9839. "
  9840. >
  9841. <div class="worksTop">
  9842. <div>作业预览</div>
  9843. <div
  9844. class="corOpen"
  9845. @click="contract(toolIndex)"
  9846. v-if="
  9847. isCloseList[toolIndex].isCloseBoolean &&
  9848. isCloseList[toolIndex].isClose == 0
  9849. "
  9850. >
  9851. 折叠
  9852. </div>
  9853. <div
  9854. class="corOpen"
  9855. @click="contract(toolIndex)"
  9856. v-if="isCloseList[toolIndex].isClose == 1"
  9857. >
  9858. 展开
  9859. </div>
  9860. </div>
  9861. <div
  9862. style="display: flex;"
  9863. v-if="
  9864. (courseDetail.userid == userid ||
  9865. (courseDetail.course_teacher &&
  9866. courseDetail.course_teacher.indexOf(userid) !=
  9867. -1)) &&
  9868. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9869. taskCount
  9870. ].eList &&
  9871. chapInfoList[courseType].chapterInfo[0].taskJson[
  9872. taskCount
  9873. ].eList.length) ||
  9874. (tool.eList && tool.eList.length)) &&
  9875. courseDetail.state == 5
  9876. "
  9877. >
  9878. <!-- <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"> -->
  9879. <div
  9880. @click="
  9881. resetLoopEva(
  9882. worksStudent[toolIndex],
  9883. chapInfoList[courseType].chapterInfo[0].taskJson[
  9884. taskCount
  9885. ].eList,
  9886. courseType,
  9887. taskCount,
  9888. toolIndex,
  9889. tool.toolDetail,
  9890. tool
  9891. )
  9892. "
  9893. style="margin-right:10px"
  9894. class="ScoreBtn"
  9895. >
  9896. 一键重置
  9897. </div>
  9898. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9899. <img
  9900. src="../../assets/icon/newIcons/rootImg.png"
  9901. alt=""
  9902. />
  9903. AI评分
  9904. </div>
  9905. <div
  9906. class="ScoreBtn"
  9907. v-else-if="!loopLoading[toolIndex].loading"
  9908. @click="
  9909. loopEva(
  9910. worksStudent[toolIndex],
  9911. chapInfoList[courseType].chapterInfo[0].taskJson[
  9912. taskCount
  9913. ].eList,
  9914. courseType,
  9915. taskCount,
  9916. toolIndex,
  9917. tool.toolDetail,
  9918. chapInfoList[courseType].chapterInfo[0].taskJson[
  9919. taskCount
  9920. ].taskDetail,
  9921. tool
  9922. )
  9923. "
  9924. >
  9925. <img
  9926. src="../../assets/icon/newIcons/rootImg.png"
  9927. alt=""
  9928. />
  9929. AI评分
  9930. </div>
  9931. <div class="ScoreBtn" v-else>
  9932. <img
  9933. src="../../assets/icon/newIcons/rootImg.png"
  9934. alt=""
  9935. />
  9936. 正在评分
  9937. </div>
  9938. </div>
  9939. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9940. </div>
  9941. <div
  9942. :id="'tool-' + toolIndex"
  9943. :style="{
  9944. height:
  9945. isCloseList[toolIndex].isClose == 1
  9946. ? retrnToolHeight('tool-' + toolIndex)
  9947. : 'auto',
  9948. overflow:
  9949. isCloseList[toolIndex].isClose == 1
  9950. ? 'hidden'
  9951. : 'unset'
  9952. }"
  9953. class="worksDetailBox"
  9954. v-if="
  9955. worksStudent.length &&
  9956. worksStudent[toolIndex].length > 0
  9957. "
  9958. >
  9959. <div
  9960. class="works"
  9961. style="
  9962. width: 200px;
  9963. height: 140px;
  9964. margin: 10px 10px 10px 0;
  9965. border-radius: 15px;
  9966. box-shadow: 0 0 6px 1px #dfdada;
  9967. "
  9968. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9969. :key="wIndex"
  9970. :class="w.type == 1 ? 'isTypeOne' : ''"
  9971. >
  9972. <div class="workImg">
  9973. <img :src="word" @click="openWord(w)" alt />
  9974. <!-- @click="openFile(w.works)" -->
  9975. <div
  9976. class="answerScore"
  9977. v-if="w.score"
  9978. @click.stop="openScore(w)"
  9979. :class="{
  9980. rightW:
  9981. w.userid == userid ||
  9982. tType == 1 ||
  9983. tType == 4 ||
  9984. w.ateacher == userid
  9985. }"
  9986. >
  9987. {{ JSON.parse(w.score).wScore }}分
  9988. </div>
  9989. <div
  9990. class="answerScore"
  9991. @click.stop="openScore(w)"
  9992. v-else-if="
  9993. courseDetail.userid == userid &&
  9994. courseDetail.state != 5 &&
  9995. chapInfoList[courseType].chapterInfo[0]
  9996. .taskJson[taskCount].eList &&
  9997. chapInfoList[courseType].chapterInfo[0]
  9998. .taskJson[taskCount].eList.length
  9999. "
  10000. :class="{
  10001. rightW:
  10002. w.userid == userid ||
  10003. tType == 1 ||
  10004. tType == 4 ||
  10005. w.ateacher == userid
  10006. }"
  10007. >
  10008. 评分
  10009. </div>
  10010. <!-- <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"> -->
  10011. <div
  10012. v-else-if="
  10013. (courseDetail.userid == userid ||
  10014. (courseDetail.course_teacher &&
  10015. courseDetail.course_teacher.indexOf(userid) !=
  10016. -1) ||
  10017. (w.userid == userid && sIsOpen)) &&
  10018. courseDetail.state == 5 &&
  10019. ((chapInfoList[courseType].chapterInfo[0]
  10020. .taskJson[taskCount].eList &&
  10021. chapInfoList[courseType].chapterInfo[0]
  10022. .taskJson[taskCount].eList.length) ||
  10023. (tool.eList && tool.eList.length))
  10024. "
  10025. >
  10026. <!-- <div
  10027. class="answerScore"
  10028. @click="markScoreDig(w.userid,toolIndex)"
  10029. :class="{
  10030. rightW:
  10031. w.userid == userid ||
  10032. tType == 1 ||
  10033. tType == 4 ||
  10034. w.ateacher == userid,
  10035. }"
  10036. >
  10037. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10038. </div> -->
  10039. <!-- @show="handleShow(toolIndex,wIndex)"
  10040. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10041. <el-popover
  10042. placement="top"
  10043. width="318"
  10044. :disabled="AIloading[toolIndex][wIndex].loading"
  10045. trigger="hover"
  10046. >
  10047. <markScore
  10048. :loading="AIloading[toolIndex][wIndex].loading"
  10049. :markScoreVisible="markScoreVisible"
  10050. :ref="`markSco${toolIndex}${wIndex}`"
  10051. @updateLoading="updateLoading"
  10052. @updateDocSco="updateDocSco"
  10053. @refreshOther="refreshOther"
  10054. @markScoreDig="markScoreDig"
  10055. :tool="tool"
  10056. :wIndex="wIndex"
  10057. :scoCon="w"
  10058. :toolIndex="toolIndex"
  10059. :key="refreshKey"
  10060. :stage="courseType"
  10061. :task="taskCount"
  10062. :scoTit="
  10063. chapInfoList[courseType].chapterInfo[0]
  10064. .taskJson[taskCount].eList
  10065. "
  10066. >
  10067. </markScore>
  10068. <div
  10069. class="answerScore"
  10070. @click="
  10071. markScoreDig2(
  10072. w.sName,
  10073. worksStudent,
  10074. w.userid,
  10075. toolIndex,
  10076. chapInfoList[courseType].chapterInfo[0]
  10077. .taskJson[taskCount].eList,
  10078. AIloading[toolIndex][wIndex].loading,
  10079. tool
  10080. )
  10081. "
  10082. slot="reference"
  10083. :class="{
  10084. rightW:
  10085. w.userid == userid ||
  10086. tType == 1 ||
  10087. tType == 4 ||
  10088. w.ateacher == userid
  10089. }"
  10090. >
  10091. <span v-if="AIloading[toolIndex][wIndex].sco">
  10092. {{
  10093. AIloading[toolIndex][wIndex].loading
  10094. ? "评分中"
  10095. : AIloading[toolIndex][wIndex].sco + "分"
  10096. }}
  10097. </span>
  10098. <span v-else>
  10099. {{
  10100. AIloading[toolIndex][wIndex].loading
  10101. ? "评分中"
  10102. : "评分"
  10103. }}
  10104. </span>
  10105. </div>
  10106. </el-popover>
  10107. </div>
  10108. <img
  10109. class="deleteImg"
  10110. src="../../assets/deleteworks.png"
  10111. v-if="
  10112. w.userid == userid || tType == 1 || tType == 4
  10113. "
  10114. @click.stop="deleteWorks(w.wid)"
  10115. alt
  10116. />
  10117. </div>
  10118. <div class="comment" style="min-width: 200px">
  10119. <div class="worksName">
  10120. <div>{{ w.sName }}</div>
  10121. </div>
  10122. <div class="commentList">
  10123. <div class="commentList">
  10124. <div
  10125. class="commentImg"
  10126. @click="
  10127. isLikes(
  10128. w.wid,
  10129. userid,
  10130. 1,
  10131. null,
  10132. w.isLikes,
  10133. w.sName
  10134. )
  10135. "
  10136. >
  10137. <img
  10138. :src="w.isLikes == true ? likes : noLikes"
  10139. alt=""
  10140. />
  10141. </div>
  10142. <div>{{ w.likesCount }}</div>
  10143. </div>
  10144. <div class="commentList" style="margin-right: 15px">
  10145. <div
  10146. class="commentImg"
  10147. @click="commentOther(w, toolIndex, wIndex)"
  10148. >
  10149. <img
  10150. src="../../assets/icon/comment/comment.png"
  10151. alt=""
  10152. />
  10153. </div>
  10154. <div>{{ w.commentCount }}</div>
  10155. </div>
  10156. </div>
  10157. </div>
  10158. </div>
  10159. </div>
  10160. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10161. 未提交
  10162. </div>
  10163. <div
  10164. class="noWorksS"
  10165. v-if="noWorksS && noWorksS[toolIndex].length"
  10166. >
  10167. <div
  10168. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10169. :key="sIndex"
  10170. class="noWorksName"
  10171. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10172. >
  10173. <el-tooltip
  10174. effect="dark"
  10175. :content="s.student"
  10176. placement="top"
  10177. >
  10178. <span>{{ s.student }}</span>
  10179. </el-tooltip>
  10180. </div>
  10181. </div>
  10182. </div>
  10183. <div
  10184. v-if="
  10185. tType &&
  10186. tType == 2 &&
  10187. !sIsOpen &&
  10188. tool.tool.indexOf(52) != -1
  10189. "
  10190. class="worksBox"
  10191. >
  10192. <div
  10193. class="zuoyeYulan"
  10194. v-if="workStudent[toolIndex].length > 0"
  10195. >
  10196. <span class="worksTitle">作业预览</span>
  10197. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10198. </div>
  10199. <div
  10200. class="worksDetailBox"
  10201. v-if="workStudent[toolIndex].length > 0"
  10202. >
  10203. <div
  10204. class="works"
  10205. style="
  10206. width: 200px;
  10207. height: 140px;
  10208. margin: 10px 10px 10px 0;
  10209. box-shadow: 0 0 6px 1px #dfdada;
  10210. "
  10211. v-for="(w, wIndex) in workStudent[toolIndex]"
  10212. :key="wIndex"
  10213. >
  10214. <div class="workImg">
  10215. <img :src="word" @click="openWord(w)" alt />
  10216. <div
  10217. class="answerScore"
  10218. v-if="w.score"
  10219. @click.stop="openScore(w)"
  10220. :class="{
  10221. rightW:
  10222. w.userid == userid || tType == 1 || tType == 4
  10223. }"
  10224. >
  10225. {{ JSON.parse(w.score).wScore }}分
  10226. </div>
  10227. <div
  10228. class="answerScore"
  10229. @click.stop="openScore(w)"
  10230. v-else-if="courseDetail.userid == userid"
  10231. :class="{
  10232. rightW:
  10233. w.userid == userid || tType == 1 || tType == 4
  10234. }"
  10235. >
  10236. 评分
  10237. </div>
  10238. <div
  10239. class="stuLookScore"
  10240. v-if="
  10241. w.userid == userid ||
  10242. (tType == 1 &&
  10243. courseDetail.state == 5 &&
  10244. ((chapInfoList[courseType].chapterInfo[0]
  10245. .taskJson[taskCount].eList &&
  10246. chapInfoList[courseType].chapterInfo[0]
  10247. .taskJson[taskCount].eList.length) ||
  10248. (tool.eList && tool.eList.length)))
  10249. "
  10250. >
  10251. <el-popover
  10252. placement="top"
  10253. width="318"
  10254. trigger="hover"
  10255. >
  10256. <markScore
  10257. :loading="AIloading[toolIndex][wIndex].loading"
  10258. :markScoreVisible="markScoreVisible"
  10259. :ref="`markSco${toolIndex}${wIndex}`"
  10260. @updateLoading="updateLoading"
  10261. @updateDocSco="updateDocSco"
  10262. @refreshOther="refreshOther"
  10263. @markScoreDig="markScoreDig"
  10264. :tool="tool"
  10265. :wIndex="wIndex"
  10266. :scoCon="w"
  10267. :toolIndex="toolIndex"
  10268. :key="refreshKey"
  10269. :stage="courseType"
  10270. :task="taskCount"
  10271. :scoTit="
  10272. chapInfoList[courseType].chapterInfo[0]
  10273. .taskJson[taskCount].eList
  10274. "
  10275. >
  10276. </markScore>
  10277. <div
  10278. @click="
  10279. markScoreDig2(
  10280. w.sName,
  10281. worksStudent,
  10282. w.userid,
  10283. toolIndex,
  10284. chapInfoList[courseType].chapterInfo[0]
  10285. .taskJson[taskCount].eList,
  10286. AIloading[toolIndex][wIndex].loading,
  10287. tool
  10288. )
  10289. "
  10290. slot="reference"
  10291. >
  10292. <span v-if="AIloading[toolIndex][wIndex].sco">
  10293. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10294. </span>
  10295. <span v-else>
  10296. 评分
  10297. </span>
  10298. </div>
  10299. </el-popover>
  10300. </div>
  10301. <img
  10302. class="deleteImg"
  10303. src="../../assets/deleteworks.png"
  10304. v-if="
  10305. w.userid == userid || tType == 1 || tType == 4
  10306. "
  10307. @click.stop="deleteWorks(w.wid)"
  10308. alt
  10309. />
  10310. </div>
  10311. <div class="worksName">
  10312. <div>{{ w.sName }}</div>
  10313. </div>
  10314. </div>
  10315. </div>
  10316. </div>
  10317. <div
  10318. v-if="tool.tool.indexOf(49) != -1"
  10319. class="xuan_right_box"
  10320. style="margin: 0 15px 0 25px; width: 93%"
  10321. >
  10322. <div
  10323. v-if="courseDetail.userid == userid"
  10324. style="
  10325. display: flex;
  10326. justify-content: flex-end;
  10327. margin-right: 10px;
  10328. "
  10329. >
  10330. <el-button
  10331. type="primary"
  10332. size="small"
  10333. @click="addTools(49, toolIndex, taskCount)"
  10334. >分组设置</el-button
  10335. >
  10336. </div>
  10337. <div
  10338. v-if="groupStudentUid[toolIndex]"
  10339. class="group_staic_box"
  10340. >
  10341. <div
  10342. v-for="(gp, gd) in tool.groupJson.group"
  10343. :key="gd"
  10344. class="group_staic"
  10345. >
  10346. <span> {{ gp.name }}</span>
  10347. <span>
  10348. 目前人数{{
  10349. groupStudentUid[toolIndex][gd].length
  10350. }}人</span
  10351. >
  10352. </div>
  10353. </div>
  10354. </div>
  10355. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10356. <div
  10357. class="zuoyeYulan"
  10358. v-if="
  10359. worksStudent.length &&
  10360. worksStudent[toolIndex].length > 0
  10361. "
  10362. >
  10363. <span class="worksTitle">作业预览</span>
  10364. </div>
  10365. <div>
  10366. <div
  10367. class="group_workBox"
  10368. v-for="(g, gindex) in tool.groupJson.group"
  10369. :key="gindex"
  10370. >
  10371. <div
  10372. class="group_box"
  10373. v-if="
  10374. groupStudentUid[toolIndex] &&
  10375. worksStudent[toolIndex] &&
  10376. (worksStudent[toolIndex][gindex].length ||
  10377. groupStudentUid[toolIndex][gindex].indexOf(
  10378. userid
  10379. ) != -1)
  10380. "
  10381. >
  10382. <div class="group_title">
  10383. <el-tooltip
  10384. class="item"
  10385. effect="light"
  10386. :content="g.name"
  10387. placement="top"
  10388. >
  10389. <div class="group_name">{{ g.name }}</div>
  10390. </el-tooltip>
  10391. <el-button
  10392. type="primary"
  10393. v-if="
  10394. groupStudentUid[toolIndex][gindex].indexOf(
  10395. userid
  10396. ) != -1
  10397. "
  10398. @click="groupUpload(toolIndex, taskCount, gindex)"
  10399. >上传作业</el-button
  10400. >
  10401. </div>
  10402. <div class="group_work">
  10403. <div
  10404. class="works"
  10405. style="
  10406. width: 200px;
  10407. height: 140px;
  10408. margin: 10px 10px 10px 0;
  10409. border-radius: 15px;
  10410. box-shadow: 0 0 6px 1px #dfdada;
  10411. "
  10412. v-for="(w, wIndex) in worksStudent[toolIndex][
  10413. gindex
  10414. ]"
  10415. :key="wIndex"
  10416. :class="w.type == 1 ? 'isTypeOne' : ''"
  10417. >
  10418. <div class="workImg" v-if="w.type == 0">
  10419. <img
  10420. :src="w.works"
  10421. @click="previewImg(w.works, w)"
  10422. alt
  10423. />
  10424. <div
  10425. class="answerScore"
  10426. v-if="w.score"
  10427. @click.stop="openScore(w)"
  10428. :class="{
  10429. rightW:
  10430. w.userid == userid ||
  10431. tType == 1 ||
  10432. tType == 4 ||
  10433. w.ateacher == userid
  10434. }"
  10435. >
  10436. {{ JSON.parse(w.score).wScore }}分
  10437. </div>
  10438. <div
  10439. class="answerScore"
  10440. @click.stop="openScore(w)"
  10441. v-else-if="courseDetail.userid == userid"
  10442. :class="{
  10443. rightW:
  10444. w.userid == userid ||
  10445. tType == 1 ||
  10446. tType == 4 ||
  10447. w.ateacher == userid
  10448. }"
  10449. >
  10450. 评分
  10451. </div>
  10452. <img
  10453. class="deleteImg"
  10454. src="../../assets/deleteworks.png"
  10455. v-if="
  10456. w.userid == userid ||
  10457. tType == 1 ||
  10458. tType == 4
  10459. "
  10460. @click.stop="deleteWorks(w.wid)"
  10461. alt
  10462. />
  10463. </div>
  10464. <div class="workImg" v-if="w.type == 1">
  10465. <img
  10466. :src="word"
  10467. @click="openFile(w.works)"
  10468. alt
  10469. />
  10470. <!-- @click="openFile(w.works)" -->
  10471. <div
  10472. class="answerScore"
  10473. v-if="w.score"
  10474. @click.stop="openScore(w)"
  10475. :class="{
  10476. rightW:
  10477. w.userid == userid ||
  10478. tType == 1 ||
  10479. tType == 4 ||
  10480. w.ateacher == userid
  10481. }"
  10482. >
  10483. {{ JSON.parse(w.score).wScore }}分
  10484. </div>
  10485. <div
  10486. class="answerScore"
  10487. @click.stop="openScore(w)"
  10488. v-else-if="courseDetail.userid == userid"
  10489. :class="{
  10490. rightW:
  10491. w.userid == userid ||
  10492. tType == 1 ||
  10493. tType == 4 ||
  10494. w.ateacher == userid
  10495. }"
  10496. >
  10497. 评分
  10498. </div>
  10499. <img
  10500. class="deleteImg"
  10501. src="../../assets/deleteworks.png"
  10502. v-if="
  10503. w.userid == userid ||
  10504. tType == 1 ||
  10505. tType == 4
  10506. "
  10507. @click.stop="deleteWorks(w.wid)"
  10508. alt
  10509. />
  10510. </div>
  10511. <div class="workImg" v-if="w.type == 3">
  10512. <img
  10513. style="cursor: pointer"
  10514. :src="video"
  10515. @click="openVideo(w)"
  10516. alt
  10517. />
  10518. <!-- @click="openVideo(w.works)" -->
  10519. <div
  10520. class="answerScore"
  10521. v-if="w.score"
  10522. @click.stop="openScore(w)"
  10523. :class="{
  10524. rightW:
  10525. w.userid == userid ||
  10526. tType == 1 ||
  10527. tType == 4 ||
  10528. w.ateacher == userid
  10529. }"
  10530. >
  10531. {{ JSON.parse(w.score).wScore }}分
  10532. </div>
  10533. <div
  10534. class="answerScore"
  10535. @click.stop="openScore(w)"
  10536. v-else-if="courseDetail.userid == userid"
  10537. :class="{
  10538. rightW:
  10539. w.userid == userid ||
  10540. tType == 1 ||
  10541. tType == 4 ||
  10542. w.ateacher == userid
  10543. }"
  10544. >
  10545. 评分
  10546. </div>
  10547. <img
  10548. class="deleteImg"
  10549. src="../../assets/deleteworks.png"
  10550. v-if="
  10551. w.userid == userid ||
  10552. tType == 1 ||
  10553. tType == 4
  10554. "
  10555. @click.stop="deleteWorks(w.wid)"
  10556. alt
  10557. />
  10558. </div>
  10559. <div class="workImg" v-if="w.type == 12">
  10560. <img
  10561. style="cursor: pointer"
  10562. :src="word2"
  10563. @click="downloadFile(w.works)"
  10564. alt
  10565. />
  10566. <!-- @click="openVideo(w.works)" -->
  10567. <div
  10568. class="answerScore"
  10569. v-if="w.score"
  10570. @click.stop="openScore(w)"
  10571. :class="{
  10572. rightW:
  10573. w.userid == userid ||
  10574. tType == 1 ||
  10575. tType == 4 ||
  10576. w.ateacher == userid
  10577. }"
  10578. >
  10579. {{ JSON.parse(w.score).wScore }}分
  10580. </div>
  10581. <div
  10582. class="answerScore"
  10583. @click.stop="openScore(w)"
  10584. v-else-if="courseDetail.userid == userid"
  10585. :class="{
  10586. rightW:
  10587. w.userid == userid ||
  10588. tType == 1 ||
  10589. tType == 4 ||
  10590. w.ateacher == userid
  10591. }"
  10592. >
  10593. 评分
  10594. </div>
  10595. <img
  10596. class="deleteImg"
  10597. src="../../assets/deleteworks.png"
  10598. v-if="
  10599. w.userid == userid ||
  10600. tType == 1 ||
  10601. tType == 4
  10602. "
  10603. @click.stop="deleteWorks(w.wid)"
  10604. alt
  10605. />
  10606. </div>
  10607. <div class="comment" style="min-width: 200px">
  10608. <div class="worksName">
  10609. <div>{{ w.sName }}</div>
  10610. </div>
  10611. <div class="commentList">
  10612. <div class="commentList">
  10613. <div
  10614. class="commentImg"
  10615. @click="
  10616. isLikes(
  10617. w.wid,
  10618. userid,
  10619. 1,
  10620. null,
  10621. w.isLikes,
  10622. w.sName
  10623. )
  10624. "
  10625. >
  10626. <img
  10627. :src="
  10628. w.isLikes == true ? likes : noLikes
  10629. "
  10630. alt=""
  10631. />
  10632. </div>
  10633. <div>{{ w.likesCount }}</div>
  10634. </div>
  10635. <div
  10636. class="commentList"
  10637. style="margin-right: 15px"
  10638. >
  10639. <div
  10640. class="commentImg"
  10641. @click="
  10642. commentOther(
  10643. w,
  10644. toolIndex,
  10645. wIndex,
  10646. gindex
  10647. )
  10648. "
  10649. >
  10650. <img
  10651. src="../../assets/icon/comment/comment.png"
  10652. alt=""
  10653. />
  10654. </div>
  10655. <div>{{ w.commentCount }}</div>
  10656. </div>
  10657. </div>
  10658. </div>
  10659. </div>
  10660. </div>
  10661. </div>
  10662. </div>
  10663. </div>
  10664. </div>
  10665. <div
  10666. style="width:92%;margin: 0 0 0 40px;"
  10667. v-if="
  10668. courseDetail.state == 5 && tool.eList && tool.eList.length
  10669. "
  10670. >
  10671. <evaTable :eList="tool.eList"></evaTable>
  10672. </div>
  10673. </div>
  10674. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10675. 上传文件
  10676. <input
  10677. type="file"
  10678. accept="image/png, image/gif, image/jpeg"
  10679. style="display: none"
  10680. @change="beforeUpload1($event, 2, index)"
  10681. />
  10682. </div>-->
  10683. </div>
  10684. </div>
  10685. <!-- <div
  10686. class="vedioBox"
  10687. style="margin-top: 10px"
  10688. v-if="
  10689. courseDetail.userid == userid ||
  10690. (courseDetail.course_teacher &&
  10691. courseDetail.course_teacher.indexOf(userid) != -1)
  10692. "
  10693. :style="{
  10694. borderRadius:
  10695. !(
  10696. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10697. .toolChoose[0].tool &&
  10698. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10699. .toolChoose[0].tool.length > 0
  10700. ) &&
  10701. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10702. .taskDetail == '' &&
  10703. vChapterData[taskCount].length == 0 &&
  10704. fileC[taskCount].length == 0
  10705. ? '0 0 20px 20px'
  10706. : '20px',
  10707. }"
  10708. >
  10709. <div
  10710. class="queTop"
  10711. @click="isClose = !isClose"
  10712. style="
  10713. padding: 15px 0 15px 37px;
  10714. justify-content: space-between;
  10715. "
  10716. >
  10717. <div class="queTopTitle">新增工具</div>
  10718. <div class="queTopRight">
  10719. <div class="queTopClose" v-if="isClose == 0">
  10720. 展开
  10721. <div class="closeImg">
  10722. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10723. </div>
  10724. </div>
  10725. <div class="queTopClose" v-if="isClose == 1">
  10726. 折叠
  10727. <div class="openImg">
  10728. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10729. </div>
  10730. </div>
  10731. <el-button
  10732. style="margin: 0 30px 0 auto"
  10733. type="primary"
  10734. size="small"
  10735. v-if="isClose == 1 && checktoolArray.length > 0"
  10736. @click.stop="addToolChoose"
  10737. >确定</el-button
  10738. >
  10739. </div>
  10740. </div>
  10741. <div
  10742. class="tool_work_box"
  10743. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10744. >
  10745. <div class="tool_box">
  10746. <div class="tool_type_box">
  10747. <div class="chooseWho">
  10748. <div
  10749. :class="toolType == 0 ? 'isChooseActive' : ''"
  10750. @click="(toolType = 0), $forceUpdate()"
  10751. >
  10752. 互动类
  10753. </div>
  10754. <div
  10755. :class="toolType == 1 ? 'isChooseActive' : ''"
  10756. @click="(toolType = 1), $forceUpdate()"
  10757. >
  10758. 思维类
  10759. </div>
  10760. <div
  10761. :class="toolType == 2 ? 'isChooseActive' : ''"
  10762. @click="(toolType = 2), $forceUpdate()"
  10763. >
  10764. 测评类
  10765. </div>
  10766. <div
  10767. :class="toolType == 3 ? 'isChooseActive' : ''"
  10768. @click="(toolType = 3), $forceUpdate()"
  10769. >
  10770. 编程类
  10771. </div>
  10772. <div
  10773. :class="toolType == 5 ? 'isChooseActive' : ''"
  10774. @click="(toolType = 5), $forceUpdate()"
  10775. >
  10776. 学科类
  10777. </div>
  10778. </div>
  10779. </div>
  10780. <div>
  10781. <div class="toolSort" v-if="toolType == 0">
  10782. <div class="tool">
  10783. <div class="whiteBIcon" @click="addTools2(10)">
  10784. <img
  10785. src="../../assets/icon/thirdToolList/time.png"
  10786. alt
  10787. />
  10788. <div style="margin: 5px 0">倒计时</div>
  10789. </div>
  10790. <div class="check" @click="addTools2(10)">
  10791. <img
  10792. src="../../assets/icon/checkNo.png"
  10793. alt
  10794. v-if="checktoolArray.indexOf(10) == -1"
  10795. />
  10796. <div class="checkDiv" v-else>
  10797. <img src="../../assets/icon/checkedIs.png" alt /><span
  10798. >已选择</span
  10799. >
  10800. </div>
  10801. </div>
  10802. </div>
  10803. <div class="tool">
  10804. <div class="whiteBIcon" @click="addTools2(65)">
  10805. <img
  10806. src="../../assets/icon/firstToolList/pickPeople.png"
  10807. alt
  10808. />
  10809. <div style="margin: 5px 0">挑人</div>
  10810. </div>
  10811. <div class="check" @click="addTools2(65)">
  10812. <img
  10813. src="../../assets/icon/checkNo.png"
  10814. alt
  10815. v-if="checktoolArray.indexOf(65) == -1"
  10816. />
  10817. <div class="checkDiv" v-else>
  10818. <img src="../../assets/icon/checkedIs.png" alt /><span
  10819. >已选择</span
  10820. >
  10821. </div>
  10822. </div>
  10823. </div>
  10824. </div>
  10825. <div class="toolSort" v-if="toolType == 1">
  10826. <div class="tool">
  10827. <div class="whiteBIcon" @click="addTools2(7)">
  10828. <img
  10829. src="../../assets/icon/secondToolList/mindNetwork.png"
  10830. alt
  10831. />
  10832. <div style="margin: 5px 0">思维网格</div>
  10833. </div>
  10834. <div class="check" @click="addTools2(7)">
  10835. <img
  10836. src="../../assets/icon/checkNo.png"
  10837. alt
  10838. v-if="checktoolArray.indexOf(7) == -1"
  10839. />
  10840. <div class="checkDiv" v-else>
  10841. <img src="../../assets/icon/checkedIs.png" alt /><span
  10842. >已选择</span
  10843. >
  10844. </div>
  10845. </div>
  10846. </div>
  10847. <div class="tool">
  10848. <div class="whiteBIcon" @click="addTools2(1)">
  10849. <img
  10850. src="../../assets/icon/secondToolList/whiteBoard.png"
  10851. alt
  10852. />
  10853. <div style="margin: 5px 0">电子白板</div>
  10854. </div>
  10855. <div class="check" @click="addTools2(1)">
  10856. <img
  10857. src="../../assets/icon/checkNo.png"
  10858. alt
  10859. v-if="checktoolArray.indexOf(1) == -1"
  10860. />
  10861. <div class="checkDiv" v-else>
  10862. <img src="../../assets/icon/checkedIs.png" alt /><span
  10863. >已选择</span
  10864. >
  10865. </div>
  10866. </div>
  10867. </div>
  10868. <div class="tool">
  10869. <div class="whiteBIcon" @click="addTools2(52)">
  10870. <img
  10871. src="../../assets/icon/fourthToolList/text.png"
  10872. alt
  10873. />
  10874. <div style="margin: 5px 0">文档</div>
  10875. </div>
  10876. <div class="check" @click="addTools2(52)">
  10877. <img
  10878. src="../../assets/icon/checkNo.png"
  10879. alt
  10880. v-if="checktoolArray.indexOf(52) == -1"
  10881. />
  10882. <div class="checkDiv" v-else>
  10883. <img src="../../assets/icon/checkedIs.png" alt /><span
  10884. >已选择</span
  10885. >
  10886. </div>
  10887. </div>
  10888. </div>
  10889. <div class="tool">
  10890. <div class="whiteBIcon" @click="addTools2(3)">
  10891. <img
  10892. src="../../assets/icon/secondToolList/mindMapping.png"
  10893. alt
  10894. />
  10895. <div style="margin: 5px 0">思维导图</div>
  10896. </div>
  10897. <div class="check" @click="addTools2(3)">
  10898. <img
  10899. src="../../assets/icon/checkNo.png"
  10900. alt
  10901. v-if="checktoolArray.indexOf(3) == -1"
  10902. />
  10903. <div class="checkDiv" v-else>
  10904. <img src="../../assets/icon/checkedIs.png" alt /><span
  10905. >已选择</span
  10906. >
  10907. </div>
  10908. </div>
  10909. </div>
  10910. <div class="tool">
  10911. <div class="whiteBIcon" @click="addTools2(48)">
  10912. <img
  10913. src="../../assets/icon/fourthToolList/table.png"
  10914. alt
  10915. />
  10916. <div style="margin: 5px 0">表格</div>
  10917. </div>
  10918. <div class="check" @click="addTools2(48)">
  10919. <img
  10920. src="../../assets/icon/checkNo.png"
  10921. alt
  10922. v-if="checktoolArray.indexOf(48) == -1"
  10923. />
  10924. <div class="checkDiv" v-else>
  10925. <img src="../../assets/icon/checkedIs.png" alt /><span
  10926. >已选择</span
  10927. >
  10928. </div>
  10929. </div>
  10930. </div>
  10931. </div>
  10932. <div class="toolSort" v-if="toolType == 6">
  10933. <div v-show="tooC == 49">
  10934. <img
  10935. @click="addTools(tooC, toolIndex, taskCount)"
  10936. src="../../assets/icon/fourthToolList/group.png"
  10937. alt
  10938. />
  10939. <div style="margin: 5px 0">学生分组</div>
  10940. </div>
  10941. </div>
  10942. <div class="toolSort" v-if="toolType == 2">
  10943. <div class="tool">
  10944. <div class="whiteBIcon" @click="addTools2(16)">
  10945. <img
  10946. src="../../assets/icon/thirdToolList/work.png"
  10947. alt
  10948. />
  10949. <div style="margin: 5px 0">作业提交</div>
  10950. </div>
  10951. <div class="check" @click="addTools2(16)">
  10952. <img
  10953. src="../../assets/icon/checkNo.png"
  10954. alt
  10955. v-if="checktoolArray.indexOf(16) == -1"
  10956. />
  10957. <div class="checkDiv" v-else>
  10958. <img src="../../assets/icon/checkedIs.png" alt /><span
  10959. >已选择</span
  10960. >
  10961. </div>
  10962. </div>
  10963. </div>
  10964. <div class="tool">
  10965. <div class="whiteBIcon" @click="addTools2(50)">
  10966. <img
  10967. src="../../assets/icon/thirdToolList/plwork.png"
  10968. alt
  10969. />
  10970. <div style="margin: 5px 0">批量上传</div>
  10971. </div>
  10972. <div class="check" @click="addTools2(50)">
  10973. <img
  10974. src="../../assets/icon/checkNo.png"
  10975. alt
  10976. v-if="checktoolArray.indexOf(50) == -1"
  10977. />
  10978. <div class="checkDiv" v-else>
  10979. <img src="../../assets/icon/checkedIs.png" alt /><span
  10980. >已选择</span
  10981. >
  10982. </div>
  10983. </div>
  10984. </div>
  10985. </div>
  10986. <div class="toolSort" v-if="toolType == 3">
  10987. <div class="tool">
  10988. <div class="whiteBIcon" @click="addTools2(18)">
  10989. <img
  10990. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10991. alt
  10992. />
  10993. <div style="margin: 5px 0">训练平台</div>
  10994. </div>
  10995. <div class="check" @click="addTools2(18)">
  10996. <img
  10997. src="../../assets/icon/checkNo.png"
  10998. alt
  10999. v-if="checktoolArray.indexOf(18) == -1"
  11000. />
  11001. <div class="checkDiv" v-else>
  11002. <img src="../../assets/icon/checkedIs.png" alt /><span
  11003. >已选择</span
  11004. >
  11005. </div>
  11006. </div>
  11007. </div>
  11008. <div class="tool">
  11009. <div class="whiteBIcon" @click="addTools2(21)">
  11010. <img
  11011. src="../../assets/icon/fourthToolList/program.png"
  11012. alt
  11013. />
  11014. <div style="margin: 5px 0">AIoT Blockly</div>
  11015. </div>
  11016. <div class="check" @click="addTools2(21)">
  11017. <img
  11018. src="../../assets/icon/checkNo.png"
  11019. alt
  11020. v-if="checktoolArray.indexOf(21) == -1"
  11021. />
  11022. <div class="checkDiv" v-else>
  11023. <img src="../../assets/icon/checkedIs.png" alt /><span
  11024. >已选择</span
  11025. >
  11026. </div>
  11027. </div>
  11028. </div>
  11029. <div class="tool">
  11030. <div class="whiteBIcon" @click="addTools2(23)">
  11031. <img
  11032. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11033. alt
  11034. />
  11035. <div style="margin: 5px 0">AI Python</div>
  11036. </div>
  11037. <div class="check" @click="addTools2(23)">
  11038. <img
  11039. src="../../assets/icon/checkNo.png"
  11040. alt
  11041. v-if="checktoolArray.indexOf(23) == -1"
  11042. />
  11043. <div class="checkDiv" v-else>
  11044. <img src="../../assets/icon/checkedIs.png" alt /><span
  11045. >已选择</span
  11046. >
  11047. </div>
  11048. </div>
  11049. </div>
  11050. <div class="tool">
  11051. <div class="whiteBIcon" @click="addTools2(24)">
  11052. <img
  11053. src="../../assets/icon/fourthToolList/AIprogram.png"
  11054. alt
  11055. />
  11056. <div style="margin: 5px 0">AI Blockly</div>
  11057. </div>
  11058. <div class="check" @click="addTools2(24)">
  11059. <img
  11060. src="../../assets/icon/checkNo.png"
  11061. alt
  11062. v-if="checktoolArray.indexOf(24) == -1"
  11063. />
  11064. <div class="checkDiv" v-else>
  11065. <img src="../../assets/icon/checkedIs.png" alt /><span
  11066. >已选择</span
  11067. >
  11068. </div>
  11069. </div>
  11070. </div>
  11071. <div class="tool">
  11072. <div class="whiteBIcon" @click="addTools2(32)">
  11073. <img
  11074. src="../../assets/icon/thirdToolList/code.png"
  11075. alt
  11076. />
  11077. <div style="margin: 5px 0">源码编辑</div>
  11078. </div>
  11079. <div class="check" @click="addTools2(32)">
  11080. <img
  11081. src="../../assets/icon/checkNo.png"
  11082. alt
  11083. v-if="checktoolArray.indexOf(32) == -1"
  11084. />
  11085. <div class="checkDiv" v-else>
  11086. <img src="../../assets/icon/checkedIs.png" alt /><span
  11087. >已选择</span
  11088. >
  11089. </div>
  11090. </div>
  11091. </div>
  11092. <div class="tool">
  11093. <div class="whiteBIcon" @click="addTools2(57)">
  11094. <img
  11095. src="../../assets/icon/fourthToolList/cocopi.png"
  11096. alt
  11097. />
  11098. <div style="margin: 5px 0">CocoPi</div>
  11099. </div>
  11100. <div class="check" @click="addTools2(57)">
  11101. <img
  11102. src="../../assets/icon/checkNo.png"
  11103. alt
  11104. v-if="checktoolArray.indexOf(57) == -1"
  11105. />
  11106. <div class="checkDiv" v-else>
  11107. <img src="../../assets/icon/checkedIs.png" alt /><span
  11108. >已选择</span
  11109. >
  11110. </div>
  11111. </div>
  11112. </div>
  11113. <div class="tool">
  11114. <div class="whiteBIcon" @click="addTools2(63)">
  11115. <img
  11116. src="../../assets/icon/fourthToolList/Wood.png"
  11117. alt
  11118. />
  11119. <div style="margin: 5px 0">海龟编程</div>
  11120. </div>
  11121. <div class="check" @click="addTools2(63)">
  11122. <img
  11123. src="../../assets/icon/checkNo.png"
  11124. alt
  11125. v-if="checktoolArray.indexOf(63) == -1"
  11126. />
  11127. <div class="checkDiv" v-else>
  11128. <img src="../../assets/icon/checkedIs.png" alt /><span
  11129. >已选择</span
  11130. >
  11131. </div>
  11132. </div>
  11133. </div>
  11134. </div>
  11135. <div class="toolSort" v-if="toolType == 5">
  11136. <div class="tool">
  11137. <div class="whiteBIcon" @click="addTools2(28)">
  11138. <img
  11139. src="../../assets/icon/secondToolList/translation.png"
  11140. alt
  11141. />
  11142. <div style="margin: 5px 0">翻译</div>
  11143. </div>
  11144. <div class="check" @click="addTools2(28)">
  11145. <img
  11146. src="../../assets/icon/checkNo.png"
  11147. alt
  11148. v-if="checktoolArray.indexOf(28) == -1"
  11149. />
  11150. <div class="checkDiv" v-else>
  11151. <img src="../../assets/icon/checkedIs.png" alt /><span
  11152. >已选择</span
  11153. >
  11154. </div>
  11155. </div>
  11156. </div>
  11157. <div class="tool">
  11158. <div class="whiteBIcon" @click="addTools2(31)">
  11159. <img
  11160. src="../../assets/icon/secondToolList/networkPanel.png"
  11161. alt
  11162. />
  11163. <div style="margin: 5px 0">数字画板</div>
  11164. </div>
  11165. <div class="check" @click="addTools2(31)">
  11166. <img
  11167. src="../../assets/icon/checkNo.png"
  11168. alt
  11169. v-if="checktoolArray.indexOf(31) == -1"
  11170. />
  11171. <div class="checkDiv" v-else>
  11172. <img src="../../assets/icon/checkedIs.png" alt /><span
  11173. >已选择</span
  11174. >
  11175. </div>
  11176. </div>
  11177. </div>
  11178. <div class="tool">
  11179. <div class="whiteBIcon" @click="addTools2(39)">
  11180. <img
  11181. src="../../assets/icon/secondToolList/GeoGebra.png"
  11182. alt
  11183. />
  11184. <div style="margin: 5px 0">GeoGebra</div>
  11185. </div>
  11186. <div class="check" @click="addTools2(39)">
  11187. <img
  11188. src="../../assets/icon/checkNo.png"
  11189. alt
  11190. v-if="checktoolArray.indexOf(39) == -1"
  11191. />
  11192. <div class="checkDiv" v-else>
  11193. <img src="../../assets/icon/checkedIs.png" alt /><span
  11194. >已选择</span
  11195. >
  11196. </div>
  11197. </div>
  11198. </div>
  11199. <div class="tool">
  11200. <div class="whiteBIcon" @click="addTools2(66)">
  11201. <img
  11202. src="../../assets/icon/secondToolList/formulaEdi.png"
  11203. alt
  11204. />
  11205. <div style="margin: 5px 0">公式编辑</div>
  11206. </div>
  11207. <div class="check" @click="addTools2(66)">
  11208. <img
  11209. src="../../assets/icon/checkNo.png"
  11210. alt
  11211. v-if="checktoolArray.indexOf(66) == -1"
  11212. />
  11213. <div class="checkDiv" v-else>
  11214. <img src="../../assets/icon/checkedIs.png" alt /><span
  11215. >已选择</span
  11216. >
  11217. </div>
  11218. </div>
  11219. </div>
  11220. <div class="tool">
  11221. <div class="whiteBIcon" @click="addTools2(67)">
  11222. <img
  11223. src="../../assets/icon/secondToolList/molStr.png"
  11224. alt
  11225. />
  11226. <div style="margin: 5px 0">分子结构</div>
  11227. </div>
  11228. <div class="check" @click="addTools2(67)">
  11229. <img
  11230. src="../../assets/icon/checkNo.png"
  11231. alt
  11232. v-if="checktoolArray.indexOf(67) == -1"
  11233. />
  11234. <div class="checkDiv" v-else>
  11235. <img src="../../assets/icon/checkedIs.png" alt /><span
  11236. >已选择</span
  11237. >
  11238. </div>
  11239. </div>
  11240. </div>
  11241. <div class="tool">
  11242. <div class="whiteBIcon" @click="addTools2(68)">
  11243. <img
  11244. src="../../assets/icon/secondToolList/timeAxis.png"
  11245. alt
  11246. />
  11247. <div style="margin: 5px 0">时间轴</div>
  11248. </div>
  11249. <div class="check" @click="addTools2(68)">
  11250. <img
  11251. src="../../assets/icon/checkNo.png"
  11252. alt
  11253. v-if="checktoolArray.indexOf(68) == -1"
  11254. />
  11255. <div class="checkDiv" v-else>
  11256. <img src="../../assets/icon/checkedIs.png" alt /><span
  11257. >已选择</span
  11258. >
  11259. </div>
  11260. </div>
  11261. </div>
  11262. </div>
  11263. <div class="toolSort" v-if="toolType == 7">
  11264. <div class="tool">
  11265. <div class="whiteBIcon" @click="addTools2(40)">
  11266. <img
  11267. src="../../assets/icon/secondToolList/eval.png"
  11268. alt
  11269. />
  11270. <div style="margin: 5px 0">个人评价</div>
  11271. </div>
  11272. <div class="check" @click="addTools2(40)">
  11273. <img
  11274. src="../../assets/icon/checkNo.png"
  11275. alt
  11276. v-if="checktoolArray.indexOf(40) == -1"
  11277. />
  11278. <div class="checkDiv" v-else>
  11279. <img src="../../assets/icon/checkedIs.png" alt /><span
  11280. >已选择</span
  11281. >
  11282. </div>
  11283. </div>
  11284. </div>
  11285. </div>
  11286. <div class="toolSort" v-if="toolType == 4">
  11287. <div class="tool">
  11288. <div class="whiteBIcon" @click="addTools2(26)">
  11289. <img
  11290. src="../../assets/icon/thirdToolList/courseDesign.png"
  11291. alt
  11292. />
  11293. <div style="margin: 5px 0">课程设计</div>
  11294. </div>
  11295. <div class="check" @click="addTools2(26)">
  11296. <img
  11297. src="../../assets/icon/checkNo.png"
  11298. alt
  11299. v-if="checktoolArray.indexOf(26) == -1"
  11300. />
  11301. <div class="checkDiv" v-else>
  11302. <img src="../../assets/icon/checkedIs.png" alt /><span
  11303. >已选择</span
  11304. >
  11305. </div>
  11306. </div>
  11307. </div>
  11308. <div class="tool">
  11309. <div class="whiteBIcon" @click="addTools2(25)">
  11310. <img
  11311. src="../../assets/icon/thirdToolList/evalua.png"
  11312. alt
  11313. />
  11314. <div style="margin: 5px 0">目标管理</div>
  11315. </div>
  11316. <div class="check" @click="addTools2(25)">
  11317. <img
  11318. src="../../assets/icon/checkNo.png"
  11319. alt
  11320. v-if="checktoolArray.indexOf(25) == -1"
  11321. />
  11322. <div class="checkDiv" v-else>
  11323. <img src="../../assets/icon/checkedIs.png" alt /><span
  11324. >已选择</span
  11325. >
  11326. </div>
  11327. </div>
  11328. </div>
  11329. </div>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. </div> -->
  11334. <div
  11335. class="vedioBox"
  11336. style="margin-top: 10px; border-radius: 20px"
  11337. v-if="
  11338. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11339. .eList &&
  11340. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11341. .eList.length &&
  11342. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11343. .eList.length > 0 &&
  11344. tType != 2
  11345. "
  11346. >
  11347. <div
  11348. class="queTop"
  11349. style="
  11350. font-size: 20px;
  11351. padding: 15px 0 15px 37px;
  11352. font-weight: bold;
  11353. "
  11354. >
  11355. <!-- <div class="question" style="width: 30px">
  11356. <img src="../assets/icon/toolIcon.png" alt />
  11357. </div>
  11358. <div class="queTitle">
  11359. <div>工具</div>
  11360. </div>-->
  11361. 评一评
  11362. </div>
  11363. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11364. <div
  11365. class="elist_input"
  11366. :style="{
  11367. marginLeft: '20px',
  11368. width: evalua
  11369. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  11370. taskCount
  11371. ].isEvaFold2
  11372. ? '45%'
  11373. : 'calc(100% - 180px)'
  11374. : 'calc(100% - 20px)'
  11375. }"
  11376. >
  11377. <el-table
  11378. :data="
  11379. chapInfoList[courseType].chapterInfo[0].taskJson[
  11380. taskCount
  11381. ].eList
  11382. "
  11383. :header-cell-style="{ background: '#F0F4FA' }"
  11384. :row-class-name="tableRowClassName"
  11385. border
  11386. stripe
  11387. style="width: 100%"
  11388. >
  11389. <el-table-column
  11390. :width="courseDetail.state == 5 ? '230' : '150'"
  11391. label="目标"
  11392. align="center"
  11393. >
  11394. <template slot-scope="scope">
  11395. <div
  11396. style="display:flex;justify-content: center;align-items: center;"
  11397. >
  11398. <img
  11399. class="blueRootCss"
  11400. v-if="
  11401. scope.row.isai == 1 ||
  11402. (!scope.row.isai && courseDetail.state == 5)
  11403. "
  11404. src="../../assets/icon/newIcons/blueRoot.png"
  11405. alt=""
  11406. />
  11407. <div v-if="courseDetail.state == 5">
  11408. {{ scope.row.target ? scope.row.target : "-" }}
  11409. </div>
  11410. <div v-else>
  11411. {{
  11412. scope.row.target
  11413. ? scope.row.target[scope.row.target.length - 1]
  11414. : "-"
  11415. }}
  11416. </div>
  11417. </div>
  11418. </template></el-table-column
  11419. >
  11420. <el-table-column
  11421. label="评价维度"
  11422. align="center"
  11423. v-if="courseDetail.state != 5"
  11424. >
  11425. <template slot-scope="scope"
  11426. ><div>{{ scope.row.value }}</div></template
  11427. >
  11428. </el-table-column>
  11429. <el-table-column
  11430. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  11431. align="center"
  11432. >
  11433. <template slot-scope="scope"
  11434. ><div>
  11435. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11436. </div></template
  11437. >
  11438. </el-table-column>
  11439. <el-table-column
  11440. label="细则"
  11441. align="center"
  11442. v-if="courseDetail.state == 5"
  11443. >
  11444. <template slot-scope="scope"
  11445. ><div
  11446. style="display:flex;justify-content: space-around;margin:auto"
  11447. v-if="scope.row.rule"
  11448. >
  11449. <el-popover
  11450. placement="top"
  11451. width="350"
  11452. trigger="hover"
  11453. >
  11454. <div
  11455. v-html="scope.row.rule"
  11456. style="white-space:pre-wrap"
  11457. ></div>
  11458. <div
  11459. slot="reference"
  11460. style="color:#4383FF;cursor: pointer;"
  11461. >
  11462. 查看
  11463. </div>
  11464. </el-popover>
  11465. </div>
  11466. <div v-else>-</div>
  11467. </template>
  11468. </el-table-column>
  11469. </el-table>
  11470. <!-- <div
  11471. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11472. .chapterInfo[0].taskJson[taskCount].eList"
  11473. :key="eIndex"
  11474. class="elist_input_box"
  11475. >
  11476. <div style="width: 95%">
  11477. <div
  11478. style="
  11479. display: flex;
  11480. flex-direction: row;
  11481. flex-wrap: nowrap;
  11482. align-items: center;
  11483. "
  11484. >
  11485. <div style="max-width: calc(100% - 285px)">
  11486. <span>{{ eItem.value }}</span>
  11487. </div>
  11488. <div
  11489. style="
  11490. padding-left: 25px;
  11491. display: flex;
  11492. flex-direction: row;
  11493. align-items: center;
  11494. "
  11495. >
  11496. <el-rate
  11497. v-model="eItem.score"
  11498. :colors="colors"
  11499. disabled
  11500. ></el-rate>
  11501. </div>
  11502. </div>
  11503. <div class="elist_inptu_text" style="padding-left: 10px">
  11504. <span v-if="eItem.detail != ''">{{
  11505. eItem.detail
  11506. }}</span>
  11507. <span v-else style="color: #b2b1b3; font-size: 14px"
  11508. >暂无描述...</span
  11509. >
  11510. </div>
  11511. </div>
  11512. </div> -->
  11513. </div>
  11514. <div
  11515. v-if="evalua"
  11516. style="
  11517. border: 1px solid #e5e5e5;
  11518. max-width: 650px;
  11519. width: 100%;
  11520. margin-top: 20px;
  11521. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11522. "
  11523. :style="{
  11524. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  11525. taskCount
  11526. ].isEvaFold2
  11527. ? '100%'
  11528. : '116px'
  11529. }"
  11530. >
  11531. <div class="e_add_top">
  11532. <div class="e_add_title" style="width: 100%">
  11533. <!-- <span>目标管理名称</span> -->
  11534. <span
  11535. v-if="
  11536. chapInfoList[courseType].chapterInfo[0].taskJson[
  11537. taskCount
  11538. ].isEvaFold2
  11539. "
  11540. >{{ eTitle }}</span
  11541. >
  11542. <img
  11543. v-if="
  11544. chapInfoList[courseType].chapterInfo[0].taskJson[
  11545. taskCount
  11546. ].isEvaFold2
  11547. "
  11548. src="../../assets/line.png"
  11549. class="cru_line"
  11550. style="
  11551. width: 125px;
  11552. height: 20px;
  11553. bottom: -10px;
  11554. left: 5px;
  11555. "
  11556. />
  11557. <!-- <el-input
  11558. v-model="eTitle"
  11559. placeholder="请输入名称"
  11560. @change="setMindData"
  11561. ></el-input>-->
  11562. <div
  11563. v-show="
  11564. chapInfoList[courseType].chapterInfo[0].taskJson[
  11565. taskCount
  11566. ].isEvaFold2
  11567. "
  11568. class="show_taskD show"
  11569. style="margin:0 0 0 auto"
  11570. @click="foldEva()"
  11571. >
  11572. <img
  11573. src="../../assets/icon/newIcon/icon-slide.png"
  11574. />收起目标
  11575. </div>
  11576. <div
  11577. v-show="
  11578. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11579. taskCount
  11580. ].isEvaFold2
  11581. "
  11582. style="margin:0 0 0 auto"
  11583. class="show_taskD"
  11584. @click="foldEva()"
  11585. >
  11586. <img
  11587. src="../../assets/icon/newIcon/icon-slide.png"
  11588. />展开目标
  11589. </div>
  11590. </div>
  11591. </div>
  11592. <div
  11593. class="e_add_content"
  11594. v-if="
  11595. chapInfoList[courseType].chapterInfo[0].taskJson[
  11596. taskCount
  11597. ].isEvaFold2
  11598. "
  11599. >
  11600. <div class="e_add_list_pbox">
  11601. <div class="e_add_list_pbox_title">
  11602. <!-- <span class="type_title">切换模式</span> -->
  11603. <div class="type_content">
  11604. <span
  11605. :class="{ active: typeMode == 1 }"
  11606. @click="typeMode = 1"
  11607. >目标树</span
  11608. >
  11609. <span
  11610. :class="{ active: typeMode == 2 }"
  11611. @click="typeMode = 2"
  11612. >目标罗盘</span
  11613. >
  11614. <!-- <span
  11615. :class="{ active: typeMode == 3 }"
  11616. @click="typeMode = 3"
  11617. >目标看板</span
  11618. > -->
  11619. </div>
  11620. </div>
  11621. <div
  11622. class="e_add_list_pbox_content"
  11623. style="min-height: 200px;"
  11624. >
  11625. <Mind
  11626. :showBar="false"
  11627. :mindData="data"
  11628. style="width: 100%"
  11629. v-show="typeMode == 1"
  11630. ></Mind>
  11631. <Sunburst
  11632. :Josn="eJson"
  11633. :num="eJSONNum"
  11634. style="width: 100%"
  11635. v-if="typeMode == 2"
  11636. ></Sunburst>
  11637. <SeeBoard
  11638. :Josn="eJson"
  11639. :num="eJSONNum"
  11640. :ename="eTitle"
  11641. style="width: 100%"
  11642. v-if="typeMode == 3"
  11643. >
  11644. </SeeBoard>
  11645. </div>
  11646. </div>
  11647. </div>
  11648. </div>
  11649. </div>
  11650. </div>
  11651. <!-- <div
  11652. class="project_box"
  11653. style="margin-top: 15px; padding-bottom: 30px"
  11654. >
  11655. <div
  11656. style="
  11657. display: flex;
  11658. flex-wrap: nowrap;
  11659. flex-direction: column;
  11660. position: relative;
  11661. "
  11662. >
  11663. <div class="queTop">
  11664. <div class="question">
  11665. <img src="../../assets/icon/homeWork.png" alt="" />
  11666. </div>
  11667. <div class="queTitle">
  11668. <div>作业提交<span>(提交图文视频等)</span></div>
  11669. <div>:任务:{{ task.task }}</div>
  11670. </div>
  11671. </div>
  11672. <div class="ediBottom">
  11673. <div
  11674. class="addEditor"
  11675. style="margin-top: 23px"
  11676. @click="openAddWork"
  11677. v-if="!isNoHomeWork"
  11678. >
  11679. 选择文件
  11680. </div>
  11681. <div
  11682. class="addEditor"
  11683. style="margin-top: 23px"
  11684. @click="openAddWork"
  11685. v-else
  11686. >
  11687. 已提交
  11688. </div>
  11689. </div>
  11690. </div>
  11691. </div>-->
  11692. </div>
  11693. </div>
  11694. <el-dialog
  11695. title="作业提交"
  11696. :visible.sync="dialogVisible"
  11697. :append-to-body="true"
  11698. width="500px"
  11699. :before-close="handleClose"
  11700. class="dialog_change"
  11701. >
  11702. <div class="marginT">
  11703. <div>上传文件</div>
  11704. <div style="display: flex; gap: 10px">
  11705. <div
  11706. class="chapter_add"
  11707. @click="addImg($event)"
  11708. v-if="studyJuri[0].cover.length == 0"
  11709. >
  11710. <div class="up_photo">
  11711. <img src="../../assets/icon/uploadImg.png" alt />
  11712. </div>
  11713. <!-- <input
  11714. type="file"
  11715. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11716. style="display: none"
  11717. @change="beforeUpload1($event, 1)"
  11718. /> -->
  11719. <input
  11720. type="file"
  11721. accept="*"
  11722. style="display: none"
  11723. @change="beforeUpload1($event, 1)"
  11724. />
  11725. <!-- <input
  11726. type="file"
  11727. accept="image/*"
  11728. capture="camera"
  11729. style="display: none"
  11730. @change="beforeUpload1($event, 1)"
  11731. /> -->
  11732. </div>
  11733. <div
  11734. class="chapter_add"
  11735. @click="addImg($event)"
  11736. v-if="studyJuri[0].cover.length == 0"
  11737. >
  11738. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11739. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11740. </div>
  11741. <input
  11742. type="file"
  11743. accept="image/*"
  11744. capture="camera"
  11745. style="display: none"
  11746. @change="beforeUpload1($event, 1)"
  11747. />
  11748. </div>
  11749. </div>
  11750. <div
  11751. class="chapter_add"
  11752. style="
  11753. display: flex;
  11754. width: 100%;
  11755. flex-direction: row;
  11756. flex-wrap: wrap;
  11757. justify-content: flex-start;
  11758. padding: 15px 0;
  11759. "
  11760. v-if="studyJuri[0].cover.length > 0"
  11761. >
  11762. <div class="upCover">
  11763. <img
  11764. :src="studyJuri[0].cover[0].url"
  11765. alt
  11766. v-if="fileType == 0"
  11767. />
  11768. <img :src="word" alt v-else-if="fileType == 1" />
  11769. <img :src="video" alt v-else-if="fileType == 2" />
  11770. <img :src="word2" alt v-else-if="fileType == 3" />
  11771. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11772. <div class="deleteWord" @click="clean(1)">
  11773. <img src="../../assets/icon/deleteWorks.png" alt />
  11774. </div>
  11775. </div>
  11776. </div>
  11777. </div>
  11778. <div
  11779. class="upload_send"
  11780. @click="addCourseWorksCopy(taskCount)"
  11781. v-if="!proVisible"
  11782. >
  11783. 提交
  11784. </div>
  11785. </el-dialog>
  11786. </div>
  11787. </div>
  11788. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11789. <classRoomHelper
  11790. v-if="!['2'].includes(tType)"
  11791. @studentFreePreview="studentFreePreview"
  11792. @OpenJobPreview="OpenJobPreview"
  11793. :videoStart="videoStart"
  11794. :IsFollow="IsFollow"
  11795. :sIsOpen="sIsOpen"
  11796. :IsLookOpen="IsLookOpen"
  11797. :splitScreenData="splitScreenData"
  11798. @splitScreenBehavior="splitScreenBehavior"
  11799. @startRecording="startRecording"
  11800. @stopRecording="stopRecording"
  11801. :fileList="vChapterData[taskCount]"
  11802. :worksStudent="worksStudent"
  11803. :courseType="parseInt(courseType)"
  11804. :taskCount="taskCount"
  11805. :tcid="tcid"
  11806. :navList="navList"
  11807. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11808. ref="classRoomHelperRef"
  11809. :courseDetail="courseDetail"
  11810. :tType="tType"
  11811. @setWidth="setClassRoomHelperWidth"
  11812. @refresh="refreshCourse"
  11813. @goStep="nextOrpreSteps"
  11814. @authority="juriVisible = true"
  11815. @review="setPz"
  11816. @backPage="
  11817. goTo(
  11818. '/courseDetail?userid=' +
  11819. userid +
  11820. '&oid=' +
  11821. oid +
  11822. '&org=' +
  11823. org +
  11824. '&cid=' +
  11825. classId +
  11826. '&courseId=' +
  11827. id +
  11828. '&tType=' +
  11829. tType +
  11830. '&screenType=' +
  11831. screenType
  11832. )
  11833. "
  11834. ></classRoomHelper>
  11835. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  11836. '/courseDetail?userid=' +
  11837. userid +
  11838. '&oid=' +
  11839. oid +
  11840. '&org=' +
  11841. org +
  11842. '&cid=' +
  11843. classId +
  11844. '&courseId=' +
  11845. id +
  11846. '&tType=' +
  11847. tType +
  11848. '&screenType=' +
  11849. screenType
  11850. )"></studentClassRoomHelper>
  11851. <div
  11852. class="pButton"
  11853. @click="(pzDialog = true), selectPz()"
  11854. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11855. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11856. >
  11857. <!-- 批 -->
  11858. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11859. </div>
  11860. <div
  11861. v-if="pzDialog == true"
  11862. class="newDialogCss"
  11863. :style="`right:${commentRight}`"
  11864. >
  11865. <div class="pzTop2">
  11866. <!-- <div>评论</div>
  11867. <div @click="pzDialog = false">
  11868. <img src="../../assets/close1.png" alt="" />
  11869. </div> -->
  11870. <div class="checkbox">
  11871. <!-- <div class="check" style="font-size: 25px; position: unset">
  11872. 评论
  11873. </div> -->
  11874. <div class="cb-tabList">
  11875. <div
  11876. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11877. @click="commentTagShow = 0"
  11878. >
  11879. 评论
  11880. </div>
  11881. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11882. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11883. <div
  11884. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11885. @click="commentTagShow = 2"
  11886. >
  11887. 总评
  11888. </div>
  11889. </div>
  11890. <el-select
  11891. v-model="pzStype"
  11892. @change="selectPz"
  11893. class="selectBox"
  11894. v-show="commentTagShow == 0"
  11895. >
  11896. <el-option label="时间降序" :value="1"></el-option>
  11897. <el-option label="时间升序" :value="2"></el-option>
  11898. <el-option label="我的评课" :value="3"></el-option>
  11899. </el-select>
  11900. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11901. </div>
  11902. </div>
  11903. <div
  11904. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11905. v-if="commentTagShow == 0"
  11906. >
  11907. <div class="pzListBox" v-if="pzList && pzList.length">
  11908. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11909. <div class="pzNavTop">
  11910. <div>评</div>
  11911. <div>
  11912. {{
  11913. pz.username && pz.username.length > 5
  11914. ? pz.username.substring(0, 5) + "..."
  11915. : pz.username
  11916. }}的评论
  11917. </div>
  11918. <div
  11919. class="pzDelete"
  11920. v-if="pz.userid == userid"
  11921. @click="deletePz(pz.id)"
  11922. >
  11923. 删除
  11924. </div>
  11925. </div>
  11926. <div
  11927. @click="checkImg(getImgList(pz.content))"
  11928. class="pzContent cont"
  11929. v-html="pz.content"
  11930. v-if="pz.type == '1'"
  11931. ></div>
  11932. <div class="pzContent" v-if="pz.type == '2'">
  11933. <audio :src="pz.content" controls="controls" ref="audio">
  11934. Your browser does not support the audio element.
  11935. </audio>
  11936. </div>
  11937. <div class="pzContent" v-if="pz.type == '3'">
  11938. <img
  11939. :src="pz.content"
  11940. style="width: 90%; margin: 0 auto; display: block"
  11941. @click="previewImg(pz.content)"
  11942. />
  11943. </div>
  11944. <div class="timeAndReply">
  11945. <div class="time">
  11946. {{ pz.time }}
  11947. </div>
  11948. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11949. </div>
  11950. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11951. <div
  11952. v-for="(h, hIndex) in pz.hfList"
  11953. :key="hIndex"
  11954. class="hfItem"
  11955. >
  11956. <div class="whoReplyWho">
  11957. <div class="hfName">{{ h.username }}</div>
  11958. <div class="hfImg">
  11959. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11960. </div>
  11961. <div class="hfName">{{ pz.username }}</div>
  11962. </div>
  11963. <div class="hfContent" v-html="h.content"></div>
  11964. <div class="hfBottom">
  11965. <div class="hfTime">{{ h.time }}</div>
  11966. <div
  11967. class="deleteHfItem"
  11968. @click="deleteReply(h.id)"
  11969. v-if="userid == h.userid"
  11970. >
  11971. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11972. </div>
  11973. </div>
  11974. </div>
  11975. </div>
  11976. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11977. <div class="replyInput">
  11978. <el-input v-model="reply[pzIndex]"></el-input>
  11979. </div>
  11980. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11981. </div> -->
  11982. </div>
  11983. </div>
  11984. <div class="noPz" v-else>
  11985. <img src="../../assets/icon/noPz.png" alt="" />
  11986. </div>
  11987. <div class="addPzButton">
  11988. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11989. 添加评论
  11990. </div>
  11991. <!-- <div class="img1">
  11992. <div @click="(addPzDialog = true), (pzType = 2)">
  11993. <img src="../../assets/audio.png" /><span>音频</span>
  11994. </div>
  11995. </div> -->
  11996. </div>
  11997. </div>
  11998. <div class="scoreList" v-if="commentTagShow == 1">
  11999. <scoreItem
  12000. v-for="item in scoreList.datalist"
  12001. @refresh="getScoreList"
  12002. :data="item"
  12003. :isScore="
  12004. scoreList.isScoreList.filter(
  12005. i => i.userid == item.userid && i.courseid == item.courseId
  12006. )
  12007. "
  12008. :key="item.courseId"
  12009. />
  12010. </div>
  12011. <div
  12012. class="scoreList"
  12013. v-if="commentTagShow == 2"
  12014. style="position: relative"
  12015. >
  12016. <scoreZong
  12017. :courseid="id"
  12018. :userid="userid"
  12019. @insertMemorandum="insertMemorandum"
  12020. ></scoreZong>
  12021. </div>
  12022. </div>
  12023. <div
  12024. v-if="toolDialogVisible == true"
  12025. class="toolMask"
  12026. @click="toolDialogVisible = false"
  12027. ></div>
  12028. <div v-if="toolDialogVisible == true" class="addToolCss">
  12029. <div class="toolTop">
  12030. <div style="font-weight: bold">新增工具</div>
  12031. <div @click="toolDialogVisible = false">
  12032. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  12033. </div>
  12034. </div>
  12035. <div class="tool_box">
  12036. <div class="tool_type_box">
  12037. <div class="chooseWho">
  12038. <div
  12039. :class="toolType == 0 ? 'isChooseActive' : ''"
  12040. @click="(toolType = 0), $forceUpdate()"
  12041. >
  12042. 互动类
  12043. </div>
  12044. <div
  12045. :class="toolType == 1 ? 'isChooseActive' : ''"
  12046. @click="(toolType = 1), $forceUpdate()"
  12047. >
  12048. 思维类
  12049. </div>
  12050. <div
  12051. :class="toolType == 2 ? 'isChooseActive' : ''"
  12052. @click="(toolType = 2), $forceUpdate()"
  12053. >
  12054. 测评类
  12055. </div>
  12056. <div
  12057. :class="toolType == 3 ? 'isChooseActive' : ''"
  12058. @click="(toolType = 3), $forceUpdate()"
  12059. >
  12060. 编程类
  12061. </div>
  12062. <div
  12063. :class="toolType == 5 ? 'isChooseActive' : ''"
  12064. @click="(toolType = 5), $forceUpdate()"
  12065. >
  12066. 学科类
  12067. </div>
  12068. </div>
  12069. </div>
  12070. <div>
  12071. <div class="toolSort" v-if="toolType == 0">
  12072. <div
  12073. class="tool"
  12074. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  12075. @click="addTools2(10)"
  12076. >
  12077. <div class="whiteBIcon">
  12078. <img src="../../assets/icon/thirdToolList/time.png" alt />
  12079. <div style="margin: 5px 0">倒计时</div>
  12080. </div>
  12081. <div class="check">
  12082. <div
  12083. v-if="checktoolArray.indexOf(10) == -1"
  12084. class="noChoose"
  12085. ></div>
  12086. <div v-else class="isChoose"></div>
  12087. </div>
  12088. </div>
  12089. <div
  12090. class="tool"
  12091. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  12092. @click="addTools2(65)"
  12093. >
  12094. <div class="whiteBIcon">
  12095. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  12096. <div style="margin: 5px 0">挑人</div>
  12097. </div>
  12098. <div class="check">
  12099. <div
  12100. v-if="checktoolArray.indexOf(65) == -1"
  12101. class="noChoose"
  12102. ></div>
  12103. <div v-else class="isChoose"></div>
  12104. </div>
  12105. </div>
  12106. </div>
  12107. <div class="toolSort" v-if="toolType == 1">
  12108. <div
  12109. class="tool"
  12110. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  12111. @click="addTools2(7)"
  12112. >
  12113. <div class="whiteBIcon">
  12114. <img
  12115. src="../../assets/icon/secondToolList/mindNetwork.png"
  12116. alt
  12117. />
  12118. <div style="margin: 5px 0">思维网格</div>
  12119. </div>
  12120. <div class="check">
  12121. <div
  12122. v-if="checktoolArray.indexOf(7) == -1"
  12123. class="noChoose"
  12124. ></div>
  12125. <div v-else class="isChoose"></div>
  12126. </div>
  12127. </div>
  12128. <div
  12129. class="tool"
  12130. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  12131. @click="addTools2(1)"
  12132. >
  12133. <div class="whiteBIcon">
  12134. <img
  12135. src="../../assets/icon/secondToolList/whiteBoard.png"
  12136. alt
  12137. />
  12138. <div style="margin: 5px 0">电子白板</div>
  12139. </div>
  12140. <div class="check">
  12141. <div
  12142. v-if="checktoolArray.indexOf(1) == -1"
  12143. class="noChoose"
  12144. ></div>
  12145. <div v-else class="isChoose"></div>
  12146. </div>
  12147. </div>
  12148. <div
  12149. class="tool"
  12150. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  12151. @click="addTools2(52)"
  12152. >
  12153. <div class="whiteBIcon">
  12154. <img src="../../assets/icon/fourthToolList/text.png" alt />
  12155. <div style="margin: 5px 0">文档</div>
  12156. </div>
  12157. <div class="check">
  12158. <div
  12159. v-if="checktoolArray.indexOf(52) == -1"
  12160. class="noChoose"
  12161. ></div>
  12162. <div v-else class="isChoose"></div>
  12163. </div>
  12164. </div>
  12165. <div
  12166. class="tool"
  12167. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12168. @click="addTools2(3)"
  12169. >
  12170. <div class="whiteBIcon">
  12171. <img
  12172. src="../../assets/icon/secondToolList/mindMapping.png"
  12173. alt
  12174. />
  12175. <div style="margin: 5px 0">思维导图</div>
  12176. </div>
  12177. <div class="check">
  12178. <div
  12179. v-if="checktoolArray.indexOf(3) == -1"
  12180. class="noChoose"
  12181. ></div>
  12182. <div v-else class="isChoose"></div>
  12183. </div>
  12184. </div>
  12185. <div
  12186. class="tool"
  12187. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  12188. @click="addTools2(48)"
  12189. >
  12190. <div class="whiteBIcon">
  12191. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12192. <div style="margin: 5px 0">表格</div>
  12193. </div>
  12194. <div class="check">
  12195. <div
  12196. v-if="checktoolArray.indexOf(48) == -1"
  12197. class="noChoose"
  12198. ></div>
  12199. <div v-else class="isChoose"></div>
  12200. </div>
  12201. </div>
  12202. </div>
  12203. <div class="toolSort" v-if="toolType == 6">
  12204. <div v-show="tooC == 49">
  12205. <img
  12206. @click="addTools(tooC, toolIndex, taskCount)"
  12207. src="../../assets/icon/fourthToolList/group.png"
  12208. alt
  12209. />
  12210. <div style="margin: 5px 0">学生分组</div>
  12211. </div>
  12212. </div>
  12213. <div class="toolSort" v-if="toolType == 2">
  12214. <div
  12215. class="tool"
  12216. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12217. @click="addTools2(16)"
  12218. >
  12219. <div class="whiteBIcon">
  12220. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12221. <div style="margin: 5px 0">作业提交</div>
  12222. </div>
  12223. <div class="check">
  12224. <div
  12225. v-if="checktoolArray.indexOf(16) == -1"
  12226. class="noChoose"
  12227. ></div>
  12228. <div v-else class="isChoose"></div>
  12229. </div>
  12230. </div>
  12231. <div
  12232. class="tool"
  12233. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12234. @click="addTools2(50)"
  12235. >
  12236. <div class="whiteBIcon">
  12237. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12238. <div style="margin: 5px 0">批量上传</div>
  12239. </div>
  12240. <div class="check">
  12241. <div
  12242. v-if="checktoolArray.indexOf(50) == -1"
  12243. class="noChoose"
  12244. ></div>
  12245. <div v-else class="isChoose"></div>
  12246. </div>
  12247. </div>
  12248. </div>
  12249. <div class="toolSort" v-if="toolType == 3">
  12250. <div
  12251. class="tool"
  12252. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12253. @click="addTools2(18)"
  12254. >
  12255. <div class="whiteBIcon">
  12256. <img
  12257. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12258. alt
  12259. />
  12260. <div style="margin: 5px 0">训练平台</div>
  12261. </div>
  12262. <div class="check">
  12263. <div
  12264. v-if="checktoolArray.indexOf(18) == -1"
  12265. class="noChoose"
  12266. ></div>
  12267. <div v-else class="isChoose"></div>
  12268. </div>
  12269. </div>
  12270. <div
  12271. class="tool"
  12272. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12273. @click="addTools2(21)"
  12274. >
  12275. <div class="whiteBIcon">
  12276. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12277. <div style="margin: 5px 0">AIoT Blockly</div>
  12278. </div>
  12279. <div class="check">
  12280. <div
  12281. v-if="checktoolArray.indexOf(21) == -1"
  12282. class="noChoose"
  12283. ></div>
  12284. <div v-else class="isChoose"></div>
  12285. </div>
  12286. </div>
  12287. <div
  12288. class="tool"
  12289. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12290. @click="addTools2(23)"
  12291. >
  12292. <div class="whiteBIcon">
  12293. <img
  12294. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12295. alt
  12296. />
  12297. <div style="margin: 5px 0">AI Python</div>
  12298. </div>
  12299. <div class="check">
  12300. <div
  12301. v-if="checktoolArray.indexOf(23) == -1"
  12302. class="noChoose"
  12303. ></div>
  12304. <div v-else class="isChoose"></div>
  12305. </div>
  12306. </div>
  12307. <div
  12308. class="tool"
  12309. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  12310. @click="addTools2(24)"
  12311. >
  12312. <div class="whiteBIcon">
  12313. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12314. <div style="margin: 5px 0">AI Blockly</div>
  12315. </div>
  12316. <div class="check">
  12317. <div
  12318. v-if="checktoolArray.indexOf(24) == -1"
  12319. class="noChoose"
  12320. ></div>
  12321. <div v-else class="isChoose"></div>
  12322. </div>
  12323. </div>
  12324. <div
  12325. class="tool"
  12326. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12327. @click="addTools2(32)"
  12328. >
  12329. <div class="whiteBIcon">
  12330. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12331. <div style="margin: 5px 0">源码编辑</div>
  12332. </div>
  12333. <div class="check">
  12334. <div
  12335. v-if="checktoolArray.indexOf(32) == -1"
  12336. class="noChoose"
  12337. ></div>
  12338. <div v-else class="isChoose"></div>
  12339. </div>
  12340. </div>
  12341. <div
  12342. class="tool"
  12343. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12344. @click="addTools2(57)"
  12345. >
  12346. <div class="whiteBIcon">
  12347. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12348. <div style="margin: 5px 0">CocoPi</div>
  12349. </div>
  12350. <div class="check">
  12351. <div
  12352. v-if="checktoolArray.indexOf(57) == -1"
  12353. class="noChoose"
  12354. ></div>
  12355. <div v-else class="isChoose"></div>
  12356. </div>
  12357. </div>
  12358. <div
  12359. class="tool"
  12360. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12361. @click="addTools2(63)"
  12362. >
  12363. <div class="whiteBIcon">
  12364. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12365. <div style="margin: 5px 0">海龟编程</div>
  12366. </div>
  12367. <div class="check">
  12368. <div
  12369. v-if="checktoolArray.indexOf(63) == -1"
  12370. class="noChoose"
  12371. ></div>
  12372. <div v-else class="isChoose"></div>
  12373. </div>
  12374. </div>
  12375. <div
  12376. class="tool"
  12377. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12378. @click="addTools2(71)"
  12379. >
  12380. <div class="whiteBIcon">
  12381. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12382. <div style="margin: 5px 0">AI智能体</div>
  12383. </div>
  12384. <div class="check">
  12385. <div
  12386. v-if="checktoolArray.indexOf(71) == -1"
  12387. class="noChoose"
  12388. ></div>
  12389. <div v-else class="isChoose"></div>
  12390. </div>
  12391. </div>
  12392. </div>
  12393. <div class="toolSort" v-if="toolType == 7">
  12394. <div
  12395. class="tool"
  12396. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12397. @click="addTools2(40)"
  12398. >
  12399. <div class="whiteBIcon">
  12400. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12401. <div style="margin: 5px 0">个人评价</div>
  12402. </div>
  12403. <div class="check">
  12404. <div
  12405. v-if="checktoolArray.indexOf(40) == -1"
  12406. class="noChoose"
  12407. ></div>
  12408. <div v-else class="isChoose"></div>
  12409. </div>
  12410. </div>
  12411. </div>
  12412. <div class="toolSort" v-if="toolType == 5">
  12413. <div
  12414. class="tool"
  12415. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12416. @click="addTools2(28)"
  12417. >
  12418. <div class="whiteBIcon">
  12419. <img
  12420. src="../../assets/icon/secondToolList/translation.png"
  12421. alt
  12422. />
  12423. <div style="margin: 5px 0">翻译</div>
  12424. </div>
  12425. <div class="check">
  12426. <div
  12427. v-if="checktoolArray.indexOf(28) == -1"
  12428. class="noChoose"
  12429. ></div>
  12430. <div v-else class="isChoose"></div>
  12431. </div>
  12432. </div>
  12433. <div
  12434. class="tool"
  12435. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12436. @click="addTools2(31)"
  12437. >
  12438. <div class="whiteBIcon">
  12439. <img
  12440. src="../../assets/icon/secondToolList/networkPanel.png"
  12441. alt
  12442. />
  12443. <div style="margin: 5px 0">数字画板</div>
  12444. </div>
  12445. <div class="check">
  12446. <div
  12447. v-if="checktoolArray.indexOf(31) == -1"
  12448. class="noChoose"
  12449. ></div>
  12450. <div v-else class="isChoose"></div>
  12451. </div>
  12452. </div>
  12453. <div
  12454. class="tool"
  12455. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  12456. @click="addTools2(39)"
  12457. >
  12458. <div class="whiteBIcon">
  12459. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12460. <div style="margin: 5px 0">GeoGebra</div>
  12461. </div>
  12462. <div class="check">
  12463. <div
  12464. v-if="checktoolArray.indexOf(39) == -1"
  12465. class="noChoose"
  12466. ></div>
  12467. <div v-else class="isChoose"></div>
  12468. </div>
  12469. </div>
  12470. <div
  12471. class="tool"
  12472. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12473. @click="addTools2(66)"
  12474. >
  12475. <div class="whiteBIcon">
  12476. <img
  12477. src="../../assets/icon/secondToolList/formulaEdi.png"
  12478. alt
  12479. />
  12480. <div style="margin: 5px 0">公式编辑</div>
  12481. </div>
  12482. <div class="check">
  12483. <div
  12484. v-if="checktoolArray.indexOf(66) == -1"
  12485. class="noChoose"
  12486. ></div>
  12487. <div v-else class="isChoose"></div>
  12488. </div>
  12489. </div>
  12490. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12491. <div class="whiteBIcon" @click="addTools2(67)">
  12492. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12493. <div style="margin: 5px 0">分子结构</div>
  12494. </div>
  12495. <div class="check" @click="addTools2(67)">
  12496. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12497. <div v-else class="isChoose"></div>
  12498. </div>
  12499. </div> -->
  12500. <div
  12501. class="tool"
  12502. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12503. @click="addTools2(68)"
  12504. >
  12505. <div class="whiteBIcon">
  12506. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12507. <div style="margin: 5px 0">时间轴</div>
  12508. </div>
  12509. <div class="check">
  12510. <div
  12511. v-if="checktoolArray.indexOf(68) == -1"
  12512. class="noChoose"
  12513. ></div>
  12514. <div v-else class="isChoose"></div>
  12515. </div>
  12516. </div>
  12517. <!-- <div
  12518. class="tool"
  12519. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12520. @click="addTools2(69)"
  12521. >
  12522. <div class="whiteBIcon">
  12523. <img src="../../assets/icon/secondToolList/english.png" alt />
  12524. <div style="margin: 5px 0">英语写作</div>
  12525. </div>
  12526. <div class="check">
  12527. <div
  12528. v-if="checktoolArray.indexOf(69) == -1"
  12529. class="noChoose"
  12530. ></div>
  12531. <div v-else class="isChoose"></div>
  12532. </div>
  12533. </div> -->
  12534. </div>
  12535. <div class="toolSort" v-if="toolType == 4">
  12536. <div
  12537. class="tool"
  12538. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12539. @click="addTools2(26)"
  12540. >
  12541. <div class="whiteBIcon">
  12542. <img
  12543. src="../../assets/icon/thirdToolList/courseDesign.png"
  12544. alt
  12545. />
  12546. <div style="margin: 5px 0">课程设计</div>
  12547. </div>
  12548. <div class="check">
  12549. <div
  12550. v-if="checktoolArray.indexOf(26) == -1"
  12551. class="noChoose"
  12552. ></div>
  12553. <div v-else class="isChoose"></div>
  12554. </div>
  12555. </div>
  12556. <div
  12557. class="tool"
  12558. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12559. @click="addTools2(25)"
  12560. >
  12561. <div class="whiteBIcon">
  12562. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12563. <div style="margin: 5px 0">目标管理</div>
  12564. </div>
  12565. <div class="check">
  12566. <div
  12567. v-if="checktoolArray.indexOf(25) == -1"
  12568. class="noChoose"
  12569. ></div>
  12570. <div v-else class="isChoose"></div>
  12571. </div>
  12572. </div>
  12573. </div>
  12574. </div>
  12575. </div>
  12576. <span
  12577. slot="footer"
  12578. class="dialog-footer"
  12579. style="display: block; text-align: center; padding: 0 0 10px 0"
  12580. >
  12581. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12582. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12583. </span>
  12584. </div>
  12585. <div
  12586. v-if="replyDialogVisible == true"
  12587. class="addDialogCss"
  12588. v-el-drag-dialog
  12589. >
  12590. <div class="pzTop">
  12591. <div class="teacherPz">
  12592. <div class="teacherPzImg">
  12593. <img src="../../assets/icon/teacherPz.png" alt="" />
  12594. </div>
  12595. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12596. </div>
  12597. <div @click="replyDialogVisible = false">
  12598. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12599. </div>
  12600. </div>
  12601. <div class="addPzBox">
  12602. <!-- <div class="addPzCheck">
  12603. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12604. >文本</span
  12605. >
  12606. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12607. >音频</span
  12608. >
  12609. </div> -->
  12610. <div style="height: calc(100% - 50px)">
  12611. <editor-bar
  12612. class="binfo_input pzConText"
  12613. style="width: 100% !important; margin: 0 auto"
  12614. placeholder="请输入回复描述"
  12615. v-model="reply"
  12616. @change="change"
  12617. ></editor-bar>
  12618. </div>
  12619. <div class="addTextCss" @click="addHf">确定</div>
  12620. </div>
  12621. </div>
  12622. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12623. <div class="pzTop">
  12624. <div class="teacherPz">
  12625. <div class="teacherPzImg">
  12626. <img src="../../assets/icon/teacherPz.png" alt="" />
  12627. </div>
  12628. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12629. </div>
  12630. <div @click="addPzDialog = false">
  12631. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12632. </div>
  12633. </div>
  12634. <div class="addPzBox">
  12635. <div class="addPzCheck">
  12636. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12637. >文本</span
  12638. >
  12639. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12640. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12641. >音频</span
  12642. >
  12643. </div>
  12644. <div style="height: calc(100% - 95px)">
  12645. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12646. v-if="pzType == 1"></textarea> -->
  12647. <editor-bar
  12648. class="binfo_input pzConText"
  12649. style="width: 100% !important"
  12650. placeholder="请输入任务描述"
  12651. v-model="pzConText"
  12652. @change="change"
  12653. v-if="pzType == 1"
  12654. ></editor-bar>
  12655. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12656. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12657. <div @click="addImg($event)">
  12658. <el-button type="primary">上传图片</el-button>
  12659. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12660. @change="beforeUpload1($event, 4)" />
  12661. </div>
  12662. </div> -->
  12663. </div>
  12664. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12665. 确定
  12666. </div>
  12667. </div>
  12668. </div>
  12669. <div v-if="proVisible" class="mask">
  12670. <div class="progressBox">
  12671. <!-- <div id="closePro" class="closeCss">
  12672. <img src="../../assets/icon/close.png" alt />
  12673. </div> -->
  12674. <div class="lbox">
  12675. <img src="../../assets/loading.gif" />上传中,请稍后
  12676. </div>
  12677. <div style="margin-bottom: 10px">
  12678. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12679. </div>
  12680. <el-progress
  12681. :text-inside="true"
  12682. :stroke-width="20"
  12683. :percentage="progress"
  12684. style="width: 80%"
  12685. ></el-progress>
  12686. </div>
  12687. </div>
  12688. <div v-if="proVisible2" class="mask">
  12689. <div class="progressBox">
  12690. <div class="lbox">
  12691. <img src="../../assets/loading.gif" />上传中,请稍后
  12692. </div>
  12693. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12694. </div>
  12695. </div>
  12696. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12697. <img width="100%" :src="dialogImageUrl" alt />
  12698. </el-dialog>
  12699. <el-dialog
  12700. :title="noteName != '' ? noteName : '查看问卷'"
  12701. :visible.sync="dialogVisible5"
  12702. :append-to-body="true"
  12703. width="1000px"
  12704. :before-close="handleClose"
  12705. class="dialog_diy dialog_diy3"
  12706. >
  12707. <div>
  12708. <div
  12709. class="a_add_title"
  12710. style="
  12711. display: flex;
  12712. flex-direction: row;
  12713. align-items: center;
  12714. justify-content: center;
  12715. "
  12716. >
  12717. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12718. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12719. </div>
  12720. <div class="a_addBox">
  12721. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12722. 题目内容
  12723. </div>
  12724. <div
  12725. class="a_add_box"
  12726. v-for="(item1, index1) in askJson.askCount"
  12727. :key="index1"
  12728. >
  12729. <div class="a_add_head">
  12730. <div style="display: flex">
  12731. <span class="askIndex"> {{ index1 + 1 }}</span>
  12732. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12733. </div>
  12734. <img
  12735. v-if="askJson.askJson[index1].img"
  12736. :src="askJson.askJson[index1].img"
  12737. style="height: 300px; margin-top: 10px; max-width: 100%"
  12738. />
  12739. </div>
  12740. <div class="a_add_body">
  12741. <div class="a_add_input">
  12742. <el-radio-group
  12743. v-model="radio[index1]"
  12744. v-if="
  12745. askJson.askJson[index1].type == '1' ||
  12746. !askJson.askJson[index1].type
  12747. "
  12748. >
  12749. <el-radio
  12750. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12751. .checkList"
  12752. :key="checkIndex"
  12753. :label="checkIndex"
  12754. :disabled="isAnswer"
  12755. class="redioStyle"
  12756. ><span v-html="item2"></span
  12757. ></el-radio>
  12758. </el-radio-group>
  12759. <el-checkbox-group
  12760. v-model="radio[index1]"
  12761. v-if="askJson.askJson[index1].type == '2'"
  12762. >
  12763. <el-checkbox
  12764. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12765. .checkList"
  12766. :key="checkIndex1"
  12767. :label="checkIndex1"
  12768. :disabled="isAnswer"
  12769. class="redioStyle"
  12770. ><span v-html="item2"></span>
  12771. </el-checkbox>
  12772. </el-checkbox-group>
  12773. </div>
  12774. </div>
  12775. </div>
  12776. </div>
  12777. </div>
  12778. <span slot="footer" class="dialog-footer">
  12779. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12780. >取 消</el-button
  12781. >
  12782. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12783. >确 定</el-button
  12784. >
  12785. </span>
  12786. </el-dialog>
  12787. <el-dialog
  12788. :title="noteName != '' ? noteName : '查看问卷'"
  12789. :visible.sync="dialogVisible5Teacher"
  12790. :append-to-body="true"
  12791. width="1000px"
  12792. :before-close="handleClose"
  12793. class="dialog_diy dialog_diy3"
  12794. >
  12795. <div>
  12796. <div class="w_name">
  12797. 学生姓名:<span>{{ sStudent.student }}</span>
  12798. </div>
  12799. <div
  12800. class="a_add_title"
  12801. style="
  12802. display: flex;
  12803. flex-direction: row;
  12804. align-items: center;
  12805. justify-content: center;
  12806. "
  12807. >
  12808. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12809. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12810. </div>
  12811. <div class="a_addBox">
  12812. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12813. 题目内容
  12814. </div>
  12815. <div
  12816. class="a_add_box"
  12817. v-for="(item1, index1) in askJson.askCount"
  12818. :key="index1"
  12819. >
  12820. <div class="a_add_head">
  12821. <div style="display: flex">
  12822. <span class="askIndex">{{ index1 + 1 }}</span>
  12823. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12824. </div>
  12825. <img
  12826. v-if="askJson.askJson[index1].img"
  12827. :src="askJson.askJson[index1].img"
  12828. style="height: 300px; margin-top: 10px; max-width: 100%"
  12829. />
  12830. </div>
  12831. <div class="a_add_body">
  12832. <div class="a_add_input">
  12833. <el-radio-group
  12834. v-model="radio[index1]"
  12835. v-if="
  12836. askJson.askJson[index1].type == '1' ||
  12837. !askJson.askJson[index1].type
  12838. "
  12839. >
  12840. <el-radio
  12841. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12842. .checkList"
  12843. :key="checkIndex"
  12844. :label="checkIndex"
  12845. :disabled="isAnswer"
  12846. class="redioStyle"
  12847. ><span v-html="item2"></span
  12848. ></el-radio>
  12849. </el-radio-group>
  12850. <el-checkbox-group
  12851. v-model="radio[index1]"
  12852. v-if="askJson.askJson[index1].type == '2'"
  12853. >
  12854. <el-checkbox
  12855. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12856. .checkList"
  12857. :key="checkIndex1"
  12858. :label="checkIndex1"
  12859. :disabled="isAnswer"
  12860. class="redioStyle"
  12861. ><span v-html="item2"></span>
  12862. </el-checkbox>
  12863. </el-checkbox-group>
  12864. </div>
  12865. </div>
  12866. </div>
  12867. </div>
  12868. </div>
  12869. <span slot="footer" class="dialog-footer">
  12870. <el-button
  12871. @click="dialogVisible5Teacher = false"
  12872. v-show="noteName == ''"
  12873. >取 消</el-button
  12874. >
  12875. <el-button
  12876. type="primary"
  12877. @click="addStudentAskTeacher"
  12878. v-show="noteName == ''"
  12879. >确 定</el-button
  12880. >
  12881. </span>
  12882. </el-dialog>
  12883. <el-dialog
  12884. :title="noteName != '' ? noteName : '查看选择题'"
  12885. :visible.sync="dialogVisibleChoice"
  12886. :append-to-body="true"
  12887. width="1000px"
  12888. :before-close="handleClose"
  12889. class="dialog_diy dialog_diy3"
  12890. >
  12891. <div>
  12892. <!-- <div class="a_add_title" style="
  12893. display: flex;
  12894. flex-direction: row;
  12895. align-items: center;
  12896. justify-content: center;
  12897. ">
  12898. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12899. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12900. </div> -->
  12901. <div class="a_addBox">
  12902. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12903. 题目内容
  12904. </div>
  12905. <div
  12906. class="a_add_box"
  12907. v-for="(item1, index1) in testJson.testCount"
  12908. :key="index1"
  12909. >
  12910. <div class="a_add_head">
  12911. <div style="display: flex">
  12912. <span class="askIndex">{{ index1 + 1 }}</span>
  12913. <div
  12914. v-if="testJson.testJson[index1].type == '1'"
  12915. style="margin-right: 5px; min-width: 70px"
  12916. >
  12917. (单选题)
  12918. </div>
  12919. <div
  12920. v-if="testJson.testJson[index1].type == '2'"
  12921. style="margin-right: 5px; min-width: 70px"
  12922. >
  12923. (多选题)
  12924. </div>
  12925. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12926. </div>
  12927. <img
  12928. v-if="testJson.testJson[index1].img"
  12929. :src="testJson.testJson[index1].img"
  12930. style="height: 300px; margin-top: 10px; max-width: 100%"
  12931. />
  12932. </div>
  12933. <div
  12934. class="timuImgBox"
  12935. v-if="
  12936. testJson.testJson[index1].timuList &&
  12937. testJson.testJson[index1].timuList.length
  12938. "
  12939. >
  12940. <div
  12941. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12942. :key="tIndex"
  12943. class="timuImg"
  12944. @click.stop="previewImg(timg.src)"
  12945. >
  12946. <img :src="timg.src" alt="" />
  12947. </div>
  12948. </div>
  12949. <div class="a_add_body">
  12950. <div class="a_add_input">
  12951. <el-radio-group
  12952. v-model="radio[index1]"
  12953. v-if="testJson.testJson[index1].type == '1'"
  12954. >
  12955. <div class="radioBox">
  12956. <el-radio
  12957. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12958. .checkList"
  12959. :key="checkIndex"
  12960. :label="checkIndex"
  12961. :disabled="isAnswer"
  12962. class="redioStyle"
  12963. >
  12964. <div
  12965. style="margin-right: 10px"
  12966. v-if="item2 && item2.imgType && item2.imgType == 1"
  12967. >
  12968. <div class="inImg" @click.stop="previewImg(item2.src)">
  12969. <img :src="item2.src" alt="" />
  12970. </div>
  12971. </div>
  12972. <span v-else v-html="item2"></span>
  12973. </el-radio>
  12974. </div>
  12975. </el-radio-group>
  12976. <el-checkbox-group
  12977. v-model="radio[index1]"
  12978. v-if="testJson.testJson[index1].type == '2'"
  12979. >
  12980. <div class="radioBox">
  12981. <el-checkbox
  12982. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12983. .checkList"
  12984. :key="checkIndex"
  12985. :label="checkIndex"
  12986. :disabled="isAnswer"
  12987. class="redioStyle"
  12988. >
  12989. <div
  12990. style="margin-right: 10px"
  12991. v-if="item2 && item2.imgType && item2.imgType == 1"
  12992. >
  12993. <div class="inImg" @click.stop="previewImg(item2.src)">
  12994. <img :src="item2.src" alt="" />
  12995. </div>
  12996. </div>
  12997. <span v-else v-html="item2"></span>
  12998. </el-checkbox>
  12999. </div>
  13000. </el-checkbox-group>
  13001. </div>
  13002. </div>
  13003. </div>
  13004. </div>
  13005. </div>
  13006. <span slot="footer" class="dialog-footer">
  13007. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  13008. >取 消</el-button
  13009. >
  13010. <el-button
  13011. type="primary"
  13012. @click="addStudentTest"
  13013. v-show="noteName == ''"
  13014. >确 定</el-button
  13015. >
  13016. </span>
  13017. </el-dialog>
  13018. <el-dialog
  13019. :title="noteName != '' ? noteName : '查看选择题'"
  13020. :visible.sync="dialogVisibleChoiceTeacher"
  13021. :append-to-body="true"
  13022. width="1000px"
  13023. :before-close="handleClose"
  13024. class="dialog_diy dialog_diy3"
  13025. >
  13026. <div>
  13027. <div class="w_name">
  13028. 学生姓名:<span>{{ sStudent.student }}</span>
  13029. </div>
  13030. <div class="a_addBox">
  13031. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  13032. 题目内容
  13033. </div>
  13034. <div
  13035. class="a_add_box"
  13036. v-for="(item1, index1) in testJson.testCount"
  13037. :key="index1"
  13038. >
  13039. <div class="a_add_head">
  13040. <div style="display: flex">
  13041. <span class="askIndex">{{ index1 + 1 }}</span>
  13042. <div
  13043. v-if="testJson.testJson[index1].type == '1'"
  13044. style="margin-right: 5px; min-width: 70px"
  13045. >
  13046. (单选题)
  13047. </div>
  13048. <div
  13049. v-if="testJson.testJson[index1].type == '2'"
  13050. style="margin-right: 5px; min-width: 70px"
  13051. >
  13052. (多选题)
  13053. </div>
  13054. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  13055. </div>
  13056. <img
  13057. v-if="testJson.testJson[index1].img"
  13058. :src="testJson.testJson[index1].img"
  13059. style="height: 300px; margin-top: 10px; max-width: 100%"
  13060. />
  13061. </div>
  13062. <div
  13063. class="timuImgBox"
  13064. v-if="
  13065. testJson.testJson[index1].timuList &&
  13066. testJson.testJson[index1].timuList.length
  13067. "
  13068. >
  13069. <div
  13070. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  13071. :key="tIndex"
  13072. class="timuImg"
  13073. @click.stop="previewImg(timg.src)"
  13074. >
  13075. <img :src="timg.src" alt="" />
  13076. </div>
  13077. </div>
  13078. <div class="a_add_body">
  13079. <div class="a_add_input">
  13080. <el-radio-group
  13081. v-model="radio[index1]"
  13082. v-if="testJson.testJson[index1].type == '1'"
  13083. >
  13084. <div class="radioBox">
  13085. <el-radio
  13086. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13087. .checkList"
  13088. :key="checkIndex"
  13089. :label="checkIndex"
  13090. :disabled="isAnswer"
  13091. class="redioStyle"
  13092. >
  13093. <div
  13094. style="margin-right: 10px"
  13095. v-if="item2 && item2.imgType && item2.imgType == 1"
  13096. >
  13097. <div class="inImg" @click.stop="previewImg(item2.src)">
  13098. <img :src="item2.src" alt="" />
  13099. </div>
  13100. </div>
  13101. <span v-else v-html="item2"></span>
  13102. </el-radio>
  13103. </div>
  13104. </el-radio-group>
  13105. <el-checkbox-group
  13106. v-model="radio[index1]"
  13107. v-if="testJson.testJson[index1].type == '2'"
  13108. >
  13109. <div class="radioBox">
  13110. <el-checkbox
  13111. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13112. .checkList"
  13113. :key="checkIndex"
  13114. :label="checkIndex"
  13115. :disabled="isAnswer"
  13116. class="redioStyle"
  13117. >
  13118. <div
  13119. style="margin-right: 10px"
  13120. v-if="item2 && item2.imgType && item2.imgType == 1"
  13121. >
  13122. <div class="inImg" @click.stop="previewImg(item2.src)">
  13123. <img :src="item2.src" alt="" />
  13124. </div>
  13125. </div>
  13126. <span v-else v-html="item2"></span>
  13127. </el-checkbox>
  13128. </div>
  13129. </el-checkbox-group>
  13130. </div>
  13131. </div>
  13132. </div>
  13133. </div>
  13134. </div>
  13135. <span slot="footer" class="dialog-footer">
  13136. <el-button
  13137. @click="dialogVisibleChoiceTeacher = false"
  13138. v-show="noteName == ''"
  13139. >取 消</el-button
  13140. >
  13141. <el-button
  13142. type="primary"
  13143. @click="addStudentTestTeacher"
  13144. v-show="noteName == ''"
  13145. >确 定</el-button
  13146. >
  13147. </span>
  13148. </el-dialog>
  13149. <el-dialog
  13150. title="查看富文本"
  13151. :visible.sync="dialogVisible1"
  13152. :append-to-body="true"
  13153. width="500px"
  13154. :before-close="handleClose"
  13155. class="dialog_diy textCss"
  13156. >
  13157. <el-form style="font-size: 20px">
  13158. <el-form-item label="文本标题" class="textTitle">
  13159. <div style="font-size: 20px">{{ text.name }}</div>
  13160. </el-form-item>
  13161. <div>富文本内容</div>
  13162. <div
  13163. v-html="text.url"
  13164. style="font-size: 18px; padding: 40px 0 0 0"
  13165. ></div>
  13166. </el-form>
  13167. <span slot="footer" class="dialog-footer">
  13168. <el-button type="primary" @click="dialogVisible1 = false"
  13169. >确定</el-button
  13170. >
  13171. </span>
  13172. </el-dialog>
  13173. <el-dialog
  13174. title="文件预览"
  13175. :visible.sync="dialogVisible3"
  13176. width="50%"
  13177. :before-close="handleClose"
  13178. class="dialog_diy"
  13179. :class="{ fullStyle: full }"
  13180. >
  13181. <div slot="title" class="header-title">
  13182. <div style="color: #fff">文件预览</div>
  13183. <div style="position: absolute; top: 19px; right: 50px">
  13184. <img
  13185. src="../../assets/full.png"
  13186. style="height: 16px; cursor: pointer"
  13187. alt=""
  13188. @click="fullTools"
  13189. />
  13190. </div>
  13191. </div>
  13192. <pdf
  13193. v-if="showPDF"
  13194. :pdfUrl="pptImgUrl"
  13195. style="width: 100%; height: 520px; overflow: auto"
  13196. :class="{ fullStyle: full }"
  13197. ></pdf>
  13198. <iframe
  13199. v-else
  13200. :src="pptImgUrl"
  13201. frameborder="0"
  13202. width="100%"
  13203. height="600"
  13204. :class="{ fullStyle: full }"
  13205. ></iframe>
  13206. </el-dialog>
  13207. <el-dialog
  13208. title="文件预览"
  13209. :visible.sync="dialogVisible6"
  13210. width="50%"
  13211. :before-close="handleClose"
  13212. class="dialog_diy"
  13213. >
  13214. <iframe
  13215. :src="pptImgUrl1"
  13216. frameborder="0"
  13217. width="100%"
  13218. height="600"
  13219. ></iframe>
  13220. </el-dialog>
  13221. <el-dialog
  13222. title="提示"
  13223. :visible.sync="dialogVisible4"
  13224. :append-to-body="true"
  13225. width="800px"
  13226. :before-close="handleClose"
  13227. class="dialog_diy notice"
  13228. >
  13229. <div>此功能暂未开放!</div>
  13230. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13231. </el-dialog>
  13232. <el-dialog
  13233. title="问答"
  13234. :visible.sync="answerDialogVisible"
  13235. :append-to-body="true"
  13236. width="800px"
  13237. :before-close="handleClose"
  13238. class="dialog_diy"
  13239. >
  13240. <div>
  13241. <div
  13242. style="
  13243. display: flex;
  13244. flex-wrap: nowrap;
  13245. flex-direction: column;
  13246. position: relative;
  13247. "
  13248. >
  13249. <div class="queTop" style="padding: 20px 0 20px 0">
  13250. <div class="question">
  13251. <img src="../../assets/icon/question.png" alt />
  13252. </div>
  13253. <div class="queTitle">
  13254. <div style="width: 90px; min-width: 90px">提问:</div>
  13255. <div>{{ answerQ }}</div>
  13256. </div>
  13257. </div>
  13258. <div class="ediBottom">
  13259. <textarea
  13260. rows="6"
  13261. class="binfo_input"
  13262. cols
  13263. style="width: 95%; height: 120px"
  13264. v-model="questionAnswer"
  13265. ></textarea>
  13266. </div>
  13267. </div>
  13268. </div>
  13269. <div slot="footer">
  13270. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13271. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13272. </div>
  13273. </el-dialog>
  13274. <el-dialog
  13275. title="问答"
  13276. :visible.sync="answerDialogVisibleTeacher"
  13277. :append-to-body="true"
  13278. width="800px"
  13279. :before-close="handleClose"
  13280. class="dialog_diy"
  13281. >
  13282. <div>
  13283. <div class="w_name">
  13284. 学生姓名:<span>{{ sStudent.student }}</span>
  13285. </div>
  13286. <div
  13287. style="
  13288. display: flex;
  13289. flex-wrap: nowrap;
  13290. flex-direction: column;
  13291. position: relative;
  13292. "
  13293. >
  13294. <div class="queTop" style="padding: 20px 0 20px 0">
  13295. <div class="question">
  13296. <img src="../../assets/icon/question.png" alt />
  13297. </div>
  13298. <div class="queTitle">
  13299. <div style="width: 90px; min-width: 90px">提问:</div>
  13300. <div>{{ answerQ }}</div>
  13301. </div>
  13302. </div>
  13303. <div class="ediBottom">
  13304. <textarea
  13305. rows="6"
  13306. class="binfo_input"
  13307. cols
  13308. style="width: 95%; height: 120px"
  13309. v-model="questionAnswer"
  13310. ></textarea>
  13311. </div>
  13312. </div>
  13313. </div>
  13314. <div slot="footer">
  13315. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13316. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13317. </div>
  13318. </el-dialog>
  13319. <el-dialog
  13320. title="倒计时"
  13321. :visible.sync="timeDialogVisible"
  13322. :append-to-body="true"
  13323. width="800px"
  13324. :before-close="handleClose"
  13325. class="dialog_diy"
  13326. >
  13327. <div>
  13328. <div style="margin-bottom: 20px; color: #999">
  13329. 提示:点击“+”或“-”修改倒计时时长。
  13330. </div>
  13331. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13332. </div>
  13333. <div slot="footer">
  13334. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13335. </div>
  13336. </el-dialog>
  13337. <el-dialog
  13338. title="权限设置"
  13339. :visible.sync="juriVisible"
  13340. :append-to-body="true"
  13341. width="400px"
  13342. :before-close="handleClose"
  13343. class="dialog_diy"
  13344. >
  13345. <div>
  13346. <div class="open_box">
  13347. <div class="switch_box">
  13348. <span>允许学生查看所有作业</span>
  13349. <el-switch
  13350. v-model="sIsOpen"
  13351. active-text=""
  13352. class="switchCss"
  13353. @change="updateSLook"
  13354. ></el-switch>
  13355. </div>
  13356. <div
  13357. class="switch_box"
  13358. v-if="
  13359. (courseDetail.userid == userid ||
  13360. (courseDetail.course_teacher &&
  13361. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13362. "
  13363. >
  13364. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13365. <span>禁止学生查看阶段</span>
  13366. <el-switch
  13367. v-model="IsLookOpen"
  13368. active-text=""
  13369. class="switchCss"
  13370. @change="updateLookOpen"
  13371. ></el-switch>
  13372. </div>
  13373. <div class="switch_box" v-if="courseDetail.userid == userid">
  13374. <span>开启跟随模式</span>
  13375. <el-switch
  13376. v-model="IsFollow"
  13377. active-text=""
  13378. class="switchCss"
  13379. @change="updateFollow"
  13380. ></el-switch>
  13381. </div>
  13382. </div>
  13383. </div>
  13384. <div slot="footer">
  13385. <el-button
  13386. style="background: #409efe; color: #fff"
  13387. @click="juriVisible = false"
  13388. >关 闭</el-button
  13389. >
  13390. </div>
  13391. </el-dialog>
  13392. <el-dialog
  13393. title="查看视频"
  13394. :visible.sync="videoVisible"
  13395. :append-to-body="true"
  13396. width="1000px"
  13397. :before-close="handleClose"
  13398. class="dialog_diy1"
  13399. >
  13400. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13401. <video-player
  13402. class="video-player vjs-custom-skin"
  13403. :playsinline="true"
  13404. :options="videoDetail"
  13405. @play="onPlayerPlay($event)"
  13406. style="width: 100%; height: 100%"
  13407. ></video-player>
  13408. </div>
  13409. <div slot="footer">
  13410. <el-button
  13411. style="background: #409efe; color: #fff"
  13412. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13413. >
  13414. 关 闭</el-button
  13415. >
  13416. </div>
  13417. </el-dialog>
  13418. <el-dialog
  13419. title="查看详情"
  13420. :visible.sync="commentDialogVisible"
  13421. :append-to-body="true"
  13422. width="800px"
  13423. :before-close="handleClose"
  13424. class="dialog_diy"
  13425. >
  13426. <div class="commentTop">
  13427. <div class="studentDetail">
  13428. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13429. <div class="nameAndTime">
  13430. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13431. <div>{{ commentDetail.time }}</div>
  13432. </div>
  13433. <div
  13434. class="returnBtn"
  13435. style="margin-left: auto; width: 80px"
  13436. v-if="
  13437. commentDetail.works &&
  13438. commentDetail.type == 0 &&
  13439. (tType == 1 || tType == 4)
  13440. "
  13441. @click="
  13442. showPicturePaint(
  13443. commentDetail.img ? commentDetail.img : commentDetail.works
  13444. )
  13445. "
  13446. >
  13447. 教师批注
  13448. </div>
  13449. </div>
  13450. <div
  13451. class="worksAnswer"
  13452. v-if="commentDetail.works && commentDetail.type == 2"
  13453. >
  13454. {{ JSON.parse(commentDetail.works)[0].answer }}
  13455. </div>
  13456. <div
  13457. class="worksAnswer"
  13458. v-if="commentDetail.works && commentDetail.type == 1"
  13459. >
  13460. <img
  13461. src="../../assets/teacherWork.png"
  13462. v-if="commentDetail.ateacher"
  13463. class="w_teachert"
  13464. />
  13465. <pdf
  13466. v-if="showPDF"
  13467. :pdfUrl="pptImgUrl"
  13468. style="width: 100%; height: 520px; overflow: auto"
  13469. :class="{ fullStyle: full }"
  13470. ></pdf>
  13471. <iframe
  13472. v-else
  13473. :src="pptImgUrl"
  13474. frameborder="0"
  13475. width="100%"
  13476. height="600"
  13477. :class="{ fullStyle: full }"
  13478. ></iframe>
  13479. </div>
  13480. <div
  13481. class="worksAnswer"
  13482. v-if="commentDetail.works && commentDetail.type == 0"
  13483. >
  13484. <img
  13485. src="../../assets/teacherWork.png"
  13486. v-if="commentDetail.ateacher"
  13487. class="w_teachert"
  13488. style="right: 105px"
  13489. />
  13490. <img
  13491. :src="commentDetail.works"
  13492. alt=""
  13493. @click="previewImg(commentDetail.works)"
  13494. />
  13495. </div>
  13496. <div
  13497. class="worksAnswer"
  13498. v-if="commentDetail.works && commentDetail.type == 3"
  13499. >
  13500. <img
  13501. src="../../assets/teacherWork.png"
  13502. v-if="commentDetail.ateacher"
  13503. class="w_teachert"
  13504. />
  13505. <video-player
  13506. class="video-player vjs-custom-skin"
  13507. :playsinline="true"
  13508. :options="videoDetail"
  13509. @play="onPlayerPlay($event)"
  13510. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13511. ></video-player>
  13512. </div>
  13513. <div
  13514. class="worksAnswer"
  13515. v-if="commentDetail.works && commentDetail.type == 10"
  13516. >
  13517. <div class="cont" v-html="commentDetail.works.text"></div>
  13518. </div>
  13519. <div v-if="commentDetail.works && commentDetail.type == 12">
  13520. <!-- class="worksAnswer codeFileBox" -->
  13521. <!-- @click="downloadFile(commentDetail.works)" -->
  13522. <!-- <img src="../../assets/icon/codeFile.png" />
  13523. <div>点击下载文件</div> -->
  13524. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  13525. </div>
  13526. <div
  13527. class="worksAnswer codeFileBox"
  13528. v-if="commentDetail.works && commentDetail.type == 15"
  13529. @click="
  13530. openCocoPi(
  13531. 57,
  13532. commentIndexJson.toolIndex,
  13533. commentDetail.userid,
  13534. commentDetail.sName
  13535. )
  13536. "
  13537. >
  13538. <img src="../../assets/icon/codeFile.png" />
  13539. <div>点击打开CocoPi</div>
  13540. </div>
  13541. <div
  13542. class="worksAnswer"
  13543. v-if="commentDetail.works && commentDetail.type == 13"
  13544. >
  13545. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13546. </div>
  13547. <div
  13548. class="worksAnswer"
  13549. v-if="commentDetail.works && commentDetail.type == 4"
  13550. >
  13551. <div class="evalCss">
  13552. <div class="nav">请选择星星进行评分</div>
  13553. <div class="middleBox" v-if="eScore.eStar">
  13554. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13555. <div class="nameAndrate">
  13556. <div>{{ e.value }}</div>
  13557. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13558. </div>
  13559. <div v-if="e.detail">{{ e.detail }}</div>
  13560. </div>
  13561. <div class="bz">
  13562. <textarea
  13563. disabled
  13564. rows="4"
  13565. class="pj"
  13566. style="
  13567. padding: 10px 5px;
  13568. width: 70%;
  13569. background: #f7f6f9;
  13570. font-size: 14px;
  13571. text-indent: 10px;
  13572. color: #000;
  13573. "
  13574. cols
  13575. v-model="eScore.eBzText"
  13576. placeholder="请输入评价内容..."
  13577. ></textarea>
  13578. </div>
  13579. </div>
  13580. </div>
  13581. </div>
  13582. <div class="comment">
  13583. <div class="commentList">
  13584. <div class="commentImg">
  13585. <img
  13586. @click="
  13587. isLikes(
  13588. commentDetail.wid,
  13589. userid,
  13590. 1,
  13591. null,
  13592. commentDetail.isLikes,
  13593. commentDetail.sName
  13594. )
  13595. "
  13596. :src="commentDetail.isLikes == true ? likes : noLikes"
  13597. alt=""
  13598. />
  13599. </div>
  13600. <div>{{ commentDetail.likesCount }}</div>
  13601. </div>
  13602. <div class="commentList">
  13603. <div class="commentImg">
  13604. <img src="../../assets/icon/comment/comment.png" alt="" />
  13605. </div>
  13606. <div>{{ commentDetail.commentCount }}</div>
  13607. </div>
  13608. </div>
  13609. <div class="drawPBox" v-if="commentDetail.img">
  13610. <span>教师批注</span>
  13611. <img
  13612. :src="commentDetail.img"
  13613. alt=""
  13614. @click="previewImg(commentDetail.img)"
  13615. />
  13616. <span
  13617. class="deleteImg"
  13618. v-if="tType == 1 || tType == 4"
  13619. @click.stop="deletePicturePaint(commentDetail.wid)"
  13620. style="
  13621. font-size: 14px;
  13622. width: auto !important;
  13623. color: #b4b4b4;
  13624. top: unset;
  13625. bottom: 0;
  13626. border: none;
  13627. padding: 0;
  13628. height: auto !important;
  13629. margin: 0;
  13630. "
  13631. >删除</span
  13632. >
  13633. </div>
  13634. </div>
  13635. <div class="commentBox">
  13636. <div class="pl">评论:</div>
  13637. <div style="max-height: 200px; overflow: auto">
  13638. <div
  13639. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13640. style="padding: 10px 0 0 0"
  13641. >
  13642. <div
  13643. class="studentDetail"
  13644. style="padding-top: 10px"
  13645. v-for="(co, coIndex) in commentDetail.commentJson"
  13646. :key="coIndex"
  13647. >
  13648. <div class="tx" style="min-width: 50px">
  13649. <img src="../../assets/avatar.png" alt="" />
  13650. </div>
  13651. <div class="plPerson">
  13652. <div class="plName">
  13653. <div>{{ co.commentPeople }}</div>
  13654. <div style="margin-left: 5px">
  13655. {{ co.commentTime }}
  13656. </div>
  13657. <div
  13658. class="deleteComment"
  13659. v-if="userid == co.userid"
  13660. @click="deleteComment(co.wid)"
  13661. >
  13662. 删除
  13663. </div>
  13664. </div>
  13665. <div class="plContent">{{ co.commentText }}</div>
  13666. </div>
  13667. </div>
  13668. </div>
  13669. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13670. </div>
  13671. </div>
  13672. <div style="margin-top: 10px">
  13673. <div class="displayBox">
  13674. <div
  13675. style="
  13676. color: #556db4;
  13677. font-size: 14px;
  13678. font-weight: bold;
  13679. padding-bottom: 10px;
  13680. "
  13681. >
  13682. 评价
  13683. </div>
  13684. <div class="easy_comment" v-if="false">
  13685. <div
  13686. v-for="(p, pIndex) in PlTextList"
  13687. :key="pIndex"
  13688. @click="fastText(p, 1)"
  13689. >
  13690. {{ p }}
  13691. </div>
  13692. </div>
  13693. </div>
  13694. <div>
  13695. <textarea
  13696. rows="3"
  13697. class="pj"
  13698. style="padding: 10px 5px"
  13699. cols
  13700. v-model="commentText"
  13701. placeholder="请输入评论"
  13702. ></textarea>
  13703. </div>
  13704. </div>
  13705. <div slot="footer">
  13706. <el-button
  13707. @click="
  13708. (commentDialogVisible = false),
  13709. (commentIndexJson = {}),
  13710. videoDetail.sources && videoDetail.sources[0]
  13711. ? (videoDetail.sources[0].src = '')
  13712. : ''
  13713. "
  13714. >取 消</el-button
  13715. >
  13716. <el-button
  13717. type="primary"
  13718. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13719. >确 定</el-button
  13720. >
  13721. </div>
  13722. </el-dialog>
  13723. <el-dialog
  13724. :visible.sync="fullDialogVisible"
  13725. :append-to-body="true"
  13726. width="100%"
  13727. :before-close="handleClose"
  13728. :show-close="false"
  13729. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13730. >
  13731. <div slot="title" class="header-title">
  13732. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13733. <div v-else style="color: #fff">查看文档</div>
  13734. <div
  13735. @click="
  13736. () => {
  13737. (fullDialogVisible = false),
  13738. changeSplitScreenBehavior({ code: 99 });
  13739. }
  13740. "
  13741. style="
  13742. cursor: pointer;
  13743. position: absolute;
  13744. top: 20px;
  13745. right: 20px;
  13746. color: #fff;
  13747. "
  13748. >
  13749. 退出全屏
  13750. </div>
  13751. </div>
  13752. <div style="height: 100%;position: relative;">
  13753. <el-button
  13754. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13755. size="medium"
  13756. type="primary"
  13757. @click="
  13758. () => {
  13759. (fullDialogVisible = false),
  13760. changeSplitScreenBehavior({ code: 99 });
  13761. }
  13762. "
  13763. style="
  13764. cursor: pointer;
  13765. position: absolute;
  13766. top: 10px;
  13767. right: 20px;
  13768. color: #fff;
  13769. "
  13770. >
  13771. 退出全屏
  13772. </el-button>
  13773. <div
  13774. class="wheel"
  13775. v-if="
  13776. (fulltype == 2 || fulltype == 4) &&
  13777. fullUrl.indexOf(
  13778. 'https://view.officeapps.live.com/op/view.aspx?src='
  13779. ) != -1
  13780. "
  13781. style="width: 100%;height:100%; margin: 0 auto"
  13782. >
  13783. <iframe
  13784. style="width: 100%; height: 100%; border: none"
  13785. :src="fullUrl"
  13786. ></iframe>
  13787. </div>
  13788. <iframe
  13789. style="width: 100%; height: 100%; border: none"
  13790. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13791. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  13792. :src="fullUrl"
  13793. ></iframe>
  13794. <iframe
  13795. style="width: 100%; height: 100%; border: none"
  13796. security="restricted"
  13797. v-else-if="(fulltype == 2 || fulltype == 4)"
  13798. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13799. :src="fullUrl"
  13800. ></iframe>
  13801. <pdf
  13802. v-else-if="fulltype == 3"
  13803. :pdfUrl="fullUrl"
  13804. style="width: 100%; height: 100%; overflow: auto"
  13805. ></pdf>
  13806. <div
  13807. class="wheel"
  13808. v-if="fulltype == 1"
  13809. style="
  13810. box-shadow: 0 0 6px 1px #f2f2f2;
  13811. height:100%;
  13812. width: 100%;
  13813. background: #f1f1f1;
  13814. "
  13815. >
  13816. <div class="title" style="width: 100%; box-sizing: border-box">
  13817. 查看文档
  13818. </div>
  13819. <el-form class="textBox" style="height: 90%">
  13820. <el-form-item class="textTitle">
  13821. <div style="font-size: 22px">
  13822. {{ fullUrl.name }}
  13823. </div>
  13824. </el-form-item>
  13825. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13826. <div
  13827. v-html="fullUrl.url"
  13828. class="textContent"
  13829. style="height: auto"
  13830. ></div>
  13831. </el-form>
  13832. </div>
  13833. </div>
  13834. <!-- <div slot="footer">
  13835. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13836. </div> -->
  13837. </el-dialog>
  13838. <el-dialog
  13839. title="个人评价"
  13840. :visible.sync="studentEvalDialogVisible"
  13841. :append-to-body="true"
  13842. width="800px"
  13843. :before-close="handleClose"
  13844. class="dialog_diy"
  13845. >
  13846. <div class="evalCss">
  13847. <div class="nav">请选择星星进行评分</div>
  13848. <div class="middleBox" v-if="eScore.eStar">
  13849. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13850. <div class="nameAndrate">
  13851. <div>{{ e.value }}</div>
  13852. <el-rate
  13853. v-model="eScore.eStar[eIndex]"
  13854. :disabled="isStar"
  13855. ></el-rate>
  13856. </div>
  13857. <div v-if="e.detail">{{ e.detail }}</div>
  13858. </div>
  13859. <div class="easy_comment" v-if="false">
  13860. <div
  13861. v-for="(p, pIndex) in PlTextList"
  13862. :key="pIndex"
  13863. @click="fastText(p, 2)"
  13864. >
  13865. {{ p }}
  13866. </div>
  13867. </div>
  13868. <div class="bz">
  13869. <textarea
  13870. :disabled="isStar"
  13871. rows="4"
  13872. class="pj"
  13873. style="
  13874. padding: 10px 5px;
  13875. width: 70%;
  13876. background: #f7f6f9;
  13877. font-size: 14px;
  13878. text-indent: 10px;
  13879. "
  13880. cols
  13881. v-model="eScore.eBzText"
  13882. placeholder="请输入评价内容..."
  13883. ></textarea>
  13884. </div>
  13885. </div>
  13886. </div>
  13887. <div slot="footer">
  13888. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13889. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13890. >确 定</el-button
  13891. >
  13892. </div>
  13893. </el-dialog>
  13894. <el-dialog
  13895. title="个人评价"
  13896. :visible.sync="studentEvalDialogVisibleTeacher"
  13897. :append-to-body="true"
  13898. width="800px"
  13899. :before-close="handleClose"
  13900. class="dialog_diy"
  13901. >
  13902. <div class="w_name">
  13903. 学生姓名:<span>{{ sStudent.student }}</span>
  13904. </div>
  13905. <div class="evalCss">
  13906. <div class="nav">请选择星星进行评分</div>
  13907. <div class="middleBox" v-if="eScore.eStar">
  13908. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13909. <div class="nameAndrate">
  13910. <div>{{ e.value }}</div>
  13911. <el-rate
  13912. v-model="eScore.eStar[eIndex]"
  13913. :disabled="isStar"
  13914. ></el-rate>
  13915. </div>
  13916. <div v-if="e.detail">{{ e.detail }}</div>
  13917. </div>
  13918. <div class="easy_comment" v-if="false">
  13919. <div
  13920. v-for="(p, pIndex) in PlTextList"
  13921. :key="pIndex"
  13922. @click="fastText(p, 2)"
  13923. >
  13924. {{ p }}
  13925. </div>
  13926. </div>
  13927. <div class="bz">
  13928. <textarea
  13929. :disabled="isStar"
  13930. rows="4"
  13931. class="pj"
  13932. style="
  13933. padding: 10px 5px;
  13934. width: 70%;
  13935. background: #f7f6f9;
  13936. font-size: 14px;
  13937. text-indent: 10px;
  13938. "
  13939. cols
  13940. v-model="eScore.eBzText"
  13941. placeholder="请输入评价内容..."
  13942. ></textarea>
  13943. </div>
  13944. </div>
  13945. </div>
  13946. <div slot="footer">
  13947. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13948. >取 消</el-button
  13949. >
  13950. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13951. >确 定</el-button
  13952. >
  13953. </div>
  13954. </el-dialog>
  13955. <el-dialog
  13956. title="选择匹配"
  13957. :visible.sync="dialogVisibleSelect"
  13958. :append-to-body="true"
  13959. width="90%"
  13960. :before-close="handleClose"
  13961. class="dialog_diy dialog_diy3"
  13962. >
  13963. <div v-if="selectJson">
  13964. <div class="select_box2">
  13965. <div class="select_box2_title">
  13966. <div>选择匹配</div>
  13967. <div>请选择对应的答案进行答题!</div>
  13968. </div>
  13969. <div class="select_box2_box">
  13970. <div class="select_box2_img">
  13971. <img
  13972. :src="selectJson.url"
  13973. @click="previewImg(selectJson.url)"
  13974. alt=""
  13975. />
  13976. </div>
  13977. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13978. <div style="padding-top: 15px">
  13979. <div class="select_answer_title" v-if="isSelect">
  13980. {{ selectAnswer.stu }}
  13981. </div>
  13982. <div class="select_answer_title" v-else>
  13983. 根据题目选择对应答案
  13984. </div>
  13985. <div
  13986. class="select_box2_answer_box"
  13987. v-for="(item2, checkIndex) in selectJson.select"
  13988. :key="checkIndex"
  13989. >
  13990. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13991. <el-select
  13992. :disabled="isSelect"
  13993. v-model="selectAnswer.answer[checkIndex]"
  13994. placeholder="请选择正确答案"
  13995. >
  13996. <el-option
  13997. v-for="(e, eIndex) in selectJson.select"
  13998. :key="eIndex"
  13999. :label="e"
  14000. :value="eIndex"
  14001. >
  14002. </el-option>
  14003. </el-select>
  14004. </div>
  14005. </div>
  14006. <div
  14007. class="rightAnswerCss"
  14008. v-if="isSelect && (tType == 1 || tType == 4)"
  14009. >
  14010. <div
  14011. v-for="(a, aIndex) in selectJson.answer"
  14012. :key="aIndex"
  14013. class="rightAnswer"
  14014. >
  14015. <div
  14016. v-if="selectAnswer.answer[aIndex] === a"
  14017. style="color: #767de1"
  14018. >
  14019. 回答正确
  14020. </div>
  14021. <div v-else>回答错误</div>
  14022. <div
  14023. style="margin-left: 10px"
  14024. v-if="selectAnswer.answer[aIndex] !== a"
  14025. >
  14026. 正确答案:
  14027. </div>
  14028. <div
  14029. :class="
  14030. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14031. "
  14032. >
  14033. {{ selectJson.select[a] }}
  14034. </div>
  14035. </div>
  14036. </div>
  14037. </div>
  14038. <div class="upAnswerCss">
  14039. <el-button
  14040. type="primary"
  14041. @click="addSelectAnswer"
  14042. v-if="!isSelect"
  14043. >提交答案</el-button
  14044. >
  14045. </div>
  14046. </div>
  14047. </div>
  14048. </div>
  14049. </el-dialog>
  14050. <el-dialog
  14051. title="选择匹配"
  14052. :visible.sync="dialogVisibleSelectTeacher"
  14053. :append-to-body="true"
  14054. width="90%"
  14055. :before-close="handleClose"
  14056. class="dialog_diy dialog_diy3"
  14057. >
  14058. <div v-if="selectJson">
  14059. <div class="w_name">
  14060. 学生姓名:<span>{{ sStudent.student }}</span>
  14061. </div>
  14062. <div class="select_box2">
  14063. <div class="select_box2_title">
  14064. <div>选择匹配</div>
  14065. <div>请选择对应的答案进行答题!</div>
  14066. </div>
  14067. <div class="select_box2_box">
  14068. <div class="select_box2_img">
  14069. <img
  14070. :src="selectJson.url"
  14071. @click="previewImg(selectJson.url)"
  14072. alt=""
  14073. />
  14074. </div>
  14075. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  14076. <div style="padding-top: 15px">
  14077. <div class="select_answer_title" v-if="isSelect">
  14078. {{ selectAnswer.stu }}
  14079. </div>
  14080. <div class="select_answer_title" v-else>
  14081. 根据题目选择对应答案
  14082. </div>
  14083. <div
  14084. class="select_box2_answer_box"
  14085. v-for="(item2, checkIndex) in selectJson.select"
  14086. :key="checkIndex"
  14087. >
  14088. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  14089. <el-select
  14090. :disabled="isSelect"
  14091. v-model="selectAnswer.answer[checkIndex]"
  14092. placeholder="请选择正确答案"
  14093. >
  14094. <el-option
  14095. v-for="(e, eIndex) in selectJson.select"
  14096. :key="eIndex"
  14097. :label="e"
  14098. :value="eIndex"
  14099. >
  14100. </el-option>
  14101. </el-select>
  14102. </div>
  14103. </div>
  14104. <div
  14105. class="rightAnswerCss"
  14106. v-if="isSelect && (tType == 1 || tType == 4)"
  14107. >
  14108. <div
  14109. v-for="(a, aIndex) in selectJson.answer"
  14110. :key="aIndex"
  14111. class="rightAnswer"
  14112. >
  14113. <div
  14114. v-if="selectAnswer.answer[aIndex] === a"
  14115. style="color: #767de1"
  14116. >
  14117. 回答正确
  14118. </div>
  14119. <div v-else>回答错误</div>
  14120. <div
  14121. style="margin-left: 10px"
  14122. v-if="selectAnswer.answer[aIndex] !== a"
  14123. >
  14124. 正确答案:
  14125. </div>
  14126. <div
  14127. :class="
  14128. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14129. "
  14130. >
  14131. {{ selectJson.select[a] }}
  14132. </div>
  14133. </div>
  14134. </div>
  14135. </div>
  14136. <div class="upAnswerCss">
  14137. <el-button
  14138. type="primary"
  14139. @click="addSelectAnswerTeacher"
  14140. v-if="!isSelect"
  14141. >提交答案</el-button
  14142. >
  14143. </div>
  14144. </div>
  14145. </div>
  14146. </div>
  14147. </el-dialog>
  14148. <el-dialog
  14149. title="教师评分"
  14150. :visible.sync="dialogVisibleScore"
  14151. :append-to-body="true"
  14152. width="800px"
  14153. :before-close="handleClose"
  14154. class="dialog_diy"
  14155. >
  14156. <div>
  14157. <div class="studentDetail">
  14158. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14159. <div class="nameAndTime">
  14160. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14161. <div>{{ commentDetail.time }}</div>
  14162. </div>
  14163. </div>
  14164. <div
  14165. class="worksAnswer"
  14166. v-if="commentDetail.works && commentDetail.type == 2"
  14167. >
  14168. {{ JSON.parse(commentDetail.works)[0].answer }}
  14169. </div>
  14170. <div
  14171. class="worksAnswer"
  14172. v-if="commentDetail.works && commentDetail.type == 1"
  14173. >
  14174. <pdf
  14175. v-if="showPDF"
  14176. :pdfUrl="pptImgUrl"
  14177. style="width: 100%; height: 520px; overflow: auto"
  14178. :class="{ fullStyle: full }"
  14179. ></pdf>
  14180. <iframe
  14181. v-else
  14182. :src="pptImgUrl"
  14183. frameborder="0"
  14184. width="100%"
  14185. height="600"
  14186. :class="{ fullStyle: full }"
  14187. ></iframe>
  14188. </div>
  14189. <div
  14190. class="worksAnswer"
  14191. v-if="commentDetail.works && commentDetail.type == 0"
  14192. >
  14193. <img
  14194. :src="commentDetail.works"
  14195. alt=""
  14196. @click="previewImg(commentDetail.works)"
  14197. />
  14198. </div>
  14199. <div
  14200. class="worksAnswer"
  14201. v-if="commentDetail.works && commentDetail.type == 3"
  14202. >
  14203. <video-player
  14204. class="video-player vjs-custom-skin"
  14205. :playsinline="true"
  14206. :options="videoDetail"
  14207. @play="onPlayerPlay($event)"
  14208. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14209. ></video-player>
  14210. </div>
  14211. <div
  14212. class="worksAnswer codeFileBox"
  14213. v-if="commentDetail.works && commentDetail.type == 12"
  14214. @click="downloadFile(commentDetail.works)"
  14215. >
  14216. <img src="../../assets/icon/codeFile.png" />
  14217. <div>点击下载文件</div>
  14218. </div>
  14219. <div
  14220. class="worksAnswer codeFileBox"
  14221. v-if="commentDetail.works && commentDetail.type == 15"
  14222. @click="
  14223. openCocoPi(
  14224. 57,
  14225. commentIndexJson.toolIndex,
  14226. commentDetail.userid,
  14227. commentDetail.sName
  14228. )
  14229. "
  14230. >
  14231. <img src="../../assets/icon/codeFile.png" />
  14232. <div>点击打开CocoPi</div>
  14233. </div>
  14234. <div
  14235. class="worksAnswer"
  14236. v-if="commentDetail.works && commentDetail.type == 13"
  14237. >
  14238. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14239. </div>
  14240. <div class="scoreBox">
  14241. <span class="t">请输入分数</span>
  14242. <el-input-number
  14243. :disabled="courseDetail.userid != userid"
  14244. v-model="wScore"
  14245. :controls="false"
  14246. :min="0"
  14247. :max="100"
  14248. ></el-input-number>
  14249. </div>
  14250. <div class="scoreDetailBox">
  14251. <span class="t">评分评论</span>
  14252. <el-input
  14253. type="textarea"
  14254. :rows="5"
  14255. :disabled="courseDetail.userid != userid"
  14256. resize="none"
  14257. v-model="scoreDetail"
  14258. placeholder="请输入对学生的评价"
  14259. >
  14260. </el-input>
  14261. </div>
  14262. </div>
  14263. <span slot="footer" class="dialog-footer">
  14264. <el-button
  14265. @click="
  14266. (dialogVisibleScore = false),
  14267. (commentIndexJson = {}),
  14268. videoDetail.sources && videoDetail.sources[0]
  14269. ? (videoDetail.sources[0].src = '')
  14270. : ''
  14271. "
  14272. >取 消</el-button
  14273. >
  14274. <el-button
  14275. type="primary"
  14276. v-if="courseDetail.userid == userid"
  14277. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  14278. >确 定
  14279. </el-button>
  14280. </span>
  14281. </el-dialog>
  14282. <el-dialog
  14283. title="排序"
  14284. :visible.sync="dialogVisibleSentence"
  14285. :append-to-body="true"
  14286. width="1000px"
  14287. :before-close="handleClose"
  14288. class="dialog_diy dialog_diy3"
  14289. >
  14290. <div>
  14291. <div class="sentenBox">
  14292. <div
  14293. v-for="(st, stIndex) in sentenceList"
  14294. :key="stIndex"
  14295. style="padding-bottom: 20px"
  14296. >
  14297. <div
  14298. style="padding: 15px 0 10px 20px"
  14299. class="sentenceTitle"
  14300. :index="stIndex + 1"
  14301. >
  14302. 题目{{ stIndex + 1 }}:请选择正确顺序
  14303. </div>
  14304. <div class="cardList" v-if="st.chooseSenList">
  14305. <div class="cardBox">
  14306. <div
  14307. v-for="(r, rIndex) in st.chooseSenList"
  14308. :key="rIndex"
  14309. @click="returnCard(r, stIndex, rIndex)"
  14310. >
  14311. <el-tooltip
  14312. class="item"
  14313. effect="light"
  14314. :content="r"
  14315. placement="top"
  14316. v-if="r != '' && r != undefined"
  14317. >
  14318. <div
  14319. :class="{
  14320. isCard: r,
  14321. isChooseCard: r == '' || r == undefined
  14322. }"
  14323. >
  14324. <div>{{ r }}</div>
  14325. </div>
  14326. </el-tooltip>
  14327. <div
  14328. :class="{
  14329. isCard: r,
  14330. isChooseCard: r == '' || r == undefined
  14331. }"
  14332. v-else
  14333. >
  14334. <div>{{ r }}</div>
  14335. </div>
  14336. </div>
  14337. </div>
  14338. </div>
  14339. <div class="cardList" v-if="st.addChangeSen">
  14340. <div class="cardBox">
  14341. <div
  14342. v-for="(s, sIndex) in st.addChangeSen"
  14343. :key="sIndex"
  14344. @click="setRightAnswer(s, stIndex, sIndex)"
  14345. >
  14346. <el-tooltip
  14347. class="item"
  14348. effect="light"
  14349. :content="s"
  14350. placement="top"
  14351. v-if="s != '' && s != undefined"
  14352. >
  14353. <div
  14354. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14355. >
  14356. <div>{{ s }}</div>
  14357. </div>
  14358. </el-tooltip>
  14359. <div
  14360. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14361. v-else
  14362. >
  14363. <div>{{ s }}</div>
  14364. </div>
  14365. </div>
  14366. </div>
  14367. </div>
  14368. </div>
  14369. </div>
  14370. </div>
  14371. <span slot="footer" class="dialog-footer">
  14372. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14373. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14374. </span>
  14375. </el-dialog>
  14376. <el-dialog
  14377. title="排序"
  14378. :visible.sync="dialogVisibleSentenceTeacher"
  14379. :append-to-body="true"
  14380. width="1000px"
  14381. :before-close="handleClose"
  14382. class="dialog_diy dialog_diy3"
  14383. >
  14384. <div>
  14385. <div class="w_name">
  14386. 学生姓名:<span>{{ sStudent.student }}</span>
  14387. </div>
  14388. <div class="sentenBox">
  14389. <div
  14390. v-for="(st, stIndex) in sentenceList"
  14391. :key="stIndex"
  14392. style="padding-bottom: 20px"
  14393. >
  14394. <div
  14395. style="padding: 15px 0 10px 20px"
  14396. class="sentenceTitle"
  14397. :index="stIndex + 1"
  14398. >
  14399. 题目{{ stIndex + 1 }}:请选择正确顺序
  14400. </div>
  14401. <div class="cardList" v-if="st.chooseSenList">
  14402. <div class="cardBox">
  14403. <div
  14404. v-for="(r, rIndex) in st.chooseSenList"
  14405. :key="rIndex"
  14406. @click="returnCard(r, stIndex, rIndex)"
  14407. >
  14408. <el-tooltip
  14409. class="item"
  14410. effect="light"
  14411. :content="r"
  14412. placement="top"
  14413. v-if="r != '' && r != undefined"
  14414. >
  14415. <div
  14416. :class="{
  14417. isCard: r,
  14418. isChooseCard: r == '' || r == undefined
  14419. }"
  14420. >
  14421. <div>{{ r }}</div>
  14422. </div>
  14423. </el-tooltip>
  14424. <div
  14425. :class="{
  14426. isCard: r,
  14427. isChooseCard: r == '' || r == undefined
  14428. }"
  14429. v-else
  14430. >
  14431. <div>{{ r }}</div>
  14432. </div>
  14433. </div>
  14434. </div>
  14435. </div>
  14436. <div class="cardList" v-if="st.addChangeSen">
  14437. <div class="cardBox">
  14438. <div
  14439. v-for="(s, sIndex) in st.addChangeSen"
  14440. :key="sIndex"
  14441. @click="setRightAnswer(s, stIndex, sIndex)"
  14442. >
  14443. <el-tooltip
  14444. class="item"
  14445. effect="light"
  14446. :content="s"
  14447. placement="top"
  14448. v-if="s != '' && s != undefined"
  14449. >
  14450. <div
  14451. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14452. >
  14453. <div>{{ s }}</div>
  14454. </div>
  14455. </el-tooltip>
  14456. <div
  14457. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14458. v-else
  14459. >
  14460. <div>{{ s }}</div>
  14461. </div>
  14462. </div>
  14463. </div>
  14464. </div>
  14465. </div>
  14466. </div>
  14467. </div>
  14468. <span slot="footer" class="dialog-footer">
  14469. <el-button @click="dialogVisibleSentenceTeacher = false"
  14470. >取 消</el-button
  14471. >
  14472. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14473. </span>
  14474. </el-dialog>
  14475. <el-dialog
  14476. title="排序"
  14477. :visible.sync="dialogVisibleSentence1"
  14478. :append-to-body="true"
  14479. width="1000px"
  14480. :before-close="handleClose"
  14481. class="dialog_diy dialog_diy3"
  14482. >
  14483. <div>
  14484. <div class="sentenBox">
  14485. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14486. {{ sentenceList1.stuName }}的作业
  14487. </div>
  14488. <div
  14489. v-for="(st, stIndex) in sentenceList1"
  14490. :key="stIndex"
  14491. style="padding-bottom: 20px"
  14492. >
  14493. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14494. 第{{ stIndex + 1 }}题
  14495. </div>
  14496. <div class="isWrong">
  14497. <div class="cardList1" v-if="st.chooseSenList">
  14498. <div class="cardBox">
  14499. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14500. <el-tooltip
  14501. class="item"
  14502. effect="light"
  14503. :content="s"
  14504. placement="top"
  14505. >
  14506. <div class="isCard">
  14507. <div>{{ s }}</div>
  14508. </div>
  14509. </el-tooltip>
  14510. </div>
  14511. </div>
  14512. <div class="cardAnswerBox">
  14513. 组成句子:{{ st.chooseSenList.join(" ") }}
  14514. </div>
  14515. </div>
  14516. <div v-if="tType == 2" class="isTj">
  14517. <div class="isTjImg">
  14518. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14519. </div>
  14520. <div>已提交</div>
  14521. </div>
  14522. <div
  14523. class="answerRight isTj"
  14524. v-if="
  14525. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14526. (tType == 1 || tType == 4)
  14527. "
  14528. >
  14529. <div class="isTjImg">
  14530. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14531. </div>
  14532. <div>回答正确</div>
  14533. </div>
  14534. <div
  14535. class="answerRight isTj"
  14536. v-if="
  14537. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14538. (tType == 1 || tType == 4)
  14539. "
  14540. >
  14541. <div class="isTjImg">
  14542. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14543. </div>
  14544. <div>回答错误</div>
  14545. </div>
  14546. </div>
  14547. <div
  14548. v-if="
  14549. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14550. (tType == 1 || tType == 4)
  14551. "
  14552. >
  14553. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14554. <div
  14555. class="cardList"
  14556. v-if="st.rightAnswer"
  14557. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14558. >
  14559. <div class="cardBox">
  14560. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14561. <el-tooltip
  14562. class="item"
  14563. effect="light"
  14564. :content="r"
  14565. placement="top"
  14566. >
  14567. <div class="isCard1">
  14568. <div>{{ r }}</div>
  14569. </div>
  14570. </el-tooltip>
  14571. </div>
  14572. </div>
  14573. <div class="cardAnswerBox">
  14574. 组成句子:{{ st.rightAnswer.join(" ") }}
  14575. </div>
  14576. </div>
  14577. </div>
  14578. </div>
  14579. </div>
  14580. </div>
  14581. <span slot="footer" class="dialog-footer">
  14582. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14583. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14584. >确 定</el-button
  14585. >
  14586. </span>
  14587. </el-dialog>
  14588. <el-dialog
  14589. title="教师提交作业"
  14590. :visible.sync="dialogVisibleWorks"
  14591. :append-to-body="true"
  14592. width="500px"
  14593. :before-close="handleClose"
  14594. class="dialog_change"
  14595. >
  14596. <div class="marginT">
  14597. <div class="w_name">
  14598. 学生姓名:<span>{{ sStudent.student }}</span>
  14599. </div>
  14600. <div>上传文件</div>
  14601. <div style="display: flex; gap: 10px">
  14602. <div
  14603. class="chapter_add"
  14604. @click="addImg($event)"
  14605. v-if="studyJuri[0].cover.length == 0"
  14606. >
  14607. <div class="up_photo">
  14608. <img src="../../assets/icon/uploadImg.png" alt />
  14609. </div>
  14610. <!-- <input
  14611. type="file"
  14612. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14613. style="display: none"
  14614. @change="beforeUpload1($event, 1)"
  14615. /> -->
  14616. <input
  14617. type="file"
  14618. accept="*"
  14619. style="display: none"
  14620. @change="beforeUpload1($event, 1)"
  14621. />
  14622. <!-- <input
  14623. type="file"
  14624. accept="image/*"
  14625. capture="camera"
  14626. style="display: none"
  14627. @change="beforeUpload1($event, 1)"
  14628. /> -->
  14629. </div>
  14630. <div
  14631. class="chapter_add"
  14632. @click="addImg($event)"
  14633. v-if="studyJuri[0].cover.length == 0"
  14634. >
  14635. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14636. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14637. </div>
  14638. <input
  14639. type="file"
  14640. accept="image/*"
  14641. capture="camera"
  14642. style="display: none"
  14643. @change="beforeUpload1($event, 1)"
  14644. />
  14645. </div>
  14646. </div>
  14647. <!-- capture="camera" -->
  14648. <div
  14649. class="chapter_add"
  14650. style="
  14651. display: flex;
  14652. width: 100%;
  14653. flex-direction: row;
  14654. flex-wrap: wrap;
  14655. justify-content: flex-start;
  14656. padding: 15px 0;
  14657. "
  14658. v-if="studyJuri[0].cover.length > 0"
  14659. >
  14660. <div class="upCover">
  14661. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14662. <img :src="word" alt v-else-if="fileType == 1" />
  14663. <img :src="video" alt v-else-if="fileType == 2" />
  14664. <img :src="word2" alt v-else-if="fileType == 3" />
  14665. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14666. <div class="deleteWord" @click="clean(1)">
  14667. <img src="../../assets/icon/deleteWorks.png" alt />
  14668. </div>
  14669. </div>
  14670. </div>
  14671. </div>
  14672. <div
  14673. class="upload_send"
  14674. @click="addCourseWorksTeacher(taskCount)"
  14675. v-if="!proVisible"
  14676. >
  14677. 提交
  14678. </div>
  14679. </el-dialog>
  14680. <ImgDraw
  14681. :drawShow="drawShow"
  14682. @closeDraw="closeDraw"
  14683. @addImgDraw="addImgDraw"
  14684. :bg="bg"
  14685. ></ImgDraw>
  14686. <el-dialog
  14687. title="表格"
  14688. :visible.sync="dialogVisibleTable"
  14689. :append-to-body="true"
  14690. width="95%"
  14691. :before-close="handleClose"
  14692. class="dialog_diy"
  14693. >
  14694. <el-form>
  14695. <div
  14696. style="
  14697. display: flex;
  14698. align-items: center;
  14699. justify-content: space-between;
  14700. "
  14701. >
  14702. <span>表格内容</span>
  14703. <el-button type="primary" size="small" @click="returnTableText"
  14704. >还原模板</el-button
  14705. >
  14706. </div>
  14707. <Table
  14708. v-model="tableJson.text"
  14709. @change="change"
  14710. v-if="dialogVisibleTable"
  14711. ></Table>
  14712. </el-form>
  14713. <span slot="footer" class="dialog-footer">
  14714. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14715. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14716. </span>
  14717. </el-dialog>
  14718. <el-dialog
  14719. title="表格"
  14720. :visible.sync="dialogVisibleTableTeacher"
  14721. :append-to-body="true"
  14722. width="95%"
  14723. :before-close="handleClose"
  14724. class="dialog_diy"
  14725. >
  14726. <el-form>
  14727. <div class="w_name">
  14728. 学生姓名:<span>{{ sStudent.student }}</span>
  14729. </div>
  14730. <div>表格内容</div>
  14731. <Table
  14732. v-model="tableJson.text"
  14733. @change="change"
  14734. v-if="dialogVisibleTableTeacher"
  14735. ></Table>
  14736. </el-form>
  14737. <span slot="footer" class="dialog-footer">
  14738. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14739. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14740. </span>
  14741. </el-dialog>
  14742. <el-dialog
  14743. title="文档"
  14744. :visible.sync="dialogVisibleWord"
  14745. :append-to-body="true"
  14746. width="95%"
  14747. :before-close="handleClose"
  14748. class="dialog_diy"
  14749. >
  14750. <el-form>
  14751. <div
  14752. style="
  14753. display: flex;
  14754. align-items: center;
  14755. justify-content: space-between;
  14756. "
  14757. >
  14758. <span>文档内容</span>
  14759. <el-button type="primary" size="small" @click="returnWordText"
  14760. >还原模板</el-button
  14761. >
  14762. </div>
  14763. <editor-bar
  14764. v-model="wordJson.text"
  14765. v-if="dialogVisibleWord"
  14766. ></editor-bar>
  14767. </el-form>
  14768. <span slot="footer" class="dialog-footer">
  14769. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14770. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14771. </span>
  14772. </el-dialog>
  14773. <el-dialog
  14774. title="文档"
  14775. :visible.sync="dialogVisibleWordTeacher"
  14776. :append-to-body="true"
  14777. width="95%"
  14778. :before-close="handleClose"
  14779. class="dialog_diy"
  14780. >
  14781. <el-form>
  14782. <div class="w_name">
  14783. 学生姓名:<span>{{ sStudent.student }}</span>
  14784. </div>
  14785. <div>文档内容</div>
  14786. <editor-bar
  14787. v-model="wordJson.text"
  14788. v-if="dialogVisibleWordTeacher"
  14789. ></editor-bar>
  14790. </el-form>
  14791. <span slot="footer" class="dialog-footer">
  14792. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14793. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14794. </span>
  14795. </el-dialog>
  14796. <el-dialog
  14797. title="表格"
  14798. :visible.sync="dialogVisibleTable2"
  14799. :append-to-body="true"
  14800. width="95%"
  14801. :before-close="handleClose"
  14802. class="dialog_diy"
  14803. >
  14804. <el-form>
  14805. <div class="cont" v-html="tableJson.text"></div>
  14806. </el-form>
  14807. <span slot="footer" class="dialog-footer">
  14808. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14809. </span>
  14810. </el-dialog>
  14811. <el-dialog
  14812. title="文档"
  14813. :visible.sync="dialogVisibleTable3"
  14814. :append-to-body="true"
  14815. width="95%"
  14816. :before-close="handleClose"
  14817. class="dialog_diy"
  14818. >
  14819. <el-form>
  14820. <div class="cont" v-html="tableJson.text"></div>
  14821. </el-form>
  14822. <span slot="footer" class="dialog-footer">
  14823. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14824. </span>
  14825. </el-dialog>
  14826. <el-dialog
  14827. title="分组设置"
  14828. :visible.sync="dialogVisibleGroup"
  14829. :append-to-body="true"
  14830. width="95%"
  14831. :before-close="handleClose"
  14832. class="dialog_diy"
  14833. >
  14834. <div v-if="dialogVisibleGroup">
  14835. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14836. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14837. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14838. </div>
  14839. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14840. @click="lockChair">
  14841. 锁定位置
  14842. </div>
  14843. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14844. 解锁位置
  14845. </div> -->
  14846. <div class="group_switch">
  14847. <span>开放选座</span>
  14848. <el-switch
  14849. v-model="islock"
  14850. active-text=""
  14851. class="switchCss"
  14852. @change="lockChair"
  14853. ></el-switch>
  14854. </div>
  14855. <div
  14856. type="primary"
  14857. @click="updateGroup"
  14858. class="returnBtn"
  14859. style="background-color: #225bc7"
  14860. >
  14861. 分组设置
  14862. </div>
  14863. </div>
  14864. <div>
  14865. <div
  14866. class="g_d_box"
  14867. v-if="groupJson.group && groupStudent[toolindex]"
  14868. >
  14869. <div
  14870. class="g_d_group"
  14871. v-for="(g, gindex) in groupJson.group"
  14872. :key="gindex"
  14873. >
  14874. <div class="g_d_group_chair">
  14875. <div v-if="groupJson.number > 1">
  14876. <span
  14877. :class="{
  14878. isChair:
  14879. groupStudent[toolindex][gindex] &&
  14880. groupStudent[toolindex][gindex][0],
  14881. updateChair:
  14882. courseDetail.userid == userid &&
  14883. groupStudent[toolindex][gindex] &&
  14884. groupStudent[toolindex][gindex][0] &&
  14885. groupJson.islock == 2
  14886. }"
  14887. ><span
  14888. class="updateChairBtn"
  14889. @click="
  14890. updateGroupChair(
  14891. groupStudent[toolindex][gindex] &&
  14892. groupStudent[toolindex][gindex][0]
  14893. )
  14894. "
  14895. >修改</span
  14896. ></span
  14897. ><span>{{
  14898. groupStudent[toolindex][gindex] &&
  14899. groupStudent[toolindex][gindex][0]
  14900. ? groupStudent[toolindex][gindex] &&
  14901. groupStudent[toolindex][gindex][0].name
  14902. : "空位置"
  14903. }}</span>
  14904. </div>
  14905. <div v-if="groupJson.number > 4">
  14906. <span
  14907. :class="{
  14908. isChair:
  14909. groupStudent[toolindex][gindex] &&
  14910. groupStudent[toolindex][gindex][4],
  14911. updateChair:
  14912. courseDetail.userid == userid &&
  14913. groupStudent[toolindex][gindex] &&
  14914. groupStudent[toolindex][gindex][4] &&
  14915. groupJson.islock == 2
  14916. }"
  14917. ><span
  14918. class="updateChairBtn"
  14919. @click="
  14920. updateGroupChair(
  14921. groupStudent[toolindex][gindex] &&
  14922. groupStudent[toolindex][gindex][4]
  14923. )
  14924. "
  14925. >修改</span
  14926. ></span
  14927. ><span>{{
  14928. groupStudent[toolindex][gindex] &&
  14929. groupStudent[toolindex][gindex][4]
  14930. ? groupStudent[toolindex][gindex] &&
  14931. groupStudent[toolindex][gindex][4].name
  14932. : "空位置"
  14933. }}</span>
  14934. </div>
  14935. <div v-if="groupJson.number > 8">
  14936. <span
  14937. :class="{
  14938. isChair:
  14939. groupStudent[toolindex][gindex] &&
  14940. groupStudent[toolindex][gindex][8],
  14941. updateChair:
  14942. courseDetail.userid == userid &&
  14943. groupStudent[toolindex][gindex] &&
  14944. groupStudent[toolindex][gindex][8] &&
  14945. groupJson.islock == 2
  14946. }"
  14947. ><span
  14948. class="updateChairBtn"
  14949. @click="
  14950. updateGroupChair(
  14951. groupStudent[toolindex][gindex] &&
  14952. groupStudent[toolindex][gindex][8]
  14953. )
  14954. "
  14955. >修改</span
  14956. ></span
  14957. ><span>{{
  14958. groupStudent[toolindex][gindex] &&
  14959. groupStudent[toolindex][gindex][8]
  14960. ? groupStudent[toolindex][gindex] &&
  14961. groupStudent[toolindex][gindex][8].name
  14962. : "空位置"
  14963. }}</span>
  14964. </div>
  14965. </div>
  14966. <div class="g_d_group_tableBox">
  14967. <div class="g_d_group_chair2">
  14968. <div v-if="groupJson.number > 2">
  14969. <span
  14970. :class="{
  14971. isChair:
  14972. groupStudent[toolindex][gindex] &&
  14973. groupStudent[toolindex][gindex][2],
  14974. updateChair:
  14975. courseDetail.userid == userid &&
  14976. groupStudent[toolindex][gindex] &&
  14977. groupStudent[toolindex][gindex][2] &&
  14978. groupJson.islock == 2
  14979. }"
  14980. ><span
  14981. class="updateChairBtn"
  14982. @click="
  14983. updateGroupChair(
  14984. groupStudent[toolindex][gindex] &&
  14985. groupStudent[toolindex][gindex][2]
  14986. )
  14987. "
  14988. >修改</span
  14989. ></span
  14990. ><span>{{
  14991. groupStudent[toolindex][gindex] &&
  14992. groupStudent[toolindex][gindex][2]
  14993. ? groupStudent[toolindex][gindex] &&
  14994. groupStudent[toolindex][gindex][2].name
  14995. : "空位置"
  14996. }}</span>
  14997. </div>
  14998. <div v-if="groupJson.number > 6">
  14999. <span
  15000. :class="{
  15001. isChair:
  15002. groupStudent[toolindex][gindex] &&
  15003. groupStudent[toolindex][gindex][6],
  15004. updateChair:
  15005. courseDetail.userid == userid &&
  15006. groupStudent[toolindex][gindex] &&
  15007. groupStudent[toolindex][gindex][6] &&
  15008. groupJson.islock == 2
  15009. }"
  15010. ><span
  15011. class="updateChairBtn"
  15012. @click="
  15013. updateGroupChair(
  15014. groupStudent[toolindex][gindex] &&
  15015. groupStudent[toolindex][gindex][6]
  15016. )
  15017. "
  15018. >修改</span
  15019. ></span
  15020. ><span>{{
  15021. groupStudent[toolindex][gindex] &&
  15022. groupStudent[toolindex][gindex][6]
  15023. ? groupStudent[toolindex][gindex] &&
  15024. groupStudent[toolindex][gindex][6].name
  15025. : "空位置"
  15026. }}</span>
  15027. </div>
  15028. </div>
  15029. <div class="g_d_group_table">
  15030. <div>
  15031. {{ g.name }}
  15032. </div>
  15033. <div>
  15034. <div
  15035. v-if="
  15036. courseDetail.userid == userid && groupJson.islock == 2
  15037. "
  15038. @click="deleteGroupChair(gindex)"
  15039. >
  15040. 移除组员
  15041. </div>
  15042. <div
  15043. @click="selectGroup(gindex)"
  15044. v-else-if="
  15045. groupStudentUid[toolindex] &&
  15046. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  15047. -1
  15048. "
  15049. >
  15050. 加入分组
  15051. </div>
  15052. <div
  15053. @click="
  15054. exitGroup(
  15055. groupStudent[toolindex][gindex] &&
  15056. groupStudent[toolindex][gindex][
  15057. groupStudentUid[toolindex][gindex].indexOf(userid)
  15058. ].id
  15059. )
  15060. "
  15061. v-else-if="
  15062. groupStudentUid[toolindex] &&
  15063. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  15064. -1
  15065. "
  15066. >
  15067. 退出分组
  15068. </div>
  15069. </div>
  15070. </div>
  15071. <div class="g_d_group_chair2">
  15072. <div v-if="groupJson.number > 3">
  15073. <span
  15074. :class="{
  15075. isChair:
  15076. groupStudent[toolindex][gindex] &&
  15077. groupStudent[toolindex][gindex][3],
  15078. updateChair:
  15079. courseDetail.userid == userid &&
  15080. groupStudent[toolindex][gindex] &&
  15081. groupStudent[toolindex][gindex][3] &&
  15082. groupJson.islock == 2
  15083. }"
  15084. ><span
  15085. class="updateChairBtn"
  15086. @click="
  15087. updateGroupChair(
  15088. groupStudent[toolindex][gindex] &&
  15089. groupStudent[toolindex][gindex][3]
  15090. )
  15091. "
  15092. >修改</span
  15093. ></span
  15094. ><span>{{
  15095. groupStudent[toolindex][gindex] &&
  15096. groupStudent[toolindex][gindex][3]
  15097. ? groupStudent[toolindex][gindex] &&
  15098. groupStudent[toolindex][gindex][3].name
  15099. : "空位置"
  15100. }}</span>
  15101. </div>
  15102. <div v-if="groupJson.number > 7">
  15103. <span
  15104. :class="{
  15105. isChair:
  15106. groupStudent[toolindex][gindex] &&
  15107. groupStudent[toolindex][gindex][7],
  15108. updateChair:
  15109. courseDetail.userid == userid &&
  15110. groupStudent[toolindex][gindex] &&
  15111. groupStudent[toolindex][gindex][7] &&
  15112. groupJson.islock == 2
  15113. }"
  15114. ><span
  15115. class="updateChairBtn"
  15116. @click="
  15117. updateGroupChair(
  15118. groupStudent[toolindex][gindex] &&
  15119. groupStudent[toolindex][gindex][7]
  15120. )
  15121. "
  15122. >修改</span
  15123. ></span
  15124. ><span>{{
  15125. groupStudent[toolindex][gindex] &&
  15126. groupStudent[toolindex][gindex][7]
  15127. ? groupStudent[toolindex][gindex] &&
  15128. groupStudent[toolindex][gindex][7].name
  15129. : "空位置"
  15130. }}</span>
  15131. </div>
  15132. </div>
  15133. </div>
  15134. <div class="g_d_group_chair">
  15135. <div v-if="groupJson.number > 1">
  15136. <span
  15137. :class="{
  15138. isChair:
  15139. groupStudent[toolindex][gindex] &&
  15140. groupStudent[toolindex][gindex][1],
  15141. updateChair:
  15142. courseDetail.userid == userid &&
  15143. groupStudent[toolindex][gindex] &&
  15144. groupStudent[toolindex][gindex][1] &&
  15145. groupJson.islock == 2
  15146. }"
  15147. ><span
  15148. class="updateChairBtn"
  15149. @click="
  15150. updateGroupChair(
  15151. groupStudent[toolindex][gindex] &&
  15152. groupStudent[toolindex][gindex][1]
  15153. )
  15154. "
  15155. >修改</span
  15156. ></span
  15157. ><span>{{
  15158. groupStudent[toolindex][gindex] &&
  15159. groupStudent[toolindex][gindex][1]
  15160. ? groupStudent[toolindex][gindex] &&
  15161. groupStudent[toolindex][gindex][1].name
  15162. : "空位置"
  15163. }}</span>
  15164. </div>
  15165. <div v-if="groupJson.number > 5">
  15166. <span
  15167. :class="{
  15168. isChair:
  15169. groupStudent[toolindex][gindex] &&
  15170. groupStudent[toolindex][gindex][5],
  15171. updateChair:
  15172. courseDetail.userid == userid &&
  15173. groupStudent[toolindex][gindex] &&
  15174. groupStudent[toolindex][gindex][5] &&
  15175. groupJson.islock == 2
  15176. }"
  15177. ><span
  15178. class="updateChairBtn"
  15179. @click="
  15180. updateGroupChair(
  15181. groupStudent[toolindex][gindex] &&
  15182. groupStudent[toolindex][gindex][5]
  15183. )
  15184. "
  15185. >修改</span
  15186. ></span
  15187. ><span>{{
  15188. groupStudent[toolindex][gindex] &&
  15189. groupStudent[toolindex][gindex][5]
  15190. ? groupStudent[toolindex][gindex] &&
  15191. groupStudent[toolindex][gindex][5].name
  15192. : "空位置"
  15193. }}</span>
  15194. </div>
  15195. <div v-if="groupJson.number > 9">
  15196. <span
  15197. :class="{
  15198. isChair:
  15199. groupStudent[toolindex][gindex] &&
  15200. groupStudent[toolindex][gindex][9],
  15201. updateChair:
  15202. courseDetail.userid == userid &&
  15203. groupStudent[toolindex][gindex] &&
  15204. groupStudent[toolindex][gindex][9] &&
  15205. groupJson.islock == 2
  15206. }"
  15207. ><span
  15208. class="updateChairBtn"
  15209. @click="
  15210. updateGroupChair(
  15211. groupStudent[toolindex][gindex] &&
  15212. groupStudent[toolindex][gindex][9]
  15213. )
  15214. "
  15215. >修改</span
  15216. ></span
  15217. ><span>{{
  15218. groupStudent[toolindex][gindex] &&
  15219. groupStudent[toolindex][gindex][9]
  15220. ? groupStudent[toolindex][gindex] &&
  15221. groupStudent[toolindex][gindex][9].name
  15222. : "空位置"
  15223. }}</span>
  15224. </div>
  15225. </div>
  15226. </div>
  15227. </div>
  15228. </div>
  15229. </div>
  15230. <span slot="footer" class="dialog-footer">
  15231. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15232. </span>
  15233. </el-dialog>
  15234. <el-dialog
  15235. title="分组设置"
  15236. :visible.sync="dialogVisibleGroup2"
  15237. :append-to-body="true"
  15238. width="650px"
  15239. :before-close="handleClose"
  15240. class="dialog_diy"
  15241. >
  15242. <div class="groupBox">
  15243. <div v-if="groupJson2.group" class="groupContent">
  15244. <div class="groupTitle">请设置小组数量及名称</div>
  15245. <div
  15246. v-for="(item, index) in groupJson2.group"
  15247. :key="index"
  15248. class="groupName"
  15249. >
  15250. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15251. <el-input
  15252. v-model="item.name"
  15253. placeholder="请输入名称..."
  15254. style="width: 250px"
  15255. ></el-input>
  15256. <!-- <div class="groupBtn">
  15257. <el-button type="primary" size="small" @click="addGroup(index)">
  15258. 添加</el-button>
  15259. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15260. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15261. </div> -->
  15262. </div>
  15263. </div>
  15264. <div class="groupContent">
  15265. <div class="groupTitle">请设置每组人数</div>
  15266. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15267. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15268. <el-input
  15269. v-model="groupJson2.number"
  15270. style="width: 150px"
  15271. placeholder="请输入2-10的数字"
  15272. @change="numberPan"
  15273. ></el-input>
  15274. </div>
  15275. </div>
  15276. <span slot="footer" class="dialog-footer">
  15277. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15278. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15279. </span>
  15280. </el-dialog>
  15281. <el-dialog
  15282. title="作业提交"
  15283. :visible.sync="dialogVisibleGroupWork"
  15284. :append-to-body="true"
  15285. width="500px"
  15286. :before-close="handleClose"
  15287. class="dialog_change"
  15288. >
  15289. <div class="marginT">
  15290. <div>上传文件</div>
  15291. <div
  15292. class="chapter_add"
  15293. @click="addImg($event)"
  15294. v-if="studyJuri[0].cover.length == 0"
  15295. >
  15296. <div class="up_photo">
  15297. <img src="../../assets/icon/uploadImg.png" alt />
  15298. </div>
  15299. <!-- <input
  15300. type="file"
  15301. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15302. style="display: none"
  15303. @change="beforeUpload1($event, 1)"
  15304. /> -->
  15305. <input
  15306. type="file"
  15307. accept="*"
  15308. style="display: none"
  15309. @change="beforeUpload1($event, 1)"
  15310. />
  15311. </div>
  15312. <!-- capture="camera" -->
  15313. <div
  15314. class="chapter_add"
  15315. style="
  15316. display: flex;
  15317. width: 100%;
  15318. flex-direction: row;
  15319. flex-wrap: wrap;
  15320. justify-content: flex-start;
  15321. padding: 15px 0;
  15322. "
  15323. v-if="studyJuri[0].cover.length > 0"
  15324. >
  15325. <div class="upCover">
  15326. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15327. <img :src="word" alt v-else-if="fileType == 1" />
  15328. <img :src="video" alt v-else-if="fileType == 2" />
  15329. <img :src="word2" alt v-else-if="fileType == 3" />
  15330. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15331. <div class="deleteWord" @click="clean(1)">
  15332. <img src="../../assets/icon/deleteWorks.png" alt />
  15333. </div>
  15334. </div>
  15335. </div>
  15336. </div>
  15337. <div
  15338. class="upload_send"
  15339. @click="addCourseWorks2(taskCount)"
  15340. v-if="!proVisible"
  15341. >
  15342. 提交
  15343. </div>
  15344. </el-dialog>
  15345. <el-dialog
  15346. title="修改分组"
  15347. :visible.sync="dialogVisibleUpdateGroup"
  15348. :append-to-body="true"
  15349. width="350px"
  15350. :before-close="handleClose"
  15351. class="dialog_diy"
  15352. >
  15353. <div>
  15354. <h2>
  15355. {{ this.updateGroupUser.name }}
  15356. </h2>
  15357. <div style="color: rgb(171 171 171); margin-top: 10px">
  15358. 请选择要进入的分组
  15359. </div>
  15360. <el-radio-group v-model="checkChair">
  15361. <el-radio
  15362. style="display: block; margin-top: 20px"
  15363. v-for="(item, index) in updateGroupArray"
  15364. :label="item.label"
  15365. :key="index"
  15366. >{{ item.name }}</el-radio
  15367. >
  15368. </el-radio-group>
  15369. </div>
  15370. <span slot="footer" class="dialog-footer">
  15371. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15372. <el-button type="primary" @click="updateChair">确定</el-button>
  15373. </span>
  15374. </el-dialog>
  15375. <el-dialog
  15376. title="移除组员"
  15377. :visible.sync="dialogVisibleDeleteGroup"
  15378. :append-to-body="true"
  15379. width="350px"
  15380. :before-close="handleClose"
  15381. class="dialog_diy"
  15382. >
  15383. <div>
  15384. <h2>
  15385. {{ this.deleteGroupArray.name }}
  15386. </h2>
  15387. <div style="color: rgb(171 171 171); margin-top: 10px">
  15388. 请选择要删除的组员
  15389. </div>
  15390. <el-checkbox-group v-model="checkDeleteGroup">
  15391. <el-checkbox
  15392. style="display: flex; margin-top: 20px"
  15393. v-for="(item, index) in deleteGroupUser"
  15394. :label="item.userid"
  15395. :key="index"
  15396. >{{ item.name }}</el-checkbox
  15397. >
  15398. </el-checkbox-group>
  15399. </div>
  15400. <span slot="footer" class="dialog-footer">
  15401. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15402. <el-button type="primary" @click="deleteChair">确定</el-button>
  15403. </span>
  15404. </el-dialog>
  15405. <el-dialog
  15406. title="批量上传"
  15407. :visible.sync="dialogVisiblePl"
  15408. :append-to-body="true"
  15409. width="700px"
  15410. :before-close="handleClose"
  15411. class="dialog_change"
  15412. >
  15413. <div class="marginT">
  15414. <div class="plworkBox">
  15415. <div
  15416. class="chapter_add"
  15417. style="
  15418. display: flex;
  15419. width: 150px;
  15420. flex-direction: row;
  15421. flex-wrap: wrap;
  15422. justify-content: flex-start;
  15423. margin: 0 10px 10px 0;
  15424. "
  15425. v-for="(item, index) in plworkFile"
  15426. :key="index"
  15427. >
  15428. <div class="upCover2">
  15429. <img
  15430. :src="item.url"
  15431. alt
  15432. v-if="item.fileType == 1"
  15433. @click="previewImg(item.url)"
  15434. />
  15435. <img :src="word" alt v-else-if="item.fileType == 4" />
  15436. <img :src="video" alt v-else />
  15437. <!-- <span class="picName">{{ item.name }}</span> -->
  15438. <!-- <el-input
  15439. v-model="item.username"
  15440. placeholder="请输入学生名字"
  15441. style="margin-top: 10px"
  15442. ></el-input> -->
  15443. <div
  15444. class="pl_select_box"
  15445. @click="
  15446. getUpdateMore(true, checkUpload(), item.username, index)
  15447. "
  15448. >
  15449. {{ getSName(item.username) }}
  15450. </div>
  15451. <!-- <el-select
  15452. style="margin-top: 10px"
  15453. v-model="item.username"
  15454. filterable
  15455. allow-create
  15456. placeholder="请选择学生"
  15457. >
  15458. <el-option
  15459. v-for="item1 in checkUpload()"
  15460. :key="item1.userid"
  15461. :label="item1.name ? item1.name : item1.username"
  15462. :value="item1.userid"
  15463. >
  15464. </el-option>
  15465. </el-select> -->
  15466. <div class="deleteWord" @click="clean2(index)">
  15467. <img src="../../assets/icon/deleteWorks.png" alt />
  15468. </div>
  15469. </div>
  15470. </div>
  15471. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15472. <div class="up_photo2">
  15473. <img src="../../assets/icon/plwork.png" alt />
  15474. <span>点击上传文件</span>
  15475. </div>
  15476. <input
  15477. type="file"
  15478. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15479. multiple="multiple"
  15480. style="display: none"
  15481. @change="beforeUpload3($event, 6)"
  15482. />
  15483. </div>
  15484. </div>
  15485. </div>
  15486. <!-- capture="camera" -->
  15487. <div
  15488. class="upload_send"
  15489. @click="addCourseWorksPl(taskCount)"
  15490. v-if="!proVisible2"
  15491. >
  15492. 提交
  15493. </div>
  15494. </el-dialog>
  15495. <el-dialog
  15496. title="修改名称"
  15497. :visible.sync="dialogVisibleSname"
  15498. width="500px"
  15499. :before-close="handleClose"
  15500. class="dialog_diy"
  15501. center
  15502. >
  15503. <div
  15504. style="
  15505. text-align: center;
  15506. display: flex;
  15507. align-items: center;
  15508. justify-content: center;
  15509. "
  15510. >
  15511. <span class="tian1">名称</span>
  15512. <div
  15513. class="pl_select_box"
  15514. style="margin-left: 10px; width: 200px"
  15515. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15516. >
  15517. {{ getSName(worksSName) }}
  15518. </div>
  15519. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15520. placeholder="请选择学生">
  15521. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15522. :value="item.userid">
  15523. </el-option>
  15524. </el-select> -->
  15525. <!-- <el-input
  15526. v-model="worksSName"
  15527. style="width: 250px; margin: 15px 0px"
  15528. ></el-input> -->
  15529. </div>
  15530. <span slot="footer" class="dialog-footer">
  15531. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15532. <el-button type="primary" @click="updateName">确 定</el-button>
  15533. </span>
  15534. </el-dialog>
  15535. <el-dialog
  15536. title="英语写作"
  15537. :visible.sync="engDialogVisible"
  15538. :append-to-body="true"
  15539. width="800px"
  15540. :before-close="handleClose"
  15541. class="dialog_diy"
  15542. >
  15543. <onlineWrite
  15544. v-if="engDialogVisible"
  15545. :englishList="englishList"
  15546. :myAnswerList1="myAnswerList1"
  15547. ref="engJson"
  15548. ></onlineWrite>
  15549. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15550. <el-button @click="engDialogVisible = false">取 消</el-button>
  15551. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15552. </span>
  15553. </el-dialog>
  15554. <el-dialog
  15555. title="英语写作"
  15556. :visible.sync="engUpdateDialogVisible"
  15557. :append-to-body="true"
  15558. width="800px"
  15559. :before-close="handleClose"
  15560. class="dialog_diy fullStyle"
  15561. >
  15562. <div class="engUpBox">
  15563. <div class="engUpTop">
  15564. <div class="engTitle">
  15565. <div>作文题目:</div>
  15566. <div>{{ englishList1.engTitle }}</div>
  15567. </div>
  15568. <div class="engText">
  15569. <div>作文内容:</div>
  15570. <div
  15571. class="cont"
  15572. v-html="englishList1.englishText"
  15573. style="white-space: pre-line;"
  15574. @click="checkImg(getImgList(englishList1.englishText))"
  15575. ></div>
  15576. </div>
  15577. </div>
  15578. <div
  15579. class="correctBox"
  15580. :style="{ height: `calc(100% - ${topHeight}px)` }"
  15581. >
  15582. <div class="oldBox">
  15583. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15584. <div class="oldText">
  15585. <div class="detailBox">
  15586. <div class="oldDetail">
  15587. <div>标题:</div>
  15588. <div>{{ oldEnglishJson.engTitle }}</div>
  15589. </div>
  15590. <div class="oldDetail1">
  15591. <div>正文:</div>
  15592. <div
  15593. v-html="oldEnglishJson.engText"
  15594. style="white-space: pre-line;"
  15595. ></div>
  15596. </div>
  15597. <div
  15598. class="oldDetail"
  15599. v-if="
  15600. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  15601. "
  15602. >
  15603. <div>图片:</div>
  15604. <div class="oldImg">
  15605. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  15606. </div>
  15607. </div>
  15608. </div>
  15609. </div>
  15610. </div>
  15611. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15612. <div class="oldMes" style="background: #aacaff;">
  15613. {{ userMes[0].username }}
  15614. </div>
  15615. <div class="oldText">
  15616. <div class="detailBox" style="position: relative;">
  15617. <div class="oldDetail">
  15618. <div>标题:</div>
  15619. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15620. <div v-else v-html="newEnglishList.engTitle"></div>
  15621. </div>
  15622. <div class="oldDetail">
  15623. <div>正文:</div>
  15624. <el-input
  15625. v-if="greyType"
  15626. type="textarea"
  15627. :rows="10"
  15628. resize="none"
  15629. v-model="newEnglishList.engText"
  15630. @input="gx"
  15631. />
  15632. <correctText
  15633. :newText="newEnglishList.engText"
  15634. :oldData="oldEnglishJson.engText"
  15635. />
  15636. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15637. </div>
  15638. <div style="position: absolute;bottom: -25px;">
  15639. 注:红色划线字为删除,绿色背景白色字为新添加.
  15640. </div>
  15641. <el-button
  15642. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15643. class="correctCss"
  15644. :style="{ right: greyType == false ? '0' : '80px' }"
  15645. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15646. >
  15647. <el-button
  15648. @click="aiCorrect(newEnglishList.engText, 1)"
  15649. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15650. v-if="!greyType"
  15651. >AI批注</el-button
  15652. >
  15653. <el-button
  15654. @click="addCorrect"
  15655. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15656. v-if="greyType"
  15657. >确定</el-button
  15658. >
  15659. </div>
  15660. </div>
  15661. </div>
  15662. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15663. <div
  15664. class="oldMes"
  15665. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15666. v-if="newEnglishList1.length > 0"
  15667. >
  15668. <div
  15669. v-if="isNoUserid"
  15670. class="allName"
  15671. :style="{
  15672. minWidth: `calc(100% / ${engListLength})`,
  15673. background: newEngIndex == -1 ? '#aacaff' : ''
  15674. }"
  15675. @click="setEngText(-1)"
  15676. style="background: #aacaff;"
  15677. >
  15678. {{ userMes[0].username }}
  15679. </div>
  15680. <div
  15681. v-for="(item, index) in newEnglishList1"
  15682. :key="index"
  15683. class="allName"
  15684. :style="{
  15685. minWidth: `calc(100% / ${engListLength})`,
  15686. background: index == newEngIndex ? '#aacaff' : ''
  15687. }"
  15688. @click="setEngText(index)"
  15689. >
  15690. {{ item.username }}
  15691. </div>
  15692. </div>
  15693. <div class="oldMes" style="background: #aacaff;" v-else>
  15694. {{ userMes[0].username }}
  15695. </div>
  15696. <div
  15697. class="oldText"
  15698. v-if="
  15699. newEngIndex == -1 &&
  15700. isNoUserid == true &&
  15701. newEnglishList1.length
  15702. "
  15703. >
  15704. <div class="detailBox" style="position: relative;">
  15705. <div class="oldDetail">
  15706. <div>标题:</div>
  15707. <el-input
  15708. v-if="greyType"
  15709. v-model="oldEnglishJson1.engTitle"
  15710. />
  15711. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15712. </div>
  15713. <div class="oldDetail">
  15714. <div>正文:</div>
  15715. <el-input
  15716. v-if="greyType"
  15717. type="textarea"
  15718. :rows="10"
  15719. resize="none"
  15720. v-model="oldEnglishJson1.engText"
  15721. @input="gx"
  15722. />
  15723. <correctText
  15724. v-else
  15725. :newText="oldEnglishJson1.engText"
  15726. :oldData="oldEnglishJson.engText"
  15727. />
  15728. </div>
  15729. <div style="position: absolute;bottom: -25px;">
  15730. 注:红色划线字为删除,绿色背景白色字为新添加.
  15731. </div>
  15732. <el-button
  15733. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15734. class="correctCss"
  15735. :style="{ right: greyType == false ? '0' : '80px' }"
  15736. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15737. >
  15738. <el-button
  15739. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15740. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15741. v-if="!greyType"
  15742. >AI批注</el-button
  15743. >
  15744. <el-button
  15745. @click="addCorrect"
  15746. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15747. v-if="greyType"
  15748. >确定</el-button
  15749. >
  15750. </div>
  15751. </div>
  15752. <div class="oldText" v-else-if="newEngIndex == -1">
  15753. <div class="detailBox" style="position: relative;">
  15754. <div class="oldDetail">
  15755. <div>标题:</div>
  15756. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15757. <div v-else v-html="newEnglishList.engTitle"></div>
  15758. </div>
  15759. <div class="oldDetail">
  15760. <div>正文:</div>
  15761. <el-input
  15762. v-if="greyType"
  15763. type="textarea"
  15764. :rows="10"
  15765. resize="none"
  15766. v-model="newEnglishList.engText"
  15767. @input="gx"
  15768. />
  15769. <correctText
  15770. v-else
  15771. :newText="newEnglishList.engText"
  15772. :oldData="oldEnglishJson.engText"
  15773. />
  15774. </div>
  15775. <div style="position: absolute;bottom: -25px;">
  15776. 注:红色划线字为删除,绿色背景白色字为新添加.
  15777. </div>
  15778. <el-button
  15779. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15780. class="correctCss"
  15781. :style="{ right: greyType == false ? '0' : '80px' }"
  15782. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15783. >
  15784. <el-button
  15785. @click="aiCorrect(newEnglishList.engText, 3)"
  15786. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15787. v-if="!greyType"
  15788. >AI批注</el-button
  15789. >
  15790. <el-button
  15791. @click="addCorrect"
  15792. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15793. v-if="greyType"
  15794. >确定</el-button
  15795. >
  15796. </div>
  15797. </div>
  15798. <div
  15799. class="oldText"
  15800. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15801. >
  15802. <div class="detailBox" style="position: relative;">
  15803. <div class="oldDetail">
  15804. <div>标题:</div>
  15805. <div
  15806. v-if="
  15807. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15808. "
  15809. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15810. ></div>
  15811. <div v-else>
  15812. <el-input
  15813. v-if="greyType"
  15814. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15815. />
  15816. <div
  15817. v-else
  15818. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15819. ></div>
  15820. </div>
  15821. </div>
  15822. <div class="oldDetail">
  15823. <div>正文:</div>
  15824. <correctText
  15825. v-if="
  15826. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15827. "
  15828. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15829. :oldData="oldEnglishJson.engText"
  15830. />
  15831. <div v-else>
  15832. <el-input
  15833. v-if="greyType"
  15834. type="textarea"
  15835. :rows="10"
  15836. resize="none"
  15837. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15838. @input="gx"
  15839. />
  15840. <correctText
  15841. v-else
  15842. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15843. :oldData="oldEnglishJson.engText"
  15844. />
  15845. </div>
  15846. </div>
  15847. <div style="position: absolute;bottom: -25px;">
  15848. 注:红色划线字为删除,绿色背景白色字为新添加.
  15849. </div>
  15850. <el-button
  15851. @click="
  15852. isUpdateCorrect(
  15853. newEnglishList1[newEngIndex].cWork.engText,
  15854. 4
  15855. )
  15856. "
  15857. class="correctCss"
  15858. :style="{ right: greyType == false ? '0' : '80px' }"
  15859. v-if="
  15860. !greyType &&
  15861. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15862. "
  15863. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15864. >
  15865. <el-button
  15866. @click="
  15867. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15868. "
  15869. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15870. v-if="
  15871. !greyType &&
  15872. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15873. "
  15874. >AI批注</el-button
  15875. >
  15876. <el-button
  15877. @click="addCorrect"
  15878. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15879. v-if="greyType"
  15880. >确定</el-button
  15881. >
  15882. </div>
  15883. </div>
  15884. </div>
  15885. </div>
  15886. </div>
  15887. <span slot="footer" class="dialog-footer">
  15888. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15889. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15890. </span>
  15891. </el-dialog>
  15892. <englishEva
  15893. :evaEngJson="evaEngJson"
  15894. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15895. :uid="userid"
  15896. :tType="tType"
  15897. :courseDetail="courseDetail"
  15898. ></englishEva>
  15899. <interVideo
  15900. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15901. :videoJson="videoJson"
  15902. :userid="userid"
  15903. :id="id"
  15904. :courseType="courseType"
  15905. :taskCount="taskCount"
  15906. :toolindex="toolindex"
  15907. :videoType="videoType"
  15908. ></interVideo>
  15909. <UpdateMore
  15910. :dialogVisibleMember.sync="dialogVisibleMember"
  15911. :cList="uploadStudentJuri"
  15912. :userid="userid"
  15913. :searchTN="worksSName2"
  15914. @setPlname="setPlname"
  15915. ></UpdateMore>
  15916. <!-- <wordCloud
  15917. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15918. :data="wordCloudData"
  15919. ></wordCloud> -->
  15920. <el-dialog
  15921. title="词云"
  15922. :visible.sync="dialogVisibleWordCloud"
  15923. width="30%"
  15924. class="dialog_diy"
  15925. :before-close="handleClose">
  15926. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15927. </el-dialog>
  15928. <el-dialog
  15929. title="挑人"
  15930. :visible.sync="dialogVisiblePickPeople"
  15931. width="650px"
  15932. :before-close="handleClose"
  15933. class="dialog_diy"
  15934. center
  15935. >
  15936. <div class="pick_box">
  15937. <div
  15938. class="noWorksName"
  15939. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15940. v-for="(item, index) in uploadStudentJuri"
  15941. :key="index"
  15942. @click="pickStudent(item)"
  15943. >
  15944. {{ item.name }}
  15945. </div>
  15946. </div>
  15947. </el-dialog>
  15948. <EnglishVoice
  15949. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15950. :englishVoiceJson="englishVoiceJson"
  15951. :userid="userid"
  15952. :id="id"
  15953. :courseType="courseType"
  15954. :taskCount="taskCount"
  15955. :toolindex="toolindex"
  15956. @selectSWorks="selectSWorks"
  15957. @selectStudent="selectStudent"
  15958. :englishVoiceJsonWork="englishVoiceJsonWork"
  15959. ></EnglishVoice>
  15960. <checkEnglishVoice
  15961. :englishVoiceJson="englishVoiceJson"
  15962. :userid="userid"
  15963. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15964. :commentDetail="commentDetail"
  15965. :courseDetail="courseDetail"
  15966. :wScore="wScore"
  15967. :scoreDetail="scoreDetail"
  15968. @selectSWorks="selectSWorks"
  15969. @selectStudent="selectStudent"
  15970. ></checkEnglishVoice>
  15971. <el-dialog
  15972. title="教师评分"
  15973. :visible.sync="markScoreVisible"
  15974. :append-to-body="true"
  15975. width="1000px"
  15976. :fullscreen="markfullscreen"
  15977. :before-close="markScorehandleClose"
  15978. class="markScore_diy"
  15979. >
  15980. <div slot="title">
  15981. <div class="markScore_diyTit">
  15982. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15983. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15984. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15985. </div>
  15986. </div>
  15987. </div>
  15988. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15989. <!-- @updateDocSco="updateDocSco" -->
  15990. <markDialog
  15991. :key="markScoreVisible.toString()"
  15992. :uid="markScoreUid"
  15993. :toolIndex="markScoretoolIndex"
  15994. :stage="courseType"
  15995. :task="taskCount"
  15996. :taskDetail="
  15997. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15998. "
  15999. :tool="toolListS"
  16000. :languageSetting="languageSetting"
  16001. :scoTit="markScoreTit"
  16002. :tType="tType"
  16003. :sIsOpen="sIsOpen"
  16004. :markScoreworksStudent="markScoreworksStudent"
  16005. :markScoreVisible="markScoreVisible"
  16006. ></markDialog>
  16007. </el-dialog>
  16008. <!-- 查看Txt,md等文件 -->
  16009. <el-dialog
  16010. title="文件预览"
  16011. :visible.sync="dialogVisibleTxt"
  16012. width="50%"
  16013. :before-close="handleCloseTxt"
  16014. class="dialog_diy"
  16015. :class="{ fullStyle: full }"
  16016. >
  16017. <div slot="title" class="header-title">
  16018. <div style="color: #fff">文件预览</div>
  16019. <div style="position: absolute; top: 19px; right: 50px">
  16020. <img
  16021. src="../../assets/full.png"
  16022. style="height: 16px; cursor: pointer"
  16023. alt=""
  16024. @click="fullTools"
  16025. />
  16026. </div>
  16027. </div>
  16028. <div>{{ TxtMd }}</div>
  16029. </el-dialog>
  16030. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  16031. <choseWorksDetailDialog
  16032. ref="choseWorksDetailDialogRef"
  16033. :worksStudentData="worksStudent"
  16034. :noWorksSData="noWorksS"
  16035. :chapInfoListData="chapInfoList"
  16036. :courseType="courseType"
  16037. :taskCount="taskCount"
  16038. :tType="tType"
  16039. :sIsOpen="sIsOpen"
  16040. :courseDetail="courseDetail"
  16041. :groupStudent2="groupStudent"
  16042. :groupStudentUid2="groupStudentUid"
  16043. :oid="oid"
  16044. :org="org"
  16045. @getCourseDetail="getCourseDetail"
  16046. @selectSLook="selectSLook"
  16047. @selectSWorks="selectSWorks"
  16048. @selectStudent="selectStudent"
  16049. @deleteWorks="deleteWorks"
  16050. @openTools="openTools"
  16051. @openWord="openWord"
  16052. @openScore="openScore"
  16053. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  16054. />
  16055. <el-dialog
  16056. :visible.sync="confirmOpenDig"
  16057. width="500px"
  16058. :modal="false"
  16059. class="confirmOpenDigCss dialog_diyCopy"
  16060. :before-close="handleClose">
  16061. <div style="display: flex;align-items: center;">
  16062. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  16063. <span>“{{ courseDetail.title }}”开课啦</span>
  16064. </div>
  16065. <div style="margin: 20px 0 35px;">
  16066. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  16067. <div>要认真听讲哦~</div>
  16068. </div>
  16069. <div style="text-align: center;">
  16070. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  16071. </div>
  16072. </el-dialog>
  16073. <appStoreC ref="appStoreC"
  16074. :sStudent="sStudent"
  16075. :courseType="courseType"
  16076. :taskCount="taskCount"
  16077. :toolindex="toolindex"
  16078. @selectSWorks="selectSWorks"
  16079. @selectStudent="selectStudent"
  16080. ></appStoreC>
  16081. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  16082. </div>
  16083. </template>
  16084. <script>
  16085. import "../../common/aws-sdk-2.235.1.min.js";
  16086. // import pdf from "../components/pdf3";
  16087. import pdf from "../components/vpdf";
  16088. import AskStatic from "../components/askStatic";
  16089. import AskStatic2 from "../components/askStatic2";
  16090. import AnswerData2 from "../components/answerData2";
  16091. import AnswerData from "../components/answerData";
  16092. import EditorBar from "../tools/wangEnduit.vue";
  16093. import Table from "../tools/table.vue";
  16094. import Time from "../tools/time.vue";
  16095. import Mind from "../tools/jsmind.vue";
  16096. import Sunburst from "../tools/sunburst";
  16097. import SeeBoard from "../tools/seeBoard";
  16098. import * as imageConversion from "image-conversion";
  16099. import Audio from "../components/audio.vue";
  16100. import ImgDraw from "../tools/imgDraw/imgDraw";
  16101. import { Empty } from "element-ui";
  16102. import RecordRTC from "recordrtc";
  16103. import interVideo from "../interVideo/index.vue";
  16104. import UpdateMore from "../updateMore/updateMore.vue";
  16105. import wordCloud from "../wordCloud/index.vue";
  16106. import axios from "axios";
  16107. import JSZip from "jszip";
  16108. import FileSaver from "file-saver";
  16109. import onlineWrite from "./commpont/onlineWrite";
  16110. import englishEva from "../components/englishEva";
  16111. import * as Diff from "diff";
  16112. import EnglishVoice from "../EnglishVoice2/index.vue";
  16113. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  16114. import correctText from "../components/correctText.vue";
  16115. import scoreItem from "../scoreList/scoreItem.vue";
  16116. import scoreZong from "../scoreZong/index.vue";
  16117. import classRoomHelper from "../classRoomHelper/index.vue";
  16118. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  16119. import markScore from "./commpont/markScore";
  16120. import markDialog from "./commpont/markDialog";
  16121. import evaTable from "./commpont/evaTable";
  16122. import { v4 as uuidv4 } from "uuid";
  16123. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  16124. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  16125. import appStoreC from "../components/appStoreC.vue";
  16126. import cocoFlowDia from "../components/cocoFlowDia.vue";
  16127. import choseWordCloud from '../components/choseWordCloud.vue'
  16128. import { myMixin } from "@/mixins/mixin.js"
  16129. import { tools as toolsList } from "@/common/tools2.js";
  16130. var OpenCC = require("opencc-js");
  16131. let converter = OpenCC.Converter({
  16132. from: "hk",
  16133. to: "cn"
  16134. });
  16135. const getFile = url => {
  16136. return new Promise((resolve, reject) => {
  16137. var credentials = {
  16138. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16139. secretAccessKey: "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"
  16140. }; //秘钥形式的登录上传
  16141. window.AWS.config.update(credentials);
  16142. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16143. let url2 = url;
  16144. let _url2 = "";
  16145. if (
  16146. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16147. ) {
  16148. _url2 = url2.split(
  16149. "https://view.officeapps.live.com/op/view.aspx?src="
  16150. )[1];
  16151. } else {
  16152. _url2 = url2;
  16153. }
  16154. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  16155. let name = decodeURIComponent(
  16156. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16157. );
  16158. var params = {
  16159. Bucket: "ccrb",
  16160. Key: name
  16161. };
  16162. s3.getObject(params, function(err, data) {
  16163. if (err) {
  16164. console.log(err, err.stack);
  16165. resolve({ data: 1 });
  16166. } else {
  16167. resolve({ data: data.Body });
  16168. console.log(data);
  16169. } // sxuccessful response
  16170. });
  16171. // axios({
  16172. // method: "get",
  16173. // url,
  16174. // responseType: "blob",
  16175. // })
  16176. // .then((data) => {
  16177. // resolve({ data: data.data });
  16178. // })
  16179. // .catch((error) => {
  16180. // resolve({ data: 1 });
  16181. // // reject(error.toString());
  16182. // });
  16183. });
  16184. };
  16185. export default {
  16186. mixins: [ myMixin ],
  16187. components: {
  16188. choseWordCloud,
  16189. EditorBar,
  16190. Time,
  16191. pdf,
  16192. AskStatic,
  16193. AskStatic2,
  16194. Mind,
  16195. Sunburst,
  16196. SeeBoard,
  16197. AnswerData2,
  16198. AnswerData,
  16199. Audio,
  16200. ImgDraw,
  16201. Table,
  16202. interVideo,
  16203. UpdateMore,
  16204. wordCloud,
  16205. onlineWrite,
  16206. englishEva,
  16207. EnglishVoice,
  16208. checkEnglishVoice,
  16209. correctText,
  16210. scoreItem,
  16211. classRoomHelper,
  16212. scoreZong,
  16213. markScore,
  16214. markDialog,
  16215. evaTable,
  16216. statisticalAnalysis,
  16217. choseWorksDetailDialog,
  16218. appStoreC,
  16219. cocoFlowDia,
  16220. studentClassRoomHelper
  16221. },
  16222. data() {
  16223. return {
  16224. wordCloudKey: 0,
  16225. bg: null,
  16226. drawShow: false,
  16227. dialogVisible: false,
  16228. dialogVisiblePl: false,
  16229. commentDialogVisible: false,
  16230. dialogVisibleMember: false,
  16231. dialogVisibleWordCloud: false,
  16232. videoVisible: false,
  16233. isStar: false,
  16234. studentEvalDialogVisible: false,
  16235. studentEvalDialogVisibleTeacher: false,
  16236. dialogVisibleSelect: false,
  16237. dialogVisibleSelectTeacher: false,
  16238. dialogVisibleScore: false,
  16239. dialogVisibleENScore: false,
  16240. dialogVisibleSentence: false,
  16241. dialogVisibleSentenceTeacher: false,
  16242. dialogVisibleSentence1: false,
  16243. dialogVisibleWorks: false,
  16244. dialogVisibleTable: false,
  16245. dialogVisibleTableTeacher: false,
  16246. dialogVisibleWord: false,
  16247. dialogVisibleWordTeacher: false,
  16248. dialogVisibleTable2: false,
  16249. dialogVisibleTable3: false,
  16250. dialogVisibleGroupWork: false,
  16251. dialogVisibleUpdateGroup: false,
  16252. dialogVisibleDeleteGroup: false,
  16253. dialogVisibleSname: false,
  16254. dialogVisibleVideo: false,
  16255. dialogVisiblePickPeople: false,
  16256. engDialogVisible: false,
  16257. engUpdateDialogVisible: false,
  16258. engEvaDialogVisible: false,
  16259. evaEngJson: {
  16260. teacherJson: {},
  16261. studentJson: {},
  16262. message: {}
  16263. },
  16264. isNoUserid: false,
  16265. engListLength: 0,
  16266. engWid: "",
  16267. newEnglishList: {
  16268. engTitle: "",
  16269. engText: ""
  16270. },
  16271. toolsList: toolsList,
  16272. newEnglishList1: [],
  16273. oldEnglishJson: {},
  16274. oldEnglishJson1: {},
  16275. englishList1: {},
  16276. englishList: {},
  16277. myAnswerList1: {},
  16278. topHeight: 0,
  16279. newEngIndex: -1,
  16280. englishToolIndex: 0,
  16281. userMes: {},
  16282. englishToolIndex: 0,
  16283. worksSName: "",
  16284. classJuri: [],
  16285. uploadStudentJuri: [],
  16286. uploadCid: "",
  16287. snameWid: "",
  16288. sStudent: {},
  16289. sTool: "",
  16290. bzText: "",
  16291. commentDetail: [],
  16292. selectAnswer: [],
  16293. videoDetail: {},
  16294. selectJson: {},
  16295. englishList: {},
  16296. topHeight: 0,
  16297. eScore: { eBzText: "", eStar: [] },
  16298. id: this.$route.query.courseId,
  16299. userid: this.$route.query.userid,
  16300. classId: this.$route.query.cid,
  16301. // courseTypeLine: this.$route.query.type,
  16302. oid: this.$route.query.oid,
  16303. org: this.$route.query.org,
  16304. tType: this.$route.query.tType,
  16305. courseType: this.$route.query.type,
  16306. screenType: this.$route.query.screenType,
  16307. tcid2: this.$route.query.tcid,
  16308. tcid: "",
  16309. pptImgUrl: "",
  16310. pptImgUrl1: "",
  16311. commentText: "",
  16312. full: false,
  16313. sIsOpen: false, //允许学生查看所有作业
  16314. IsLookOpen: false, //禁止学生查看所有阶段
  16315. IsFollow: false, //开启跟随模式
  16316. pzDialog: false,
  16317. contentDialog: false,
  16318. mlDialog: false,
  16319. type: 1,
  16320. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  16321. sentenceList1: [],
  16322. tableJson: [],
  16323. tableJsonO: [],
  16324. wordJson: [],
  16325. wordJsonO: [],
  16326. vedio: [],
  16327. text: [],
  16328. textList: [],
  16329. line: [],
  16330. lineList: [],
  16331. chapTools: [],
  16332. chapToolList: [],
  16333. file: [],
  16334. fileC: [],
  16335. vedioTime: [],
  16336. upToolImg: "",
  16337. preTime: 0,
  16338. rateList: {
  16339. ca: 0
  16340. },
  16341. rateParams: [],
  16342. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  16343. studyJuri: [
  16344. {
  16345. content: "",
  16346. cover: [],
  16347. upVedio: [],
  16348. upFile: []
  16349. }
  16350. ],
  16351. isClose: 0,
  16352. plworkFile: [],
  16353. mr: require("../../assets/vedioPic.png"),
  16354. word: require("../../assets/icon/isWord.png"),
  16355. word2: require("../../assets/icon/word2.png"),
  16356. video: require("../../assets/icon/isVideo.png"),
  16357. noLikes: require("../../assets/icon/comment/noLikes.png"),
  16358. likes: require("../../assets/icon/comment/likes.png"),
  16359. scoreImg: require("../../assets/score.png"),
  16360. courseDetail: {},
  16361. reply: "",
  16362. isSelect: false,
  16363. chapInfo: [],
  16364. chapInfoList: [],
  16365. taskCount: 0,
  16366. imgList: [],
  16367. noImgList: [],
  16368. pzList: [],
  16369. timeWorkList: [],
  16370. PlTextList: [
  16371. "Excellent!",
  16372. "nice!",
  16373. "很有创意!",
  16374. "还不错哦~",
  16375. "继续努力哦~"
  16376. ],
  16377. isClickNav: "",
  16378. navId: "",
  16379. playerOptions: {
  16380. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16381. autoplay: false, //如果true,浏览器准备好时开始回放。
  16382. muted: false, // 默认情况下将会消除任何音频。
  16383. loop: false, // 导致视频一结束就重新开始。
  16384. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16385. language: "zh-CN",
  16386. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16387. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16388. sources: [
  16389. {
  16390. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16391. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16392. }
  16393. ],
  16394. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16395. // poster: dataRes.imgUrl, //你的封面地址
  16396. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16397. controlBar: {
  16398. timeDivider: true, //当前时间和持续时间的分隔符
  16399. durationDisplay: true, //显示持续时间
  16400. remainingTimeDisplay: false, //是否显示剩余时间功能
  16401. fullscreenToggle: true //全屏按钮
  16402. }
  16403. },
  16404. playerOptions1: {
  16405. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16406. autoplay: false, //如果true,浏览器准备好时开始回放。
  16407. muted: false, // 默认情况下将会消除任何音频。
  16408. loop: false, // 导致视频一结束就重新开始。
  16409. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16410. language: "zh-CN",
  16411. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16412. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16413. sources: [
  16414. {
  16415. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16416. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16417. }
  16418. ],
  16419. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16420. // poster: dataRes.imgUrl, //你的封面地址
  16421. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16422. controlBar: {
  16423. timeDivider: true, //当前时间和持续时间的分隔符
  16424. durationDisplay: true, //显示持续时间
  16425. remainingTimeDisplay: false, //是否显示剩余时间功能
  16426. fullscreenToggle: true //全屏按钮
  16427. }
  16428. },
  16429. playerO: {},
  16430. noneBtnImg: false,
  16431. proVisible: false,
  16432. proVisible2: false,
  16433. progress: 0,
  16434. isFinishSize: 0,
  16435. isAllSize: 0,
  16436. questionAnswer: "",
  16437. answerQ: "", //问答标题
  16438. rateJson: [],
  16439. wbCount: 0,
  16440. wordCount: 0,
  16441. mindCount: 0,
  16442. askCount: 0,
  16443. noteCount: 0,
  16444. mindNetWorkCount: 0,
  16445. libraryCount: 0,
  16446. workCount: 0,
  16447. timeCount: 0,
  16448. answerCount: 0,
  16449. trainCount: 0,
  16450. evalCount: 0,
  16451. dialogImageUrl: "",
  16452. pictureDialog: false,
  16453. toolTypeList: [],
  16454. dialogVisible1: false,
  16455. dialogVisible2: false,
  16456. dialogVisible3: false,
  16457. dialogVisible6: false,
  16458. dialogVisible4: false,
  16459. isNoHomeWork: false,
  16460. dialogVisible5: false,
  16461. dialogVisible5Teacher: false,
  16462. dialogVisibleChoice: false,
  16463. dialogVisibleChoiceTeacher: false,
  16464. answerDialogVisible: false,
  16465. answerDialogVisibleTeacher: false,
  16466. juriVisible: false,
  16467. timeDialogVisible: false,
  16468. replyDialogVisible: false,
  16469. toolDialogVisible: false,
  16470. replyIndex: 0,
  16471. replyPid: "",
  16472. radio: [],
  16473. isAsk: false,
  16474. askJson: {
  16475. askCount: 1,
  16476. askTitle: "",
  16477. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16478. },
  16479. testJson: {},
  16480. videoType: 0,
  16481. checkJson: [],
  16482. askList: [],
  16483. answerList: [],
  16484. navList: [],
  16485. addPzDialog: false,
  16486. pzConText: "",
  16487. worksStudent: [],
  16488. isCloseList: [],
  16489. workStudent: [],
  16490. groupStudent: [],
  16491. groupStudentUid: [],
  16492. noWorksS: [],
  16493. isWorksS: [],
  16494. noWorksStudent: [],
  16495. toolindex: 0,
  16496. toolDetailIndex: null,
  16497. groupIndex: 0,
  16498. workTypeB: false,
  16499. workTypeC: false,
  16500. isAnswer: false,
  16501. isHovered: false,
  16502. isHovered1: false,
  16503. isHovered2: false,
  16504. commentTagShow: 0,
  16505. timer: null,
  16506. timer2: null,
  16507. opertimer: null,
  16508. showType: 0,
  16509. fileType: 0,
  16510. showPDF: false,
  16511. noteName: "",
  16512. evaJuri: [],
  16513. evalua: "",
  16514. eTitle: "",
  16515. eName: "",
  16516. eJson: {},
  16517. fid: "", //一级
  16518. sid: "", //二级
  16519. tid: "", //二级
  16520. typeMode: 1,
  16521. eJSONNum: 0,
  16522. Etype: 1,
  16523. data: {
  16524. meta: {
  16525. name: "example",
  16526. author: "dd@163.com",
  16527. version: "0.2"
  16528. },
  16529. format: "node_array",
  16530. data: [{ id: "root", isroot: true, topic: "" }]
  16531. },
  16532. fullDialogVisible: false,
  16533. fulltype: "",
  16534. fullUrl: "",
  16535. commentIndexJson: {},
  16536. Stbodywidth: 0,
  16537. ispzType: 0,
  16538. pzType: 1,
  16539. wScore: 0,
  16540. scoreDetail: "",
  16541. videoStart: false,
  16542. recorder: null,
  16543. groupJson: {},
  16544. islock: false,
  16545. groupJson2: {},
  16546. dialogVisibleGroup: false,
  16547. dialogVisibleGroup2: false,
  16548. updateGroupArray: [],
  16549. updateGroupUser: {},
  16550. deleteGroupUser: [],
  16551. deleteGroupArray: {},
  16552. checkChair: "",
  16553. checkDeleteGroup: [],
  16554. inviteCode: "",
  16555. courseGroupStudent: [],
  16556. courseGroupStudentUid: [],
  16557. courseGroup: {},
  16558. isGroup: false,
  16559. toolIndex: null,
  16560. tool: {},
  16561. isWorkTool: [
  16562. 16,
  16563. 32,
  16564. 57,
  16565. 4,
  16566. 45,
  16567. 15,
  16568. 1,
  16569. 3,
  16570. 6,
  16571. 7,
  16572. 26,
  16573. 41,
  16574. 47,
  16575. 48,
  16576. 52,
  16577. 50,
  16578. 40
  16579. ], //, 40
  16580. videoJson: {},
  16581. toolType: 0,
  16582. checktoolArray: [],
  16583. vChapterData: [],
  16584. isUpdateToolDetail: false,
  16585. isUpdateToolDetail1: false,
  16586. updateToolDetailInner: "",
  16587. checkboxList: [],
  16588. plIndex: "",
  16589. worksSName2: "",
  16590. worksSid: "",
  16591. wordCloudData: [],
  16592. isPickStudent: [],
  16593. pzStype: 1,
  16594. downLoading: false,
  16595. greyType: false,
  16596. correctWord: [],
  16597. EnglishVoiceDialog: false,
  16598. englishVoiceJson: {},
  16599. englishVoiceJsonWork: [],
  16600. scoreList: {
  16601. listdata: [],
  16602. isScoreList: []
  16603. },
  16604. classRoomHelperWidth: "85px",
  16605. orgArray: [],
  16606. oidArray: [],
  16607. refreshKey: 0,
  16608. AIloading: [],
  16609. worksStudentCopy: [],
  16610. loopLoading: [],
  16611. markScoreVisible: false,
  16612. markScoretoolIndex: 0,
  16613. markScoreUid: "",
  16614. markScoreTit: {},
  16615. markfullscreen: false,
  16616. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16617. markScoreworksStudent: [],
  16618. finalMarkList: -1,
  16619. isaiNum: 0,
  16620. dialogVisibleTxt: false,
  16621. TxtMd: "",
  16622. languageSetting: 0, //0中文 1繁体 2英文
  16623. toolListS: [],
  16624. commentDetailCopy: "",
  16625. splitScreenData: {
  16626. isOpen: false,
  16627. userId: "",
  16628. uid: "",
  16629. myUid: "",
  16630. loading: false,
  16631. behavior: null
  16632. },
  16633. confirmOpenDig:false,
  16634. confirmOpenDigData:'',
  16635. diffKey:"1"
  16636. };
  16637. },
  16638. methods: {
  16639. getAIJ() {
  16640. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16641. let oid = res.data[0];
  16642. let org = res.data[1];
  16643. let oidArray = [];
  16644. let orgArray = [];
  16645. oid.forEach(i => oidArray.push(i.oid));
  16646. org.forEach(i => orgArray.push(i.oid));
  16647. this.orgArray = orgArray;
  16648. this.oidArray = oidArray;
  16649. });
  16650. },
  16651. //查看应用中心作业
  16652. openCocoFlow(w){
  16653. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16654. },
  16655. // 评分弹框全屏
  16656. markFullScreenBtn() {
  16657. this.markfullscreen = !this.markfullscreen;
  16658. },
  16659. insertMemorandum(_html) {
  16660. //保存行为操作
  16661. //variable
  16662. //btn
  16663. let params = [
  16664. {
  16665. uid: this.userid,
  16666. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16667. content: _html
  16668. }
  16669. ];
  16670. console.log(params);
  16671. this.ajax
  16672. .post(
  16673. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16674. params
  16675. )
  16676. .then(res => {
  16677. if (res.data == 1) {
  16678. console.log("保存操作成功");
  16679. } else {
  16680. console.log("保存操作失败");
  16681. }
  16682. })
  16683. .catch(e => {
  16684. console.log("保存操作失败");
  16685. console.log(e);
  16686. });
  16687. },
  16688. // 获取文档id
  16689. createFileid(url) {
  16690. let _this = this;
  16691. return new Promise((resolve, reject) => {
  16692. try {
  16693. _this.ajax
  16694. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16695. url: url
  16696. })
  16697. .then(res => {
  16698. let _data = res.data.FunctionResponse;
  16699. if (_data.result && _data.result.id) {
  16700. resolve(_data.result.id);
  16701. } else {
  16702. resolve(1);
  16703. }
  16704. })
  16705. .catch(function(error) {
  16706. resolve(1);
  16707. });
  16708. } catch (e) {
  16709. resolve(1);
  16710. }
  16711. });
  16712. },
  16713. // 一键重置
  16714. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16715. let jude = false;
  16716. this.AIloading.forEach((e, index) => {
  16717. if (index == toolIndex) {
  16718. e.forEach(k => {
  16719. if (k.loading == true) jude = true;
  16720. });
  16721. }
  16722. });
  16723. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16724. this.$confirm("确认一键重置?")
  16725. .then(_ => {
  16726. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16727. })
  16728. .catch(_ => {});
  16729. },
  16730. // 一键重置
  16731. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16732. for (let index = 0; index < con.length; index++) {
  16733. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16734. }
  16735. this.$message.success("重置完成");
  16736. // this.refreshAssembly();
  16737. this.worksStudent.forEach((e, index) => {
  16738. if (toolIndex == index) {
  16739. console.log("6666");
  16740. e.forEach((i, inx) => {
  16741. let mk = `markSco${index}${inx}`;
  16742. this.$refs[mk][0].getData();
  16743. });
  16744. }
  16745. });
  16746. },
  16747. // 一键重置
  16748. allEmptySco(uid, stage, task, toolIndex) {
  16749. let params = [
  16750. {
  16751. cid: this.id,
  16752. uid: uid,
  16753. s: stage,
  16754. t: task,
  16755. tool: toolIndex ? toolIndex : ""
  16756. }
  16757. ];
  16758. return new Promise(resolve => {
  16759. this.ajax
  16760. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16761. .then(res => {
  16762. resolve(1);
  16763. })
  16764. .catch(err => {
  16765. console.error(err);
  16766. });
  16767. }).catch(error => {
  16768. console.log(error);
  16769. });
  16770. },
  16771. // AI评分循环打分
  16772. async loopEva(
  16773. con,
  16774. tit,
  16775. stage,
  16776. task,
  16777. toolIndex,
  16778. toolDetail,
  16779. taskDetail,
  16780. toolList
  16781. ) {
  16782. let jude = false;
  16783. this.AIloading.forEach((e, index) => {
  16784. if (index == toolIndex) {
  16785. e.forEach(k => {
  16786. if (k.loading == true) jude = true;
  16787. });
  16788. }
  16789. });
  16790. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16791. this.AIloading.forEach((e, index) => {
  16792. if (index == toolIndex) {
  16793. e.forEach(k => {
  16794. k.loading = true;
  16795. });
  16796. }
  16797. });
  16798. this.loopLoading[toolIndex].loading = true;
  16799. let laws = "";
  16800. let std = "";
  16801. let text = "";
  16802. if (toolList && toolList.eList && toolList.eList.length) {
  16803. for (let i = 0; i < toolList.eList.length; i++) {
  16804. if (toolList.eList[i].isai == 1) {
  16805. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16806. }
  16807. }
  16808. for (let i = 0; i < toolList.eList.length; i++) {
  16809. if (toolList.eList[i].isai == 1) {
  16810. let a = toolList.eList[i].detail;
  16811. if (isNaN(parseFloat(a)) && a) {
  16812. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16813. } else {
  16814. var result = a;
  16815. }
  16816. std += `纬度${i}:“${result}”, \n`;
  16817. }
  16818. }
  16819. for (let i = 0; i < toolList.eList.length; i++) {
  16820. if (toolList.eList[i].isai == 1) {
  16821. let a = toolList.eList[i].detail;
  16822. if (isNaN(parseFloat(a)) && a) {
  16823. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16824. } else {
  16825. var result = a;
  16826. }
  16827. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16828. }
  16829. }
  16830. } else {
  16831. let titRule = 0;
  16832. let titRule2 = 0;
  16833. tit.forEach((e, index) => {
  16834. if (!e.isai) {
  16835. e.isai = 1;
  16836. }
  16837. });
  16838. tit.forEach((e, index) => {
  16839. if (e.isai == 1) {
  16840. titRule2++;
  16841. if (e.rule) {
  16842. titRule++;
  16843. }
  16844. }
  16845. });
  16846. if (titRule != titRule2) {
  16847. this.AIloading.forEach((e, index) => {
  16848. if (index == toolIndex) {
  16849. e.forEach(k => {
  16850. k.loading = false;
  16851. });
  16852. }
  16853. });
  16854. this.loopLoading[toolIndex].loading = false;
  16855. this.$message.info("细则努力生成中,请稍候……");
  16856. return;
  16857. }
  16858. for (let i = 0; i < tit.length; i++) {
  16859. if (tit[i].isai == 1) {
  16860. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16861. }
  16862. }
  16863. for (let i = 0; i < tit.length; i++) {
  16864. if (tit[i].isai == 1) {
  16865. let a = tit[i].detail;
  16866. if (isNaN(parseFloat(a)) && a) {
  16867. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16868. } else {
  16869. var result = a;
  16870. }
  16871. std += `纬度${i}:“${result}”, \n`;
  16872. }
  16873. }
  16874. for (let i = 0; i < tit.length; i++) {
  16875. if (tit[i].isai == 1) {
  16876. let a = tit[i].detail;
  16877. if (isNaN(parseFloat(a)) && a) {
  16878. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16879. } else {
  16880. var result = a;
  16881. }
  16882. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16883. }
  16884. }
  16885. }
  16886. let forAllList = [];
  16887. // console.log('con',con)
  16888. for (let i = 0; i < con.length; i++) {
  16889. let _fileid = "";
  16890. let wok = con[i].works;
  16891. // console.log('con',con);
  16892. // console.log('con[i].type',con[i].type);
  16893. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16894. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16895. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16896. _fileid = await this.createFileid(con[i].works);
  16897. } else {
  16898. this.AIloading[toolIndex][i].loading = false;
  16899. continue;
  16900. }
  16901. }
  16902. // console.log('con[i].type',con[i])
  16903. // console.log('con[i].type',con[i].type)
  16904. if (_fileid == 1 || con[i].type == 3) {
  16905. this.AIloading[toolIndex][i].loading = false;
  16906. continue;
  16907. }
  16908. let msg = `NOTICE
  16909. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16910. Language: ${this.getLang()}
  16911. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16912. Instruction: Based on the context, follow "Format example", write content.
  16913. #目标#
  16914. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16915. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16916. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16917. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16918. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16919. #评分资料#
  16920. 评价标准:${std}
  16921. 评价细则:${laws}
  16922. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16923. 任务描述:${taskDetail}
  16924. 工具描述:${toolDetail}
  16925. #输出要求#
  16926. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16927. “评语”控制在150字左右。
  16928. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16929. #输出格式#
  16930. [${text}{'comment':'评语(150个汉字左右)'}]
  16931. `;
  16932. let mk = `markSco${toolIndex}${i}`;
  16933. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16934. msg,
  16935. con[i].userid,
  16936. stage,
  16937. task,
  16938. _fileid,
  16939. con[i].type
  16940. );
  16941. forAllList.push(mkAwit);
  16942. }
  16943. Promise.all(forAllList)
  16944. .then(values => {
  16945. console.log("values", values);
  16946. this.$message({
  16947. message: "评价成功",
  16948. type: "success"
  16949. });
  16950. // this.refreshKey++
  16951. // this.worksStudent.forEach((e,index)=>{
  16952. // if(toolIndex == index){
  16953. // e.forEach((i,inx)=>{
  16954. // let mk = `markSco${index}${inx}`
  16955. // this.$refs[mk][0].getData()
  16956. // })
  16957. // }
  16958. // })
  16959. this.AIloading[toolIndex].forEach(e => {
  16960. e.loading = false;
  16961. });
  16962. this.loopLoading[toolIndex].loading = false;
  16963. })
  16964. .catch(reason => {
  16965. console.error("reasonreasonreasonreasonreason", reason);
  16966. // 输出“失败原因”
  16967. });
  16968. },
  16969. // 获取评价细则
  16970. againEva(i, k) {
  16971. let msg = `NOTICE
  16972. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16973. Language: ${this.getLang()}
  16974. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16975. Instruction: Based on the context, follow "Format example", write content.
  16976. #Context
  16977. ##要求
  16978. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16979. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16980. ##制定标准资料
  16981. 评价维度:${
  16982. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16983. }
  16984. 维度描述:${
  16985. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16986. }
  16987. # Format example
  16988. ==
  16989. 0 星,作业内容与作业要求无关;
  16990. 1 星,没有识别问题和需求;
  16991. 2 星,问题或需求没有被清晰理解或准确识别;
  16992. 3 星,问题或需求的一部分被识别;
  16993. 4 星,问题或需求的大部分被识别;
  16994. 5 星,问题或需求都被识别。
  16995. ==
  16996. `;
  16997. let params = {
  16998. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16999. message: [
  17000. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  17001. ],
  17002. session_name: uuidv4(),
  17003. userId: this.userid,
  17004. file_ids: [],
  17005. model: "gpt-4o-2024-11-20"
  17006. };
  17007. // console.log('params',params);
  17008. this.ajax
  17009. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  17010. .then(response => {
  17011. let data = response.data.FunctionResponse;
  17012. // console.log("data", data);
  17013. if (data.message) {
  17014. let content = data.message;
  17015. var regex = new RegExp("==([^=]+)==");
  17016. let match = content.match(regex);
  17017. if (match) {
  17018. content = match[1].trim().replaceAll(" ", "");
  17019. // 获取匹配到的内容并去除两端空格
  17020. // console.log('contentInsideDoubleEquals', content);
  17021. if (
  17022. content.indexOf("0星") == -1 ||
  17023. content.indexOf("2星") == -1 ||
  17024. content.indexOf("3星") == -1 ||
  17025. content.indexOf("4星") == -1 ||
  17026. content.indexOf("5星") == -1
  17027. ) {
  17028. console.log("未有星级。");
  17029. this.againEva(i, k);
  17030. return;
  17031. }
  17032. // return
  17033. } else {
  17034. console.log("未找到匹配的内容。");
  17035. this.againEva(i, k);
  17036. return;
  17037. }
  17038. let elist = JSON.parse(
  17039. JSON.stringify(
  17040. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  17041. )
  17042. );
  17043. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  17044. elist.rule = JSON.parse(
  17045. JSON.stringify(content.replaceAll("#", ""))
  17046. );
  17047. this.$set(
  17048. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  17049. k,
  17050. elist
  17051. );
  17052. this.$forceUpdate();
  17053. let params2 = [
  17054. {
  17055. cid: this.id,
  17056. chapters: JSON.stringify(this.chapInfoList),
  17057. uid: this.userid,
  17058. unitIndex: this.courseType
  17059. }
  17060. ];
  17061. this.ajax
  17062. .post(this.$store.state.api + "updateWorkNew4", params2)
  17063. .then(res => {
  17064. this.getCourseDetail(2);
  17065. this.$forceUpdate();
  17066. })
  17067. .catch(err => {
  17068. this.$message.error("网络不佳");
  17069. console.error(err);
  17070. });
  17071. // 进行进一步处理或解析outputContent
  17072. // } else {
  17073. // console.log("No match found for # Output section.");
  17074. // }
  17075. }
  17076. })
  17077. .catch(error => {
  17078. console.log(error);
  17079. });
  17080. },
  17081. // 关闭评分弹框
  17082. markScorehandleClose(done) {
  17083. // this.refreshKey++
  17084. this.worksStudent.forEach((e, index) => {
  17085. if (this.markScoretoolIndex == index) {
  17086. e.forEach((i, inx) => {
  17087. let mk = `markSco${index}${inx}`;
  17088. if (this.$refs[mk] && this.$refs[mk][0]) {
  17089. this.$refs[mk][0].getData();
  17090. }
  17091. });
  17092. }
  17093. });
  17094. done();
  17095. },
  17096. // 关闭txtMd预览弹框
  17097. handleCloseTxt(done) {
  17098. this.TxtMd = "";
  17099. done();
  17100. },
  17101. // Txt,Md作业查看
  17102. lookTxt(val) {
  17103. this.dialogVisibleTxt = true;
  17104. this.TxtMd = "";
  17105. getFile(val).then(res => {
  17106. this.TxtMd = res.data;
  17107. });
  17108. },
  17109. // 组件刷新
  17110. refreshAssembly(val) {
  17111. this.refreshKey++;
  17112. // console.log(this.refreshKey)
  17113. },
  17114. updateLoading(payload) {
  17115. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  17116. },
  17117. handleShow(toolIndex, val) {
  17118. let mk = `markSco${toolIndex}${val}`;
  17119. // console.log(mk);
  17120. this.$refs[mk][0].getData();
  17121. },
  17122. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  17123. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  17124. // console.log('this.AIloading',this.AIloading)
  17125. let jude = false;
  17126. this.AIloading.forEach((e, index) => {
  17127. if (index == tidx) {
  17128. e.forEach(k => {
  17129. if (k.loading == true) jude = true;
  17130. });
  17131. }
  17132. });
  17133. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17134. if (val) return;
  17135. // console.log(uname,worksStudent,uid,tidx,titlist)
  17136. this.markScoreTit = titlist;
  17137. this.markScoreUid = uid;
  17138. this.toolListS = toolList;
  17139. this.markScoretoolIndex = tidx;
  17140. this.markScoreworksStudent = worksStudent;
  17141. this.markfullscreen = false;
  17142. this.markScoreVisible = true;
  17143. if (this.tType == 1) {
  17144. this.insertMemorandum(
  17145. `查看<span class="variable">${uname}</span>的作业`
  17146. );
  17147. }
  17148. },
  17149. // 点击markScore显示评分框
  17150. markScoreDig(data) {
  17151. // console.log('data',data)
  17152. let jude = false;
  17153. this.AIloading.forEach((e, index) => {
  17154. if (index == data.val2) {
  17155. e.forEach(k => {
  17156. if (k.loading == true) jude = true;
  17157. });
  17158. }
  17159. });
  17160. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17161. this.markScoreTit = data.tit;
  17162. this.markScoreUid = data.val;
  17163. this.markScoretoolIndex = data.val2;
  17164. this.markfullscreen = false;
  17165. this.markScoreVisible = true;
  17166. this.insertMemorandum(
  17167. `查看<span class="variable">${data.uname}</span>的作业`
  17168. );
  17169. },
  17170. // 刷新其他组件分数
  17171. refreshOther(v) {
  17172. // console.log('v',v)
  17173. this.AIloading[v.tid].forEach((e, i) => {
  17174. if (i == v.wid) {
  17175. e.loading = false;
  17176. }
  17177. });
  17178. // this.worksStudent.forEach((e,index)=>{
  17179. // if(toolIndex != index){
  17180. // e.forEach((i,inx)=>{
  17181. // let mk = `markSco${index}${inx}`
  17182. // this.$refs[mk][0].getData()
  17183. // })
  17184. // }
  17185. // })
  17186. },
  17187. updateDocSco(payload) {
  17188. // console.log('payload',payload)
  17189. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  17190. },
  17191. gx() {
  17192. this.$forceUpdate();
  17193. },
  17194. isUpdateCorrect(t, p) {
  17195. if (this.greyType == false) {
  17196. this.isUpdateText = t;
  17197. this.greyType = true;
  17198. } else {
  17199. if (p == 1) {
  17200. this.newEnglishList.engText = this.isUpdateText;
  17201. } else if (p == 2) {
  17202. this.oldEnglishJson1.engText = this.isUpdateText;
  17203. } else if (p == 3) {
  17204. this.newEnglishList.engText = this.isUpdateText;
  17205. } else {
  17206. this.newEnglishList1[
  17207. this.newEngIndex
  17208. ].cWork.engText = this.isUpdateText;
  17209. }
  17210. this.greyType = false;
  17211. }
  17212. },
  17213. aiCorrect(t, p) {
  17214. let aiText = "";
  17215. const loading = this.$loading.service({
  17216. background: "rgba(255, 255, 255)",
  17217. target: document.querySelectorAll(".loadingText")[0]
  17218. });
  17219. let param = {
  17220. model: "gpt-3.5-turbo",
  17221. temperature: 0,
  17222. max_tokens: 2048,
  17223. top_p: 1,
  17224. frequency_penalty: 0,
  17225. presence_penalty: 0,
  17226. messages: [
  17227. {
  17228. role: "user",
  17229. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  17230. }
  17231. ],
  17232. uid: this.userid,
  17233. stream: false
  17234. };
  17235. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  17236. res => {
  17237. if (
  17238. res.data.FunctionResponse &&
  17239. res.data.FunctionResponse.result &&
  17240. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  17241. ) {
  17242. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  17243. return;
  17244. }
  17245. aiText = res.data.FunctionResponse.choices[0].message.content;
  17246. aiText = aiText.replace(/%/g, "%25");
  17247. // let w = "";
  17248. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  17249. // for(var k = 0;k<a.length;k++){
  17250. // //diffWordsWithSpace
  17251. // if(a.length > 1){
  17252. // if(a[k].added == true){
  17253. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  17254. // }else if(a[k].removed == true){
  17255. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  17256. // }else{
  17257. // w += '<span>' + a[k].value + '</span>';
  17258. // }
  17259. // }else{
  17260. // if(p == 1){
  17261. // w = this.newEnglishList.engText;
  17262. // }else if(p == 2){
  17263. // w = this.oldEnglishJson1.engText;
  17264. // }else if(p == 3){
  17265. // w = this.newEnglishList.engText;
  17266. // }else{
  17267. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  17268. // }
  17269. // }
  17270. // }
  17271. if (p == 1) {
  17272. this.newEnglishList.engText = aiText;
  17273. } else if (p == 2) {
  17274. this.oldEnglishJson1.engText = aiText;
  17275. } else if (p == 3) {
  17276. this.newEnglishList.engText = aiText;
  17277. } else {
  17278. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  17279. }
  17280. loading.close();
  17281. },
  17282. err => {
  17283. console.log(err);
  17284. loading.close();
  17285. }
  17286. );
  17287. },
  17288. addToolChoose() {
  17289. if (!this.checktoolArray.length) {
  17290. this.$message.error("请选择要添加的任务");
  17291. return;
  17292. }
  17293. if (
  17294. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17295. this.taskCount
  17296. ].toolChoose[0].tool.length
  17297. ) {
  17298. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17299. this.taskCount
  17300. ].toolChoose[0].tool = this.checktoolArray;
  17301. } else {
  17302. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17303. this.taskCount
  17304. ].toolChoose.push({
  17305. tool: this.checktoolArray,
  17306. toolDetail: "",
  17307. toolType: 0,
  17308. askCount: 1,
  17309. askTitle: "",
  17310. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  17311. });
  17312. }
  17313. let params = [
  17314. {
  17315. cid: this.id,
  17316. chapters: JSON.stringify(this.chapInfoList),
  17317. uid: this.userid,
  17318. unitIndex: this.courseType
  17319. }
  17320. ];
  17321. this.ajax
  17322. .post(this.$store.state.api + "updateWorkNew4", params)
  17323. .then(res => {
  17324. this.$message({
  17325. message: "添加成功",
  17326. type: "success"
  17327. });
  17328. this.checktoolArray = [];
  17329. this.getCourseDetail(2);
  17330. this.checkBz(
  17331. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17332. this.taskCount
  17333. ].toolChoose.length - 1
  17334. );
  17335. this.toolDialogVisible = false;
  17336. this.refreshCourse();
  17337. this.$forceUpdate();
  17338. })
  17339. .catch(err => {
  17340. console.error(err);
  17341. });
  17342. },
  17343. checkBz(index) {
  17344. this.isUpdateToolDetail = false;
  17345. this.$forceUpdate();
  17346. setTimeout(() => {
  17347. document.scrollingElement.scrollTop =
  17348. document.querySelectorAll(".filebox")[index].offsetTop +
  17349. document.querySelector(".student_body").offsetTop;
  17350. }, 500);
  17351. },
  17352. updateToolDetail(i, type) {
  17353. if (
  17354. !this.isUpdateToolDetail1 &&
  17355. type == 2 &&
  17356. (this.courseDetail.userid == this.userid ||
  17357. (this.courseDetail.course_teacher &&
  17358. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  17359. ) {
  17360. this.toolDetailIndex = i;
  17361. this.isUpdateToolDetail1 = true;
  17362. setTimeout(() => {
  17363. this.updateToolDetailInner = JSON.parse(
  17364. JSON.stringify(
  17365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17366. this.taskCount
  17367. ].toolChoose[i].toolDetail
  17368. )
  17369. );
  17370. document.querySelector(".checkTextArea").focus();
  17371. }, 0);
  17372. } else if (this.isUpdateToolDetail1 && type != 2) {
  17373. // this.toolDetailIndex = i;
  17374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17375. this.taskCount
  17376. ].toolChoose[i].toolDetail = JSON.parse(
  17377. JSON.stringify(this.updateToolDetailInner)
  17378. );
  17379. let params = [
  17380. {
  17381. cid: this.id,
  17382. chapters: JSON.stringify(this.chapInfoList),
  17383. uid: this.userid,
  17384. unitIndex: this.courseType
  17385. }
  17386. ];
  17387. this.ajax
  17388. .post(this.$store.state.api + "updateWorkNew4", params)
  17389. .then(res => {
  17390. this.isUpdateToolDetail1 = false;
  17391. this.$message({
  17392. message: "修改成功",
  17393. type: "success"
  17394. });
  17395. this.toolDetailIndex = null;
  17396. this.updateToolDetailInner = "";
  17397. this.getCourseDetail(2);
  17398. this.$forceUpdate();
  17399. })
  17400. .catch(err => {
  17401. console.error(err);
  17402. });
  17403. } else if (this.isUpdateToolDetail1 && type == 2) {
  17404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17405. this.taskCount
  17406. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17407. JSON.stringify(this.updateToolDetailInner)
  17408. );
  17409. let params = [
  17410. {
  17411. cid: this.id,
  17412. chapters: JSON.stringify(this.chapInfoList),
  17413. uid: this.userid,
  17414. unitIndex: this.courseType
  17415. }
  17416. ];
  17417. this.ajax
  17418. .post(this.$store.state.api + "updateWorkNew4", params)
  17419. .then(res => {
  17420. this.$message({
  17421. message: "修改成功",
  17422. type: "success"
  17423. });
  17424. this.toolDetailIndex = i;
  17425. this.isUpdateToolDetail1 = true;
  17426. setTimeout(() => {
  17427. this.updateToolDetailInner = JSON.parse(
  17428. JSON.stringify(
  17429. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17430. this.taskCount
  17431. ].toolChoose[i].toolDetail
  17432. )
  17433. );
  17434. document.querySelector(".checkTextArea").focus();
  17435. }, 0);
  17436. this.getCourseDetail(2);
  17437. this.$forceUpdate();
  17438. })
  17439. .catch(err => {
  17440. console.error(err);
  17441. });
  17442. }
  17443. },
  17444. jumpGj(i, j, k, l) {
  17445. this.refreshAssembly();
  17446. for (var z = 0; z < this.navList.length; z++) {
  17447. for (var q = 0; q < this.navList[z].task.length; q++) {
  17448. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17449. this.navList[z].task[q].tool[w].isTool = false;
  17450. }
  17451. }
  17452. }
  17453. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  17454. .isTool;
  17455. var a = document.scrollingElement;
  17456. let target = document.querySelector(`#gj${k}`);
  17457. if (target) {
  17458. // target.scrollIntoView(true);
  17459. // setTimeout(() => {
  17460. // a.scrollTop = a.scrollTop - 150;
  17461. // }, 0);
  17462. target.scrollIntoView();
  17463. setTimeout(()=>{
  17464. let scrollBody = document.querySelector('.body_student').parentElement
  17465. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17466. }, 0);
  17467. }
  17468. this.navId = "";
  17469. let flag = this.courseType == i;
  17470. let flag2 = this.taskCount == j;
  17471. if (l) {
  17472. this.courseType = i;
  17473. // this.navId = l;
  17474. this.taskCount = j;
  17475. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17476. this.selectPz();
  17477. this.getHomeWork();
  17478. this.getCourseDetail(2);
  17479. if (flag) {
  17480. if (flag2) {
  17481. this.insertMemorandum(
  17482. `选择<span class="variable">工具${k + 1}:${
  17483. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17484. }</span>`
  17485. );
  17486. } else {
  17487. this.insertMemorandum(
  17488. `选择<span class="variable">任务${j + 1}${
  17489. this.navList[i].task[j].taskName
  17490. ? ":" + this.navList[i].task[j].taskName
  17491. : ""
  17492. }</span>→<span class="variable">工具${k + 1}:${
  17493. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17494. }</span>`
  17495. );
  17496. }
  17497. } else {
  17498. this.insertMemorandum(
  17499. `选择<span class="variable">阶段${i + 1}${
  17500. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  17501. }</span>→<span class="variable">任务${j + 1}${
  17502. this.navList[i].task[j].taskName
  17503. ? ":" + this.navList[i].task[j].taskName
  17504. : ""
  17505. }</span>→<span class="variable">工具${k + 1}:${
  17506. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17507. }</span>`
  17508. );
  17509. }
  17510. }
  17511. },
  17512. addTools2(i) {
  17513. if (i == 4) {
  17514. // this.openTools2(4);
  17515. this.$message.error("暂未开放");
  17516. return;
  17517. }
  17518. if (i == 45) {
  17519. // this.openTools2(45);
  17520. this.$message.error("暂未开放");
  17521. return;
  17522. }
  17523. if (i == 47) {
  17524. // this.openTools2(47);
  17525. this.$message.error("暂未开放");
  17526. return;
  17527. }
  17528. if (i == 49) {
  17529. // this.openTools2(49);
  17530. this.$message.error("暂未开放");
  17531. return;
  17532. }
  17533. if (i == 62) {
  17534. // this.openTools(itemTaskIndex, 62, toolIndex);
  17535. this.$message.error("暂未开放");
  17536. return;
  17537. }
  17538. if (i == 15) {
  17539. // this.openTools(itemTaskIndex, 15, toolIndex);
  17540. this.$message.error("暂未开放");
  17541. return;
  17542. }
  17543. if (i == 40) {
  17544. // this.openTools(itemTaskIndex, 40, toolIndex);
  17545. this.$message.error("暂未开放");
  17546. return;
  17547. }
  17548. if (i == 41) {
  17549. // this.openTools(itemTaskIndex, 41, toolIndex);
  17550. this.$message.error("暂未开放");
  17551. return;
  17552. }
  17553. if (i == 42) {
  17554. // this.openTools(itemTaskIndex, 42, toolIndex);
  17555. this.$message.error("暂未开放");
  17556. return;
  17557. }
  17558. if (this.checktoolArray.length > 0) {
  17559. if (this.checktoolArray.indexOf(i) != -1) {
  17560. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17561. } else {
  17562. this.checktoolArray = [];
  17563. this.checktoolArray.push(i);
  17564. }
  17565. } else {
  17566. this.checktoolArray.push(i);
  17567. }
  17568. this.$forceUpdate();
  17569. },
  17570. jump() {
  17571. window.topU.postMessage({ tools: "43" }, "*");
  17572. },
  17573. getUpdateMore(f, checkboxList, searchTN, index) {
  17574. this.dialogVisibleMember = f;
  17575. this.checkboxList = checkboxList;
  17576. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17577. this.plIndex = index;
  17578. },
  17579. setPlname(a) {
  17580. if (this.plworkFile.length) {
  17581. this.plworkFile[this.plIndex].username = a;
  17582. } else {
  17583. this.worksSName = a;
  17584. }
  17585. this.dialogVisibleMember = false;
  17586. },
  17587. previewImg(url, w) {
  17588. this.$hevueImgPreview(url);
  17589. if (w) {
  17590. this.insertMemorandum(
  17591. `查看<span class="variable">${w.sName}</span>的作业`
  17592. );
  17593. }
  17594. },
  17595. checkImg(list) {
  17596. if (!list.length) {
  17597. return;
  17598. }
  17599. this.$hevueImgPreview({
  17600. multiple: true, // 开启多图预览模式
  17601. imgList: list // 需要预览的多图数组
  17602. });
  17603. },
  17604. change(val) {
  17605. console.log(val);
  17606. },
  17607. goTo(path) {
  17608. this.$router.push(path);
  17609. },
  17610. handlePictureCardPreview(url) {
  17611. this.dialogImageUrl = url;
  17612. this.pictureDialog = true;
  17613. },
  17614. clean(type) {
  17615. if (type == 1) {
  17616. this.studyJuri[0].cover.splice(0, 1);
  17617. } else if (type == 2) {
  17618. this.studyJuri[0].upVedio.splice(0, 1);
  17619. } else {
  17620. this.studyJuri[0].upFile.splice(0, 1);
  17621. }
  17622. },
  17623. clean2(index) {
  17624. this.plworkFile.splice(index, 1);
  17625. },
  17626. handleClose(done) {
  17627. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17628. this.videoDetail.sources[0].src = "";
  17629. }
  17630. this.commentIndexJson = {};
  17631. done();
  17632. },
  17633. fullTools() {
  17634. this.full = !this.full;
  17635. },
  17636. imgChange(file, fileList, type) {
  17637. if (type == 1) {
  17638. var _tmp = this.studyJuri[0].cover;
  17639. } else if (type == 2) {
  17640. var _tmp = this.studyJuri[0].upVedio;
  17641. } else {
  17642. var _tmp = this.studyJuri[0].upFile;
  17643. }
  17644. this.noneBtnImg = _tmp.length >= 1;
  17645. },
  17646. setContent(bool) {
  17647. this.contentDialog = bool;
  17648. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17649. document.querySelector(".workd_media").style.height = "650px";
  17650. } else if (document.querySelector(".workd_media")) {
  17651. document.querySelector(".workd_media").style.height = "auto";
  17652. }
  17653. },
  17654. setContent2(bool) {
  17655. this.mlDialog = bool;
  17656. if (
  17657. bool &&
  17658. this.contentDialog &&
  17659. document.querySelector(".workd_media")
  17660. ) {
  17661. document.querySelector(".workd_media").style.height = "650px";
  17662. } else if (document.querySelector(".workd_media")) {
  17663. document.querySelector(".workd_media").style.height = "auto";
  17664. }
  17665. },
  17666. openToolAll() {
  17667. this.toolDialogVisible = true;
  17668. },
  17669. addImg(e) {
  17670. var el = e.currentTarget;
  17671. // this.$message.success('触发上传')
  17672. el.getElementsByTagName("input")[0].click();
  17673. e.target.value = "";
  17674. },
  17675. addSelectAnswer() {
  17676. let params = [
  17677. {
  17678. uid: this.userid,
  17679. cid: this.id,
  17680. stage: this.courseType,
  17681. task: this.taskCount,
  17682. tool: this.toolindex,
  17683. content: this.selectAnswer.answer,
  17684. type: 7
  17685. }
  17686. ];
  17687. this.ajax
  17688. .post(this.$store.state.api + "addCourseWorks", params)
  17689. .then(res => {
  17690. this.$message({
  17691. message: "提交成功",
  17692. type: "success"
  17693. });
  17694. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17695. this.dialogVisibleSelect = false;
  17696. // this.selectAnswer = {};
  17697. this.selectSWorks();
  17698. this.selectStudent();
  17699. })
  17700. .catch(err => {
  17701. this.$message.error("提交失败");
  17702. console.error(err);
  17703. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17704. });
  17705. },
  17706. addSelectAnswerTeacher() {
  17707. let params = [
  17708. {
  17709. uid: this.sStudent.userid,
  17710. cid: this.id,
  17711. stage: this.courseType,
  17712. task: this.taskCount,
  17713. tool: this.toolindex,
  17714. content: this.selectAnswer.answer,
  17715. type: 7
  17716. }
  17717. ];
  17718. this.ajax
  17719. .post(this.$store.state.api + "addCourseWorks", params)
  17720. .then(res => {
  17721. this.$message({
  17722. message: "提交成功",
  17723. type: "success"
  17724. });
  17725. this.dialogVisibleSelectTeacher = false;
  17726. // this.selectAnswer = {};
  17727. this.selectSWorks();
  17728. this.selectStudent();
  17729. })
  17730. .catch(err => {
  17731. this.$message.error("提交失败");
  17732. console.error(err);
  17733. });
  17734. },
  17735. addSenWorks() {
  17736. for (var i = 0; i < this.sentenceList.length; i++) {
  17737. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17738. if (
  17739. this.sentenceList[i].chooseSenList[j] == undefined ||
  17740. this.sentenceList[i].chooseSenList[j] == ""
  17741. ) {
  17742. this.$message.error("请将答案填写完整!");
  17743. return;
  17744. }
  17745. }
  17746. }
  17747. let params = [
  17748. {
  17749. uid: this.userid,
  17750. cid: this.id,
  17751. stage: this.courseType,
  17752. task: this.taskCount,
  17753. tool: this.toolindex,
  17754. content: JSON.stringify(this.sentenceList),
  17755. type: 9
  17756. }
  17757. ];
  17758. this.ajax
  17759. .post(this.$store.state.api + "addCourseWorks", params)
  17760. .then(res => {
  17761. this.$message({
  17762. message: "提交成功",
  17763. type: "success"
  17764. });
  17765. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17766. this.dialogVisibleSentence = false;
  17767. // this.selectAnswer = {};
  17768. this.selectSWorks();
  17769. this.selectStudent();
  17770. })
  17771. .catch(err => {
  17772. this.$message.error("提交失败");
  17773. console.error(err);
  17774. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17775. });
  17776. },
  17777. addSenWorksTeacher() {
  17778. for (var i = 0; i < this.sentenceList.length; i++) {
  17779. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17780. if (
  17781. this.sentenceList[i].chooseSenList[j] == undefined ||
  17782. this.sentenceList[i].chooseSenList[j] == ""
  17783. ) {
  17784. this.$message.error("请将答案填写完整!");
  17785. return;
  17786. }
  17787. }
  17788. }
  17789. let params = [
  17790. {
  17791. uid: this.sStudent.userid,
  17792. cid: this.id,
  17793. stage: this.courseType,
  17794. task: this.taskCount,
  17795. tool: this.toolindex,
  17796. content: JSON.stringify(this.sentenceList),
  17797. type: 9
  17798. }
  17799. ];
  17800. this.ajax
  17801. .post(this.$store.state.api + "addCourseWorks", params)
  17802. .then(res => {
  17803. this.$message({
  17804. message: "提交成功",
  17805. type: "success"
  17806. });
  17807. this.dialogVisibleSentenceTeacher = false;
  17808. // this.selectAnswer = {};
  17809. this.selectSWorks();
  17810. this.selectStudent();
  17811. })
  17812. .catch(err => {
  17813. this.$message.error("提交失败");
  17814. console.error(err);
  17815. });
  17816. },
  17817. returnTableText() {
  17818. this.$confirm("确定还原此模板吗?", "提示", {
  17819. confirmButtonText: "确定",
  17820. cancelButtonText: "取消",
  17821. type: "warning"
  17822. })
  17823. .then(() => {
  17824. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17825. })
  17826. .catch(() => {});
  17827. },
  17828. addTableWorks() {
  17829. let params = [
  17830. {
  17831. uid: this.userid,
  17832. cid: this.id,
  17833. stage: this.courseType,
  17834. task: this.taskCount,
  17835. tool: this.toolindex,
  17836. content: JSON.stringify(this.tableJson),
  17837. type: 10
  17838. }
  17839. ];
  17840. this.ajax
  17841. .post(this.$store.state.api + "addCourseWorks", params)
  17842. .then(res => {
  17843. this.$message({
  17844. message: "提交成功",
  17845. type: "success"
  17846. });
  17847. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17848. this.dialogVisibleTable = false;
  17849. // this.selectAnswer = {};
  17850. this.selectSWorks();
  17851. this.selectStudent();
  17852. })
  17853. .catch(err => {
  17854. this.$message.error("提交失败");
  17855. console.error(err);
  17856. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17857. });
  17858. },
  17859. tableRowClassName({ row, rowIndex }) {
  17860. if ((rowIndex + 1) % 2 === 0) {
  17861. return "even_row";
  17862. } else {
  17863. return "";
  17864. }
  17865. },
  17866. addTableWorksTeacher() {
  17867. let params = [
  17868. {
  17869. uid: this.sStudent.userid,
  17870. cid: this.id,
  17871. stage: this.courseType,
  17872. task: this.taskCount,
  17873. tool: this.toolindex,
  17874. content: JSON.stringify(this.tableJson),
  17875. type: 10
  17876. }
  17877. ];
  17878. this.ajax
  17879. .post(this.$store.state.api + "addCourseWorks", params)
  17880. .then(res => {
  17881. this.$message({
  17882. message: "提交成功",
  17883. type: "success"
  17884. });
  17885. this.dialogVisibleTableTeacher = false;
  17886. // this.selectAnswer = {};
  17887. this.selectSWorks();
  17888. this.selectStudent();
  17889. })
  17890. .catch(err => {
  17891. this.$message.error("提交失败");
  17892. console.error(err);
  17893. });
  17894. },
  17895. returnWordText() {
  17896. this.$confirm("确定还原此模板吗?", "提示", {
  17897. confirmButtonText: "确定",
  17898. cancelButtonText: "取消",
  17899. type: "warning"
  17900. })
  17901. .then(() => {
  17902. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17903. })
  17904. .catch(() => {});
  17905. },
  17906. addWordWorks() {
  17907. let params = [
  17908. {
  17909. uid: this.userid,
  17910. cid: this.id,
  17911. stage: this.courseType,
  17912. task: this.taskCount,
  17913. tool: this.toolindex,
  17914. content: JSON.stringify(this.wordJson),
  17915. type: 13,
  17916. atool: 52
  17917. }
  17918. ];
  17919. this.ajax
  17920. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17921. .then(res => {
  17922. this.$message({
  17923. message: "提交成功",
  17924. type: "success"
  17925. });
  17926. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17927. this.dialogVisibleWord = false;
  17928. // this.selectAnswer = {};
  17929. this.selectSWorks();
  17930. this.selectStudent();
  17931. })
  17932. .catch(err => {
  17933. this.$message.error("提交失败");
  17934. console.error(err);
  17935. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17936. });
  17937. },
  17938. addWordWorksTeacher() {
  17939. let params = [
  17940. {
  17941. uid: this.sStudent.userid,
  17942. cid: this.id,
  17943. stage: this.courseType,
  17944. task: this.taskCount,
  17945. tool: this.toolindex,
  17946. content: JSON.stringify(this.wordJson),
  17947. type: 13,
  17948. atool: 52
  17949. }
  17950. ];
  17951. this.ajax
  17952. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17953. .then(res => {
  17954. this.$message({
  17955. message: "提交成功",
  17956. type: "success"
  17957. });
  17958. this.dialogVisibleWordTeacher = false;
  17959. // this.selectAnswer = {};
  17960. this.selectSWorks();
  17961. this.selectStudent();
  17962. })
  17963. .catch(err => {
  17964. this.$message.error("提交失败");
  17965. console.error(err);
  17966. });
  17967. },
  17968. addCourseWorksCopy(i) {
  17969. let arr = this.workStudent[this.toolindex].filter(e => {
  17970. return (e.userid = this.userid);
  17971. });
  17972. if (arr.length > 0) {
  17973. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17974. confirmButtonText: "确定",
  17975. cancelButtonText: "取消",
  17976. type: "warning"
  17977. })
  17978. .then(() => {
  17979. this.addCourseWorks(i);
  17980. })
  17981. .catch(() => {});
  17982. } else {
  17983. this.addCourseWorks(i);
  17984. }
  17985. },
  17986. addCourseWorks(i) {
  17987. var typesql;
  17988. if (this.fileType === 0) {
  17989. typesql = 1;
  17990. } else if (this.fileType === 1) {
  17991. typesql = 4;
  17992. } else if (this.fileType === 2) {
  17993. typesql = 5;
  17994. } else if (this.fileType === 3) {
  17995. typesql = 12;
  17996. }
  17997. if (!this.studyJuri[0].cover[0].url) {
  17998. this.$message.error("请上传文件");
  17999. return;
  18000. }
  18001. let params = [
  18002. {
  18003. uid: this.userid,
  18004. cid: this.id,
  18005. stage: this.courseType,
  18006. task: i,
  18007. tool: this.toolindex,
  18008. content: this.studyJuri[0].cover[0].url,
  18009. type: typesql
  18010. }
  18011. ];
  18012. this.ajax
  18013. .post(this.$store.state.api + "addCourseWorksR1", params)
  18014. .then(res => {
  18015. this.$message({
  18016. message: "提交成功",
  18017. type: "success"
  18018. });
  18019. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  18020. this.studyJuri[0].cover = [];
  18021. this.dialogVisible = false;
  18022. this.getCourseDetail(2);
  18023. })
  18024. .catch(err => {
  18025. this.$message.error("提交失败");
  18026. console.error(err);
  18027. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  18028. });
  18029. },
  18030. addCourseWorksPl(i) {
  18031. let _files = this.plworkFile;
  18032. var c = 1;
  18033. for (var k = 0; k < _files.length; k++) {
  18034. if (!_files[k].username) {
  18035. c = 2;
  18036. }
  18037. }
  18038. if (c == 2) {
  18039. this.$message.error("请填写学生姓名");
  18040. return;
  18041. }
  18042. let params = [
  18043. {
  18044. ateacher: this.userid,
  18045. cid: this.id,
  18046. stage: this.courseType,
  18047. task: i,
  18048. tool: this.toolindex,
  18049. content: JSON.stringify(_files)
  18050. }
  18051. ];
  18052. this.ajax
  18053. .post(this.$store.state.api + "addCourseWorksPl", params)
  18054. .then(res => {
  18055. this.$message({
  18056. message: "提交成功",
  18057. type: "success"
  18058. });
  18059. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  18060. this.plworkFile = [];
  18061. this.dialogVisiblePl = false;
  18062. this.getCourseDetail(2);
  18063. })
  18064. .catch(err => {
  18065. this.$message.error("提交失败");
  18066. console.error(err);
  18067. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  18068. });
  18069. },
  18070. addCourseWorks2(i) {
  18071. var typesql;
  18072. if (this.fileType === 0) {
  18073. typesql = 0;
  18074. } else if (this.fileType === 1) {
  18075. typesql = 1;
  18076. } else if (this.fileType === 2) {
  18077. typesql = 3;
  18078. } else if (this.fileType === 3) {
  18079. typesql = 12;
  18080. }
  18081. if (!this.studyJuri[0].cover[0].url) {
  18082. this.$message.error("请上传文件");
  18083. return;
  18084. }
  18085. let params = [
  18086. {
  18087. uid: this.userid,
  18088. cid: this.id,
  18089. stage: this.courseType,
  18090. task: i,
  18091. tool: this.toolindex,
  18092. content: JSON.stringify({
  18093. type: typesql,
  18094. groupIndex: this.groupIndex,
  18095. url: this.studyJuri[0].cover[0].url
  18096. }),
  18097. type: 11,
  18098. atool: 49,
  18099. text: ""
  18100. }
  18101. ];
  18102. this.ajax
  18103. .post(this.$store.state.api + "addCourseWorks5", params)
  18104. .then(res => {
  18105. this.$message({
  18106. message: "提交成功",
  18107. type: "success"
  18108. });
  18109. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18110. type: typesql,
  18111. groupIndex: this.groupIndex,
  18112. url: this.studyJuri[0].cover[0].url,
  18113. }),type: "course_tool_sub" }, "success")
  18114. this.studyJuri[0].cover = [];
  18115. this.dialogVisibleGroupWork = false;
  18116. this.getCourseDetail(2);
  18117. })
  18118. .catch(err => {
  18119. this.$message.error("提交失败");
  18120. console.error(err);
  18121. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18122. type: typesql,
  18123. groupIndex: this.groupIndex,
  18124. url: this.studyJuri[0].cover[0].url,
  18125. }),type: "course_tool_sub" }, err)
  18126. });
  18127. },
  18128. addEnglishWork() {
  18129. this.myAnList = this.$refs["engJson"].myAnswerList;
  18130. if (
  18131. !this.myAnList.engTitle ||
  18132. !this.myAnList.engText ||
  18133. this.myAnList.engTitle == "" ||
  18134. this.myAnList.engText == ""
  18135. ) {
  18136. this.$message.error("请输入作文标题和正文!");
  18137. return;
  18138. }
  18139. let params = [
  18140. {
  18141. uid: this.userid,
  18142. cid: this.id,
  18143. stage: this.courseType,
  18144. task: this.taskCount,
  18145. tool: this.englishToolIndex,
  18146. content: JSON.stringify(this.myAnList),
  18147. type: 16,
  18148. atool: 69,
  18149. text: ""
  18150. }
  18151. ];
  18152. this.ajax
  18153. .post(this.$store.state.api + "addCourseWorks5", params)
  18154. .then(res => {
  18155. this.$message({
  18156. message: "提交成功",
  18157. type: "success"
  18158. });
  18159. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18160. data: JSON.stringify(this.myAnList),
  18161. type: "course_tool_sub" }, "success")
  18162. this.myAnList = {};
  18163. this.englishList = {};
  18164. this.englishToolIndex = 0;
  18165. this.engDialogVisible = false;
  18166. this.selectSWorks();
  18167. this.selectStudent();
  18168. })
  18169. .catch(err => {
  18170. this.$message.error("提交失败");
  18171. console.error(err);
  18172. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18173. data: JSON.stringify(this.myAnList),
  18174. type: "course_tool_sub" }, err)
  18175. });
  18176. },
  18177. addCourseWorksGong(i, data, tool) {
  18178. let params = [
  18179. {
  18180. uid: this.userid,
  18181. cid: this.id,
  18182. stage: this.courseType,
  18183. task: this.taskCount,
  18184. tool: i,
  18185. content: data,
  18186. type: 12,
  18187. atool: tool,
  18188. text: ""
  18189. }
  18190. ];
  18191. this.ajax
  18192. .post(this.$store.state.api + "addCourseWorks5", params)
  18193. .then(res => {
  18194. this.$message({
  18195. message: "提交成功",
  18196. type: "success"
  18197. });
  18198. this.studyJuri[0].cover = [];
  18199. this.selectSWorks();
  18200. this.selectStudent();
  18201. })
  18202. .catch(err => {
  18203. this.$message.error("提交失败");
  18204. console.error(err);
  18205. });
  18206. },
  18207. addCourseWorksGongTeacher(i, data, tool) {
  18208. let params = [
  18209. {
  18210. uid: this.sStudent.userid,
  18211. cid: this.id,
  18212. stage: this.courseType,
  18213. task: this.taskCount,
  18214. tool: i,
  18215. content: data,
  18216. type: 12,
  18217. atool: tool,
  18218. text: ""
  18219. }
  18220. ];
  18221. this.ajax
  18222. .post(this.$store.state.api + "addCourseWorks5", params)
  18223. .then(res => {
  18224. this.$message({
  18225. message: "提交成功",
  18226. type: "success"
  18227. });
  18228. this.studyJuri[0].cover = [];
  18229. this.dialogVisibleWorks = false;
  18230. this.selectSWorks();
  18231. this.selectStudent();
  18232. })
  18233. .catch(err => {
  18234. this.$message.error("提交失败");
  18235. console.error(err);
  18236. });
  18237. },
  18238. addCourseWorksGongPl(i, data, tool, type) {
  18239. let params = [
  18240. {
  18241. uid: this.sStudent.userid,
  18242. cid: this.id,
  18243. stage: this.courseType,
  18244. task: this.taskCount,
  18245. tool: i,
  18246. content: data,
  18247. type: type,
  18248. atool: tool,
  18249. text: ""
  18250. }
  18251. ];
  18252. this.ajax
  18253. .post(this.$store.state.api + "addCourseWorks5", params)
  18254. .then(res => {
  18255. this.$message({
  18256. message: "提交成功",
  18257. type: "success"
  18258. });
  18259. this.studyJuri[0].cover = [];
  18260. this.dialogVisibleWorks = false;
  18261. this.selectSWorks();
  18262. this.selectStudent();
  18263. })
  18264. .catch(err => {
  18265. this.$message.error("提交失败");
  18266. console.error(err);
  18267. });
  18268. },
  18269. addCourseWorksTeacher(i) {
  18270. var typesql;
  18271. if (this.sTool == 32) {
  18272. this.addCourseWorksGongTeacher(
  18273. this.toolindex,
  18274. this.studyJuri[0].cover[0].url,
  18275. this.sTool
  18276. );
  18277. return;
  18278. }
  18279. if (this.fileType === 0) {
  18280. typesql = 1;
  18281. } else if (this.fileType === 1) {
  18282. typesql = 4;
  18283. } else if (this.fileType === 2) {
  18284. typesql = 5;
  18285. } else if (this.fileType === 3) {
  18286. typesql = 12;
  18287. }
  18288. if (this.sTool == 50) {
  18289. this.addCourseWorksGongPl(
  18290. this.toolindex,
  18291. this.studyJuri[0].cover[0].url,
  18292. this.sTool,
  18293. typesql
  18294. );
  18295. return;
  18296. }
  18297. if (!this.studyJuri[0].cover[0].url) {
  18298. this.$message.error("请上传文件");
  18299. return;
  18300. }
  18301. let params = [
  18302. {
  18303. uid: this.sStudent.userid,
  18304. cid: this.id,
  18305. stage: this.courseType,
  18306. task: i,
  18307. tool: this.toolindex,
  18308. content: this.studyJuri[0].cover[0].url,
  18309. type: typesql,
  18310. ateacher: this.userid
  18311. }
  18312. ];
  18313. this.ajax
  18314. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18315. .then(res => {
  18316. this.$message({
  18317. message: "提交成功",
  18318. type: "success"
  18319. });
  18320. this.studyJuri[0].cover = [];
  18321. this.dialogVisibleWorks = false;
  18322. this.getCourseDetail(2);
  18323. })
  18324. .catch(err => {
  18325. this.$message.error("提交失败");
  18326. console.error(err);
  18327. });
  18328. },
  18329. selectUploadStudent(type) {
  18330. const loading = this.$loading.service({
  18331. background: "rgba(255, 255, 255, 0.7)",
  18332. target: document.body
  18333. });
  18334. let params = {
  18335. cid: this.uploadCid,
  18336. oid: this.oid,
  18337. cn: ""
  18338. };
  18339. this.ajax
  18340. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18341. .then(res => {
  18342. loading.close();
  18343. var studentK = [];
  18344. if (this.isWorksS[this.toolindex].length > 0) {
  18345. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18346. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18347. }
  18348. studentK = studentK.join(",");
  18349. }
  18350. this.uploadStudentJuri = res.data[0].filter(el => {
  18351. return studentK.indexOf(el.userid) == -1;
  18352. });
  18353. if (this.worksSName && this.worksSid) {
  18354. this.uploadStudentJuri.push({
  18355. userid: this.worksSid,
  18356. name: this.worksSName
  18357. });
  18358. }
  18359. if (type == 1) {
  18360. this.plworkFile = [];
  18361. this.dialogVisibleSname = true;
  18362. } else if (type == 2) {
  18363. this.dialogVisiblePl = true;
  18364. }
  18365. })
  18366. .catch(err => {
  18367. loading.close();
  18368. console.error(err);
  18369. });
  18370. },
  18371. selectPickStudent() {
  18372. const loading = this.$loading.service({
  18373. background: "rgba(255, 255, 255, 0.7)",
  18374. target: document.body
  18375. });
  18376. let params = {
  18377. cid: this.uploadCid,
  18378. oid: this.oid,
  18379. cn: ""
  18380. };
  18381. this.ajax
  18382. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18383. .then(res => {
  18384. loading.close();
  18385. this.uploadStudentJuri = res.data[0];
  18386. this.dialogVisiblePickPeople = true;
  18387. })
  18388. .catch(err => {
  18389. loading.close();
  18390. console.error(err);
  18391. });
  18392. },
  18393. arrayToArray(arrayo, arrayt) {
  18394. let array1 = arrayo;
  18395. let array2 = arrayt;
  18396. let commonElements = [];
  18397. for (let i = 0; i < array1.length; i++) {
  18398. for (let j = 0; j < array2.length; j++) {
  18399. if (array1[i] === array2[j]) {
  18400. commonElements.push(array1[i]);
  18401. }
  18402. }
  18403. }
  18404. return commonElements;
  18405. },
  18406. selectWorksStudent() {
  18407. let params = {
  18408. oid: this.oid,
  18409. cid: this.courseDetail.juri
  18410. };
  18411. this.ajax
  18412. .get(this.$store.state.api + "selectWorksStudent", params)
  18413. .then(res => {
  18414. var a = res.data[0];
  18415. for (var i = 0; i < this.isWorksS.length; i++) {
  18416. this.noWorksS[i] = [];
  18417. var studentK = [];
  18418. if (this.isWorksS[i].length > 0) {
  18419. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18420. studentK.push(this.isWorksS[i][z].uid);
  18421. }
  18422. studentK = studentK.join(",");
  18423. for (var j = 0; j < a.length; j++) {
  18424. if (studentK.indexOf(a[j].userid) == -1) {
  18425. if (this.tcid) {
  18426. // a[j].classid.indexOf(this.tcid) != -1
  18427. if (
  18428. this.arrayToArray(
  18429. a[j].classid.split(","),
  18430. this.tcid.split(",")
  18431. ).length
  18432. ) {
  18433. this.noWorksS[i].push({
  18434. student: a[j].name,
  18435. userid: a[j].userid
  18436. });
  18437. }
  18438. } else {
  18439. this.noWorksS[i].push({
  18440. student: a[j].name,
  18441. userid: a[j].userid
  18442. });
  18443. }
  18444. }
  18445. }
  18446. } else {
  18447. for (var k = 0; k < a.length; k++) {
  18448. if (this.tcid) {
  18449. if (
  18450. this.arrayToArray(
  18451. a[k].classid.split(","),
  18452. this.tcid.split(",")
  18453. ).length
  18454. ) {
  18455. this.noWorksS[i].push({
  18456. student: a[k].name,
  18457. userid: a[k].userid
  18458. });
  18459. }
  18460. } else {
  18461. this.noWorksS[i].push({
  18462. student: a[k].name,
  18463. userid: a[k].userid
  18464. });
  18465. }
  18466. }
  18467. }
  18468. }
  18469. this.$forceUpdate();
  18470. if (
  18471. Object.keys(this.commentDetail).length &&
  18472. Object.keys(this.commentIndexJson).length &&
  18473. !this.dialogVisibleScore &&
  18474. !this.dialogVisibleENScore
  18475. ) {
  18476. let a = 1;
  18477. let c = this.commentIndexJson;
  18478. if (
  18479. this.commentIndexJson.gindex ||
  18480. this.commentIndexJson.gindex === 0
  18481. ) {
  18482. for (
  18483. var i = 0;
  18484. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18485. i++
  18486. ) {
  18487. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18488. groupA: for (var k = 0; k < _el.length; k++) {
  18489. let el = _el[k];
  18490. if (el.wid == this.commentDetail.wid) {
  18491. a = 2;
  18492. this.commentOther(
  18493. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18494. this.commentIndexJson.toolIndex,
  18495. k,
  18496. this.commentIndexJson.gindex
  18497. );
  18498. break groupA;
  18499. }
  18500. }
  18501. }
  18502. if (a === 1) {
  18503. this.commentDetail = [];
  18504. this.commentIndexJson = {};
  18505. this.commentDialogVisible = false;
  18506. this.$message("此作业已被删除");
  18507. }
  18508. } else {
  18509. if (this.isGroup && this.commentIndexJson.gid) {
  18510. groupA: for (
  18511. var i = 0;
  18512. i < this.courseGroup.group.length;
  18513. i++
  18514. ) {
  18515. let _group = this.courseGroup.group[i];
  18516. if (_group.id == this.commentIndexJson.gid) {
  18517. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18518. for (var k = 0; k < _el2.length; k++) {
  18519. let el2 = _el2[k];
  18520. if (el2.wid == this.commentDetail.wid) {
  18521. a = 2;
  18522. this.commentOther(
  18523. _el2[k],
  18524. this.commentIndexJson.toolIndex,
  18525. k,
  18526. null,
  18527. this.commentIndexJson.gid
  18528. );
  18529. break groupA;
  18530. }
  18531. }
  18532. }
  18533. }
  18534. }
  18535. if (a == 1) {
  18536. for (
  18537. var i = 0;
  18538. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18539. i++
  18540. ) {
  18541. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  18542. i
  18543. ];
  18544. if (el.wid == this.commentDetail.wid) {
  18545. a = 2;
  18546. this.commentOther(
  18547. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18548. this.commentIndexJson.toolIndex,
  18549. i
  18550. );
  18551. break;
  18552. }
  18553. }
  18554. }
  18555. if (a === 1) {
  18556. this.commentDetail = [];
  18557. this.commentIndexJson = {};
  18558. this.commentDialogVisible = false;
  18559. this.$message("此作业已被删除");
  18560. }
  18561. }
  18562. }
  18563. })
  18564. .catch(err => {
  18565. console.error(err);
  18566. });
  18567. },
  18568. selectStudent() {
  18569. //学生查看自己作业
  18570. let params = {
  18571. uid: this.userid,
  18572. cid: this.id,
  18573. s: this.courseType,
  18574. t: this.taskCount
  18575. };
  18576. this.ajax
  18577. .get(this.$store.state.api + "selectStudentWorks", params)
  18578. .then(res => {
  18579. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18580. this.taskCount
  18581. ].toolChoose;
  18582. var b = res.data[0];
  18583. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18584. var y = [
  18585. "AVI",
  18586. "NAVI",
  18587. "MPEG",
  18588. "ASF",
  18589. "MOV",
  18590. "WMV",
  18591. "3GP",
  18592. "RM",
  18593. "RMVB",
  18594. "FLV",
  18595. "F4V",
  18596. "H.264",
  18597. "H.265",
  18598. "REAL VIDEO",
  18599. "MKV",
  18600. "WebM",
  18601. "HDDVD",
  18602. "MP4",
  18603. "MPG",
  18604. "M4V",
  18605. "MGV",
  18606. "OGV",
  18607. "QTM",
  18608. "STR",
  18609. "AMC",
  18610. "DVX",
  18611. "EVO",
  18612. "DAT",
  18613. "OGG",
  18614. "OGM"
  18615. ];
  18616. for (var i = 0; i < a.length; i++) {
  18617. this.workStudent[i] = [];
  18618. for (var j = 0; j < b.length; j++) {
  18619. if (i == b[j].tool) {
  18620. if (
  18621. (b[j].type == 1 ||
  18622. b[j].type == 4 ||
  18623. b[j].type == 5 ||
  18624. b[j].type == 6 ||
  18625. b[j].type == 12 ||
  18626. b[j].type == 7) &&
  18627. a[i].tool[0] != 15 &&
  18628. a[i].tool[0] != 4 &&
  18629. a[i].tool[0] != 45 &&
  18630. a[i].tool[0] != 50 &&
  18631. a[i].tool[0] != 32 &&
  18632. a[i].tool[0] != 57 &&
  18633. a[i].tool[0] != 52 &&
  18634. a[i].tool[0] != 69
  18635. ) {
  18636. if (
  18637. c.indexOf(
  18638. b[j].content
  18639. .split(".")
  18640. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18641. ) != -1 &&
  18642. a[i].tool[0] == 16 &&
  18643. b[j].atool != 50
  18644. ) {
  18645. this.workStudent[i].push({
  18646. works: b[j].content,
  18647. sName: b[j].name,
  18648. score: b[j].score,
  18649. img: b[j].img,
  18650. type: 1,
  18651. time: b[j].time,
  18652. userid: b[j].userid,
  18653. wid: b[j].id
  18654. });
  18655. } else if (
  18656. y.indexOf(
  18657. b[j].content
  18658. .split(".")
  18659. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18660. ) != -1 &&
  18661. a[i].tool[0] == 16 &&
  18662. b[j].atool != 50
  18663. ) {
  18664. this.workStudent[i].push({
  18665. userid: b[j].userid,
  18666. wid: b[j].id,
  18667. works: b[j].content,
  18668. sName: b[j].name,
  18669. score: b[j].score,
  18670. img: b[j].img,
  18671. type: 3,
  18672. time: b[j].time
  18673. });
  18674. } else if (b[j].type == 6 && b[j].atool != 50) {
  18675. this.workStudent[i].push({
  18676. userid: b[j].userid,
  18677. wid: b[j].id,
  18678. works: b[j].content,
  18679. sName: b[j].name,
  18680. score: b[j].score,
  18681. img: b[j].img,
  18682. type: 4,
  18683. time: b[j].time
  18684. });
  18685. } else if (b[j].type == 7 && b[j].atool != 50) {
  18686. this.workStudent[i].push({
  18687. userid: b[j].userid,
  18688. wid: b[j].id,
  18689. works: b[j].content,
  18690. sName: b[j].name,
  18691. score: b[j].score,
  18692. img: b[j].img,
  18693. type: 5,
  18694. time: b[j].time
  18695. });
  18696. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18697. this.workStudent[i].push({
  18698. works: b[j].content,
  18699. sName: b[j].name,
  18700. score: b[j].score,
  18701. img: b[j].img,
  18702. type: 12,
  18703. time: b[j].time,
  18704. userid: b[j].userid,
  18705. wid: b[j].id
  18706. });
  18707. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18708. this.workStudent[i].push({
  18709. works: b[j].content,
  18710. sName: b[j].name,
  18711. score: b[j].score,
  18712. img: b[j].img,
  18713. type: 0,
  18714. time: b[j].time,
  18715. userid: b[j].userid,
  18716. wid: b[j].id
  18717. });
  18718. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18719. this.workStudent[i].push({
  18720. works: b[j].content,
  18721. sName: b[j].name,
  18722. score: b[j].score,
  18723. img: b[j].img,
  18724. type: 0,
  18725. time: b[j].time,
  18726. userid: b[j].userid,
  18727. wid: b[j].id
  18728. });
  18729. }
  18730. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18731. this.workStudent[i].push({
  18732. works: b[j].content,
  18733. sName: b[j].name,
  18734. score: b[j].score,
  18735. img: b[j].img,
  18736. type: 2,
  18737. time: b[j].time,
  18738. userid: b[j].userid,
  18739. wid: b[j].id
  18740. });
  18741. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18742. this.workStudent[i].push({
  18743. works: b[j].content,
  18744. sName: b[j].name,
  18745. score: b[j].score,
  18746. img: b[j].img,
  18747. type: 20,
  18748. time: b[j].time,
  18749. userid: b[j].userid,
  18750. wid: b[j].id
  18751. });
  18752. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18753. //问卷
  18754. this.workStudent[i].push({
  18755. works: b[j].content,
  18756. sName: b[j].name,
  18757. score: b[j].score,
  18758. img: b[j].img,
  18759. type: 2,
  18760. time: b[j].time,
  18761. userid: b[j].userid,
  18762. wid: b[j].id
  18763. });
  18764. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18765. //选择题
  18766. this.workStudent[i].push({
  18767. works: b[j].content,
  18768. sName: b[j].name,
  18769. score: b[j].score,
  18770. img: b[j].img,
  18771. type: 8,
  18772. time: b[j].time,
  18773. userid: b[j].userid,
  18774. wid: b[j].id
  18775. });
  18776. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18777. //选择题
  18778. this.workStudent[i].push({
  18779. works: b[j].content,
  18780. sName: b[j].name,
  18781. score: b[j].score,
  18782. img: b[j].img,
  18783. type: 9,
  18784. time: b[j].time,
  18785. userid: b[j].userid,
  18786. wid: b[j].id
  18787. });
  18788. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18789. //选择题
  18790. this.workStudent[i].push({
  18791. works: b[j].content,
  18792. sName: b[j].name,
  18793. score: b[j].score,
  18794. img: b[j].img,
  18795. type: 10,
  18796. time: b[j].time,
  18797. userid: b[j].userid,
  18798. wid: b[j].id
  18799. });
  18800. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18801. //选择题
  18802. this.workStudent[i].push({
  18803. works: b[j].content,
  18804. sName: b[j].name,
  18805. score: b[j].score,
  18806. img: b[j].img,
  18807. type: 13,
  18808. time: b[j].time,
  18809. userid: b[j].userid,
  18810. wid: b[j].id
  18811. });
  18812. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18813. //选择题
  18814. this.workStudent[i].push({
  18815. works: b[j].content,
  18816. sName: b[j].name,
  18817. score: b[j].score,
  18818. img: b[j].img,
  18819. type: 12,
  18820. time: b[j].time,
  18821. userid: b[j].userid,
  18822. wid: b[j].id
  18823. });
  18824. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18825. //选择题
  18826. this.workStudent[i].push({
  18827. works: b[j].content,
  18828. sName: b[j].name,
  18829. score: b[j].score,
  18830. img: b[j].img,
  18831. type: 12,
  18832. time: b[j].time,
  18833. userid: b[j].userid,
  18834. wid: b[j].id
  18835. });
  18836. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18837. //选择题
  18838. this.workStudent[i].push({
  18839. works: b[j].content,
  18840. sName: b[j].name,
  18841. score: b[j].score,
  18842. img: b[j].img,
  18843. type: 15,
  18844. time: b[j].time,
  18845. userid: b[j].userid,
  18846. wid: b[j].id
  18847. });
  18848. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18849. //英语写作
  18850. this.workStudent[i].push({
  18851. works: b[j].content,
  18852. sName: b[j].name,
  18853. score: b[j].score,
  18854. img: b[j].img,
  18855. type: 16,
  18856. time: b[j].time,
  18857. userid: b[j].userid,
  18858. wid: b[j].id,
  18859. aiCode: b[j].aiCode,
  18860. teacherCode: b[j].teacherCode
  18861. });
  18862. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18863. //英语写作
  18864. this.workStudent[i].push({
  18865. works: b[j].content,
  18866. sName: b[j].name,
  18867. score: b[j].score,
  18868. img: b[j].img,
  18869. type: 17,
  18870. time: b[j].time,
  18871. userid: b[j].userid,
  18872. wid: b[j].id
  18873. });
  18874. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18875. //英语口语
  18876. this.workStudent[i].push({
  18877. works: b[j].content,
  18878. sName: b[j].name,
  18879. score: b[j].score,
  18880. img: b[j].img,
  18881. type: 14,
  18882. time: b[j].time,
  18883. userid: b[j].userid,
  18884. wid: b[j].id
  18885. });
  18886. }
  18887. }
  18888. }
  18889. }
  18890. })
  18891. .catch(err => {
  18892. console.error(err);
  18893. });
  18894. },
  18895. openVideo(w) {
  18896. this.videoDetail = {};
  18897. this.playerOptions1.sources[0].src = w.works;
  18898. this.videoDetail = this.playerOptions1;
  18899. this.videoVisible = true;
  18900. },
  18901. isLikes(wid, uid, t, c, isLikes, sName) {
  18902. if (isLikes == false) {
  18903. let params = [
  18904. {
  18905. wid: wid,
  18906. lid: uid,
  18907. t: t,
  18908. c: c
  18909. }
  18910. ];
  18911. this.ajax
  18912. .post(this.$store.state.api + "insertComment", params)
  18913. .then(res => {
  18914. this.$message({
  18915. message: "点赞成功",
  18916. type: "success"
  18917. });
  18918. this.selectSWorks();
  18919. this.selectStudent();
  18920. if(this.tType!=2){
  18921. this.insertMemorandum(
  18922. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18923. );
  18924. }
  18925. })
  18926. .catch(err => {
  18927. this.$message.error("点赞失败");
  18928. console.error(err);
  18929. });
  18930. } else {
  18931. let params = {
  18932. wid: wid,
  18933. lid: uid,
  18934. type: t
  18935. };
  18936. this.ajax
  18937. .get(this.$store.state.api + "deleteComment", params)
  18938. .then(res => {
  18939. this.$message({
  18940. message: "取消点赞成功",
  18941. type: "success"
  18942. });
  18943. this.selectSWorks();
  18944. this.selectStudent();
  18945. })
  18946. .catch(err => {
  18947. console.error(err);
  18948. });
  18949. }
  18950. },
  18951. deleteComment(wid) {
  18952. this.$confirm("确定删除此评论吗?", "提示", {
  18953. confirmButtonText: "确定",
  18954. cancelButtonText: "取消",
  18955. type: "warning"
  18956. })
  18957. .then(() => {
  18958. let params = {
  18959. id: wid
  18960. };
  18961. this.ajax
  18962. .get(this.$store.state.api + "deleteComment2", params)
  18963. .then(res => {
  18964. this.$message({
  18965. message: "删除评论成功",
  18966. type: "success"
  18967. });
  18968. this.selectSWorks();
  18969. this.selectStudent();
  18970. })
  18971. .catch(err => {
  18972. console.error(err);
  18973. });
  18974. })
  18975. .catch(() => {});
  18976. },
  18977. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18978. this.commentIndexJson = {
  18979. toolIndex: toolIndex,
  18980. wIndex: wIndex,
  18981. gindex: gindex,
  18982. gid: gid
  18983. };
  18984. this.commentDialogVisible = true;
  18985. // console.log('wwwwww',w)
  18986. // if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18987. // return;
  18988. this.commentDetailCopy = w.works;
  18989. this.commentDetail = [];
  18990. this.commentDetail = w;
  18991. if (w.works && w.type == 1) {
  18992. // this.pptImgUrl = "";
  18993. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18994. if (
  18995. a.indexOf(
  18996. w.works
  18997. .split(".")
  18998. [w.works.split(".").length - 1].toLocaleUpperCase()
  18999. ) != -1
  19000. ) {
  19001. let _uuurl = await this.checkLink(w.works);
  19002. this.pptImgUrl =
  19003. "https://view.officeapps.live.com/op/view.aspx?src=" +
  19004. encodeURIComponent(_uuurl);
  19005. this.showPDF = false;
  19006. } else if (
  19007. w.works
  19008. .split(".")
  19009. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19010. ) {
  19011. this.pptImgUrl = w.works;
  19012. this.showPDF = true;
  19013. }
  19014. } else if (w.works && w.type == 3) {
  19015. this.videoDetail = {};
  19016. this.playerOptions1.sources[0].src = w.works;
  19017. this.videoDetail = this.playerOptions1;
  19018. // this.videoVisible = true;
  19019. } else if (w.works && w.type == 4) {
  19020. this.eScore = JSON.parse(w.works);
  19021. this.rateJson = this.chapInfoList[
  19022. this.courseType
  19023. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19024. toolIndex
  19025. ].rateJson;
  19026. } else if (w.works && w.type == 10) {
  19027. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19028. } else if (w.works && w.type == 12) {
  19029. getFile(this.commentDetail.works).then(res => {
  19030. this.commentDetail.works = res.data;
  19031. });
  19032. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19033. } else if (w.works && w.type == 13) {
  19034. this.wordJson = this.chapInfoList[
  19035. this.courseType
  19036. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19037. toolIndex
  19038. ].wordJson;
  19039. }
  19040. this.$forceUpdate();
  19041. },
  19042. async openScore(w, index) {
  19043. this.wScore = 0;
  19044. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  19045. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  19046. this.commentDetail = [];
  19047. if (w.type == 17) {
  19048. this.dialogVisibleENScore = true;
  19049. } else {
  19050. this.dialogVisibleScore = true;
  19051. }
  19052. this.commentDetail = w;
  19053. if (w.works && w.type == 1) {
  19054. this.pptImgUrl = "";
  19055. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19056. if (
  19057. a.indexOf(
  19058. w.works
  19059. .split(".")
  19060. [w.works.split(".").length - 1].toLocaleUpperCase()
  19061. ) != -1
  19062. ) {
  19063. let _uuurl = await this.checkLink(w.works);
  19064. this.pptImgUrl =
  19065. "https://view.officeapps.live.com/op/view.aspx?src=" +
  19066. encodeURIComponent(_uuurl);
  19067. this.showPDF = false;
  19068. } else if (
  19069. w.works
  19070. .split(".")
  19071. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19072. ) {
  19073. this.pptImgUrl = w.works;
  19074. this.showPDF = true;
  19075. }
  19076. } else if (w.works && w.type == 3) {
  19077. this.videoDetail = {};
  19078. this.playerOptions1.sources[0].src = w.works;
  19079. this.videoDetail = this.playerOptions1;
  19080. } else if (w.type == 17) {
  19081. let englishVoiceJson = {};
  19082. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19083. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  19084. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19085. this.taskCount
  19086. ].toolChoose[index].englishVoiceJson
  19087. : {};
  19088. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19089. }
  19090. this.insertMemorandum(
  19091. `查看<span class="variable">${w.sName}</span>的作业`
  19092. );
  19093. },
  19094. addComment(wid, uid, t, detail) {
  19095. if (this.commentText == "") {
  19096. this.$message.error("请输入评论");
  19097. return;
  19098. }
  19099. let params2 = [
  19100. {
  19101. wid: wid,
  19102. lid: uid,
  19103. t: t
  19104. }
  19105. ];
  19106. this.ajax
  19107. .post(this.$store.state.api + "getComment", params2)
  19108. .then(res => {
  19109. if (res.data[0].length > 0) {
  19110. this.$message.error("一个作业只能评论一条");
  19111. } else {
  19112. let params = [
  19113. {
  19114. wid: wid,
  19115. lid: uid,
  19116. t: t,
  19117. c: this.commentText
  19118. }
  19119. ];
  19120. this.ajax
  19121. .post(this.$store.state.api + "insertComment", params)
  19122. .then(res => {
  19123. this.$message({
  19124. message: "评论成功",
  19125. type: "success"
  19126. });
  19127. this.commentText = "";
  19128. this.selectSWorks();
  19129. this.selectStudent();
  19130. if(this.tType!=2){
  19131. this.insertMemorandum(
  19132. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  19133. );
  19134. }
  19135. })
  19136. .catch(err => {
  19137. this.$message.error("评论失败");
  19138. console.error(err);
  19139. });
  19140. }
  19141. })
  19142. .catch(err => {
  19143. // this.$message.error("评论失败");
  19144. console.error(err);
  19145. });
  19146. },
  19147. scoreWork(wid, sName) {
  19148. if (this.wScore == 0) {
  19149. this.$message.error("请评分");
  19150. return;
  19151. }
  19152. let params = [
  19153. {
  19154. wid: wid,
  19155. score: JSON.stringify({
  19156. wScore: this.wScore,
  19157. detail: this.scoreDetail
  19158. })
  19159. }
  19160. ];
  19161. this.ajax
  19162. .post(this.$store.state.api + "scoreWork", params)
  19163. .then(res => {
  19164. this.$message({
  19165. message: "评分成功",
  19166. type: "success"
  19167. });
  19168. this.wScore = 0;
  19169. this.scoreDetail = "";
  19170. this.dialogVisibleScore = false;
  19171. this.selectSWorks();
  19172. this.selectStudent();
  19173. if(this.tType!=2){
  19174. this.insertMemorandum(
  19175. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  19176. );
  19177. }
  19178. })
  19179. .catch(err => {
  19180. this.$message.error("评分失败");
  19181. console.error(err);
  19182. });
  19183. },
  19184. openXz(w, i) {
  19185. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19186. .taskJson[this.taskCount].toolChoose[i].selectJson
  19187. ? JSON.parse(
  19188. JSON.stringify(
  19189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19190. this.taskCount
  19191. ].toolChoose[i].selectJson
  19192. )
  19193. )
  19194. : { url: "", select: [], answer: [] };
  19195. var a = w.works.split(",");
  19196. for (var k = 0; k < a.length; k++) {
  19197. a[k] = parseInt(a[k]);
  19198. }
  19199. this.selectAnswer = { answer: a, stu: w.sName };
  19200. this.isSelect = true;
  19201. this.dialogVisibleSelect = true;
  19202. this.insertMemorandum(
  19203. `查看<span class="variable">${w.sName}</span>的作业`
  19204. );
  19205. },
  19206. openSen(w, i) {
  19207. this.sentenceList1 = JSON.parse(w.works);
  19208. this.sentenceList1.stuName = w.sName;
  19209. this.dialogVisibleSentence1 = true;
  19210. },
  19211. openPj(w, toolindex) {
  19212. this.isStar = true;
  19213. this.eScore = JSON.parse(w);
  19214. this.rateJson = this.chapInfoList[
  19215. this.courseType
  19216. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  19217. this.studentEvalDialogVisible = true;
  19218. },
  19219. openEnglishEva(id, i) {
  19220. let params = {
  19221. wid: id
  19222. };
  19223. this.ajax
  19224. .get(this.$store.state.api + "selectEngWork", params)
  19225. .then(res => {
  19226. this.evaEngJson.message = res.data[0][0];
  19227. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  19228. this.evaEngJson.teacherJson = this.chapInfoList[
  19229. this.courseType
  19230. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  19231. this.engEvaDialogVisible = true;
  19232. })
  19233. .catch(err => {
  19234. console.error(err);
  19235. });
  19236. },
  19237. deleteWorks(id) {
  19238. this.$confirm("确定删除此作业吗?", "提示", {
  19239. confirmButtonText: "确定",
  19240. cancelButtonText: "取消",
  19241. type: "warning"
  19242. })
  19243. .then(() => {
  19244. let params = [
  19245. {
  19246. id: id
  19247. }
  19248. ];
  19249. this.ajax
  19250. .post(this.$store.state.api + "deleteCourseWork", params)
  19251. .then(res => {
  19252. this.$message({
  19253. message: "删除成功",
  19254. type: "success"
  19255. });
  19256. this.selectStudent();
  19257. this.selectSWorks();
  19258. this.selectSLook();
  19259. })
  19260. .catch(err => {
  19261. this.$message.error("网络异常");
  19262. console.error(err);
  19263. });
  19264. })
  19265. .catch(() => {});
  19266. },
  19267. // deleteWorksTwo(w,stage,task) {
  19268. // // let mk = `markSco${toolIndex}${wIndex}`
  19269. // // console.log(this.$refs[mk][0].homeworkVal)
  19270. // // let wid = this.$refs[mk][0].homeworkVal.id
  19271. // // console.log('wid',wid);
  19272. // this.$confirm("确定删除此作业吗?", "提示", {
  19273. // confirmButtonText: "确定",
  19274. // cancelButtonText: "取消",
  19275. // type: "warning",
  19276. // })
  19277. // .then(() => {
  19278. // let params = [
  19279. // {
  19280. // id: w.wid,
  19281. // cid: this.id,
  19282. // uid:w.userid,
  19283. // s:stage,
  19284. // t:task
  19285. // },
  19286. // ];
  19287. // // return console.log(params)
  19288. // this.ajax
  19289. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  19290. // .then((res) => {
  19291. // this.$message({
  19292. // message: "删除成功",
  19293. // type: "success",
  19294. // });
  19295. // this.selectStudent();
  19296. // this.selectSWorks();
  19297. // this.selectSLook();
  19298. // })
  19299. // .catch((err) => {
  19300. // this.$message.error("网络异常");
  19301. // console.error(err);
  19302. // });
  19303. // })
  19304. // .catch(() => {});
  19305. // },
  19306. noIsAi() {
  19307. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  19308. },
  19309. getLang() {
  19310. let lang = "";
  19311. if (this.languageSetting == 0) {
  19312. lang = "Chinese.";
  19313. } else if (this.languageSetting == 1) {
  19314. lang = "Traditional Chinese.";
  19315. } else if (this.languageSetting == 2) {
  19316. lang = "English.";
  19317. }
  19318. return lang;
  19319. },
  19320. selectSWorks(gindex) {
  19321. //教师查看全部作业
  19322. let params = {
  19323. cid: this.id,
  19324. s: this.courseType,
  19325. t: this.taskCount
  19326. };
  19327. this.ajax
  19328. .get(this.$store.state.api + "selectSWorks", params)
  19329. .then(res => {
  19330. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19331. this.taskCount
  19332. ].toolChoose;
  19333. var b = res.data[0];
  19334. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19335. var y = [
  19336. "AVI",
  19337. "NAVI",
  19338. "MPEG",
  19339. "ASF",
  19340. "MOV",
  19341. "WMV",
  19342. "3GP",
  19343. "RM",
  19344. "RMVB",
  19345. "FLV",
  19346. "F4V",
  19347. "H.264",
  19348. "H.265",
  19349. "REAL VIDEO",
  19350. "MKV",
  19351. "WebM",
  19352. "HDDVD",
  19353. "MP4",
  19354. "MPG",
  19355. "M4V",
  19356. "MGV",
  19357. "OGV",
  19358. "QTM",
  19359. "STR",
  19360. "AMC",
  19361. "DVX",
  19362. "EVO",
  19363. "DAT",
  19364. "OGG",
  19365. "OGM"
  19366. ];
  19367. var d = res.data[1];
  19368. var e = res.data[2];
  19369. var f = res.data[3];
  19370. let _worksStudent = [];
  19371. var _worksStudent2 = [];
  19372. for (var i = 0; i < a.length; i++) {
  19373. _worksStudent[i] = [];
  19374. _worksStudent2[i] = [];
  19375. if (
  19376. !this.isCloseList[i] ||
  19377. this.isCloseList[i].isClose == undefined
  19378. ) {
  19379. this.isCloseList[i] = { isClose: 0 };
  19380. }
  19381. this.groupStudent[i] = [];
  19382. this.groupStudentUid[i] = [];
  19383. if (this.isGroup) {
  19384. for (
  19385. var groupI = 0;
  19386. groupI < this.courseGroup.group.length;
  19387. groupI++
  19388. ) {
  19389. this.courseGroup.group[groupI].works[i] = [];
  19390. }
  19391. }
  19392. this.isWorksS[i] = [];
  19393. this.checkJson[i] = [];
  19394. if (a[i].tool[0] == 49) {
  19395. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19396. this.groupStudent[i][gA] = [];
  19397. this.groupStudentUid[i][gA] = [];
  19398. _worksStudent[i][gA] = [];
  19399. _worksStudent2[i][gA] = [];
  19400. this.isCloseList[i][gA] = [];
  19401. for (var g = 0; g < f.length; g++) {
  19402. if (
  19403. f[g].ttype == 2 &&
  19404. this.tcid &&
  19405. this.arrayToArray(
  19406. f[g].classid ? f[g].classid.split(",") : [],
  19407. this.tcid.split(",")
  19408. ).length == 0
  19409. ) {
  19410. continue;
  19411. }
  19412. let _classId = this.arrayToArray(
  19413. this.courseDetail.juri
  19414. ? this.courseDetail.juri.split(",")
  19415. : [],
  19416. this.classId ? this.classId.split(",") : []
  19417. );
  19418. if (
  19419. gA == f[g].group &&
  19420. f[g].tool == i &&
  19421. (this.arrayToArray(
  19422. f[g].classid ? f[g].classid.split(",") : [],
  19423. this.tcid.split(",")
  19424. ).length !== 0 ||
  19425. this.arrayToArray(
  19426. f[g].classid ? f[g].classid.split(",") : [],
  19427. _classId
  19428. ).length !== 0 ||
  19429. (!this.tcid && this.tType == "1") ||
  19430. this.courseDetail.juri === "" ||
  19431. f[g].ttype == 1)
  19432. ) {
  19433. this.groupStudent[i][gA].push(f[g]);
  19434. this.groupStudentUid[i][gA].push(f[g].userid);
  19435. }
  19436. }
  19437. }
  19438. this.$forceUpdate();
  19439. }
  19440. for (var j = 0; j < b.length; j++) {
  19441. if (
  19442. b[j].ttype == 2 &&
  19443. this.tcid &&
  19444. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19445. .length == 0
  19446. ) {
  19447. continue;
  19448. }
  19449. var likesCount = 0;
  19450. var commentCount = 0;
  19451. var isLikes = false;
  19452. var commentJson = [];
  19453. var likeJson = [];
  19454. var data = b[j];
  19455. if (i == b[j].tool) {
  19456. if (data.type == 2 && a[i].tool[0] == 4) {
  19457. // if(JSON.parse(data.content)[0].anwer){
  19458. var checkL =
  19459. JSON.parse(data.content)[0].anwer instanceof Array
  19460. ? JSON.parse(data.content)[0].anwer
  19461. : JSON.parse(data.content)[0].anwer.split(",");
  19462. for (var z = 0; z < checkL.length; z++) {
  19463. if (!this.checkJson[i][z]) {
  19464. this.checkJson[i].push({
  19465. checkCount: [],
  19466. checkPerson: [],
  19467. rightPerson: []
  19468. });
  19469. }
  19470. if (!this.checkJson[i][z].checkCount.length) {
  19471. this.checkJson[i][z].checkCount = [];
  19472. let _askItemCount = JSON.parse(data.content)[0].askJson
  19473. .askJson[z].askItem;
  19474. for (var aic = 0; aic < _askItemCount; aic++) {
  19475. this.checkJson[i][z].checkCount.push(0);
  19476. }
  19477. }
  19478. if (checkL[z] instanceof Array) {
  19479. if (
  19480. JSON.parse(data.content)[0]
  19481. .anwer.sort()
  19482. .join(",") == checkL[z].sort().join(",")
  19483. ) {
  19484. this.checkJson[i][z].rightPerson.push(data.name);
  19485. }
  19486. for (var q = 0; q < checkL[z].length; q++) {
  19487. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19488. ? this.checkJson[i][z].checkPerson[
  19489. parseInt(checkL[z][q])
  19490. ].push(data.name)
  19491. : (this.checkJson[i][z].checkPerson[
  19492. parseInt(checkL[z][q])
  19493. ] = [data.name]);
  19494. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19495. ? this.checkJson[i][z].checkCount[
  19496. parseInt(checkL[z][q])
  19497. ]++
  19498. : (this.checkJson[i][z].checkCount[
  19499. parseInt(checkL[z][q])
  19500. ] = 1);
  19501. }
  19502. } else {
  19503. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19504. this.checkJson[i][z].rightPerson.push(data.name);
  19505. }
  19506. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19507. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19508. ? this.checkJson[i][z].checkPerson[
  19509. parseInt(checkL[z])
  19510. ].push(data.name)
  19511. : (this.checkJson[i][z].checkPerson[
  19512. parseInt(checkL[z])
  19513. ] = [data.name]);
  19514. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19515. ? this.checkJson[i][z].checkCount[
  19516. parseInt(checkL[z])
  19517. ]++
  19518. : (this.checkJson[i][z].checkCount[
  19519. parseInt(checkL[z])
  19520. ] = 1);
  19521. }
  19522. }
  19523. }
  19524. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19525. var checkL = JSON.parse(data.content)[0].anwer;
  19526. for (var z = 0; z < checkL.length; z++) {
  19527. if (!this.checkJson[i][z]) {
  19528. this.checkJson[i].push({
  19529. checkCount: [],
  19530. checkPerson: [],
  19531. rightPerson: []
  19532. });
  19533. }
  19534. if (!this.checkJson[i][z].checkCount.length) {
  19535. this.checkJson[i][z].checkCount = [];
  19536. let _askItemCount = JSON.parse(data.content)[0].testJson
  19537. .testJson[z].testItem;
  19538. for (var aic = 0; aic < _askItemCount; aic++) {
  19539. this.checkJson[i][z].checkCount.push(0);
  19540. }
  19541. }
  19542. if (checkL[z] instanceof Array) {
  19543. if (
  19544. JSON.parse(data.content)[0]
  19545. .testJson.testJson[z].answer.sort()
  19546. .join(",") == checkL[z].sort().join(",")
  19547. ) {
  19548. this.checkJson[i][z].rightPerson.push(data.name);
  19549. }
  19550. for (var q = 0; q < checkL[z].length; q++) {
  19551. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19552. ? this.checkJson[i][z].checkPerson[
  19553. parseInt(checkL[z][q])
  19554. ].push(data.name)
  19555. : (this.checkJson[i][z].checkPerson[
  19556. parseInt(checkL[z][q])
  19557. ] = [data.name]);
  19558. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19559. ? this.checkJson[i][z].checkCount[
  19560. parseInt(checkL[z][q])
  19561. ]++
  19562. : (this.checkJson[i][z].checkCount[
  19563. parseInt(checkL[z][q])
  19564. ] = 1);
  19565. }
  19566. } else {
  19567. if (
  19568. JSON.parse(data.content)[0].testJson.testJson[z]
  19569. .answer == checkL[z]
  19570. ) {
  19571. this.checkJson[i][z].rightPerson.push(data.name);
  19572. }
  19573. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19574. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19575. ? this.checkJson[i][z].checkPerson[
  19576. parseInt(checkL[z])
  19577. ].push(data.name)
  19578. : (this.checkJson[i][z].checkPerson[
  19579. parseInt(checkL[z])
  19580. ] = [data.name]);
  19581. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19582. ? this.checkJson[i][z].checkCount[
  19583. parseInt(checkL[z])
  19584. ]++
  19585. : (this.checkJson[i][z].checkCount[
  19586. parseInt(checkL[z])
  19587. ] = 1);
  19588. }
  19589. }
  19590. }
  19591. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19592. var checkL = JSON.parse(data.content);
  19593. for (var z = 0; z < checkL.length; z++) {
  19594. if (!this.checkJson[i][z]) {
  19595. this.checkJson[i].push({
  19596. checkCount: [],
  19597. checkPerson: [],
  19598. rightPerson: []
  19599. });
  19600. }
  19601. this.checkJson[i][z].checkPerson.push(data.name);
  19602. if (
  19603. checkL[z].chooseSenList.toString() ==
  19604. checkL[z].rightAnswer.toString()
  19605. ) {
  19606. this.checkJson[i][z].rightPerson.push(data.name);
  19607. }
  19608. }
  19609. }
  19610. for (var k = 0; k < d.length; k++) {
  19611. //点赞
  19612. if (d[k].workId == b[j].id) {
  19613. likesCount++;
  19614. likeJson.push(d[k]);
  19615. if (d[k].likesId == this.userid) {
  19616. isLikes = true;
  19617. }
  19618. }
  19619. }
  19620. for (var l = 0; l < e.length; l++) {
  19621. //评论
  19622. if (e[l].workId == b[j].id) {
  19623. if (e[l].comment != "") {
  19624. commentCount++;
  19625. commentJson.push({
  19626. commentText: e[l].comment,
  19627. commentTime: e[l].commentTime,
  19628. commentPeople: e[l].commentPeople,
  19629. userid: e[l].userid,
  19630. wid: e[l].id
  19631. });
  19632. }
  19633. }
  19634. }
  19635. if (
  19636. (b[j].type == 1 ||
  19637. b[j].type == 4 ||
  19638. b[j].type == 5 ||
  19639. b[j].type == 6 ||
  19640. b[j].type == 12 ||
  19641. b[j].type == 7) &&
  19642. a[i].tool[0] != 15 &&
  19643. a[i].tool[0] != 4 &&
  19644. a[i].tool[0] != 45 &&
  19645. a[i].tool[0] != 50 &&
  19646. a[i].tool[0] != 32 &&
  19647. a[i].tool[0] != 57 &&
  19648. a[i].tool[0] != 52
  19649. ) {
  19650. if (
  19651. c.indexOf(
  19652. b[j].content
  19653. .split(".")
  19654. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19655. ) != -1 &&
  19656. a[i].tool[0] == 16 &&
  19657. b[j].atool != 50
  19658. ) {
  19659. let _works = {
  19660. userid: b[j].userid,
  19661. ateacher: b[j].ateacher,
  19662. wid: b[j].id,
  19663. works: b[j].content,
  19664. sName: b[j].name,
  19665. type: 1,
  19666. ttype: b[j].ttype,
  19667. time: b[j].time,
  19668. score: b[j].score,
  19669. img: b[j].img,
  19670. likesCount: likesCount,
  19671. commentCount: commentCount,
  19672. isLikes: isLikes,
  19673. commentJson: commentJson,
  19674. likeJson: likeJson
  19675. };
  19676. if (this.isGroup) {
  19677. let isGw = 1;
  19678. for (
  19679. var groupI = 0;
  19680. groupI < this.courseGroup.group.length;
  19681. groupI++
  19682. ) {
  19683. let gid = this.courseGroup.group[groupI].id;
  19684. if (
  19685. this.courseGroupStudentUid[gid].indexOf(
  19686. b[j].userid
  19687. ) != -1
  19688. ) {
  19689. isGw = 2;
  19690. this.courseGroup.group[groupI].works[i].push(_works);
  19691. break;
  19692. }
  19693. }
  19694. if (isGw == 1) {
  19695. _worksStudent[i].push(_works);
  19696. }
  19697. } else {
  19698. _worksStudent[i].push(_works);
  19699. }
  19700. _worksStudent2[i].push(_works);
  19701. this.isWorksS[i].push({
  19702. uid: b[j].userid,
  19703. sName: b[j].name
  19704. });
  19705. } else if (
  19706. y.indexOf(
  19707. b[j].content
  19708. .split(".")
  19709. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19710. ) != -1 &&
  19711. a[i].tool[0] == 16 &&
  19712. b[j].atool != 50
  19713. ) {
  19714. let _works = {
  19715. userid: b[j].userid,
  19716. ateacher: b[j].ateacher,
  19717. wid: b[j].id,
  19718. works: b[j].content,
  19719. sName: b[j].name,
  19720. type: 3,
  19721. ttype: b[j].ttype,
  19722. time: b[j].time,
  19723. score: b[j].score,
  19724. img: b[j].img,
  19725. likesCount: likesCount,
  19726. commentCount: commentCount,
  19727. isLikes: isLikes,
  19728. commentJson: commentJson,
  19729. likeJson: likeJson
  19730. };
  19731. if (this.isGroup) {
  19732. let isGw = 1;
  19733. for (
  19734. var groupI = 0;
  19735. groupI < this.courseGroup.group.length;
  19736. groupI++
  19737. ) {
  19738. let gid = this.courseGroup.group[groupI].id;
  19739. if (
  19740. this.courseGroupStudentUid[gid].indexOf(
  19741. b[j].userid
  19742. ) != -1
  19743. ) {
  19744. isGw = 2;
  19745. this.courseGroup.group[groupI].works[i].push(_works);
  19746. break;
  19747. }
  19748. }
  19749. if (isGw == 1) {
  19750. _worksStudent[i].push(_works);
  19751. }
  19752. } else {
  19753. _worksStudent[i].push(_works);
  19754. }
  19755. _worksStudent2[i].push(_works);
  19756. this.isWorksS[i].push({
  19757. uid: b[j].userid,
  19758. sName: b[j].name
  19759. });
  19760. } else if (b[j].type == 6 && b[j].atool != 50) {
  19761. let _works = {
  19762. userid: b[j].userid,
  19763. ateacher: b[j].ateacher,
  19764. wid: b[j].id,
  19765. works: b[j].content,
  19766. sName: b[j].name,
  19767. type: 4,
  19768. ttype: b[j].ttype,
  19769. time: b[j].time,
  19770. score: b[j].score,
  19771. img: b[j].img,
  19772. likesCount: likesCount,
  19773. commentCount: commentCount,
  19774. isLikes: isLikes,
  19775. commentJson: commentJson,
  19776. likeJson: likeJson
  19777. };
  19778. _worksStudent[i].push(_works);
  19779. _worksStudent2[i].push(_works);
  19780. this.isWorksS[i].push({
  19781. uid: b[j].userid,
  19782. sName: b[j].name
  19783. });
  19784. } else if (b[j].type == 7 && b[j].atool != 50) {
  19785. let _work = {
  19786. userid: b[j].userid,
  19787. ateacher: b[j].ateacher,
  19788. wid: b[j].id,
  19789. works: b[j].content,
  19790. sName: b[j].name,
  19791. type: 5,
  19792. ttype: b[j].ttype,
  19793. time: b[j].time,
  19794. score: b[j].score,
  19795. img: b[j].img,
  19796. likesCount: likesCount,
  19797. commentCount: commentCount,
  19798. isLikes: isLikes,
  19799. commentJson: commentJson,
  19800. likeJson: likeJson
  19801. };
  19802. _worksStudent[i].push(_work);
  19803. _worksStudent2[i].push(_work);
  19804. this.isWorksS[i].push({
  19805. uid: b[j].userid,
  19806. sName: b[j].name
  19807. });
  19808. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19809. let _works = {
  19810. userid: b[j].userid,
  19811. ateacher: b[j].ateacher,
  19812. wid: b[j].id,
  19813. works: b[j].content,
  19814. sName: b[j].name,
  19815. type: 12,
  19816. ttype: b[j].ttype,
  19817. time: b[j].time,
  19818. score: b[j].score,
  19819. img: b[j].img,
  19820. likesCount: likesCount,
  19821. commentCount: commentCount,
  19822. isLikes: isLikes,
  19823. commentJson: commentJson,
  19824. likeJson: likeJson
  19825. };
  19826. if (this.isGroup) {
  19827. let isGw = 1;
  19828. for (
  19829. var groupI = 0;
  19830. groupI < this.courseGroup.group.length;
  19831. groupI++
  19832. ) {
  19833. let gid = this.courseGroup.group[groupI].id;
  19834. if (
  19835. this.courseGroupStudentUid[gid].indexOf(
  19836. b[j].userid
  19837. ) != -1
  19838. ) {
  19839. isGw = 2;
  19840. this.courseGroup.group[groupI].works[i].push(_works);
  19841. break;
  19842. }
  19843. }
  19844. if (isGw == 1) {
  19845. _worksStudent[i].push(_works);
  19846. }
  19847. } else {
  19848. _worksStudent[i].push(_works);
  19849. }
  19850. _worksStudent2[i].push(_works);
  19851. this.isWorksS[i].push({
  19852. uid: b[j].userid,
  19853. sName: b[j].name
  19854. });
  19855. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19856. let _works = {
  19857. userid: b[j].userid,
  19858. ateacher: b[j].ateacher,
  19859. wid: b[j].id,
  19860. works: b[j].content,
  19861. sName: b[j].name,
  19862. type: 0,
  19863. ttype: b[j].ttype,
  19864. time: b[j].time,
  19865. score: b[j].score,
  19866. img: b[j].img,
  19867. likesCount: likesCount,
  19868. commentCount: commentCount,
  19869. isLikes: isLikes,
  19870. commentJson: commentJson,
  19871. likeJson: likeJson
  19872. };
  19873. if (this.isGroup) {
  19874. let isGw = 1;
  19875. for (
  19876. var groupI = 0;
  19877. groupI < this.courseGroup.group.length;
  19878. groupI++
  19879. ) {
  19880. let gid = this.courseGroup.group[groupI].id;
  19881. if (
  19882. this.courseGroupStudentUid[gid].indexOf(
  19883. b[j].userid
  19884. ) != -1
  19885. ) {
  19886. isGw = 2;
  19887. this.courseGroup.group[groupI].works[i].push(_works);
  19888. break;
  19889. }
  19890. }
  19891. if (isGw == 1) {
  19892. _worksStudent[i].push(_works);
  19893. }
  19894. } else {
  19895. _worksStudent[i].push(_works);
  19896. }
  19897. _worksStudent2[i].push(_works);
  19898. this.isWorksS[i].push({
  19899. uid: b[j].userid,
  19900. sName: b[j].name
  19901. });
  19902. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19903. let _works = {
  19904. userid: b[j].userid,
  19905. ateacher: b[j].ateacher,
  19906. wid: b[j].id,
  19907. works: b[j].content,
  19908. sName: b[j].name,
  19909. type: 0,
  19910. ttype: b[j].ttype,
  19911. time: b[j].time,
  19912. score: b[j].score,
  19913. img: b[j].img,
  19914. likesCount: likesCount,
  19915. commentCount: commentCount,
  19916. isLikes: isLikes,
  19917. commentJson: commentJson,
  19918. likeJson: likeJson
  19919. };
  19920. if (this.isGroup) {
  19921. let isGw = 1;
  19922. for (
  19923. var groupI = 0;
  19924. groupI < this.courseGroup.group.length;
  19925. groupI++
  19926. ) {
  19927. let gid = this.courseGroup.group[groupI].id;
  19928. if (
  19929. this.courseGroupStudentUid[gid].indexOf(
  19930. b[j].userid
  19931. ) != -1
  19932. ) {
  19933. isGw = 2;
  19934. this.courseGroup.group[groupI].works[i].push(_works);
  19935. break;
  19936. }
  19937. }
  19938. if (isGw == 1) {
  19939. _worksStudent[i].push(_works);
  19940. }
  19941. } else {
  19942. _worksStudent[i].push(_works);
  19943. }
  19944. _worksStudent2[i].push(_works);
  19945. this.isWorksS[i].push({
  19946. uid: b[j].userid,
  19947. sName: b[j].name
  19948. });
  19949. }
  19950. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19951. let _works = {
  19952. userid: b[j].userid,
  19953. ateacher: b[j].ateacher,
  19954. wid: b[j].id,
  19955. works: b[j].content,
  19956. sName: b[j].name,
  19957. type: 2,
  19958. ttype: b[j].ttype,
  19959. time: b[j].time,
  19960. score: b[j].score,
  19961. img: b[j].img,
  19962. likesCount: likesCount,
  19963. commentCount: commentCount,
  19964. isLikes: isLikes,
  19965. commentJson: commentJson,
  19966. likeJson: likeJson
  19967. };
  19968. if (this.isGroup) {
  19969. let isGw = 1;
  19970. for (
  19971. var groupI = 0;
  19972. groupI < this.courseGroup.group.length;
  19973. groupI++
  19974. ) {
  19975. let gid = this.courseGroup.group[groupI].id;
  19976. if (
  19977. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19978. -1
  19979. ) {
  19980. isGw = 2;
  19981. this.courseGroup.group[groupI].works[i].push(_works);
  19982. break;
  19983. }
  19984. }
  19985. if (isGw == 1) {
  19986. _worksStudent[i].push(_works);
  19987. }
  19988. } else {
  19989. _worksStudent[i].push(_works);
  19990. }
  19991. _worksStudent2[i].push(_works);
  19992. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19993. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19994. let _works = {
  19995. userid: b[j].userid,
  19996. ateacher: b[j].ateacher,
  19997. wid: b[j].id,
  19998. works: b[j].content,
  19999. sName: b[j].name,
  20000. type: 20,
  20001. ttype: b[j].ttype,
  20002. time: b[j].time,
  20003. score: b[j].score,
  20004. img: b[j].img,
  20005. likesCount: likesCount,
  20006. commentCount: commentCount,
  20007. isLikes: isLikes,
  20008. commentJson: commentJson,
  20009. likeJson: likeJson
  20010. };
  20011. if (this.isGroup) {
  20012. let isGw = 1;
  20013. for (
  20014. var groupI = 0;
  20015. groupI < this.courseGroup.group.length;
  20016. groupI++
  20017. ) {
  20018. let gid = this.courseGroup.group[groupI].id;
  20019. if (
  20020. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  20021. -1
  20022. ) {
  20023. isGw = 2;
  20024. this.courseGroup.group[groupI].works[i].push(_works);
  20025. break;
  20026. }
  20027. }
  20028. if (isGw == 1) {
  20029. _worksStudent[i].push(_works);
  20030. }
  20031. } else {
  20032. _worksStudent[i].push(_works);
  20033. }
  20034. _worksStudent2[i].push(_works);
  20035. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20036. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  20037. //问卷
  20038. let _work = {
  20039. userid: b[j].userid,
  20040. ateacher: b[j].ateacher,
  20041. wid: b[j].id,
  20042. works: b[j].content,
  20043. sName: b[j].name,
  20044. type: 2,
  20045. ttype: b[j].ttype,
  20046. time: b[j].time,
  20047. score: b[j].score,
  20048. img: b[j].img,
  20049. likesCount: likesCount,
  20050. commentCount: commentCount,
  20051. isLikes: isLikes,
  20052. commentJson: commentJson,
  20053. likeJson: likeJson
  20054. };
  20055. _worksStudent[i].push(_work);
  20056. _worksStudent2[i].push(_work);
  20057. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20058. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  20059. //选择题
  20060. let _work = {
  20061. userid: b[j].userid,
  20062. ateacher: b[j].ateacher,
  20063. wid: b[j].id,
  20064. works: b[j].content,
  20065. sName: b[j].name,
  20066. type: 8,
  20067. ttype: b[j].ttype,
  20068. time: b[j].time,
  20069. score: b[j].score,
  20070. img: b[j].img,
  20071. likesCount: likesCount,
  20072. commentCount: commentCount,
  20073. isLikes: isLikes,
  20074. commentJson: commentJson,
  20075. likeJson: likeJson
  20076. };
  20077. _worksStudent[i].push(_work);
  20078. _worksStudent2[i].push(_work);
  20079. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20080. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  20081. //选择题
  20082. let _work = {
  20083. userid: b[j].userid,
  20084. ateacher: b[j].ateacher,
  20085. wid: b[j].id,
  20086. works: b[j].content,
  20087. sName: b[j].name,
  20088. type: 9,
  20089. ttype: b[j].ttype,
  20090. time: b[j].time,
  20091. score: b[j].score,
  20092. img: b[j].img,
  20093. likesCount: likesCount,
  20094. commentCount: commentCount,
  20095. isLikes: isLikes,
  20096. commentJson: commentJson,
  20097. likeJson: likeJson
  20098. };
  20099. _worksStudent[i].push(_work);
  20100. _worksStudent2[i].push(_work);
  20101. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20102. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  20103. //选择题
  20104. let _work = {
  20105. userid: b[j].userid,
  20106. ateacher: b[j].ateacher,
  20107. wid: b[j].id,
  20108. works: b[j].content,
  20109. sName: b[j].name,
  20110. type: 10,
  20111. ttype: b[j].ttype,
  20112. time: b[j].time,
  20113. score: b[j].score,
  20114. img: b[j].img,
  20115. likesCount: likesCount,
  20116. commentCount: commentCount,
  20117. isLikes: isLikes,
  20118. commentJson: commentJson,
  20119. likeJson: likeJson
  20120. };
  20121. _worksStudent[i].push(_work);
  20122. _worksStudent2[i].push(_work);
  20123. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20124. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  20125. //选择题
  20126. let _work = {
  20127. userid: b[j].userid,
  20128. ateacher: b[j].ateacher,
  20129. wid: b[j].id,
  20130. works: b[j].content,
  20131. sName: b[j].name,
  20132. type: 13,
  20133. ttype: b[j].ttype,
  20134. time: b[j].time,
  20135. score: b[j].score,
  20136. img: b[j].img,
  20137. likesCount: likesCount,
  20138. commentCount: commentCount,
  20139. isLikes: isLikes,
  20140. commentJson: commentJson,
  20141. likeJson: likeJson
  20142. };
  20143. _worksStudent[i].push(_work);
  20144. _worksStudent2[i].push(_work);
  20145. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20146. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  20147. //选择题
  20148. let _work = {
  20149. userid: b[j].userid,
  20150. ateacher: b[j].ateacher,
  20151. wid: b[j].id,
  20152. works: b[j].content,
  20153. sName: b[j].name,
  20154. type: 16,
  20155. ttype: b[j].ttype,
  20156. time: b[j].time,
  20157. score: b[j].score,
  20158. img: b[j].img,
  20159. likesCount: likesCount,
  20160. commentCount: commentCount,
  20161. isLikes: isLikes,
  20162. commentJson: commentJson,
  20163. aiCode: b[j].aiCode,
  20164. teacherCode: b[j].teacherCode,
  20165. likeJson: likeJson
  20166. };
  20167. _worksStudent[i].push(_work);
  20168. _worksStudent2[i].push(_work);
  20169. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20170. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  20171. //选择题
  20172. let _work = {
  20173. userid: b[j].userid,
  20174. ateacher: b[j].ateacher,
  20175. wid: b[j].id,
  20176. works: b[j].content,
  20177. sName: b[j].name,
  20178. type: 17,
  20179. ttype: b[j].ttype,
  20180. time: b[j].time,
  20181. score: b[j].score,
  20182. img: b[j].img,
  20183. likesCount: likesCount,
  20184. commentCount: commentCount,
  20185. isLikes: isLikes,
  20186. commentJson: commentJson,
  20187. likeJson: likeJson
  20188. };
  20189. _worksStudent[i].push(_work);
  20190. _worksStudent2[i].push(_work);
  20191. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20192. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  20193. //交互视频
  20194. let _work = {
  20195. userid: b[j].userid,
  20196. ateacher: b[j].ateacher,
  20197. wid: b[j].id,
  20198. works: b[j].content,
  20199. sName: b[j].name,
  20200. type: 14,
  20201. ttype: b[j].ttype,
  20202. time: b[j].time,
  20203. score: b[j].score,
  20204. img: b[j].img,
  20205. likesCount: likesCount,
  20206. commentCount: commentCount,
  20207. isLikes: isLikes,
  20208. commentJson: commentJson,
  20209. likeJson: likeJson
  20210. };
  20211. _worksStudent[i].push(_work);
  20212. _worksStudent2[i].push(_work);
  20213. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20214. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  20215. let _gindex = JSON.parse(b[j].content);
  20216. if (
  20217. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  20218. b[j].userid
  20219. ) != -1
  20220. ) {
  20221. let _work = {
  20222. userid: b[j].userid,
  20223. ateacher: b[j].ateacher,
  20224. wid: b[j].id,
  20225. works: _gindex.url,
  20226. sName: b[j].name,
  20227. type: _gindex.type,
  20228. ttype: b[j].ttype,
  20229. time: b[j].time,
  20230. score: b[j].score,
  20231. img: b[j].img,
  20232. likesCount: likesCount,
  20233. commentCount: commentCount,
  20234. isLikes: isLikes,
  20235. commentJson: commentJson,
  20236. likeJson: likeJson
  20237. };
  20238. _worksStudent[i][_gindex.groupIndex].push(_work);
  20239. _worksStudent2[i][_gindex.groupIndex].push(_work);
  20240. }
  20241. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20242. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  20243. let _work = {
  20244. userid: b[j].userid,
  20245. ateacher: b[j].ateacher,
  20246. wid: b[j].id,
  20247. works: b[j].content,
  20248. sName: b[j].name ? b[j].name : b[j].userid,
  20249. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  20250. ttype: b[j].ttype,
  20251. time: b[j].time,
  20252. score: b[j].score,
  20253. img: b[j].img,
  20254. likesCount: likesCount,
  20255. commentCount: commentCount,
  20256. isLikes: isLikes,
  20257. commentJson: commentJson,
  20258. likeJson: likeJson
  20259. };
  20260. _worksStudent[i].push(_work);
  20261. _worksStudent2[i].push(_work);
  20262. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20263. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  20264. let _work = {
  20265. userid: b[j].userid,
  20266. ateacher: b[j].ateacher,
  20267. wid: b[j].id,
  20268. works: b[j].content,
  20269. sName: b[j].name ? b[j].name : b[j].userid,
  20270. type: 12,
  20271. ttype: b[j].ttype,
  20272. time: b[j].time,
  20273. score: b[j].score,
  20274. img: b[j].img,
  20275. likesCount: likesCount,
  20276. commentCount: commentCount,
  20277. isLikes: isLikes,
  20278. commentJson: commentJson,
  20279. likeJson: likeJson
  20280. };
  20281. _worksStudent[i].push(_work);
  20282. _worksStudent2[i].push(_work);
  20283. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20284. } else if (
  20285. a[i].tool[0] == 57 &&
  20286. b[j].atool == 57 &&
  20287. b[j].type == 12
  20288. ) {
  20289. let _work = {
  20290. userid: b[j].userid,
  20291. ateacher: b[j].ateacher,
  20292. wid: b[j].id,
  20293. works: b[j].content,
  20294. sName: b[j].name ? b[j].name : b[j].userid,
  20295. type: 12,
  20296. ttype: b[j].ttype,
  20297. time: b[j].time,
  20298. score: b[j].score,
  20299. img: b[j].img,
  20300. likesCount: likesCount,
  20301. commentCount: commentCount,
  20302. isLikes: isLikes,
  20303. commentJson: commentJson,
  20304. likeJson: likeJson
  20305. };
  20306. _worksStudent[i].push(_work);
  20307. _worksStudent2[i].push(_work);
  20308. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20309. } else if (
  20310. a[i].tool[0] == 57 &&
  20311. b[j].atool == 57 &&
  20312. b[j].type == 15
  20313. ) {
  20314. let _work = {
  20315. userid: b[j].userid,
  20316. ateacher: b[j].ateacher,
  20317. wid: b[j].id,
  20318. works: b[j].content,
  20319. sName: b[j].name ? b[j].name : b[j].userid,
  20320. type: 15,
  20321. ttype: b[j].ttype,
  20322. time: b[j].time,
  20323. score: b[j].score,
  20324. img: b[j].img,
  20325. likesCount: likesCount,
  20326. commentCount: commentCount,
  20327. isLikes: isLikes,
  20328. commentJson: commentJson,
  20329. likeJson: likeJson
  20330. };
  20331. _worksStudent[i].push(_work);
  20332. _worksStudent2[i].push(_work);
  20333. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20334. }
  20335. }
  20336. }
  20337. if (_worksStudent[i] && _worksStudent[i].length) {
  20338. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  20339. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20340. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20341. var scoreA = parseFloat(jscoreA);
  20342. var scoreB = parseFloat(jscoreB);
  20343. if (scoreA == scoreB) {
  20344. return b.likesCount - a.likesCount;
  20345. }
  20346. return scoreB - scoreA;
  20347. });
  20348. if (this.isGroup) {
  20349. for (
  20350. var groupI = 0;
  20351. groupI < this.courseGroup.group.length;
  20352. groupI++
  20353. ) {
  20354. this.courseGroup.group[groupI].works[
  20355. i
  20356. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20357. a,
  20358. b
  20359. ) {
  20360. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20361. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20362. var scoreA = parseFloat(jscoreA);
  20363. var scoreB = parseFloat(jscoreB);
  20364. if (scoreA == scoreB) {
  20365. return b.likesCount - a.likesCount;
  20366. }
  20367. return scoreB - scoreA;
  20368. });
  20369. }
  20370. }
  20371. }
  20372. }
  20373. this.timeWorkList = _worksStudent2;
  20374. for (var i = 0; i < a.length; i++) {
  20375. for (var j = 0; j < b.length; j++) {
  20376. var data = b[j];
  20377. if (i == b[j].tool) {
  20378. if (data.type == 2 || data.type == 8) {
  20379. for (var z = 0; z < this.checkJson[i].length; z++) {
  20380. this.checkJson[i][z].checkPerent = [];
  20381. this.checkJson[i][z].right = Math.round(
  20382. (this.checkJson[i][z].rightPerson.length /
  20383. parseInt(_worksStudent[i].length)) *
  20384. 100
  20385. );
  20386. let aaaa = this.checkJson[i][z];
  20387. for (
  20388. var k = 0;
  20389. k < this.checkJson[i][z].checkCount.length;
  20390. k++
  20391. ) {
  20392. this.checkJson[i][z].checkPerent.push(
  20393. Math.round(
  20394. (this.checkJson[i][z].checkCount[k] /
  20395. parseInt(_worksStudent[i].length)) *
  20396. 100
  20397. )
  20398. );
  20399. }
  20400. }
  20401. } else if (data.type == 9) {
  20402. for (var z = 0; z < this.checkJson[i].length; z++) {
  20403. this.checkJson[i][z].checkPerent = [];
  20404. this.checkJson[i][z].right = Math.round(
  20405. (this.checkJson[i][z].rightPerson.length /
  20406. this.checkJson[i][z].checkPerson.length) *
  20407. 100
  20408. );
  20409. }
  20410. }
  20411. }
  20412. }
  20413. }
  20414. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20415. this.joinGroup(gindex);
  20416. }
  20417. this.worksStudent = _worksStudent;
  20418. if (
  20419. JSON.stringify(this.worksStudentCopy) !=
  20420. JSON.stringify(this.worksStudent)
  20421. ) {
  20422. console.log("88888999999");
  20423. this.worksStudentCopy = this.worksStudent;
  20424. this.AIloading = [];
  20425. this.loopLoading = [];
  20426. this.worksStudent.forEach((e, index) => {
  20427. this.loopLoading.push({ loading: false });
  20428. this.AIloading.push([]);
  20429. e.forEach(k => {
  20430. this.AIloading[index].push({ loading: false, sco: 0 });
  20431. });
  20432. });
  20433. this.refreshAssembly();
  20434. }
  20435. this.selectWorksStudent();
  20436. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20437. this.$nextTick(() => {
  20438. setTimeout(() => {
  20439. setTimeout(() => {
  20440. this.panToolHeight("tool-" + ci);
  20441. }, 500);
  20442. }, 0);
  20443. });
  20444. }
  20445. })
  20446. .catch(err => {
  20447. console.error(err);
  20448. });
  20449. },
  20450. pngToWhiteBg(file) {
  20451. const _file = file;
  20452. let read = new FileReader();
  20453. read.readAsDataURL(file); // 文件转base64
  20454. return new Promise((resolve, reject) => {
  20455. read.onload = e => {
  20456. let img = new Image();
  20457. img.src = e.target.result;
  20458. img.onload = async () => {
  20459. // 生成canvas
  20460. let canvas = document.createElement("canvas");
  20461. let context = canvas.getContext("2d");
  20462. // 绘制图片到canvas上
  20463. canvas.width = img.width;
  20464. canvas.height = img.height;
  20465. // 在canvas绘制前填充白色背景
  20466. context.fillStyle = "#fff";
  20467. context.fillRect(0, 0, canvas.width, canvas.height);
  20468. context.drawImage(img, 0, 0);
  20469. let base64 = canvas.toDataURL(file["type"], 1);
  20470. let newFile = this.dataUrlToFile(base64, _file);
  20471. resolve(newFile);
  20472. };
  20473. };
  20474. });
  20475. },
  20476. dataUrlToFile(dataurl, file) {
  20477. let arr = dataurl.split(","),
  20478. mime = arr[0].match(/:(.*?);/)[1],
  20479. bstr = atob(arr[1]),
  20480. n = bstr.length,
  20481. u8arr = new Uint8Array(n);
  20482. while (n--) {
  20483. u8arr[n] = bstr.charCodeAt(n);
  20484. }
  20485. // return new Blob([u8arr], { type: mime });
  20486. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20487. type: mime
  20488. });
  20489. },
  20490. async beforeUpload1(event, type, i) {
  20491. // this.$message.success('进入上传')
  20492. var file = "";
  20493. if (type == 5) {
  20494. file = event;
  20495. } else {
  20496. file = event.target.files[0];
  20497. }
  20498. var credentials = {
  20499. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20500. secretAccessKey: "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"
  20501. }; //秘钥形式的登录上传
  20502. window.AWS.config.update(credentials);
  20503. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20504. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20505. var _this = this;
  20506. _this.progress = 0;
  20507. _this.proVisible = true;
  20508. _this.isFinishSize = 0;
  20509. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20510. var b = [
  20511. "DOC",
  20512. "DOCX",
  20513. "DOCM",
  20514. "DOTM",
  20515. "DOTX",
  20516. "PPTX",
  20517. "PPSX",
  20518. "PPT",
  20519. "PPS",
  20520. "PPTM",
  20521. "POTM",
  20522. "PPAM",
  20523. "POTX",
  20524. "PPSM"
  20525. ];
  20526. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20527. var photoA = [
  20528. "BMP",
  20529. "GIF",
  20530. "PNG",
  20531. "JPEG",
  20532. "JPEG",
  20533. "JPG",
  20534. "TIF",
  20535. "PCX",
  20536. "TGA",
  20537. "EXIF",
  20538. "FPX",
  20539. "SVG",
  20540. "APNG"
  20541. ];
  20542. // if (
  20543. // b.indexOf(
  20544. // file.name
  20545. // .split(".")
  20546. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20547. // ) != -1
  20548. // ) {
  20549. // if (file.size / 1024 / 1024 > 10) {
  20550. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20551. // return;
  20552. // }
  20553. // } else if (
  20554. // excelA.indexOf(
  20555. // file.name
  20556. // .split(".")
  20557. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20558. // ) != "-1"
  20559. // ) {
  20560. // if (file.size / 1024 / 1024 > 5) {
  20561. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20562. // return;
  20563. // }
  20564. // }
  20565. if (
  20566. photoA.indexOf(
  20567. file.name
  20568. .split(".")
  20569. [file.name.split(".").length - 1].toLocaleUpperCase()
  20570. ) != -1 &&
  20571. type != 4
  20572. ) {
  20573. // const blob = await imageConversion.compress(file, 0.8)
  20574. file = await this.pngToWhiteBg(file);
  20575. const blob = await imageConversion.compressAccurately(file, 256);
  20576. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20577. file = new File([blob], file.name, { type: file.type });
  20578. }
  20579. if (file) {
  20580. var params = {
  20581. Key:
  20582. file.name.split(".")[0] +
  20583. new Date().getTime() +
  20584. "." +
  20585. file.name.split(".")[file.name.split(".").length - 1],
  20586. ContentType: file.type,
  20587. Body: file,
  20588. "Access-Control-Allow-Credentials": "*",
  20589. ACL: "public-read"
  20590. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20591. var options = {
  20592. // partSize: 2048 * 1024 * 1024,
  20593. partSize: 1024 * 1024 * 1024,
  20594. queueSize: 2,
  20595. leavePartsOnError: true
  20596. };
  20597. bucket
  20598. .upload(params, options)
  20599. .on("httpUploadProgress", function(evt) {
  20600. //这里可以写进度条
  20601. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20602. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20603. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20604. })
  20605. .send(function(err, data) {
  20606. _this.progress = 100;
  20607. _this.isFinishSize = _this.isAllSize;
  20608. setTimeout(() => {
  20609. _this.proVisible = false;
  20610. }, 1000);
  20611. if (err) {
  20612. var a = _this.$refs.upload1.uploadFiles;
  20613. a.splice(a.length - 1, a.length);
  20614. _this.$message.error("上传失败");
  20615. } else {
  20616. // _this.$message.success('上传成功')
  20617. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20618. var c = [
  20619. "AVI",
  20620. "NAVI",
  20621. "MPEG",
  20622. "ASF",
  20623. "MOV",
  20624. "WMV",
  20625. "3GP",
  20626. "RM",
  20627. "RMVB",
  20628. "FLV",
  20629. "F4V",
  20630. "H.264",
  20631. "H.265",
  20632. "REAL VIDEO",
  20633. "MKV",
  20634. "WebM",
  20635. "HDDVD",
  20636. "MP4",
  20637. "MPG",
  20638. "M4V",
  20639. "MGV",
  20640. "OGV",
  20641. "QTM",
  20642. "STR",
  20643. "AMC",
  20644. "DVX",
  20645. "EVO",
  20646. "DAT",
  20647. "OGG",
  20648. "OGM"
  20649. ];
  20650. if (type == 1) {
  20651. _this.studyJuri[0].cover.push({
  20652. name: file.name,
  20653. url: data.Location,
  20654. uid: file.uid
  20655. });
  20656. if (
  20657. c.indexOf(
  20658. _this.studyJuri[0].cover[0].url
  20659. .split(".")
  20660. [
  20661. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20662. ].toLocaleUpperCase()
  20663. ) != -1
  20664. ) {
  20665. _this.fileType = 2;
  20666. } else if (
  20667. b.indexOf(
  20668. _this.studyJuri[0].cover[0].url
  20669. .split(".")
  20670. [
  20671. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20672. ].toLocaleUpperCase()
  20673. ) != -1
  20674. ) {
  20675. _this.fileType = 1;
  20676. } else if (
  20677. photoA.indexOf(
  20678. _this.studyJuri[0].cover[0].url
  20679. .split(".")
  20680. [
  20681. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20682. ].toLocaleUpperCase()
  20683. ) != -1
  20684. ) {
  20685. _this.fileType = 0;
  20686. } else {
  20687. _this.fileType = 3;
  20688. }
  20689. _this.imgChange(null, null, type);
  20690. } else if (type == 2) {
  20691. _this.upToolImg = data.Location;
  20692. _this.imgChange(null, null, type);
  20693. _this.addCourseWorks(i);
  20694. } else if (type == 4) {
  20695. _this.addPz("3", data.Location);
  20696. } else if (type == 5) {
  20697. _this.addImgDrawImG(data.Location);
  20698. } else if (type == 6) {
  20699. var _ftype = 1;
  20700. if (
  20701. c.indexOf(
  20702. data.Location.split(".")[
  20703. data.Location.split(".").length - 1
  20704. ].toLocaleUpperCase()
  20705. ) != -1
  20706. ) {
  20707. _ftype = 5;
  20708. } else if (
  20709. b.indexOf(
  20710. data.Location.split(".")[
  20711. data.Location.split(".").length - 1
  20712. ].toLocaleUpperCase()
  20713. ) != -1
  20714. ) {
  20715. _ftype = 4;
  20716. } else {
  20717. _ftype = 1;
  20718. }
  20719. _this.plworkFile.push({
  20720. name: file.name,
  20721. url: data.Location,
  20722. uid: file.uid,
  20723. fileType: _ftype,
  20724. username:
  20725. _this.plworkFile.length > 10
  20726. ? _this.plworkFile.length + 1
  20727. : "0" + (_this.plworkFile.length + 1)
  20728. });
  20729. } else if (type == 7) {
  20730. _this.addCourseWorksGong(i, data.Location, 32);
  20731. } else if (type == 8) {
  20732. _this.addCourseWorksGong(i, data.Location, 57);
  20733. }
  20734. _this.imgChange(null, null, type);
  20735. console.log(data.Location);
  20736. // _this.$message.success('上传成功'+data.Location)
  20737. }
  20738. });
  20739. }
  20740. },
  20741. async beforeUpload3(event, type, i) {
  20742. // this.$message.success('进入上传')
  20743. let file = "";
  20744. let cfindex2 = 0;
  20745. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20746. file = event.target.files[cfindex];
  20747. var credentials = {
  20748. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20749. secretAccessKey: "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"
  20750. }; //秘钥形式的登录上传
  20751. window.AWS.config.update(credentials);
  20752. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20753. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20754. var _this = this;
  20755. // _this.progress = 0;
  20756. _this.proVisible2 = true;
  20757. var b = [
  20758. "DOC",
  20759. "DOCX",
  20760. "DOCM",
  20761. "DOTM",
  20762. "DOTX",
  20763. "PPTX",
  20764. "PPSX",
  20765. "PPT",
  20766. "PPS",
  20767. "PPTM",
  20768. "POTM",
  20769. "PPAM",
  20770. "POTX",
  20771. "PPSM"
  20772. ];
  20773. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20774. var photoA = [
  20775. "BMP",
  20776. "GIF",
  20777. "PNG",
  20778. "JPEG",
  20779. "JPG",
  20780. "TIF",
  20781. "PCX",
  20782. "TGA",
  20783. "EXIF",
  20784. "FPX",
  20785. "SVG",
  20786. "APNG"
  20787. ];
  20788. if (
  20789. photoA.indexOf(
  20790. file.name
  20791. .split(".")
  20792. [file.name.split(".").length - 1].toLocaleUpperCase()
  20793. ) != -1 &&
  20794. type != 4
  20795. ) {
  20796. // const blob = await imageConversion.compress(file, 0.8)
  20797. file = await this.pngToWhiteBg(file);
  20798. const blob = await imageConversion.compressAccurately(file, 256);
  20799. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20800. file = new File([blob], file.name, { type: file.type });
  20801. }
  20802. if (file) {
  20803. var params = {
  20804. Key:
  20805. file.name.split(".")[0] +
  20806. new Date().getTime() +
  20807. "." +
  20808. file.name.split(".")[file.name.split(".").length - 1],
  20809. ContentType: file.type,
  20810. Body: file,
  20811. "Access-Control-Allow-Credentials": "*",
  20812. ACL: "public-read"
  20813. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20814. var options = {
  20815. // partSize: 2048 * 1024 * 1024,
  20816. partSize: 1024 * 1024 * 1024,
  20817. queueSize: 2,
  20818. leavePartsOnError: true
  20819. };
  20820. bucket
  20821. .upload(params, options)
  20822. .on("httpUploadProgress", function(evt) {
  20823. //这里可以写进度条
  20824. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20825. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20826. })
  20827. .send(function(err, data) {
  20828. // _this.progress = 100;
  20829. cfindex2++;
  20830. setTimeout(() => {
  20831. if (
  20832. cfindex2 == event.target.files.length - 1 ||
  20833. cfindex2 > event.target.files.length - 1
  20834. ) {
  20835. _this.proVisible2 = false;
  20836. }
  20837. }, 1000);
  20838. if (err) {
  20839. var a = _this.$refs.upload1.uploadFiles;
  20840. a.splice(a.length - 1, a.length);
  20841. _this.$message.error("上传失败");
  20842. } else {
  20843. // _this.$message.success('上传成功')
  20844. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20845. var c = [
  20846. "AVI",
  20847. "NAVI",
  20848. "MPEG",
  20849. "ASF",
  20850. "MOV",
  20851. "WMV",
  20852. "3GP",
  20853. "RM",
  20854. "RMVB",
  20855. "FLV",
  20856. "F4V",
  20857. "H.264",
  20858. "H.265",
  20859. "REAL VIDEO",
  20860. "MKV",
  20861. "WebM",
  20862. "HDDVD",
  20863. "MP4",
  20864. "MPG",
  20865. "M4V",
  20866. "MGV",
  20867. "OGV",
  20868. "QTM",
  20869. "STR",
  20870. "AMC",
  20871. "DVX",
  20872. "EVO",
  20873. "DAT",
  20874. "OGG",
  20875. "OGM"
  20876. ];
  20877. if (type == 1) {
  20878. _this.studyJuri[0].cover.push({
  20879. name: file.name,
  20880. url: data.Location,
  20881. uid: file.uid
  20882. });
  20883. if (
  20884. c.indexOf(
  20885. _this.studyJuri[0].cover[0].url
  20886. .split(".")
  20887. [
  20888. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20889. ].toLocaleUpperCase()
  20890. ) != -1
  20891. ) {
  20892. _this.fileType = 2;
  20893. } else if (
  20894. b.indexOf(
  20895. _this.studyJuri[0].cover[0].url
  20896. .split(".")
  20897. [
  20898. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20899. ].toLocaleUpperCase()
  20900. ) != -1
  20901. ) {
  20902. _this.fileType = 1;
  20903. } else {
  20904. _this.fileType = 0;
  20905. }
  20906. _this.imgChange(null, null, type);
  20907. } else if (type == 2) {
  20908. _this.upToolImg = data.Location;
  20909. _this.imgChange(null, null, type);
  20910. _this.addCourseWorks(i);
  20911. } else if (type == 4) {
  20912. _this.addPz("3", data.Location);
  20913. } else if (type == 5) {
  20914. _this.addImgDrawImG(data.Location);
  20915. } else if (type == 6) {
  20916. var _ftype = 1;
  20917. if (
  20918. c.indexOf(
  20919. data.Location.split(".")[
  20920. data.Location.split(".").length - 1
  20921. ].toLocaleUpperCase()
  20922. ) != -1
  20923. ) {
  20924. _ftype = 5;
  20925. } else if (
  20926. b.indexOf(
  20927. data.Location.split(".")[
  20928. data.Location.split(".").length - 1
  20929. ].toLocaleUpperCase()
  20930. ) != -1
  20931. ) {
  20932. _ftype = 4;
  20933. } else {
  20934. _ftype = 1;
  20935. }
  20936. _this.plworkFile.push({
  20937. name: file.name,
  20938. url: data.Location,
  20939. uid: file.uid,
  20940. fileType: _ftype,
  20941. username:
  20942. _this.plworkFile.length + 1 > 9
  20943. ? _this.plworkFile.length + 1
  20944. : "0" + (_this.plworkFile.length + 1)
  20945. });
  20946. }
  20947. _this.imgChange(null, null, type);
  20948. console.log(data.Location);
  20949. // _this.$message.success('上传成功'+data.Location)
  20950. }
  20951. });
  20952. }
  20953. }
  20954. },
  20955. beforeUpload2(event, type) {
  20956. var file = event.target.files[0];
  20957. var credentials = {
  20958. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20959. secretAccessKey: "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"
  20960. }; //秘钥形式的登录上传
  20961. window.AWS.config.update(credentials);
  20962. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20963. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20964. var _this = this;
  20965. _this.progress = 0;
  20966. _this.proVisible = true;
  20967. if (file) {
  20968. var params = {
  20969. Key:
  20970. file.name.split(".")[0] +
  20971. new Date().getTime() +
  20972. "." +
  20973. file.name.split(".")[file.name.split(".").length - 1],
  20974. ContentType: file.type,
  20975. Body: file,
  20976. "Access-Control-Allow-Credentials": "*",
  20977. ACL: "public-read"
  20978. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20979. var options = {
  20980. partSize: 2048 * 1024 * 1024,
  20981. queueSize: 2,
  20982. leavePartsOnError: true
  20983. };
  20984. bucket
  20985. .upload(params, options)
  20986. .on("httpUploadProgress", function(evt) {
  20987. //这里可以写进度条
  20988. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20989. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20990. })
  20991. .send(function(err, data) {
  20992. _this.progress = 100;
  20993. setTimeout(() => {
  20994. _this.proVisible = false;
  20995. }, 1000);
  20996. if (err) {
  20997. var a = _this.$refs.upload1.uploadFiles;
  20998. a.splice(a.length - 1, a.length);
  20999. _this.$message.error("上传失败");
  21000. } else {
  21001. if (type == 2) {
  21002. _this.studyJuri[0].upVedio.push({
  21003. name: file.name,
  21004. url: data.Location,
  21005. uid: file.uid
  21006. });
  21007. _this.imgChange(null, null, type);
  21008. } else if (type == 3) {
  21009. _this.studyJuri[0].upFile.push({
  21010. name: file.name,
  21011. url: data.Location,
  21012. uid: file.uid
  21013. });
  21014. _this.imgChange(null, null, type);
  21015. }
  21016. console.log(data.Location);
  21017. }
  21018. });
  21019. }
  21020. },
  21021. allScrell() {
  21022. window.topU.postMessage({ allScreen: this.screenType }, "*");
  21023. },
  21024. // 0上一步 1下一步
  21025. nextOrpreSteps(t) {
  21026. if (this.IsFollow && this.tType == 2) {
  21027. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21028. return;
  21029. }
  21030. var b = this.chapInfoList.length - 1;
  21031. if (t == 0) {
  21032. if (this.courseType == 0) {
  21033. if (this.taskCount == 0) {
  21034. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  21035. if (this.IsLookOpen) {
  21036. if (
  21037. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  21038. ) {
  21039. if (
  21040. this.courseDetail.userid != this.userid &&
  21041. (!this.courseDetail.course_teacher ||
  21042. (this.courseDetail.course_teacher &&
  21043. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21044. -1))
  21045. ) {
  21046. this.$message.error("任务未解锁");
  21047. } else {
  21048. this.$message.error("上一任务未解锁");
  21049. }
  21050. return;
  21051. }
  21052. }
  21053. this.navList[this.courseType].isOpen = false;
  21054. this.courseType = b;
  21055. this.taskCount =
  21056. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21057. .length - 1;
  21058. this.navList[this.courseType].isOpen = true;
  21059. } else {
  21060. this.taskCount--;
  21061. }
  21062. } else {
  21063. if (this.taskCount == 0) {
  21064. this.navList[this.courseType].isOpen = false;
  21065. this.courseType--;
  21066. this.taskCount =
  21067. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21068. .length - 1;
  21069. this.navList[this.courseType].isOpen = true;
  21070. } else {
  21071. this.taskCount--;
  21072. }
  21073. }
  21074. } else {
  21075. if (this.courseType == b) {
  21076. if (
  21077. this.taskCount ==
  21078. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21079. 1
  21080. ) {
  21081. this.navList[this.courseType].isOpen = false;
  21082. this.courseType = 0;
  21083. this.taskCount = 0;
  21084. this.navList[this.courseType].isOpen = true;
  21085. } else {
  21086. var bbb = parseInt(this.taskCount) + 1;
  21087. if (
  21088. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21089. .isLook &&
  21090. this.courseDetail.userid != this.userid &&
  21091. (!this.courseDetail.course_teacher ||
  21092. (this.courseDetail.course_teacher &&
  21093. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21094. -1)) &&
  21095. this.IsLookOpen
  21096. ) {
  21097. this.$message.error("任务未解锁");
  21098. return;
  21099. }
  21100. this.taskCount++;
  21101. if (this.IsLookOpen) {
  21102. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21103. this.taskCount
  21104. ].isLook = true;
  21105. this.addCourseState(3);
  21106. }
  21107. }
  21108. } else {
  21109. if (
  21110. this.taskCount ==
  21111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21112. 1
  21113. ) {
  21114. var bbb = parseInt(this.courseType) + 1;
  21115. if (
  21116. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  21117. this.courseDetail.userid != this.userid &&
  21118. (!this.courseDetail.course_teacher ||
  21119. (this.courseDetail.course_teacher &&
  21120. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21121. -1)) &&
  21122. this.IsLookOpen
  21123. ) {
  21124. this.$message.error("任务未解锁");
  21125. return;
  21126. }
  21127. this.navList[this.courseType].isOpen = false;
  21128. this.courseType++;
  21129. this.taskCount = 0;
  21130. this.navList[this.courseType].isOpen = true;
  21131. } else {
  21132. var bbb = parseInt(this.taskCount) + 1;
  21133. if (
  21134. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21135. .isLook &&
  21136. this.courseDetail.userid != this.userid &&
  21137. (!this.courseDetail.course_teacher ||
  21138. (this.courseDetail.course_teacher &&
  21139. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21140. -1)) &&
  21141. this.IsLookOpen
  21142. ) {
  21143. this.$message.error("任务未解锁");
  21144. return;
  21145. }
  21146. this.taskCount++;
  21147. }
  21148. if (this.IsLookOpen) {
  21149. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21150. this.taskCount
  21151. ].isLook = true;
  21152. this.addCourseState(3);
  21153. }
  21154. }
  21155. // if (
  21156. // this.taskCount ==
  21157. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  21158. // ) {
  21159. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  21160. // } else {
  21161. // this.taskCount++;
  21162. // }
  21163. }
  21164. document.scrollingElement.scrollTop = 0;
  21165. this.showType = 7;
  21166. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21167. // if (this.vedio[this.taskCount].length > 0) {
  21168. // var a =
  21169. // document.getElementsByClassName("box_course")[this.taskCount]
  21170. // .offsetHeight;
  21171. // document.getElementsByClassName("vedioList")[
  21172. // this.taskCount
  21173. // ].style.height = a + "px";
  21174. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  21175. // a - 40 + "px";
  21176. // }
  21177. this.isNoHomeWork = false;
  21178. (this.studyJuri = [
  21179. {
  21180. content: "",
  21181. cover: [],
  21182. upVedio: [],
  21183. upFile: []
  21184. }
  21185. ]),
  21186. (this.radio = []);
  21187. this.isClickNav = "";
  21188. this.selectPz();
  21189. this.getHomeWork();
  21190. this.getCourseDetail(2);
  21191. this.$forceUpdate();
  21192. },
  21193. openTask(s, n, i) {
  21194. this.refreshAssembly();
  21195. if (this.IsFollow && this.tType == 2) {
  21196. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21197. return;
  21198. }
  21199. if (this.IsLookOpen &&
  21200. this.courseDetail.userid != this.userid &&
  21201. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  21202. if (
  21203. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  21204. this.courseDetail.userid != this.userid &&
  21205. (!this.courseDetail.course_teacher ||
  21206. (this.courseDetail.course_teacher &&
  21207. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  21208. ) {
  21209. this.$message.error("任务未解锁");
  21210. return;
  21211. }
  21212. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  21213. if (
  21214. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  21215. .isLook
  21216. ) {
  21217. this.$message.error("上一任务未解锁");
  21218. return;
  21219. }
  21220. } else if (s > this.courseType) {
  21221. if (n > 0) {
  21222. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  21223. this.$message.error("上一任务未解锁");
  21224. return;
  21225. }
  21226. } else {
  21227. if (
  21228. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  21229. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  21230. ].isLook
  21231. ) {
  21232. this.$message.error("上一任务未解锁");
  21233. return;
  21234. }
  21235. }
  21236. }
  21237. }
  21238. if (this.navList[s].task[n].isOpen == true) {
  21239. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  21240. return;
  21241. }
  21242. let flag = this.courseType == s;
  21243. this.courseType = s;
  21244. this.navId = i;
  21245. this.taskCount = n;
  21246. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  21247. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  21248. this.courseType
  21249. ].task[this.taskCount].isOpen;
  21250. if (this.IsLookOpen) {
  21251. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21252. this.taskCount
  21253. ].isLook = true;
  21254. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  21255. this.addCourseState(3,yym);
  21256. }
  21257. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  21258. this.isCloseList[ci].isClose = 0;
  21259. this.isCloseList[ci].isCloseBoolean = false;
  21260. this.$nextTick(() => {
  21261. setTimeout(() => {
  21262. setTimeout(() => {
  21263. this.panToolHeight("tool-" + ci);
  21264. }, 0);
  21265. }, 0);
  21266. });
  21267. }
  21268. this.showType = 7;
  21269. this.isNoHomeWork = false;
  21270. (this.studyJuri = [
  21271. {
  21272. content: "",
  21273. cover: [],
  21274. upVedio: [],
  21275. upFile: []
  21276. }
  21277. ]),
  21278. (this.radio = []);
  21279. document.scrollingElement.scrollTop = 0;
  21280. // setTimeout(() => {
  21281. // let a = document.getElementById(i);
  21282. // if (a.offsetTop - 110 == 0) {
  21283. // window.scrollTo(0, 0);
  21284. // } else {
  21285. // window.scrollTo(0, a.offsetTop);
  21286. // }
  21287. // }, 0);
  21288. for (var z = 0; z < this.navList.length; z++) {
  21289. for (var q = 0; q < this.navList[z].task.length; q++) {
  21290. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  21291. this.navList[z].task[q].tool[w].isTool = false;
  21292. }
  21293. }
  21294. }
  21295. this.selectPz();
  21296. this.getHomeWork();
  21297. this.getCourseDetail(2);
  21298. if (flag) {
  21299. this.insertMemorandum(
  21300. `进入<span class="variable">任务${n + 1}${
  21301. this.navList[s].task[n].taskName
  21302. ? ":" + this.navList[s].task[n].taskName
  21303. : ""
  21304. }</span>`
  21305. );
  21306. } else {
  21307. this.insertMemorandum(
  21308. `进入<span class="variable">阶段${s + 1}${
  21309. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  21310. }</span>→<span class="variable">任务${n + 1}${
  21311. this.navList[s].task[n].taskName
  21312. ? ":" + this.navList[s].task[n].taskName
  21313. : ""
  21314. }</span>`
  21315. );
  21316. }
  21317. },
  21318. get(i) {
  21319. if (this.IsFollow && this.tType == 2) {
  21320. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21321. return;
  21322. }
  21323. // for(var k=0;k<this.navList.length;k++){
  21324. // this.navList[k].isOpen = false;
  21325. // }
  21326. // this.navList[i].isOpen = true;
  21327. this.navList[i].isOpen = !this.navList[i].isOpen;
  21328. if (this.navList[i].isOpen) {
  21329. this.openTask(i, 0, i + "-0");
  21330. }
  21331. },
  21332. addQuestion() {
  21333. this.answerList.push({
  21334. answerTitle: this.answerQ,
  21335. answer: this.questionAnswer
  21336. });
  21337. let params = [
  21338. {
  21339. uid: this.userid,
  21340. cid: this.id,
  21341. stage: this.courseType,
  21342. task: this.taskCount,
  21343. tool: this.toolindex,
  21344. content: JSON.stringify(this.answerList),
  21345. type: 3
  21346. }
  21347. ];
  21348. this.ajax
  21349. .post(this.$store.state.api + "addCourseWorks", params)
  21350. .then(res => {
  21351. this.$message({
  21352. message: "提交成功",
  21353. type: "success"
  21354. });
  21355. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21356. this.answerList = [];
  21357. this.answerDialogVisible = false;
  21358. this.selectStudent();
  21359. this.selectSWorks();
  21360. this.selectSLook();
  21361. })
  21362. .catch(err => {
  21363. this.$message.error("提交失败");
  21364. console.error(err);
  21365. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21366. });
  21367. },
  21368. addQuestionTeacher() {
  21369. this.answerList.push({
  21370. answerTitle: this.answerQ,
  21371. answer: this.questionAnswer
  21372. });
  21373. let params = [
  21374. {
  21375. uid: this.sStudent.userid,
  21376. cid: this.id,
  21377. stage: this.courseType,
  21378. task: this.taskCount,
  21379. tool: this.toolindex,
  21380. content: JSON.stringify(this.answerList),
  21381. type: 3,
  21382. ateacher: this.userid
  21383. }
  21384. ];
  21385. this.ajax
  21386. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21387. .then(res => {
  21388. this.$message({
  21389. message: "提交成功",
  21390. type: "success"
  21391. });
  21392. this.answerList = [];
  21393. this.questionAnswer = "";
  21394. this.answerDialogVisibleTeacher = false;
  21395. this.selectStudent();
  21396. this.selectSWorks();
  21397. this.selectSLook();
  21398. })
  21399. .catch(err => {
  21400. this.$message.error("提交失败");
  21401. console.error(err);
  21402. });
  21403. },
  21404. refreshCourse() {
  21405. // window.location.reload();
  21406. this.navList = [];
  21407. this.getCourseDetail(1);
  21408. },
  21409. getCourseDetail(type, gindex) {
  21410. let loading;
  21411. if (type != 2) {
  21412. loading = this.$loading.service({
  21413. background: "rgba(255, 255, 255, 0.7)",
  21414. target: document.querySelector(".student_table")
  21415. });
  21416. }
  21417. this.downLoading = false;
  21418. // this.navList[0].isOpen = false;
  21419. // this.navList[this.courseType].isOpen = true;
  21420. // this.courseType = this.courseTypeLine;
  21421. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21422. let params = {
  21423. courseId: this.id
  21424. };
  21425. this.ajax
  21426. .get(this.$store.state.api + "selectCourseDetail3", params)
  21427. .then(res => {
  21428. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21429. if (type != 2) {
  21430. loading.close();
  21431. if (
  21432. this.courseType >
  21433. JSON.parse(res.data[0][0].chapters).length - 1
  21434. ) {
  21435. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21436. }
  21437. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21438. .chapterInfo[0].taskJson;
  21439. var b = [
  21440. "AVI",
  21441. "NAVI",
  21442. "MPEG",
  21443. "ASF",
  21444. "MOV",
  21445. "WMV",
  21446. "3GP",
  21447. "RM",
  21448. "RMVB",
  21449. "FLV",
  21450. "F4V",
  21451. "H.264",
  21452. "H.265",
  21453. "REAL VIDEO",
  21454. "MKV",
  21455. "WebM",
  21456. "HDDVD",
  21457. "MP4",
  21458. "MPG",
  21459. "M4V",
  21460. "MGV",
  21461. "OGV",
  21462. "QTM",
  21463. "STR",
  21464. "AMC",
  21465. "DVX",
  21466. "EVO",
  21467. "DAT",
  21468. "OGG",
  21469. "OGM",
  21470. "MP3"
  21471. ];
  21472. let _chapterData = [];
  21473. for (var i = 0; i < a.length; i++) {
  21474. var c = a[i].chapterData;
  21475. this.vedio[i] = [];
  21476. this.textList[i] = [];
  21477. this.lineList[i] = [];
  21478. this.chapToolList[i] = [];
  21479. this.file[i] = [];
  21480. this.fileC[i] = [];
  21481. _chapterData[i] = c.filter(el => {
  21482. return el.type != 12;
  21483. });
  21484. this.fileC[i] = c.filter(el => {
  21485. return el.type == 12;
  21486. });
  21487. if (this.tType == 2) {
  21488. if (this.fileC[i].length) {
  21489. let yym1 = this.fileC[i].filter(e=>{
  21490. if(!converter(e.name).includes(converter("教案"))){
  21491. return e
  21492. }
  21493. })
  21494. this.fileC[i] = yym1
  21495. }
  21496. }
  21497. // else if (c[j].type == 12) {
  21498. // this.fileC[i].push(c[j]);
  21499. // }
  21500. for (var j = 0; j < c.length; j++) {
  21501. if (c[j].type == 7) {
  21502. this.chapToolList[i].push(c[j]);
  21503. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21504. this.lineList[i].push(c[j]);
  21505. } else if (c[j].type == 6) {
  21506. this.textList[i].push(c[j]);
  21507. } else {
  21508. if (
  21509. b.indexOf(
  21510. c[j].url
  21511. .split(".")
  21512. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21513. ) != -1
  21514. ) {
  21515. this.vedio[i].push(c[j]);
  21516. } else {
  21517. this.file[i].push(c[j]);
  21518. }
  21519. }
  21520. }
  21521. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21522. d.sources[0].src =
  21523. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21524. this.playerO[i] = d;
  21525. }
  21526. this.courseDetail = res.data[0][0];
  21527. if(this.tType == 2){
  21528. this.tcid = this.arrayToArray(
  21529. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21530. this.classId ? this.classId.split(",") : []
  21531. ).join(",");
  21532. }else{
  21533. this.tcid = this.arrayToArray(
  21534. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21535. this.tcid2 ? this.tcid2.split(",") : []
  21536. ).join(",");
  21537. }
  21538. this.evalua = res.data[0][0].evaId;
  21539. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21540. this.courseType
  21541. ];
  21542. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21543. if (this.tcid && res.data[1].length) {
  21544. let _inviteA = [];
  21545. for (var ik = 0; ik < res.data[1].length; ik++) {
  21546. _inviteA.push({
  21547. cid: res.data[1][ik].classid,
  21548. ic: res.data[1][ik].code
  21549. });
  21550. }
  21551. for (var ik = 0; ik < _inviteA.length; ik++) {
  21552. if (
  21553. this.arrayToArray(
  21554. _inviteA[ik].cid.split(","),
  21555. this.tcid.split(",")
  21556. ).length
  21557. ) {
  21558. this.inviteCode = _inviteA[ik].ic;
  21559. break;
  21560. }
  21561. }
  21562. }
  21563. for (var l = 0; l < this.chapInfoList.length; l++) {
  21564. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21565. for (var m = 0; m < w.length; m++) {
  21566. w[m].id = l + "-" + m;
  21567. }
  21568. }
  21569. if (
  21570. _chapterData[this.taskCount].length &&
  21571. _chapterData[this.taskCount][0].type == 2
  21572. ) {
  21573. this.showType = 0;
  21574. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21575. } else {
  21576. if (_chapterData[this.taskCount].length > 0) {
  21577. let _url = _chapterData[this.taskCount][0].url;
  21578. if (
  21579. _chapterData[this.taskCount][0].type == 8 ||
  21580. _chapterData[this.taskCount][0].type == 14 ||
  21581. _chapterData[this.taskCount][0].type == 15
  21582. ) {
  21583. this.showType = 2;
  21584. if (
  21585. _url.indexOf("https://") == -1 &&
  21586. _url.indexOf("http://") == -1
  21587. ) {
  21588. _url = "https://" + _url;
  21589. }
  21590. this.pptImgUrl1 = _url;
  21591. } else if (_chapterData[this.taskCount][0].type == 3) {
  21592. if (
  21593. _url
  21594. .split(".")
  21595. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21596. ) {
  21597. this.showType = 3;
  21598. this.pptImgUrl1 = _url;
  21599. } else if (
  21600. this.isAssetTypeAnImage(
  21601. _url
  21602. .split(".")
  21603. [_url.split(".").length - 1].toLocaleLowerCase()
  21604. )
  21605. ) {
  21606. this.showType = 4;
  21607. this.pptImgUrl1 = _url;
  21608. } else {
  21609. this.showType = 2;
  21610. this.pptImgUrl1 =
  21611. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21612. encodeURIComponent(_url);
  21613. }
  21614. } else if (_chapterData[this.taskCount][0].type == 13) {
  21615. this.showType = 4;
  21616. this.pptImgUrl1 = _url;
  21617. } else if (_chapterData[this.taskCount][0].type == 6) {
  21618. this.showType = 1;
  21619. this.text = this.textList[this.taskCount][0];
  21620. }
  21621. }
  21622. }
  21623. this.isClickNav = 0;
  21624. if (
  21625. !_chapterData[this.taskCount].length ||
  21626. _chapterData[this.taskCount][0].type == 12
  21627. ) {
  21628. this.isClickNav = "";
  21629. this.showType = "";
  21630. }
  21631. if (this.tType == 2) {
  21632. _chapterData.forEach((e,i)=>{
  21633. if (e.length) {
  21634. let yym = e.filter(k=>{
  21635. if(!converter(k.name).includes(converter("教案"))){
  21636. return k
  21637. }
  21638. })
  21639. _chapterData[i] = yym
  21640. }
  21641. })
  21642. }
  21643. this.vChapterData = _chapterData;
  21644. } else {
  21645. this.showType = 0;
  21646. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21647. .chapterInfo[0].taskJson;
  21648. var b = [
  21649. "AVI",
  21650. "NAVI",
  21651. "MPEG",
  21652. "ASF",
  21653. "MOV",
  21654. "WMV",
  21655. "3GP",
  21656. "RM",
  21657. "RMVB",
  21658. "FLV",
  21659. "F4V",
  21660. "H.264",
  21661. "H.265",
  21662. "REAL VIDEO",
  21663. "MKV",
  21664. "WebM",
  21665. "HDDVD",
  21666. "MP4",
  21667. "MPG",
  21668. "M4V",
  21669. "MGV",
  21670. "OGV",
  21671. "QTM",
  21672. "STR",
  21673. "AMC",
  21674. "DVX",
  21675. "EVO",
  21676. "DAT",
  21677. "OGG",
  21678. "OGM",
  21679. "MP3"
  21680. ];
  21681. let _chapterData = [];
  21682. for (var i = 0; i < a.length; i++) {
  21683. var c = a[i].chapterData;
  21684. this.vedio[i] = [];
  21685. this.textList[i] = [];
  21686. this.lineList[i] = [];
  21687. this.chapToolList[i] = [];
  21688. this.file[i] = [];
  21689. this.fileC[i] = [];
  21690. _chapterData[i] = c.filter(el => {
  21691. return el.type != 12;
  21692. });
  21693. this.fileC[i] = c.filter(el => {
  21694. return el.type == 12;
  21695. });
  21696. if (this.tType == 2) {
  21697. if (this.fileC[i].length) {
  21698. let yym1 = this.fileC[i].filter(e=>{
  21699. if(!converter(e.name).includes(converter("教案"))){
  21700. return e
  21701. }
  21702. })
  21703. this.fileC[i] = yym1
  21704. }
  21705. }
  21706. for (var j = 0; j < c.length; j++) {
  21707. if (c[j].type == 7) {
  21708. this.chapToolList[i].push(c[j]);
  21709. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21710. this.lineList[i].push(c[j]);
  21711. } else if (c[j].type == 6) {
  21712. this.textList[i].push(c[j]);
  21713. } else {
  21714. if (
  21715. b.indexOf(
  21716. c[j].url
  21717. .split(".")
  21718. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21719. ) != -1
  21720. ) {
  21721. this.vedio[i].push(c[j]);
  21722. } else {
  21723. this.file[i].push(c[j]);
  21724. }
  21725. }
  21726. }
  21727. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21728. d.sources[0].src =
  21729. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21730. this.playerO[i] = d;
  21731. }
  21732. if (
  21733. _chapterData[this.taskCount].length &&
  21734. _chapterData[this.taskCount][0].type == 2
  21735. ) {
  21736. this.showType = 0;
  21737. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21738. } else {
  21739. if (_chapterData[this.taskCount].length > 0) {
  21740. let _url = _chapterData[this.taskCount][0].url;
  21741. if (
  21742. _chapterData[this.taskCount][0].type == 8 ||
  21743. _chapterData[this.taskCount][0].type == 14 ||
  21744. _chapterData[this.taskCount][0].type == 15
  21745. ) {
  21746. this.showType = 2;
  21747. if (
  21748. _url.indexOf("https://") == -1 &&
  21749. _url.indexOf("http://") == -1
  21750. ) {
  21751. _url = "https://" + _url;
  21752. }
  21753. this.pptImgUrl1 = _url;
  21754. } else if (_chapterData[this.taskCount][0].type == 3) {
  21755. if (
  21756. _url
  21757. .split(".")
  21758. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21759. ) {
  21760. this.showType = 3;
  21761. this.pptImgUrl1 = _url;
  21762. } else if (
  21763. this.isAssetTypeAnImage(
  21764. _url
  21765. .split(".")
  21766. [_url.split(".").length - 1].toLocaleLowerCase()
  21767. )
  21768. ) {
  21769. this.showType = 4;
  21770. this.pptImgUrl1 = _url;
  21771. } else {
  21772. this.showType = 2;
  21773. this.pptImgUrl1 =
  21774. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21775. encodeURIComponent(_url);
  21776. }
  21777. } else if (_chapterData[this.taskCount][0].type == 13) {
  21778. this.showType = 4;
  21779. this.pptImgUrl1 = _url;
  21780. } else if (_chapterData[this.taskCount][0].type == 6) {
  21781. this.showType = 1;
  21782. this.text = this.textList[this.taskCount][0];
  21783. }
  21784. }
  21785. }
  21786. this.isClickNav = 0;
  21787. if (
  21788. !_chapterData[this.taskCount].length ||
  21789. _chapterData[this.taskCount][0].type == 12
  21790. ) {
  21791. this.isClickNav = "";
  21792. this.showType = "";
  21793. }
  21794. if (this.tType == 2) {
  21795. _chapterData.forEach((e,i)=>{
  21796. if (e.length) {
  21797. let yym = e.filter(k=>{
  21798. if(!converter(k.name).includes(converter("教案"))){
  21799. return k
  21800. }
  21801. })
  21802. _chapterData[i] = yym
  21803. }
  21804. })
  21805. }
  21806. this.vChapterData = _chapterData;
  21807. this.$forceUpdate();
  21808. }
  21809. // console.log('this.chapInfoList22222',JS);
  21810. if (res.data[0][0].setting) {
  21811. try {
  21812. this.languageSetting =
  21813. JSON.parse(res.data[0][0].setting).languageSetting ||
  21814. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21815. ? JSON.parse(res.data[0][0].setting).languageSetting
  21816. : 0;
  21817. } catch (error) {
  21818. console.error(error);
  21819. }
  21820. }
  21821. // finalMarkList用来判断哪个工具为评分工具
  21822. if (this.courseDetail.state == 5) {
  21823. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21824. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21825. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21826. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21827. // // 没有的话在选其他工具为评分工具
  21828. // if(adc.length > 0){
  21829. // for (let k = chap.length - 1; k >= 0; k--) {
  21830. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21831. // this.finalMarkList = k;
  21832. // break;
  21833. // }
  21834. // }
  21835. // }else{
  21836. // for (let k = chap.length - 1; k >= 0; k--) {
  21837. // 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) {
  21838. // this.finalMarkList = k;
  21839. // break;
  21840. // }
  21841. // }
  21842. // }
  21843. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21844. // 不然会无限循环报错,会很难受
  21845. let aiSNum = 0;
  21846. if (
  21847. chapInfoListCopy[this.taskCount].eList &&
  21848. chapInfoListCopy[this.taskCount].eList.length
  21849. ) {
  21850. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21851. if (e.isai == 2) {
  21852. aiSNum++;
  21853. }
  21854. });
  21855. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21856. this.isaiNum = aiSNum;
  21857. } else {
  21858. this.isaiNum = 0;
  21859. }
  21860. // for (
  21861. // let k = 0;
  21862. // k < chapInfoListCopy[this.taskCount].eList.length;
  21863. // k++
  21864. // ) {
  21865. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21866. // this.againEva(this.taskCount, k);
  21867. // }
  21868. // }
  21869. }
  21870. }
  21871. // else {
  21872. // this.courseDetail = res.data[0][0];
  21873. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21874. // }
  21875. let _this = this;
  21876. if (_this.timer) {
  21877. clearInterval(_this.timer);
  21878. _this.timer = null;
  21879. }
  21880. if (_this.tcid) {
  21881. _this.getCourseGroup(gindex);
  21882. } else {
  21883. _this.selectSWorks(gindex);
  21884. }
  21885. _this.selectStudent();
  21886. _this.selectSLook();
  21887. _this.getPick();
  21888. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21889. _this.setCTask();
  21890. }
  21891. if (_this.dialogVisibleGroup) {
  21892. _this.groupJson =
  21893. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21894. _this.taskCount
  21895. ].toolChoose[_this.toolindex].groupJson;
  21896. }
  21897. _this.$nextTick(() => {
  21898. setTimeout(() => {
  21899. _this.checkEva();
  21900. }, 1000);
  21901. });
  21902. _this.timer = setInterval(function() {
  21903. // _this.getCourseDetail(2);
  21904. if (_this.tcid) {
  21905. _this.getCourseGroup();
  21906. } else {
  21907. _this.selectSWorks();
  21908. }
  21909. _this.selectStudent();
  21910. _this.selectSLook();
  21911. _this.getPick();
  21912. // _this.getSplitScreenData();
  21913. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21914. _this.setCTask();
  21915. }
  21916. if (_this.dialogVisibleGroup) {
  21917. _this.groupJson =
  21918. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21919. _this.taskCount
  21920. ].toolChoose[_this.toolindex].groupJson;
  21921. }
  21922. if (_this.tType == 4 || _this.ispzType == 4) {
  21923. _this.selectPz();
  21924. }
  21925. }, 5000);
  21926. if (_this.timer2 == null) {
  21927. _this.timer2 = setInterval(()=> {
  21928. _this.getSplitScreenData();//获取分屏数据
  21929. }, 5000);
  21930. }
  21931. _this.$nextTick(function() {
  21932. setTimeout(() => {
  21933. // var a =
  21934. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21935. // document.getElementsByClassName("vedioList")[0].style.height =
  21936. // a + "px";
  21937. // document.getElementsByClassName("navBox")[0].style.height =
  21938. // a - 40 + "px";
  21939. // if (_this.vedio[_this.taskCount].length > 0) {
  21940. // _this.vedioTime = [];
  21941. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21942. // _this.vedioTime[i] = document.getElementsByClassName(
  21943. // "vjs-duration-display"
  21944. // )[i].textContent;
  21945. // }
  21946. // }
  21947. }, 1000);
  21948. });
  21949. })
  21950. .catch(err => {
  21951. loading.close();
  21952. console.error(err);
  21953. });
  21954. },
  21955. getCourseGroup(gindex) {
  21956. let params = {
  21957. cid: this.id,
  21958. classid: this.tcid ? this.tcid : "1"
  21959. };
  21960. this.ajax
  21961. .get(this.$store.state.api + "getCourseGroup", params)
  21962. .then(res => {
  21963. if (res.data && res.data[0].length) {
  21964. if (!this.isGroup) {
  21965. let courseGroup = JSON.parse(res.data[0][0].group);
  21966. courseGroup.group = courseGroup.group.filter(el => {
  21967. el.works = [];
  21968. return el;
  21969. });
  21970. if (courseGroup.isopen == 2) {
  21971. this.isGroup = false;
  21972. this.selectSWorks(gindex);
  21973. return;
  21974. }
  21975. this.courseGroup = courseGroup;
  21976. let groupPerson = res.data[1];
  21977. let group = JSON.parse(res.data[0][0].group).group;
  21978. let courseGroupStudent = {};
  21979. let courseGroupStudentUid = {};
  21980. for (var i = 0; i < group.length; i++) {
  21981. courseGroupStudent[group[i].id] = [];
  21982. courseGroupStudentUid[group[i].id] = [];
  21983. for (var j = 0; j < groupPerson.length; j++) {
  21984. if (groupPerson[j].groupCid == group[i].id) {
  21985. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21986. courseGroupStudentUid[group[i].id].push(
  21987. groupPerson[j].userid
  21988. );
  21989. }
  21990. }
  21991. }
  21992. this.courseGroupStudent = courseGroupStudent;
  21993. this.courseGroupStudentUid = courseGroupStudentUid;
  21994. }
  21995. if (this.courseGroup.isopen == 2) {
  21996. this.isGroup = false;
  21997. } else {
  21998. this.isGroup = true;
  21999. }
  22000. this.selectSWorks(gindex);
  22001. } else {
  22002. this.selectSWorks(gindex);
  22003. this.isGroup = false;
  22004. }
  22005. })
  22006. .catch(err => {
  22007. // this.$message.error("网络不佳");
  22008. console.error(err);
  22009. });
  22010. },
  22011. setOperationTime() {
  22012. let _this = this;
  22013. if (_this.opertimer) {
  22014. clearInterval(_this.opertimer);
  22015. _this.opertimer = null;
  22016. }
  22017. _this.opertimer = setInterval(() => {
  22018. _this.setoTime("600");
  22019. }, 600000);
  22020. },
  22021. setoTime(time) {
  22022. let params = [
  22023. {
  22024. uid: this.userid,
  22025. cid: this.id,
  22026. type: "2",
  22027. time: time
  22028. }
  22029. ];
  22030. this.ajax
  22031. .post(this.$store.state.api + "addOperationTimeT2", params)
  22032. .then(res => {})
  22033. .catch(err => {
  22034. console.error(err);
  22035. });
  22036. },
  22037. addPz(type, content) {
  22038. if (type == "1" && this.pzConText == "") {
  22039. this.$message.error("评论不能为空!");
  22040. return;
  22041. }
  22042. let params = [
  22043. {
  22044. cid: this.id,
  22045. uid: this.userid,
  22046. s: this.courseType,
  22047. t: this.taskCount,
  22048. c: type == "1" ? this.pzConText : content,
  22049. type: type
  22050. }
  22051. ];
  22052. this.ajax
  22053. .post(this.$store.state.api + "addPz2", params)
  22054. .then(res => {
  22055. this.$message({
  22056. message: "添加成功",
  22057. type: "success"
  22058. });
  22059. this.pzConText = "";
  22060. this.addPzDialog = false;
  22061. this.selectPz();
  22062. if(this.tType!=2){
  22063. this.insertMemorandum(
  22064. `使用<span class="btn">评论</span>功能,添加评论`
  22065. );
  22066. }
  22067. })
  22068. .catch(err => {
  22069. this.$message.error("添加失败");
  22070. console.error(err);
  22071. });
  22072. },
  22073. setReplyIndex(id, i) {
  22074. this.replyIndex = i;
  22075. this.replyPid = id;
  22076. this.replyDialogVisible = true;
  22077. },
  22078. addHf() {
  22079. if (this.reply == "") {
  22080. this.$message.error("回复不能为空!");
  22081. return;
  22082. }
  22083. let params = [
  22084. {
  22085. cid: this.id,
  22086. uid: this.userid,
  22087. s: this.courseType,
  22088. t: this.taskCount,
  22089. type: "1",
  22090. ct: 2,
  22091. pid: this.replyPid,
  22092. c: this.reply
  22093. }
  22094. ];
  22095. this.ajax
  22096. .post(this.$store.state.api + "addHf", params)
  22097. .then(res => {
  22098. this.reply = "";
  22099. this.$message({
  22100. message: "回复成功",
  22101. type: "success"
  22102. });
  22103. this.replyDialogVisible = false;
  22104. this.selectPz();
  22105. })
  22106. .catch(err => {
  22107. this.$message.error("回复失败");
  22108. console.error(err);
  22109. });
  22110. },
  22111. deletePz(id) {
  22112. this.$confirm("确定删除此评论吗?", "提示", {
  22113. confirmButtonText: "确定",
  22114. cancelButtonText: "取消",
  22115. type: "warning"
  22116. })
  22117. .then(() => {
  22118. let params = [
  22119. {
  22120. id: id
  22121. }
  22122. ];
  22123. this.ajax
  22124. .post(this.$store.state.api + "deletePz", params)
  22125. .then(res => {
  22126. this.$message({
  22127. message: "删除成功",
  22128. type: "success"
  22129. });
  22130. this.selectPz();
  22131. })
  22132. .catch(err => {
  22133. this.$message.error("网络异常");
  22134. console.error(err);
  22135. });
  22136. })
  22137. .catch(() => {});
  22138. },
  22139. deleteReply(id) {
  22140. this.$confirm("确定删除此回复吗?", "提示", {
  22141. confirmButtonText: "确定",
  22142. cancelButtonText: "取消",
  22143. type: "warning"
  22144. })
  22145. .then(() => {
  22146. let params = [
  22147. {
  22148. id: id
  22149. }
  22150. ];
  22151. this.ajax
  22152. .post(this.$store.state.api + "deleteReply", params)
  22153. .then(res => {
  22154. this.$message({
  22155. message: "删除成功",
  22156. type: "success"
  22157. });
  22158. this.selectPz();
  22159. })
  22160. .catch(err => {
  22161. this.$message.error("网络异常");
  22162. console.error(err);
  22163. });
  22164. })
  22165. .catch(() => {});
  22166. },
  22167. setPz() {
  22168. if (this.ispzType == 4) {
  22169. this.ispzType = 0;
  22170. this.pzDialog = false;
  22171. return;
  22172. }
  22173. this.ispzType = 4;
  22174. this.pzDialog = true;
  22175. this.selectPz();
  22176. },
  22177. selectPz() {
  22178. let params = {
  22179. cid: this.id,
  22180. s: this.courseType,
  22181. t: this.taskCount,
  22182. type: this.pzStype,
  22183. uid: this.userid
  22184. };
  22185. this.ajax
  22186. .get(this.$store.state.api + "selectPzListType", params)
  22187. .then(res => {
  22188. this.pzList = res.data[0];
  22189. var a = res.data[1];
  22190. for (var i = 0; i < a.length; i++) {
  22191. for (var j = 0; j < this.pzList.length; j++) {
  22192. if (!this.pzList[j].hfList) {
  22193. this.pzList[j].hfList = [];
  22194. }
  22195. if (a[i].pid == this.pzList[j].id) {
  22196. this.pzList[j].hfList.push(a[i]);
  22197. }
  22198. }
  22199. }
  22200. })
  22201. .catch(err => {
  22202. console.error(err);
  22203. });
  22204. },
  22205. // selectHf() {
  22206. // let params = {
  22207. // cid: this.id,
  22208. // s: this.courseType,
  22209. // t: this.taskCount,
  22210. // };
  22211. // this.ajax
  22212. // .get(this.$store.state.api + "selectHfList", params)
  22213. // .then((res) => {
  22214. // var a = res.data[0];
  22215. // for (var i = 0; i < a.length; i++) {
  22216. // for (var j = 0; j < this.pzList.length; j++) {
  22217. // if (!this.pzList[i].hfList) {
  22218. // this.pzList[i].hfList = [];
  22219. // }
  22220. // if (a[i].pid == this.pzList[j].id) {
  22221. // this.pzList[i].hfList.push(a[i]);
  22222. // }
  22223. // }
  22224. // }
  22225. // })
  22226. // .catch((err) => {
  22227. // console.error(err);
  22228. // });
  22229. // },
  22230. updateSLook() {
  22231. let params = {
  22232. sopen: this.sIsOpen == false ? 1 : 2,
  22233. cid: this.id
  22234. };
  22235. this.ajax
  22236. .get(this.$store.state.api + "updateCourseSLook", params)
  22237. .then(res => {
  22238. if (this.sIsOpen == true) {
  22239. this.$message({
  22240. message: "权限设置成功",
  22241. type: "success"
  22242. });
  22243. } else {
  22244. this.$message({
  22245. message: "权限关闭成功",
  22246. type: "success"
  22247. });
  22248. }
  22249. })
  22250. .catch(err => {
  22251. console.error(err);
  22252. });
  22253. },
  22254. updateFollow() {
  22255. let params = [
  22256. {
  22257. sopen: this.IsFollow == false ? 1 : 2,
  22258. cid: this.id
  22259. }
  22260. ];
  22261. this.ajax
  22262. .post(this.$store.state.api + "updateCourseFollow", params)
  22263. .then(res => {
  22264. if (this.IsFollow == true) {
  22265. this.$message({
  22266. message: "开启成功",
  22267. type: "success"
  22268. });
  22269. } else {
  22270. this.$message({
  22271. message: "关闭成功",
  22272. type: "success"
  22273. });
  22274. }
  22275. this.setCTask();
  22276. })
  22277. .catch(err => {
  22278. console.error(err);
  22279. });
  22280. },
  22281. setCTask() {
  22282. let params = [
  22283. {
  22284. sopen: this.courseType + "-" + this.taskCount,
  22285. cid: this.id
  22286. }
  22287. ];
  22288. this.ajax
  22289. .post(this.$store.state.api + "updateCourseFollowC", params)
  22290. .then(res => {})
  22291. .catch(err => {
  22292. console.error(err);
  22293. });
  22294. },
  22295. updateLookOpen() {
  22296. let params = [
  22297. {
  22298. sopen: this.IsLookOpen == false ? 1 : 2,
  22299. cid: this.id
  22300. }
  22301. ];
  22302. this.ajax
  22303. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22304. .then(res => {
  22305. if (this.IsLookOpen == true) {
  22306. // if (this.courseType != 0 && this.taskCount != 0) {
  22307. // this.openTask(0, 0, "0-0");
  22308. // }
  22309. this.$message({
  22310. message: "权限设置成功",
  22311. type: "success"
  22312. });
  22313. } else {
  22314. this.$message({
  22315. message: "权限关闭成功",
  22316. type: "success"
  22317. });
  22318. }
  22319. this.getCourseState(2);
  22320. })
  22321. .catch(err => {
  22322. console.error(err);
  22323. });
  22324. },
  22325. selectSLook() {
  22326. let params = {
  22327. cid: this.id
  22328. };
  22329. this.ajax
  22330. .get(this.$store.state.api + "selectCourseSLook", params)
  22331. .then(res => {
  22332. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22333. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22334. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22335. if (!this.IsLookOpen) {
  22336. this.setNavList();
  22337. }
  22338. // else {
  22339. this.getCourseState(1);
  22340. // }
  22341. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  22342. if ((this.IsFollow && this.tType == 2)) {
  22343. this.setContent2(false);
  22344. let _followC = res.data[0][0].followC.split("-");
  22345. if (
  22346. this.courseType != _followC[0] ||
  22347. this.taskCount != _followC[1]
  22348. ) {
  22349. this.navList[this.courseType].isOpen = false;
  22350. this.courseType = _followC[0];
  22351. this.navList[this.courseType].isOpen = true;
  22352. this.taskCount = parseInt(_followC[1]);
  22353. this.navId = res.data[0][0].followC;
  22354. document.scrollingElement.scrollTop = 0;
  22355. this.getCourseDetail(2);
  22356. }
  22357. }
  22358. })
  22359. .catch(err => {
  22360. console.error(err);
  22361. });
  22362. },
  22363. setNavList() {
  22364. if (this.navList.length == 0) {
  22365. this.navList = [];
  22366. var copyList = [];
  22367. for (var l = 0; l < this.chapInfoList.length; l++) {
  22368. var q = this.chapInfoList[l].dyName;
  22369. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22370. var e;
  22371. copyList.push({
  22372. dyName: q,
  22373. isOpen: l === 0 ? true : false,
  22374. task: []
  22375. });
  22376. for (var r = 0; r < w.length; r++) {
  22377. e = w[r].task;
  22378. if (this.chapInfoList[l].easy == 1) {
  22379. copyList[l].task.push({
  22380. taskName: q,
  22381. id: l + "-" + r,
  22382. isLook: w[r].isLook,
  22383. isOpen: r === 0 ? true : false,
  22384. tool: []
  22385. });
  22386. } else {
  22387. copyList[l].task.push({
  22388. taskName: e,
  22389. id: l + "-" + r,
  22390. isLook: w[r].isLook,
  22391. isOpen: r === 0 ? true : false,
  22392. tool: []
  22393. });
  22394. }
  22395. var t = w[r].toolChoose;
  22396. for (var k = 0; k < t.length; k++) {
  22397. var tool = t[k].tool[0];
  22398. copyList[l].task[r].tool.push({
  22399. tool: tool,
  22400. isTool: false
  22401. });
  22402. }
  22403. // this.navId = this.navId ? this.navId : l + "-" + r;
  22404. // this.navId = l + "-" + r;
  22405. }
  22406. }
  22407. this.navList = copyList;
  22408. this.navList[0].isOpen = false;
  22409. this.navList[this.courseType].isOpen = true;
  22410. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  22411. } else {
  22412. this.setNavList2();
  22413. }
  22414. },
  22415. setNavList2() {
  22416. for (var l = 0; l < this.chapInfoList.length; l++) {
  22417. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22418. for (var r = 0; r < w.length; r++) {
  22419. this.navList[l].task[r].isLook = w[r].isLook;
  22420. }
  22421. }
  22422. if (
  22423. this.IsLookOpen &&
  22424. !this.navList[this.courseType].task[this.taskCount].isLook
  22425. ) {
  22426. this.openTask(0, 0, "0-0");
  22427. }
  22428. this.$forceUpdate();
  22429. },
  22430. getCourseState(type) {
  22431. let params = {
  22432. cid: this.id
  22433. };
  22434. this.ajax
  22435. .get(this.$store.state.api + "getCourseState", params)
  22436. .then(res => {
  22437. // if (res.data[0].length > 0) {
  22438. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22439. // }
  22440. if (res.data[0].length > 0 && type == 1) {
  22441. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22442. console.log("this.chapInfoList", this.chapInfoList);
  22443. this.setNavList();
  22444. this.$forceUpdate();
  22445. } else if (res.data[0].length > 0 && type == 2) {
  22446. this.addCourseState(2);
  22447. } else {
  22448. // this.addCourseState(1);
  22449. console.log('99999')
  22450. }
  22451. })
  22452. .catch(err => {
  22453. console.error(err);
  22454. });
  22455. },
  22456. addCourseState(type,val = '') {
  22457. let _state = val ? val : this.chapInfoList;
  22458. // this.courseType this.taskCount
  22459. if (type == 1 || type == 2) {
  22460. for (var i = 0; i < _state.length; i++) {
  22461. let el = _state[i].chapterInfo[0].taskJson;
  22462. for (var j = 0; j < el.length; j++) {
  22463. // if (i == 0 && j == 0) {
  22464. // el[j].isLook = true;
  22465. // } else {
  22466. // el[j].isLook = false;
  22467. // }
  22468. if (
  22469. this.courseType > i ||
  22470. (this.courseType == i && this.taskCount + 1 > j)
  22471. ) {
  22472. el[j].isLook = true;
  22473. } else {
  22474. el[j].isLook = false;
  22475. }
  22476. }
  22477. }
  22478. }
  22479. let params = [
  22480. {
  22481. cid: this.id,
  22482. state: JSON.stringify(_state)
  22483. }
  22484. ];
  22485. this.ajax
  22486. .post(
  22487. this.$store.state.api +
  22488. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22489. params
  22490. )
  22491. .then(res => {
  22492. if (this.IsLookOpen) {
  22493. this.setNavList();
  22494. }
  22495. if (type == 3 && type == 2) {
  22496. this.getCourseState(1);
  22497. }
  22498. })
  22499. .catch(err => {
  22500. console.error(err);
  22501. });
  22502. },
  22503. getHomeWork() {
  22504. let params = {
  22505. cid: this.id,
  22506. stage: this.courseType,
  22507. task: this.taskCount,
  22508. uid: this.userid
  22509. };
  22510. this.ajax
  22511. .get(this.$store.state.api + "selectWork", params)
  22512. .then(res => {
  22513. if (res.data[0].length > 0) {
  22514. this.studyJuri = JSON.parse(res.data[0][0].content);
  22515. this.isNoHomeWork = true;
  22516. }
  22517. })
  22518. .catch(err => {
  22519. console.error(err);
  22520. });
  22521. },
  22522. isAssetTypeAnImage(ext) {
  22523. return (
  22524. [
  22525. "png",
  22526. "jpg",
  22527. "jpeg",
  22528. "bmp",
  22529. "gif",
  22530. "webp",
  22531. "psd",
  22532. "svg",
  22533. "tiff"
  22534. ].indexOf(ext) !== -1
  22535. );
  22536. },
  22537. switchVideo(media) {
  22538. this.playerO = {};
  22539. this.playerOptions.poster = "";
  22540. this.playerOptions.sources[0].src = media;
  22541. this.playerO = this.playerOptions;
  22542. },
  22543. onPlayerPlay() {},
  22544. onPlayerTimeupdate(player) {
  22545. let gklog = player.cache_.currentTime; //当前播放的秒数
  22546. let a = player.cache_.duration; //视频的总时长
  22547. let gklog2 = parseInt(gklog);
  22548. // if(gklog2 == '3'){
  22549. // player.pause()
  22550. // setTimeout(()=>{
  22551. // player.currentTime(gklog2+1)
  22552. // player.play()
  22553. // },1000)
  22554. // }
  22555. console.log(" onPlayerTimeupdate!", gklog);
  22556. console.log(" onPlayerTimeupdate!", gklog2);
  22557. },
  22558. lookVedio(u, i) {
  22559. this.isClickNav = "";
  22560. // this.playerOptions.sources[0].src = u;
  22561. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22562. d.sources[0].src = u;
  22563. this.playerO[this.taskCount] = d;
  22564. this.showType = 0;
  22565. // this.isClickNav = "video" + i;
  22566. this.isClickNav = i;
  22567. this.$forceUpdate();
  22568. this.insertMemorandum(
  22569. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22570. this.vChapterData[this.taskCount].find(i => i.url == u).name
  22571. }</span>`
  22572. );
  22573. },
  22574. lookText(i, t) {
  22575. this.isClickNav = "";
  22576. // this.text = this.textList[i][t];
  22577. this.text = this.vChapterData[i][t];
  22578. // this.dialogVisible1 = true;
  22579. this.showType = 1;
  22580. // this.isClickNav = "text" + t;
  22581. this.isClickNav = t;
  22582. this.insertMemorandum(
  22583. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22584. this.vChapterData[this.taskCount][t].name
  22585. }.doc</span>`
  22586. );
  22587. },
  22588. lookTools(i, t) {
  22589. this.chapTools = this.chapToolList[i][t];
  22590. this.dialogVisible2 = true;
  22591. },
  22592. async openFile(f) {
  22593. this.pptImgUrl = "";
  22594. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22595. if (
  22596. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22597. -1
  22598. ) {
  22599. let _uuurl = await this.checkLink(f);
  22600. this.pptImgUrl =
  22601. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22602. encodeURIComponent(_uuurl);
  22603. this.showPDF = false;
  22604. this.dialogVisible3 = true;
  22605. } else if (
  22606. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22607. ) {
  22608. this.pptImgUrl = f;
  22609. this.showPDF = true;
  22610. this.dialogVisible3 = true;
  22611. }
  22612. this.insertMemorandum(
  22613. `查看<span class="variable">${w.sName}</span>的作业`
  22614. );
  22615. },
  22616. openTable(f) {
  22617. this.tableJson = JSON.parse(f.works);
  22618. this.dialogVisibleTable2 = true;
  22619. this.insertMemorandum(
  22620. `查看<span class="variable">${f.sName}的作业</span>`
  22621. );
  22622. },
  22623. openWord(f) {
  22624. this.tableJson = JSON.parse(f.works);
  22625. this.dialogVisibleTable3 = true;
  22626. this.insertMemorandum(
  22627. `查看<span class="variable">${f.sName}的作业</span>`
  22628. );
  22629. },
  22630. doUrl(url, i) {
  22631. this.isClickNav = "";
  22632. this.pptImgUrl1 = "";
  22633. this.showType = 2;
  22634. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22635. url = "https://" + url;
  22636. }
  22637. this.pptImgUrl1 = "";
  22638. this.diffKey = new Date().getTime();
  22639. setTimeout(() => {
  22640. this.pptImgUrl1 = url;
  22641. }, 500);
  22642. // this.isClickNav = "line" + i;
  22643. this.isClickNav = i;
  22644. this.$forceUpdate();
  22645. },
  22646. checkPhoto(f, i) {
  22647. this.showType = 4;
  22648. this.pptImgUrl1 = f.url;
  22649. this.isClickNav = i;
  22650. this.$forceUpdate();
  22651. this.insertMemorandum(
  22652. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22653. this.vChapterData[this.taskCount][i].name
  22654. }</span>`
  22655. );
  22656. },
  22657. async downFile(f, i) {
  22658. this.isClickNav = "";
  22659. this.pptImgUrl1 = "";
  22660. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22661. if (
  22662. a.indexOf(
  22663. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22664. ) != -1
  22665. ) {
  22666. let _uuurl = await this.checkLink(f.url);
  22667. this.pptImgUrl1 =
  22668. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22669. encodeURIComponent(_uuurl);
  22670. // this.dialogVisible3 = true;
  22671. this.showType = 2;
  22672. } else if (
  22673. this.isAssetTypeAnImage(
  22674. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22675. )
  22676. ) {
  22677. this.showType = 4;
  22678. this.pptImgUrl1 = f.url;
  22679. } else if (
  22680. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22681. "PDF"
  22682. ) {
  22683. this.pptImgUrl1 = f.url;
  22684. // this.dialogVisible3 = true;
  22685. this.showType = 3;
  22686. } else {
  22687. window.open(this.file[i].url);
  22688. }
  22689. // this.isClickNav = "word" + i;
  22690. this.isClickNav = i;
  22691. this.insertMemorandum(
  22692. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22693. this.vChapterData[this.taskCount][i].name
  22694. }</span>`
  22695. );
  22696. },
  22697. downFileList(i) {
  22698. window.open(this.noImgList[i].url);
  22699. },
  22700. openAddWork() {
  22701. this.dialogVisible = true;
  22702. },
  22703. addBzWorks() {
  22704. let params = [
  22705. {
  22706. uid: this.userid,
  22707. cid: this.id,
  22708. stage: this.courseType,
  22709. task: this.taskCount,
  22710. tool: this.toolindex,
  22711. content: JSON.stringify(this.eScore),
  22712. type: 6
  22713. }
  22714. ];
  22715. this.ajax
  22716. .post(this.$store.state.api + "addCourseWorks", params)
  22717. .then(res => {
  22718. this.$message({
  22719. message: "提交成功",
  22720. type: "success"
  22721. });
  22722. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  22723. this.eScore = { eBzText: "", eStar: [] };
  22724. this.studentEvalDialogVisible = false;
  22725. this.selectSWorks();
  22726. })
  22727. .catch(err => {
  22728. this.$message.error("提交失败");
  22729. console.error(err);
  22730. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  22731. });
  22732. },
  22733. addBzWorksTeacher() {
  22734. let params = [
  22735. {
  22736. uid: this.sStudent.userid,
  22737. cid: this.id,
  22738. stage: this.courseType,
  22739. task: this.taskCount,
  22740. tool: this.toolindex,
  22741. content: JSON.stringify(this.eScore),
  22742. type: 6
  22743. }
  22744. ];
  22745. this.ajax
  22746. .post(this.$store.state.api + "addCourseWorks", params)
  22747. .then(res => {
  22748. this.$message({
  22749. message: "提交成功",
  22750. type: "success"
  22751. });
  22752. this.eScore = { eBzText: "", eStar: [] };
  22753. this.studentEvalDialogVisibleTeacher = false;
  22754. this.selectSWorks();
  22755. })
  22756. .catch(err => {
  22757. this.$message.error("提交失败");
  22758. console.error(err);
  22759. });
  22760. },
  22761. addStudentAsk() {
  22762. if (!this.radio.length) {
  22763. this.$message.error("请选择选项");
  22764. return;
  22765. }
  22766. for (var i = 0; i < this.askJson.askCount; i++) {
  22767. if (
  22768. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22769. (this.radio[i] !== 0 && !this.radio[i])
  22770. ) {
  22771. this.$message.error("请选择选项");
  22772. return;
  22773. }
  22774. }
  22775. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22776. let params = [
  22777. {
  22778. uid: this.userid,
  22779. cid: this.id,
  22780. stage: this.courseType,
  22781. task: this.taskCount,
  22782. tool: this.toolindex,
  22783. content: JSON.stringify(this.askList),
  22784. type: 2
  22785. }
  22786. ];
  22787. this.ajax
  22788. .post(this.$store.state.api + "addCourseWorks", params)
  22789. .then(res => {
  22790. this.$message({
  22791. message: "提交成功",
  22792. type: "success"
  22793. });
  22794. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22795. this.askList = [];
  22796. this.dialogVisible5 = false;
  22797. this.selectStudent();
  22798. this.selectSWorks();
  22799. this.selectSLook();
  22800. })
  22801. .catch(err => {
  22802. this.$message.error("提交失败");
  22803. console.error(err);
  22804. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22805. });
  22806. },
  22807. addStudentAskTeacher() {
  22808. if (!this.radio.length) {
  22809. this.$message.error("请选择选项");
  22810. return;
  22811. }
  22812. for (var i = 0; i < this.askJson.askCount; i++) {
  22813. if (
  22814. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22815. (this.radio[i] !== 0 && !this.radio[i])
  22816. ) {
  22817. this.$message.error("请选择选项");
  22818. return;
  22819. }
  22820. }
  22821. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22822. let params = [
  22823. {
  22824. uid: this.sStudent.userid,
  22825. cid: this.id,
  22826. stage: this.courseType,
  22827. task: this.taskCount,
  22828. tool: this.toolindex,
  22829. content: JSON.stringify(this.askList),
  22830. type: 2
  22831. }
  22832. ];
  22833. this.ajax
  22834. .post(this.$store.state.api + "addCourseWorks", params)
  22835. .then(res => {
  22836. this.$message({
  22837. message: "提交成功",
  22838. type: "success"
  22839. });
  22840. this.askList = [];
  22841. this.dialogVisible5Teacher = false;
  22842. this.selectStudent();
  22843. this.selectSWorks();
  22844. this.selectSLook();
  22845. })
  22846. .catch(err => {
  22847. this.$message.error("提交失败");
  22848. console.error(err);
  22849. });
  22850. },
  22851. addStudentTest() {
  22852. if (!this.radio.length) {
  22853. this.$message.error("请选择选项");
  22854. return;
  22855. }
  22856. for (var i = 0; i < this.testJson.testCount; i++) {
  22857. if (
  22858. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22859. (this.radio[i] !== 0 && !this.radio[i])
  22860. ) {
  22861. this.$message.error("请选择选项");
  22862. return;
  22863. }
  22864. }
  22865. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22866. let params = [
  22867. {
  22868. uid: this.userid,
  22869. cid: this.id,
  22870. stage: this.courseType,
  22871. task: this.taskCount,
  22872. tool: this.toolindex,
  22873. content: JSON.stringify(this.askList),
  22874. type: 8
  22875. }
  22876. ];
  22877. this.ajax
  22878. .post(this.$store.state.api + "addCourseWorks", params)
  22879. .then(res => {
  22880. this.$message({
  22881. message: "提交成功",
  22882. type: "success"
  22883. });
  22884. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22885. this.askList = [];
  22886. this.dialogVisibleChoice = false;
  22887. this.selectStudent();
  22888. this.selectSWorks();
  22889. this.selectSLook();
  22890. })
  22891. .catch(err => {
  22892. this.$message.error("提交失败");
  22893. console.error(err);
  22894. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22895. });
  22896. },
  22897. addStudentTestTeacher() {
  22898. if (!this.radio.length) {
  22899. this.$message.error("请选择选项");
  22900. return;
  22901. }
  22902. for (var i = 0; i < this.testJson.testCount; i++) {
  22903. if (
  22904. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22905. (this.radio[i] !== 0 && !this.radio[i])
  22906. ) {
  22907. this.$message.error("请选择选项");
  22908. return;
  22909. }
  22910. }
  22911. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22912. let params = [
  22913. {
  22914. uid: this.sStudent.userid,
  22915. cid: this.id,
  22916. stage: this.courseType,
  22917. task: this.taskCount,
  22918. tool: this.toolindex,
  22919. content: JSON.stringify(this.askList),
  22920. type: 8
  22921. }
  22922. ];
  22923. this.ajax
  22924. .post(this.$store.state.api + "addCourseWorks", params)
  22925. .then(res => {
  22926. this.$message({
  22927. message: "提交成功",
  22928. type: "success"
  22929. });
  22930. this.askList = [];
  22931. this.dialogVisibleChoiceTeacher = false;
  22932. this.selectStudent();
  22933. this.selectSWorks();
  22934. this.selectSLook();
  22935. })
  22936. .catch(err => {
  22937. this.$message.error("提交失败");
  22938. console.error(err);
  22939. });
  22940. },
  22941. addWork() {
  22942. if (this.studyJuri[0].content == "") {
  22943. this.$message.error("请将信息填写完整");
  22944. return;
  22945. } else if (this.studyJuri[0].cover.length == 0) {
  22946. this.$message.error("请将信息填写完整");
  22947. return;
  22948. } else if (this.studyJuri[0].upVedio.length == 0) {
  22949. this.$message.error("请将信息填写完整");
  22950. return;
  22951. }
  22952. if (this.isNoHomeWork) {
  22953. this.$confirm(
  22954. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22955. "提示",
  22956. {
  22957. confirmButtonText: "确定",
  22958. cancelButtonText: "取消",
  22959. type: "warning"
  22960. }
  22961. )
  22962. .then(() => {
  22963. let params = [
  22964. {
  22965. uid: this.userid,
  22966. cid: this.id,
  22967. stage: this.courseType,
  22968. task: this.taskCount,
  22969. content: JSON.stringify(this.studyJuri)
  22970. }
  22971. ];
  22972. this.ajax
  22973. .post(this.$store.state.api + "addWorks", params)
  22974. .then(res => {
  22975. this.$message({
  22976. message: "提交成功",
  22977. type: "success"
  22978. });
  22979. this.isNoHomeWork = true;
  22980. this.dialogVisible = false;
  22981. })
  22982. .catch(err => {
  22983. this.$message.error("提交失败");
  22984. console.error(err);
  22985. });
  22986. })
  22987. .catch(() => {});
  22988. } else {
  22989. let params = [
  22990. {
  22991. uid: this.userid,
  22992. cid: this.id,
  22993. stage: this.courseType,
  22994. task: this.taskCount,
  22995. content: JSON.stringify(this.studyJuri)
  22996. }
  22997. ];
  22998. this.ajax
  22999. .post(this.$store.state.api + "addWorks", params)
  23000. .then(res => {
  23001. this.$message({
  23002. message: "提交成功",
  23003. type: "success"
  23004. });
  23005. this.isNoHomeWork = true;
  23006. this.dialogVisible = false;
  23007. })
  23008. .catch(err => {
  23009. this.$message.error("提交失败");
  23010. console.error(err);
  23011. });
  23012. }
  23013. },
  23014. selectCount() {
  23015. let params = {
  23016. cid: this.id,
  23017. chid: this.courseType,
  23018. uid: this.userid
  23019. };
  23020. this.ajax
  23021. .get(this.$store.state.api + "selectToolsCount", params)
  23022. .then(res => {
  23023. for (var i = 0; i < res.data[0].length; i++) {
  23024. if (res.data[0][i].tools == 1) {
  23025. this.wbCount = res.data[0][i].count;
  23026. } else if (res.data[0][i].tools == 2) {
  23027. this.wordCount = res.data[0][i].count;
  23028. } else if (res.data[0][i].tools == 3) {
  23029. this.mindCount = res.data[0][i].count;
  23030. } else if (res.data[0][i].tools == 4) {
  23031. this.askCount = res.data[0][i].count;
  23032. } else if (res.data[0][i].tools == 6) {
  23033. this.noteCount = res.data[0][i].count;
  23034. } else if (res.data[0][i].tools == 7) {
  23035. this.mindNetWorkCount = res.data[0][i].count;
  23036. } else if (res.data[0][i].tools == 8) {
  23037. this.libraryCount = res.data[0][i].count;
  23038. } else if (res.data[0][i].tools == 16) {
  23039. this.workCount = res.data[0][i].count;
  23040. } else if (res.data[0][i].tools == 10) {
  23041. this.timeCount = res.data[0][i].count;
  23042. } else if (res.data[0][i].tools == 15) {
  23043. this.answerCount = res.data[0][i].count;
  23044. } else if (res.data[0][i].tools == 18) {
  23045. this.trainCount = res.data[0][i].count;
  23046. }
  23047. }
  23048. })
  23049. .catch(err => {
  23050. console.error(err);
  23051. });
  23052. },
  23053. openTools(t, i, index, c, sName, id) {
  23054. var z = JSON.parse(c);
  23055. this.noteName = sName;
  23056. if (t == 4) {
  23057. this.radio = [];
  23058. this.isAnswer = false;
  23059. let b = z[0].anwer;
  23060. this.radio = b;
  23061. this.askJson = z[0].askJson;
  23062. this.isAnswer = true;
  23063. this.dialogVisible5 = true;
  23064. } else if (t == 45) {
  23065. this.radio = [];
  23066. this.isAnswer = false;
  23067. let b = z[0].anwer;
  23068. this.radio = b;
  23069. this.testJson = z[0].testJson;
  23070. this.isAnswer = true;
  23071. this.dialogVisibleChoice = true;
  23072. } else if (t == 69) {
  23073. this.oldEnglishJson1 = {};
  23074. this.oldEnglishJson = {};
  23075. this.englishList1 = {};
  23076. this.newEngIndex = -1;
  23077. this.isNoUserid = false;
  23078. this.englishList1 = this.chapInfoList[
  23079. this.courseType
  23080. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  23081. this.oldEnglishJson = z;
  23082. this.engWid = id;
  23083. this.newEnglishList = { engTitle: "", engText: "" };
  23084. this.newEnglishList1 = [];
  23085. this.selectEngC(id, z);
  23086. } else if (t == 62) {
  23087. this.videoType = 1;
  23088. this.videoJson = {};
  23089. this.videoJson = JSON.parse(c);
  23090. // this.videoJson =
  23091. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23092. // index
  23093. // ].toolChoose[i].videoJson;
  23094. this.dialogVisibleVideo = true;
  23095. }
  23096. // else if (t == 15) {
  23097. // this.answerQ = "";
  23098. // this.questionAnswer = "";
  23099. // this.answerQ = z[0].answerTitle;
  23100. // this.questionAnswer = z[0].answer;
  23101. // this.answerDialogVisible = true;
  23102. // }
  23103. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  23104. },
  23105. fastText(p, t) {
  23106. if (t == 1) {
  23107. this.commentText += p;
  23108. } else {
  23109. this.eScore.eBzText += p;
  23110. }
  23111. },
  23112. addTools(t, i, index) {
  23113. var a = 0;
  23114. // this.taskCount = index;
  23115. this.toolindex = i;
  23116. if (t == 1) {
  23117. if (this.wbCount > 0) {
  23118. this.updateCount(this.wbCount, t);
  23119. } else {
  23120. this.wbCount++;
  23121. a = this.wbCount;
  23122. this.toolsCount(a, t);
  23123. }
  23124. window.topU.postMessage(
  23125. {
  23126. tools: "1",
  23127. cid: this.id,
  23128. stage: this.courseType,
  23129. task: this.taskCount,
  23130. tool: i
  23131. },
  23132. "*"
  23133. );
  23134. } else if (t == 2) {
  23135. if (this.wordCount > 0) {
  23136. this.updateCount(this.wordCount, t);
  23137. } else {
  23138. this.wordCount++;
  23139. a = this.wordCount;
  23140. this.toolsCount(a, t);
  23141. }
  23142. window.topU.postMessage({ tools: "2" }, "*");
  23143. } else if (t == 3) {
  23144. if (this.mindCount > 0) {
  23145. this.updateCount(this.mindCount, t);
  23146. } else {
  23147. this.mindCount++;
  23148. a = this.mindCount;
  23149. this.toolsCount(a, t);
  23150. }
  23151. window.topU.postMessage(
  23152. {
  23153. tools: "3",
  23154. cid: this.id,
  23155. stage: this.courseType,
  23156. task: this.taskCount,
  23157. tool: i
  23158. },
  23159. "*"
  23160. );
  23161. } else if (t == 4) {
  23162. this.radio = [];
  23163. this.noteName = "";
  23164. this.isAnswer = false;
  23165. if (this.askCount > 0) {
  23166. this.updateCount(this.askCount, t);
  23167. } else {
  23168. this.askCount++;
  23169. a = this.askCount;
  23170. this.toolsCount(a, t);
  23171. }
  23172. if (!this.dialogVisible2) {
  23173. this.askJson.askJson = this.chapInfoList[
  23174. this.courseType
  23175. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23176. this.askJson.askTitle = this.chapInfoList[
  23177. this.courseType
  23178. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23179. this.askJson.askCount = this.chapInfoList[
  23180. this.courseType
  23181. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23182. } else {
  23183. this.askJson.askJson = this.chapTools.askJson.askJson;
  23184. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23185. this.askJson.askCount = this.chapTools.askJson.askCount;
  23186. }
  23187. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23188. if (this.askJson.askJson[k].type == "2") {
  23189. this.radio.push([]);
  23190. } else {
  23191. this.radio.push("");
  23192. }
  23193. }
  23194. this.dialogVisible5 = true;
  23195. // window.topU.postMessage({ tools: "4" }, "*");
  23196. } else if (t == 45) {
  23197. this.noteName = "";
  23198. this.radio = [];
  23199. this.isAnswer = false;
  23200. if (this.askCount > 0) {
  23201. this.updateCount(this.askCount, t);
  23202. } else {
  23203. this.askCount++;
  23204. a = this.askCount;
  23205. this.toolsCount(a, t);
  23206. }
  23207. this.testJson = this.chapInfoList[
  23208. this.courseType
  23209. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23210. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23211. if (this.testJson.testJson[k].type == "2") {
  23212. this.radio.push([]);
  23213. } else {
  23214. this.radio.push("");
  23215. }
  23216. }
  23217. this.dialogVisibleChoice = true;
  23218. // window.topU.postMessage({ tools: "4" }, "*");
  23219. } else if (t == 5) {
  23220. if (this.scoreCount > 0) {
  23221. this.updateCount(this.scoreCount, t);
  23222. } else {
  23223. this.scoreCount++;
  23224. a = this.scoreCount;
  23225. this.toolsCount(a, t);
  23226. }
  23227. this.dialogVisible4 = true;
  23228. // window.topU.postMessage({ tools: "5" }, "*");
  23229. } else if (t == 6) {
  23230. if (this.noteCount > 0) {
  23231. this.updateCount(this.noteCount, t);
  23232. } else {
  23233. this.noteCount++;
  23234. a = this.noteCount;
  23235. this.toolsCount(a, t);
  23236. }
  23237. window.topU.postMessage(
  23238. {
  23239. tools: "6",
  23240. cid: this.id,
  23241. stage: this.courseType,
  23242. task: this.taskCount,
  23243. tool: i
  23244. },
  23245. "*"
  23246. );
  23247. } else if (t == 7) {
  23248. if (this.mindNetWorkCount > 0) {
  23249. this.updateCount(this.mindNetWorkCount, t);
  23250. } else {
  23251. this.mindNetWorkCount++;
  23252. a = this.mindNetWorkCount;
  23253. this.toolsCount(a, t);
  23254. }
  23255. window.topU.postMessage(
  23256. {
  23257. tools: "7",
  23258. cid: this.id,
  23259. stage: this.courseType,
  23260. task: this.taskCount,
  23261. tool: i
  23262. },
  23263. "*"
  23264. );
  23265. } else if (t == 16) {
  23266. if (this.workCount > 0) {
  23267. this.updateCount(this.workCount, t);
  23268. } else {
  23269. this.workCount++;
  23270. a = this.workCount;
  23271. this.toolsCount(a, t);
  23272. }
  23273. this.dialogVisible = true;
  23274. } else if (t == 50) {
  23275. if (this.tType == 2) {
  23276. this.$message.error("不支持学生使用");
  23277. return;
  23278. }
  23279. this.plworkFile = [];
  23280. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23281. if (!this.uploadCid) {
  23282. this.$message.error(
  23283. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23284. );
  23285. return;
  23286. }
  23287. // this.uploadCid =
  23288. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23289. // index
  23290. // ].toolChoose[i].uploadJson[0];
  23291. this.selectUploadStudent(2);
  23292. } else if (t == 8) {
  23293. if (this.libraryCount > 0) {
  23294. this.updateCount(this.libraryCount, t);
  23295. } else {
  23296. this.libraryCount++;
  23297. a = this.libraryCount;
  23298. this.toolsCount(a, t);
  23299. }
  23300. window.topU.postMessage({ tools: "8" }, "*");
  23301. } else if (t == 17) {
  23302. if (this.libraryCount > 0) {
  23303. this.updateCount(this.libraryCount, t);
  23304. } else {
  23305. this.libraryCount++;
  23306. a = this.libraryCount;
  23307. this.toolsCount(a, t);
  23308. }
  23309. window.topU.postMessage({ tools: "17" }, "*");
  23310. } else if (t == 18) {
  23311. if (this.trainCount > 0) {
  23312. this.updateCount(this.trainCount, t);
  23313. } else {
  23314. this.trainCount++;
  23315. a = this.trainCount;
  23316. this.toolsCount(a, t);
  23317. }
  23318. window.topU.postMessage({ tools: "18" }, "*");
  23319. } else if (t == 10) {
  23320. if (this.timeCount > 0) {
  23321. this.updateCount(this.timeCount, t);
  23322. } else {
  23323. this.timeCount++;
  23324. a = this.timeCount;
  23325. this.toolsCount(a, t);
  23326. }
  23327. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23328. .taskJson[index].toolChoose[i].preTime
  23329. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23330. .toolChoose[i].preTime
  23331. : "";
  23332. this.timeDialogVisible = true;
  23333. } else if (t == 15) {
  23334. this.answerQ = "";
  23335. this.questionAnswer = "";
  23336. if (this.answerCount > 0) {
  23337. this.updateCount(this.answerCount, t);
  23338. } else {
  23339. this.answerCount++;
  23340. a = this.answerCount;
  23341. this.toolsCount(a, t);
  23342. }
  23343. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23344. .taskJson[index].toolChoose[i].answerQ
  23345. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23346. .toolChoose[i].answerQ
  23347. : "";
  23348. this.answerDialogVisible = true;
  23349. } else if (t == 21) {
  23350. window.topU.postMessage({ tools: "21" }, "*");
  23351. } else if (t == 22) {
  23352. window.topU.postMessage({ tools: "22" }, "*");
  23353. } else if (t == 23) {
  23354. window.topU.postMessage({ tools: "23" }, "*");
  23355. } else if (t == 24) {
  23356. window.topU.postMessage({ tools: "24" }, "*");
  23357. } else if (t == 25) {
  23358. window.topU.postMessage({ tools: "25" }, "*");
  23359. } else if (t == 31) {
  23360. window.topU.postMessage({ tools: "31" }, "*");
  23361. } else if (t == 28) {
  23362. window.topU.postMessage({ tools: "28" }, "*");
  23363. } else if (t == 37) {
  23364. window.topU.postMessage({ tools: "37" }, "*");
  23365. } else if (t == 38) {
  23366. window.topU.postMessage({ tools: "38" }, "*");
  23367. } else if (t == 39) {
  23368. window.topU.postMessage({ tools: "39" }, "*");
  23369. } else if (t == 32) {
  23370. window.topU.postMessage({ tools: "32" }, "*");
  23371. } else if (t == 66) {
  23372. window.topU.postMessage({ tools: "66" }, "*");
  23373. } else if (t == 67) {
  23374. window.topU.postMessage({ tools: "67" }, "*");
  23375. } else if (t == 68) {
  23376. window.topU.postMessage({ tools: "68" }, "*");
  23377. } else if (t == 57) {
  23378. // window.topU.postMessage({ tools: "57" }, "*");
  23379. window.topU.postMessage(
  23380. {
  23381. tools: "57u",
  23382. cid: this.id,
  23383. stage: this.courseType,
  23384. task: this.taskCount,
  23385. tool: i
  23386. },
  23387. "*"
  23388. );
  23389. } else if (t == 58) {
  23390. window.topU.postMessage({ tools: "58" }, "*");
  23391. } else if (t == 59) {
  23392. window.topU.postMessage({ tools: "59" }, "*");
  23393. } else if (t == 60) {
  23394. window.topU.postMessage({ tools: "60" }, "*");
  23395. } else if (t == 61) {
  23396. window.topU.postMessage({ tools: "61" }, "*");
  23397. } else if (t == 63) {
  23398. window.topU.postMessage({ tools: "63" }, "*");
  23399. } else if (t == 71) {
  23400. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23401. // this.$message.error("该工具不可使用");
  23402. // return
  23403. // }
  23404. window.topU.postMessage({ tools: "71" }, "*");
  23405. } else if (t == 72) {
  23406. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23407. .taskJson[index].toolChoose[i].appJson
  23408. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23409. .toolChoose[i].appJson
  23410. : "";
  23411. console.log('item.url',item.url);
  23412. if(!item || !item.url){
  23413. this.$message.error("应用连接为空, 请到课程管理中添加");
  23414. return;
  23415. }
  23416. if (!document.fullscreenElement) {
  23417. this.enterFullScreen();
  23418. }
  23419. this.$refs.appStoreC.getData(item.url,this.userid)
  23420. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23421. // window.open(item.url, "_blank");
  23422. } else if (t == 69) {
  23423. if (this.worksStudent[i].length) {
  23424. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23425. if (this.userid == this.worksStudent[i][k].userid) {
  23426. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  23427. break;
  23428. } else {
  23429. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23430. }
  23431. }
  23432. } else {
  23433. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23434. }
  23435. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23436. .taskJson[index].toolChoose[i].englishList
  23437. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23438. .toolChoose[i].englishList
  23439. : {};
  23440. this.englishToolIndex = i;
  23441. this.myAnList = this.myAnswerList1;
  23442. this.engDialogVisible = true;
  23443. } else if (t == 70) {
  23444. if (this.worksStudent[i].length) {
  23445. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23446. if (
  23447. this.userid == this.worksStudent[i][k].userid &&
  23448. this.worksStudent[i][k].type == 17
  23449. ) {
  23450. this.englishVoiceJsonWork = JSON.parse(
  23451. this.worksStudent[i][k].works
  23452. );
  23453. break;
  23454. } else {
  23455. this.englishVoiceJsonWork = [];
  23456. }
  23457. }
  23458. } else {
  23459. this.englishVoiceJsonWork = [];
  23460. }
  23461. let englishVoiceJson = {};
  23462. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23463. .taskJson[index].toolChoose[i].englishVoiceJson
  23464. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23465. .toolChoose[i].englishVoiceJson
  23466. : {};
  23467. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23468. this.EnglishVoiceDialog = true;
  23469. } else if (t == 65) {
  23470. if (this.tType == 2) {
  23471. this.$message.error("不支持学生使用");
  23472. return;
  23473. }
  23474. this.uploadCid = this.tcid;
  23475. if (!this.uploadCid) {
  23476. this.$message.error(
  23477. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23478. );
  23479. return;
  23480. }
  23481. this.selectPickStudent();
  23482. } else if (t == 26) {
  23483. window.topU.postMessage(
  23484. {
  23485. tools: "26",
  23486. cid: this.id,
  23487. stage: this.courseType,
  23488. task: this.taskCount,
  23489. tool: i
  23490. },
  23491. "*"
  23492. );
  23493. } else if (t == 40) {
  23494. if (this.evalCount > 0) {
  23495. this.updateCount(this.evalCount, t);
  23496. } else {
  23497. this.evalCount++;
  23498. a = this.evalCount;
  23499. this.toolsCount(a, t);
  23500. }
  23501. this.eScore = { eBzText: "", eStar: [] };
  23502. if (this.worksStudent[i].length) {
  23503. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23504. if (this.userid == this.worksStudent[i][k].userid) {
  23505. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23506. this.rateJson = this.chapInfoList[
  23507. this.courseType
  23508. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23509. break;
  23510. } else {
  23511. this.rateJson = this.chapInfoList[
  23512. this.courseType
  23513. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23514. }
  23515. }
  23516. } else {
  23517. this.rateJson = this.chapInfoList[
  23518. this.courseType
  23519. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23520. }
  23521. this.isStar = false;
  23522. this.studentEvalDialogVisible = true;
  23523. } else if (t == 41) {
  23524. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23525. .taskJson[index].toolChoose[i].selectJson
  23526. ? JSON.parse(
  23527. JSON.stringify(
  23528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23529. index
  23530. ].toolChoose[i].selectJson
  23531. )
  23532. )
  23533. : { url: "", select: [], answer: [] };
  23534. if (this.worksStudent[i].length) {
  23535. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23536. if (this.userid == this.worksStudent[i][k].userid) {
  23537. var a = this.worksStudent[i][k].works.split(",");
  23538. for (var ki = 0; ki < a.length; ki++) {
  23539. a[ki] = parseInt(a[ki]);
  23540. }
  23541. this.selectAnswer = {
  23542. answer: a,
  23543. stu: this.worksStudent[i][k].sName
  23544. };
  23545. break;
  23546. } else {
  23547. this.selectAnswer = { answer: [], stu: "" };
  23548. }
  23549. }
  23550. } else {
  23551. this.selectAnswer = { answer: [], stu: "" };
  23552. }
  23553. this.isSelect = false;
  23554. this.dialogVisibleSelect = true;
  23555. } else if (t == 44) {
  23556. window.topU.postMessage({ tools: "44" }, "*");
  23557. } else if (t == 47) {
  23558. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23559. .taskJson[index].toolChoose[i].sentenceList
  23560. ? JSON.parse(
  23561. JSON.stringify(
  23562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23563. index
  23564. ].toolChoose[i].sentenceList
  23565. )
  23566. )
  23567. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23568. for (var q = 0; q < this.sentenceList.length; q++) {
  23569. this.sentenceList[q].chooseSenList = [];
  23570. this.sentenceList[q].addChangeSen = [];
  23571. this.sentenceList[q].addChangeSen = JSON.parse(
  23572. JSON.stringify(this.sentenceList[q].addSentence)
  23573. );
  23574. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23575. q
  23576. ].rightAnswer.length;
  23577. }
  23578. this.dialogVisibleSentence = true;
  23579. } else if (t == 48) {
  23580. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23581. .taskJson[index].toolChoose[i].tableJson
  23582. ? JSON.parse(
  23583. JSON.stringify(
  23584. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23585. index
  23586. ].toolChoose[i].tableJson
  23587. )
  23588. )
  23589. : { text: "" };
  23590. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23591. if (this.worksStudent[i].length) {
  23592. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23593. if (this.userid == this.worksStudent[i][k].userid) {
  23594. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23595. break;
  23596. }
  23597. }
  23598. }
  23599. this.dialogVisibleTable = true;
  23600. } else if (t == 52) {
  23601. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23602. .taskJson[index].toolChoose[i].wordJson
  23603. ? JSON.parse(
  23604. JSON.stringify(
  23605. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23606. index
  23607. ].toolChoose[i].wordJson
  23608. )
  23609. )
  23610. : { text: "" };
  23611. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23612. if (this.worksStudent[i].length) {
  23613. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23614. if (this.userid == this.worksStudent[i][k].userid) {
  23615. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23616. break;
  23617. }
  23618. }
  23619. }
  23620. this.dialogVisibleWord = true;
  23621. } else if (t == 49) {
  23622. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  23623. return;
  23624. }
  23625. this.groupJson = this.chapInfoList[
  23626. this.courseType
  23627. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  23628. this.islock = this.groupJson.islock == 1 ? true : false;
  23629. this.dialogVisibleGroup = true;
  23630. } else if (t == 62) {
  23631. this.videoType = 0;
  23632. this.videoJson = {};
  23633. this.videoJson = this.chapInfoList[
  23634. this.courseType
  23635. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  23636. this.dialogVisibleVideo = true;
  23637. }
  23638. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23639. this.insertMemorandum(
  23640. `点击工作区<span class="variable">工具${index + 1}:${
  23641. this.toolsList[t]
  23642. }</span>`
  23643. );
  23644. },
  23645. teacherWorkSubmit(t, i, index, s) {
  23646. this.sStudent = s;
  23647. this.toolindex = i;
  23648. this.sTool = t;
  23649. if (this.tType !== "1" && this.tType !== "4") {
  23650. return;
  23651. }
  23652. if (t == 16 || t == 32 || t == 50) {
  23653. this.dialogVisibleWorks = true;
  23654. } else if (t == 15) {
  23655. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23656. .taskJson[index].toolChoose[i].answerQ
  23657. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23658. .toolChoose[i].answerQ
  23659. : "";
  23660. this.questionAnswer = "";
  23661. this.answerDialogVisibleTeacher = true; //问答
  23662. } else if (t == 52) {
  23663. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23664. .taskJson[index].toolChoose[i].wordJson
  23665. ? JSON.parse(
  23666. JSON.stringify(
  23667. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23668. index
  23669. ].toolChoose[i].wordJson
  23670. )
  23671. )
  23672. : { text: "" };
  23673. if (this.worksStudent[i].length) {
  23674. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23675. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23676. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23677. break;
  23678. }
  23679. }
  23680. }
  23681. this.dialogVisibleWordTeacher = true; //文档
  23682. } else if (t == 4) {
  23683. this.radio = [];
  23684. this.noteName = "";
  23685. this.isAnswer = false;
  23686. if (this.askCount > 0) {
  23687. this.updateCount(this.askCount, t);
  23688. } else {
  23689. this.askCount++;
  23690. a = this.askCount;
  23691. this.toolsCount(a, t);
  23692. }
  23693. if (!this.dialogVisible2) {
  23694. this.askJson.askJson = this.chapInfoList[
  23695. this.courseType
  23696. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23697. this.askJson.askTitle = this.chapInfoList[
  23698. this.courseType
  23699. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23700. this.askJson.askCount = this.chapInfoList[
  23701. this.courseType
  23702. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23703. } else {
  23704. this.askJson.askJson = this.chapTools.askJson.askJson;
  23705. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23706. this.askJson.askCount = this.chapTools.askJson.askCount;
  23707. }
  23708. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23709. if (this.askJson.askJson[k].type == "2") {
  23710. this.radio.push([]);
  23711. } else {
  23712. this.radio.push("");
  23713. }
  23714. }
  23715. this.dialogVisible5Teacher = true;
  23716. } else if (t == 45) {
  23717. this.noteName = "";
  23718. this.radio = [];
  23719. this.isAnswer = false;
  23720. if (this.askCount > 0) {
  23721. this.updateCount(this.askCount, t);
  23722. } else {
  23723. this.askCount++;
  23724. a = this.askCount;
  23725. this.toolsCount(a, t);
  23726. }
  23727. this.testJson = this.chapInfoList[
  23728. this.courseType
  23729. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23730. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23731. if (this.testJson.testJson[k].type == "2") {
  23732. this.radio.push([]);
  23733. } else {
  23734. this.radio.push("");
  23735. }
  23736. }
  23737. this.dialogVisibleChoiceTeacher = true;
  23738. } else if (t == 41) {
  23739. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23740. .taskJson[index].toolChoose[i].selectJson
  23741. ? JSON.parse(
  23742. JSON.stringify(
  23743. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23744. index
  23745. ].toolChoose[i].selectJson
  23746. )
  23747. )
  23748. : { url: "", select: [], answer: [] };
  23749. if (this.worksStudent[i].length) {
  23750. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23751. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23752. var a = this.worksStudent[i][k].works.split(",");
  23753. for (var ki = 0; ki < a.length; ki++) {
  23754. a[ki] = parseInt(a[ki]);
  23755. }
  23756. this.selectAnswer = {
  23757. answer: a,
  23758. stu: this.worksStudent[i][k].sName
  23759. };
  23760. break;
  23761. } else {
  23762. this.selectAnswer = { answer: [], stu: "" };
  23763. }
  23764. }
  23765. } else {
  23766. this.selectAnswer = { answer: [], stu: "" };
  23767. }
  23768. this.isSelect = false;
  23769. this.dialogVisibleSelectTeacher = true;
  23770. } else if (t == 47) {
  23771. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23772. .taskJson[index].toolChoose[i].sentenceList
  23773. ? JSON.parse(
  23774. JSON.stringify(
  23775. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23776. index
  23777. ].toolChoose[i].sentenceList
  23778. )
  23779. )
  23780. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23781. for (var q = 0; q < this.sentenceList.length; q++) {
  23782. this.sentenceList[q].chooseSenList = [];
  23783. this.sentenceList[q].addChangeSen = [];
  23784. this.sentenceList[q].addChangeSen = JSON.parse(
  23785. JSON.stringify(this.sentenceList[q].addSentence)
  23786. );
  23787. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23788. q
  23789. ].rightAnswer.length;
  23790. }
  23791. this.dialogVisibleSentenceTeacher = true;
  23792. } else if (t == 48) {
  23793. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23794. .taskJson[index].toolChoose[i].tableJson
  23795. ? JSON.parse(
  23796. JSON.stringify(
  23797. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23798. index
  23799. ].toolChoose[i].tableJson
  23800. )
  23801. )
  23802. : { text: "" };
  23803. if (this.worksStudent[i].length) {
  23804. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23805. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23806. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23807. break;
  23808. }
  23809. }
  23810. }
  23811. this.dialogVisibleTableTeacher = true;
  23812. } else if (t == 40) {
  23813. if (this.evalCount > 0) {
  23814. this.updateCount(this.evalCount, t);
  23815. } else {
  23816. this.evalCount++;
  23817. a = this.evalCount;
  23818. this.toolsCount(a, t);
  23819. }
  23820. this.eScore = { eBzText: "", eStar: [] };
  23821. if (this.worksStudent[i].length) {
  23822. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23823. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23824. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23825. this.rateJson = this.chapInfoList[
  23826. this.courseType
  23827. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23828. break;
  23829. } else {
  23830. this.rateJson = this.chapInfoList[
  23831. this.courseType
  23832. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23833. }
  23834. }
  23835. } else {
  23836. this.rateJson = this.chapInfoList[
  23837. this.courseType
  23838. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23839. }
  23840. this.isStar = false;
  23841. this.studentEvalDialogVisibleTeacher = true;
  23842. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23843. window.topU.postMessage(
  23844. {
  23845. tools: t + "teacher",
  23846. cid: this.id,
  23847. stage: this.courseType,
  23848. task: this.taskCount,
  23849. tool: i,
  23850. student: this.sStudent
  23851. },
  23852. "*"
  23853. );
  23854. }else if (t == 72) {
  23855. if (!document.fullscreenElement) {
  23856. this.enterFullScreen();
  23857. }
  23858. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23859. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23860. }
  23861. },
  23862. openCocoPi(tool, i, uid, uname) {
  23863. let student = {
  23864. userid: uid,
  23865. student: uname
  23866. };
  23867. if (tool == 57) {
  23868. window.topU.postMessage(
  23869. {
  23870. tools: tool + "teacher",
  23871. cid: this.id,
  23872. stage: this.courseType,
  23873. task: this.taskCount,
  23874. tool: i,
  23875. student: student
  23876. },
  23877. "*"
  23878. );
  23879. }
  23880. },
  23881. setRightAnswer(s, i, j) {
  23882. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23883. if (
  23884. this.sentenceList[i].chooseSenList[q] == undefined ||
  23885. this.sentenceList[i].chooseSenList[q] == ""
  23886. ) {
  23887. this.sentenceList[i].chooseSenList[q] = s;
  23888. this.sentenceList[i].addChangeSen[j] = "";
  23889. break;
  23890. }
  23891. }
  23892. this.$forceUpdate();
  23893. },
  23894. returnCard(r, i, j) {
  23895. var a = this.sentenceList[i].addSentence.indexOf(r);
  23896. this.sentenceList[i].chooseSenList[j] = "";
  23897. this.sentenceList[i].addChangeSen[a] = r;
  23898. this.$forceUpdate();
  23899. },
  23900. // addSentenceTool() {
  23901. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23902. // this.taskCount
  23903. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23904. // this.sentenceList = [
  23905. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23906. // ];
  23907. // this.dialogVisibleSentence = false;
  23908. // },
  23909. toolsCount(a, t) {
  23910. let params = {
  23911. cid: this.id,
  23912. chid: this.courseType,
  23913. uid: this.userid,
  23914. tid: t,
  23915. count: a
  23916. };
  23917. this.ajax
  23918. .get(this.$store.state.api + "insertToolsCount", params)
  23919. .then(res => {
  23920. this.selectCount();
  23921. })
  23922. .catch(err => {
  23923. console.error(err);
  23924. });
  23925. },
  23926. updateCount(c, t) {
  23927. c++;
  23928. let params = {
  23929. cid: this.id,
  23930. chid: this.courseType,
  23931. uid: this.userid,
  23932. tid: t,
  23933. count: c
  23934. };
  23935. this.ajax
  23936. .get(this.$store.state.api + "updateToolsCount", params)
  23937. .then(res => {
  23938. this.selectCount();
  23939. })
  23940. .catch(err => {
  23941. console.error(err);
  23942. });
  23943. },
  23944. checkEva() {
  23945. if (this.evalua != "") {
  23946. for (var i = 0; i < this.evaJuri.length; i++) {
  23947. if (this.evalua == this.evaJuri[i].id) {
  23948. this.eTitle = this.evaJuri[i].title;
  23949. this.eJson = JSON.parse(this.evaJuri[i].content);
  23950. }
  23951. }
  23952. this.$forceUpdate();
  23953. setTimeout(() => {
  23954. this.setMindData();
  23955. }, 0);
  23956. }
  23957. },
  23958. selectEva() {
  23959. let params = {
  23960. oid: this.oid
  23961. };
  23962. this.ajax
  23963. .get(this.$store.state.api + "selectAllEvaluation", params)
  23964. .then(res => {
  23965. this.evaJuri = res.data[0];
  23966. })
  23967. .catch(err => {
  23968. console.error(err);
  23969. });
  23970. },
  23971. setMindData() {
  23972. this.data.data = [];
  23973. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23974. let _eJson = Object.keys(this.eJson);
  23975. let _e = this.eJson;
  23976. for (let i = 0; i < _eJson.length; i++) {
  23977. let element = _e[_eJson[i]];
  23978. this.data.data.push({
  23979. id: element.id,
  23980. parentid: "root",
  23981. topic: element.name
  23982. });
  23983. let _eJsonc = Object.keys(element.child);
  23984. let _e2 = element.child;
  23985. for (let j = 0; j < _eJsonc.length; j++) {
  23986. let _ec = _e2[_eJsonc[j]];
  23987. this.data.data.push({
  23988. id: _ec.id,
  23989. parentid: element.id,
  23990. topic: _ec.name
  23991. });
  23992. let _eJsonz = Object.keys(_ec.child);
  23993. let _e3 = _ec.child;
  23994. for (let z = 0; z < _eJsonz.length; z++) {
  23995. let _ez = _e3[_eJsonz[z]];
  23996. this.data.data.push({
  23997. id: _ez.id,
  23998. parentid: _ec.id,
  23999. topic: _ez.name
  24000. });
  24001. }
  24002. }
  24003. }
  24004. this.$forceUpdate();
  24005. },
  24006. checkFileFull(type, url) {
  24007. this.fullDialogVisible = true;
  24008. this.fulltype = type;
  24009. this.fullUrl = url;
  24010. },
  24011. async checkFileFull1(t, f) {
  24012. this.fullDialogVisible = true;
  24013. if (t == 6) {
  24014. this.fulltype = 1;
  24015. this.fullUrl = JSON.parse(JSON.stringify(f));
  24016. } else if (t == 8) {
  24017. this.fulltype = 2;
  24018. this.fullUrl = f.url;
  24019. }else if (t == 15) {
  24020. this.fulltype = 4;
  24021. this.fullUrl = f.url;
  24022. } else if (
  24023. t == 3 &&
  24024. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  24025. "PDF"
  24026. ) {
  24027. this.fulltype = 3;
  24028. this.fullUrl = f.url;
  24029. } else if (t == 3) {
  24030. this.fulltype = 2;
  24031. let _uuurl = await this.checkLink(f.url);
  24032. this.fullUrl =
  24033. "https://view.officeapps.live.com/op/view.aspx?src=" +
  24034. encodeURIComponent(_uuurl);
  24035. }
  24036. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  24037. },
  24038. openSname(n, id, i, uid) {
  24039. this.snameWid = id;
  24040. this.worksSName = n;
  24041. this.worksSid = uid == n ? "" : uid;
  24042. this.toolindex = i;
  24043. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  24044. if (!this.uploadCid) {
  24045. this.$message.error(
  24046. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  24047. );
  24048. return;
  24049. }
  24050. this.selectUploadStudent(1);
  24051. },
  24052. updateName() {
  24053. let params = {
  24054. n: this.worksSName,
  24055. cid: this.snameWid
  24056. };
  24057. this.ajax
  24058. .get(this.$store.state.api + "updateCourseWorksName", params)
  24059. .then(res => {
  24060. this.$message({
  24061. message: "修改成功",
  24062. type: "success"
  24063. });
  24064. this.dialogVisibleSname = false;
  24065. this.getCourseDetail(2);
  24066. this.snameWid = "";
  24067. this.worksSName = "";
  24068. })
  24069. .catch(err => {
  24070. console.error(err);
  24071. });
  24072. },
  24073. downloadFile2(f) {
  24074. // const loading = this.$loading.service({
  24075. // background: "rgba(255, 255, 255, 0.7)",
  24076. // target: document.body,
  24077. // text: "文件加载中...",
  24078. // });
  24079. // let url2 = f.url;
  24080. // let _url2 = "";
  24081. // if (
  24082. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24083. // ) {
  24084. // _url2 = url2.split(
  24085. // "https://view.officeapps.live.com/op/view.aspx?src="
  24086. // )[1];
  24087. // } else {
  24088. // _url2 = url2;
  24089. // }
  24090. // let params = {
  24091. // url: _url2,
  24092. // name: f.name,
  24093. // };
  24094. // this.ajax
  24095. // .get(this.$store.state.api + "download", params)
  24096. // .then((res) => {
  24097. // loading.close();
  24098. // let content = res.data.data.data;
  24099. // let ab = new ArrayBuffer(content.length);
  24100. // let view = new Uint8Array(ab);
  24101. // for (var i = 0; i < content.length; ++i) {
  24102. // view[i] = content[i];
  24103. // }
  24104. // let elink = document.createElement("a");
  24105. // elink.download = f.name;
  24106. // elink.style.display = "none";
  24107. // let blob = new Blob([ab], {
  24108. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  24109. // });
  24110. // elink.href = URL.createObjectURL(blob);
  24111. // document.body.appendChild(elink);
  24112. // elink.click();
  24113. // document.body.removeChild(elink);
  24114. // })
  24115. // .catch((err) => {
  24116. // loading.close();
  24117. // console.error(err);
  24118. // });
  24119. var credentials = {
  24120. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24121. secretAccessKey: "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"
  24122. }; //秘钥形式的登录上传
  24123. window.AWS.config.update(credentials);
  24124. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24125. let url2 = f.url;
  24126. let _url2 = "";
  24127. if (
  24128. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24129. ) {
  24130. _url2 = url2.split(
  24131. "https://view.officeapps.live.com/op/view.aspx?src="
  24132. )[1];
  24133. } else {
  24134. _url2 = url2;
  24135. }
  24136. let _this = this;
  24137. _this.downLoading = true;
  24138. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24139. let name = decodeURIComponent(
  24140. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24141. );
  24142. var params = {
  24143. Bucket: "ccrb",
  24144. Key: name
  24145. };
  24146. s3.getObject(params, function(err, data) {
  24147. _this.downLoading = false;
  24148. if (err) console.log(err, err.stack);
  24149. // an error occurred
  24150. else {
  24151. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24152. let a = document.createElement("a");
  24153. a.name = f.name;
  24154. a.href = url;
  24155. a.download = f.name;
  24156. a.click();
  24157. console.log(data);
  24158. } // sxuccessful response
  24159. });
  24160. return;
  24161. let url = f.url;
  24162. let _url = "";
  24163. if (
  24164. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24165. ) {
  24166. _url = url.split(
  24167. "https://view.officeapps.live.com/op/view.aspx?src="
  24168. )[1];
  24169. } else {
  24170. _url = url;
  24171. }
  24172. _this.downLoading = true;
  24173. // const loading = _this.$loading.service({
  24174. // background: "rgba(255, 255, 255, 0.7)",
  24175. // target: document.body,
  24176. // text: "文件加载中...",
  24177. // });
  24178. let x = new XMLHttpRequest();
  24179. x.open("GET", _url, true);
  24180. x.responseType = "blob";
  24181. x.onload = function() {
  24182. _this.downLoading = false;
  24183. // loading.close();
  24184. let url = window.URL.createObjectURL(new Blob([x.response]));
  24185. let a = document.createElement("a");
  24186. a.name = f.name;
  24187. a.href = url;
  24188. a.download = f.name;
  24189. a.click();
  24190. };
  24191. x.send();
  24192. },
  24193. downloadFile(url) {
  24194. let hz = url.substring(url.lastIndexOf(".") + 1);
  24195. if (hz == "txt" || hz == "md") {
  24196. this.lookTxt(url);
  24197. return;
  24198. }
  24199. var credentials = {
  24200. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24201. secretAccessKey: "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"
  24202. }; //秘钥形式的登录上传
  24203. window.AWS.config.update(credentials);
  24204. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24205. let url2 = url;
  24206. let _url2 = "";
  24207. if (
  24208. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24209. ) {
  24210. _url2 = url2.split(
  24211. "https://view.officeapps.live.com/op/view.aspx?src="
  24212. )[1];
  24213. } else {
  24214. _url2 = url2;
  24215. }
  24216. const loading2 = this.$loading.service({
  24217. background: "rgba(255, 255, 255, 0.7)",
  24218. target: document.body,
  24219. text: "文件加载中..."
  24220. });
  24221. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24222. let name = decodeURIComponent(
  24223. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24224. );
  24225. var params = {
  24226. Bucket: "ccrb",
  24227. Key: name
  24228. };
  24229. s3.getObject(params, function(err, data) {
  24230. loading2.close();
  24231. if (err) console.log(err, err.stack);
  24232. // an error occurred
  24233. else {
  24234. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24235. let a = document.createElement("a");
  24236. a.name = name;
  24237. a.href = url;
  24238. a.download = name;
  24239. a.click();
  24240. console.log(data);
  24241. } // sxuccessful response
  24242. });
  24243. return;
  24244. let _this = this;
  24245. let _url = "";
  24246. if (
  24247. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24248. ) {
  24249. _url = url.split(
  24250. "https://view.officeapps.live.com/op/view.aspx?src="
  24251. )[1];
  24252. } else {
  24253. _url = url;
  24254. }
  24255. const x = new XMLHttpRequest();
  24256. x.open("GET", _url, true);
  24257. x.responseType = "blob";
  24258. const loading = _this.$loading.service({
  24259. background: "rgba(255, 255, 255, 0.7)",
  24260. target: document.body,
  24261. text: "文件加载中..."
  24262. });
  24263. // _this.$message.success("文件下载中...");
  24264. x.onload = function(e) {
  24265. loading.close();
  24266. let content = x.response;
  24267. let elink = document.createElement("a");
  24268. elink.download = decodeURI(
  24269. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24270. );
  24271. elink.style.display = "none";
  24272. let blob = new Blob([content]);
  24273. elink.href = URL.createObjectURL(blob);
  24274. document.body.appendChild(elink);
  24275. elink.click();
  24276. document.body.removeChild(elink);
  24277. };
  24278. x.send();
  24279. },
  24280. openLine(url) {
  24281. window.open(url);
  24282. },
  24283. resize() {
  24284. if (document.getElementsByClassName("box_course").length) {
  24285. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24286. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24287. if (this.showType == 2 || this.showType == 3) {
  24288. document.getElementsByClassName("navBox")[0].style.height =
  24289. a - 40 + 0 + "px";
  24290. } else {
  24291. document.getElementsByClassName("navBox")[0].style.height =
  24292. a - 40 + "px";
  24293. }
  24294. }
  24295. this.Stbodywidth =
  24296. document.getElementsByClassName("student_body").length &&
  24297. document.getElementsByClassName("student_body")[0].offsetWidth;
  24298. },
  24299. closeDraw() {
  24300. this.bg = null;
  24301. this.drawShow = false;
  24302. },
  24303. showPicturePaint(url) {
  24304. let params = {
  24305. img: url
  24306. };
  24307. this.ajax
  24308. .get(this.$store.state.api + "imgToBase64", params)
  24309. .then(res => {
  24310. this.drawShow = true;
  24311. this.bg = res.data[0].img;
  24312. })
  24313. .catch(err => {
  24314. console.error(err);
  24315. });
  24316. },
  24317. addImgDraw(base64) {
  24318. let file = { name: "批注图.png" };
  24319. let img = this.dataUrlToFile(base64, file);
  24320. this.beforeUpload1(img, 5);
  24321. },
  24322. addImgDrawImG(url) {
  24323. // console.log(url);
  24324. let params = [
  24325. {
  24326. wid: this.commentDetail.wid,
  24327. img: url
  24328. }
  24329. ];
  24330. this.ajax
  24331. .post(this.$store.state.api + "updateCourseWorks", params)
  24332. .then(res => {
  24333. this.$message({
  24334. message: "提交成功",
  24335. type: "success"
  24336. });
  24337. this.drawShow = false;
  24338. this.bg = "";
  24339. this.selectSWorks();
  24340. this.selectStudent();
  24341. })
  24342. .catch(err => {
  24343. this.$message.error("提交失败");
  24344. console.error(err);
  24345. });
  24346. },
  24347. deletePicturePaint() {
  24348. this.$confirm("确定删除此批注吗?", "提示", {
  24349. confirmButtonText: "确定",
  24350. cancelButtonText: "取消",
  24351. type: "warning"
  24352. })
  24353. .then(() => {
  24354. let params = [
  24355. {
  24356. wid: this.commentDetail.wid,
  24357. img: ""
  24358. }
  24359. ];
  24360. this.ajax
  24361. .post(this.$store.state.api + "updateCourseWorks", params)
  24362. .then(res => {
  24363. this.$message({
  24364. message: "删除成功",
  24365. type: "success"
  24366. });
  24367. this.selectSWorks();
  24368. this.selectStudent();
  24369. })
  24370. .catch(err => {
  24371. this.$message.error("删除失败");
  24372. console.error(err);
  24373. });
  24374. })
  24375. .catch(() => {});
  24376. },
  24377. getAudioVideo(constraintsData) {
  24378. if (navigator.mediaDevices === undefined) {
  24379. navigator.mediaDevices = {};
  24380. }
  24381. if (navigator.mediaDevices.getUserMedia === undefined) {
  24382. navigator.mediaDevices.getUserMedia = function(constraints) {
  24383. // 首先,如果有getUserMedia的话,就获得它
  24384. var getUserMedia =
  24385. navigator.getUserMedia ||
  24386. navigator.webkitGetUserMedia ||
  24387. navigator.mozGetUserMedia ||
  24388. navigator.msGetUserMedia;
  24389. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24390. if (!getUserMedia) {
  24391. return Promise.reject({ code: 404 });
  24392. }
  24393. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24394. return new Promise(function(resolve, reject) {
  24395. getUserMedia.call(navigator, constraints, resolve, reject);
  24396. });
  24397. };
  24398. }
  24399. return navigator.mediaDevices.getUserMedia(constraintsData);
  24400. },
  24401. /**
  24402. * 开始录制
  24403. */
  24404. startRecording(callback) {
  24405. let _function = screenStream => {
  24406. this.addStreamStopListener(screenStream, () => {
  24407. console.log("流停止监听");
  24408. this.stopRecording();
  24409. this.$emit("streamStop", {});
  24410. // this.stopRecording();
  24411. });
  24412. var options = {
  24413. type: "video",
  24414. mimeType: "video/webm",
  24415. disableLogs: false,
  24416. getNativeBlob: false, // enable it for longer recordings
  24417. ignoreMutedMedia: false
  24418. };
  24419. // this.video.srcObject = screenStream;
  24420. this.recorder = RecordRTC(screenStream, options);
  24421. this.recorder.startRecording();
  24422. this.recorder.screen = screenStream;
  24423. this.videoStart = true;
  24424. // callback(true);
  24425. };
  24426. this.getAudioVideo({ audio: true })
  24427. .then(res => {
  24428. this.captureScreen(_function, true);
  24429. console.log("已点击允许,开启成功");
  24430. })
  24431. .catch(err => {
  24432. // console.log('浏览器不支持,请更换浏览器')
  24433. // } else {
  24434. this.captureScreen(_function, false);
  24435. console.log("请检查是否存在麦克风");
  24436. });
  24437. },
  24438. /**
  24439. * 停止录制
  24440. */
  24441. stopRecording(callback) {
  24442. this.recorder.stopRecording(() => {
  24443. // this.video.src = this.video.srcObject = null;
  24444. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24445. const url = URL.createObjectURL(this.recorder.getBlob());
  24446. const a = document.createElement("a"); //this.fileName+
  24447. let videoFile = new File(
  24448. [this.recorder.getBlob()],
  24449. this.courseDetail.title + "录屏.mp4",
  24450. {
  24451. type: "video/mp4"
  24452. }
  24453. );
  24454. let downloadUrl = URL.createObjectURL(videoFile);
  24455. if (this.$refs.classRoomHelperRef) {
  24456. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  24457. }
  24458. document.body.appendChild(a);
  24459. a.style.display = "none";
  24460. a.href = url;
  24461. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24462. a.click();
  24463. this.recorder.screen.stop();
  24464. this.recorder.destroy();
  24465. this.recorder = null;
  24466. this.videoStart = false;
  24467. // callback(false);
  24468. });
  24469. },
  24470. //初始化
  24471. captureScreen(callback, type) {
  24472. if (navigator.getDisplayMedia) {
  24473. //录制结束,文件下载
  24474. navigator
  24475. .getDisplayMedia({
  24476. video: true
  24477. })
  24478. .then(screenStream => {
  24479. if (type) {
  24480. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24481. screenStream.addTrack(mic.getTracks()[0]);
  24482. callback(screenStream);
  24483. });
  24484. } else {
  24485. callback(screenStream);
  24486. }
  24487. })
  24488. .catch(function(error) {
  24489. console.log("error", error);
  24490. });
  24491. } else if (navigator.mediaDevices.getDisplayMedia) {
  24492. navigator.mediaDevices
  24493. .getDisplayMedia({
  24494. video: true
  24495. })
  24496. .then(screenStream => {
  24497. if (type) {
  24498. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24499. screenStream.addTrack(mic.getTracks()[0]);
  24500. callback(screenStream);
  24501. });
  24502. } else {
  24503. callback(screenStream);
  24504. }
  24505. })
  24506. .catch(function(error) {
  24507. console.log("error", error);
  24508. });
  24509. } else {
  24510. var error = "getDisplayMedia API are not supported in this browser.";
  24511. console.log("error", error);
  24512. alert(error);
  24513. }
  24514. },
  24515. //流监听
  24516. addStreamStopListener(stream, callback) {
  24517. stream.addEventListener(
  24518. "ended",
  24519. function() {
  24520. callback();
  24521. callback = function() {};
  24522. },
  24523. false
  24524. );
  24525. stream.addEventListener(
  24526. "inactive",
  24527. function() {
  24528. callback();
  24529. callback = function() {};
  24530. },
  24531. false
  24532. );
  24533. stream.getTracks().forEach(function(track) {
  24534. track.addEventListener(
  24535. "ended",
  24536. function() {
  24537. callback();
  24538. callback = function() {};
  24539. },
  24540. false
  24541. );
  24542. track.addEventListener(
  24543. "inactive",
  24544. function() {
  24545. callback();
  24546. callback = function() {};
  24547. },
  24548. false
  24549. );
  24550. });
  24551. },
  24552. updateGroup() {
  24553. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24554. this.dialogVisibleGroup2 = true;
  24555. },
  24556. numberPan() {
  24557. if (
  24558. /[^\d]/.test(this.groupJson.number) ||
  24559. this.groupJson.number < 2 ||
  24560. this.groupJson.number > 10
  24561. ) {
  24562. this.$message.error("请输入2-10的数字");
  24563. this.groupJson.number = "";
  24564. }
  24565. },
  24566. updateGroupJson() {
  24567. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24568. if (
  24569. this.groupStudentUid[this.toolindex][i].length >
  24570. this.groupJson2.number
  24571. ) {
  24572. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24573. return;
  24574. }
  24575. }
  24576. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24577. this.islock = this.groupJson.islock == 1 ? true : false;
  24578. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24579. this.taskCount
  24580. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24581. let params = [
  24582. {
  24583. cid: this.id,
  24584. chapters: JSON.stringify(this.chapInfoList),
  24585. uid: this.userid,
  24586. unitIndex: this.courseType
  24587. }
  24588. ];
  24589. this.ajax
  24590. .post(this.$store.state.api + "updateWorkNew4", params)
  24591. .then(res => {
  24592. this.$message.success("设置成功");
  24593. this.getCourseDetail(2);
  24594. this.dialogVisibleGroup2 = false;
  24595. this.groupJson2 = {};
  24596. this.$forceUpdate();
  24597. })
  24598. .catch(err => {
  24599. this.$message.error("网络不佳");
  24600. console.error(err);
  24601. });
  24602. },
  24603. lockChair() {
  24604. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24605. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24606. this.updateGroupJson();
  24607. },
  24608. selectGroup(index) {
  24609. this.getCourseDetail(2, index);
  24610. },
  24611. joinGroup(index) {
  24612. if (this.groupJson.islock == 2) {
  24613. this.$message.error("位置已被锁定,无法加入");
  24614. return;
  24615. }
  24616. if (
  24617. this.groupStudent[this.toolindex][index].length >
  24618. this.groupJson.number ||
  24619. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24620. ) {
  24621. this.$message.error("位置已满,无法加入");
  24622. return;
  24623. }
  24624. let params = [
  24625. {
  24626. cid: this.id,
  24627. stage: this.courseType,
  24628. task: this.taskCount,
  24629. tool: this.toolindex,
  24630. g: index,
  24631. uid: this.userid
  24632. }
  24633. ];
  24634. this.ajax
  24635. .post(this.$store.state.api + "joinGroup", params)
  24636. .then(res => {
  24637. this.$message.success("加入成功");
  24638. this.getCourseDetail(2);
  24639. })
  24640. .catch(err => {
  24641. this.$message.error("网络不佳");
  24642. console.error(err);
  24643. });
  24644. },
  24645. exitGroup(id) {
  24646. if (this.groupJson.islock == 2) {
  24647. this.$message.error("位置已被锁定,无法退出");
  24648. return;
  24649. }
  24650. let params = [
  24651. {
  24652. gid: id
  24653. }
  24654. ];
  24655. this.ajax
  24656. .post(this.$store.state.api + "exitGroup", params)
  24657. .then(res => {
  24658. this.$message.success("退出成功");
  24659. this.getCourseDetail(2);
  24660. })
  24661. .catch(err => {
  24662. this.$message.error("网络不佳");
  24663. console.error(err);
  24664. });
  24665. },
  24666. groupUpload(index, task, gindex) {
  24667. this.taskCount = task;
  24668. this.toolindex = index;
  24669. this.groupIndex = gindex;
  24670. this.dialogVisibleGroupWork = true;
  24671. },
  24672. updateGroupChair(user) {
  24673. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24674. el.label = index;
  24675. return index != user.group;
  24676. });
  24677. this.updateGroupUser = user;
  24678. this.dialogVisibleUpdateGroup = true;
  24679. },
  24680. updateChair() {
  24681. if (
  24682. this.groupStudent[this.toolindex][this.checkChair].length >
  24683. this.groupJson.number ||
  24684. this.groupStudent[this.toolindex][this.checkChair].length ==
  24685. this.groupJson.number
  24686. ) {
  24687. this.$message.error("位置已满,无法加入");
  24688. return;
  24689. }
  24690. let params = [
  24691. {
  24692. cid: this.id,
  24693. stage: this.courseType,
  24694. task: this.taskCount,
  24695. tool: this.toolindex,
  24696. g: this.checkChair,
  24697. uid: this.updateGroupUser.userid
  24698. }
  24699. ];
  24700. this.ajax
  24701. .post(this.$store.state.api + "joinGroup", params)
  24702. .then(res => {
  24703. this.$message.success("修改成功");
  24704. this.updateGroupUser = {};
  24705. this.checkChair = "";
  24706. this.updateGroupArray = {};
  24707. this.dialogVisibleUpdateGroup = false;
  24708. this.getCourseDetail(2);
  24709. })
  24710. .catch(err => {
  24711. this.$message.error("网络不佳");
  24712. console.error(err);
  24713. });
  24714. },
  24715. deleteGroupChair(gindex) {
  24716. this.checkDeleteGroup = [];
  24717. this.deleteGroupUser = JSON.parse(
  24718. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24719. );
  24720. this.deleteGroupArray = this.groupJson.group[gindex];
  24721. this.groupIndex = gindex;
  24722. this.dialogVisibleDeleteGroup = true;
  24723. },
  24724. async deleteChair() {
  24725. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24726. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  24727. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24728. this.checkDeleteGroup[i]
  24729. )
  24730. ];
  24731. let params = [
  24732. {
  24733. gid: gid.id
  24734. }
  24735. ];
  24736. var a = await this.deleteChairA(params);
  24737. if (i == this.checkDeleteGroup.length - 1) {
  24738. this.$message.success("退出成功");
  24739. this.dialogVisibleDeleteGroup = false;
  24740. this.deleteGroupUser = [];
  24741. this.deleteGroupArray = {};
  24742. this.groupIndex = "";
  24743. this.checkDeleteGroup = [];
  24744. this.getCourseDetail(2);
  24745. }
  24746. }
  24747. },
  24748. deleteChairA(params) {
  24749. return new Promise((resolve, reject) => {
  24750. this.ajax
  24751. .post(this.$store.state.api + "exitGroup", params)
  24752. .then(res => {
  24753. resolve(1);
  24754. })
  24755. .catch(err => {
  24756. this.$message.error("网络不佳");
  24757. console.error(err);
  24758. });
  24759. });
  24760. },
  24761. contract(i) {
  24762. if (this.isCloseList[i].isClose == 0) {
  24763. this.isCloseList[i].isClose = 1;
  24764. } else {
  24765. this.isCloseList[i].isClose = 0;
  24766. }
  24767. this.$forceUpdate();
  24768. },
  24769. openWordCloud(toolindex) {
  24770. this.wordCloudData = '';
  24771. let array = [];
  24772. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24773. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24774. array.push({ name: works });
  24775. }
  24776. if (this.isGroup) {
  24777. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24778. let works = this.courseGroup.group[i].works[toolindex];
  24779. for (var j = 0; j < works.length; j++) {
  24780. let answer = JSON.parse(works[j].works)[0].answer;
  24781. array.push({ name: answer });
  24782. }
  24783. }
  24784. }
  24785. let _result = ''
  24786. array.forEach(e=>{
  24787. _result +=e.name+','
  24788. })
  24789. this.wordCloudData = _result;
  24790. this.dialogVisibleWordCloud = true;
  24791. this.wordCloudKey += 1;
  24792. },
  24793. openTips(i) {
  24794. this.tipsIndex = i;
  24795. this.downDialogVisible = true;
  24796. },
  24797. uploadWorks() {
  24798. this.$confirm("确定导出作业吗?", "提示", {
  24799. confirmButtonText: "确定",
  24800. cancelButtonText: "取消",
  24801. type: "warning"
  24802. })
  24803. .then(() => {
  24804. const loading = this.$loading.service({
  24805. background: "rgba(255, 255, 255, 0.7)",
  24806. target: document.body,
  24807. text: "文件加载中..."
  24808. });
  24809. const _worksStudent = this.worksStudent;
  24810. let url = [];
  24811. var counts = {};
  24812. for (var l = 0; l < _worksStudent[i].length; l++) {
  24813. var item = _worksStudent[i][l];
  24814. var name = item.sName;
  24815. if (!counts.hasOwnProperty(name)) {
  24816. counts[name] = 0;
  24817. } else {
  24818. counts[name]++;
  24819. }
  24820. if (counts[name] > 0) {
  24821. item.sName += " (" + counts[name] + ")";
  24822. }
  24823. }
  24824. for (var l = 0; l < _worksStudent[i].length; l++) {
  24825. var item = _worksStudent[i][l];
  24826. if (
  24827. item.works.indexOf(
  24828. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24829. ) !== -1 &&
  24830. item.works.indexOf("img") === -1
  24831. ) {
  24832. url.push({ name: item.sName, url: item.works });
  24833. }
  24834. }
  24835. // var toolList = [
  24836. // { name: "电子白板", tool: 1 },
  24837. // { name: "思维导图", tool: 3 },
  24838. // { name: "协同文档", tool: 6 },
  24839. // { name: "思维网格", tool: 7 },
  24840. // { name: "素材库", tool: 8 },
  24841. // { name: "学习资料", tool: 17 },
  24842. // { name: "便签", tool: 2 },
  24843. // { name: "问卷调查", tool: 4 },
  24844. // { name: "选择题", tool: 45 },
  24845. // { name: "倒计时", tool: 10 },
  24846. // { name: "问答", tool: 15 },
  24847. // { name: "课程设计", tool: 26 },
  24848. // { name: "训练服务器", tool: 18 },
  24849. // { name: "作业提交", tool: 16 },
  24850. // { name: "批量上传", tool: 50 },
  24851. // { name: "AIoT Blockly", tool: 21 },
  24852. // { name: "AI Python", tool: 23 },
  24853. // { name: "AI Blockly", tool: 24 },
  24854. // { name: "目标管理", tool: 25 },
  24855. // { name: "数学画板", tool: 31 },
  24856. // { name: "翻译", tool: 28 },
  24857. // { name: "魔盒识字", tool: 37 },
  24858. // { name: "数学画板", tool: 31 },
  24859. // { name: "24点", tool: 38 },
  24860. // { name: "GeoGebra", tool: 39 },
  24861. // { name: "源码编辑", tool: 32 },
  24862. // { name: "个人评价", tool: 40 },
  24863. // { name: "选择匹配", tool: 41 },
  24864. // { name: "汉字宫", tool: 44 },
  24865. // { name: "排序", tool: 47 },
  24866. // { name: "表格", tool: 48 },
  24867. // { name: "文档", tool: 52 },
  24868. // { name: "学生分组", tool: 49 },
  24869. // { name: "CocoPi", tool: 57 },
  24870. // { name: "模拟驾驶", tool: 58 },
  24871. // { name: "路径搜索", tool: 59 },
  24872. // { name: "深度学习", tool: 60 },
  24873. // { name: "全历史", tool: 61 },
  24874. // { name: "交互视频", tool: 62 },
  24875. // { name: "海龟编程", tool: 63 },
  24876. // { name: "挑人", tool: 65 },
  24877. // { name: "公式编辑", tool: 66 },
  24878. // { name: "分子结构", tool: 67 },
  24879. // { name: "时间轴", tool: 68 },
  24880. // ];
  24881. // var toolName = "";
  24882. // for(var w = 0;w<toolList.length;w++){
  24883. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24884. // toolName = toolList[w].name;
  24885. // }
  24886. // }
  24887. console.log(url);
  24888. this.downLoadAll(url, loading);
  24889. })
  24890. .catch(() => {});
  24891. },
  24892. downLoadAll(url, loading) {
  24893. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24894. const zip = new JSZip();
  24895. const cache = {};
  24896. const promises = [];
  24897. data.forEach(item => {
  24898. const promise = getFile(item.url).then(data => {
  24899. if (data.data != 1) {
  24900. // 下载文件, 并存成ArrayBuffer对象
  24901. const file_name =
  24902. item.name +
  24903. "." +
  24904. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24905. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24906. cache[file_name] = data.data;
  24907. }
  24908. });
  24909. promises.push(promise);
  24910. });
  24911. Promise.all(promises).then(() => {
  24912. zip.generateAsync({ type: "blob" }).then(content => {
  24913. // 生成二进制流
  24914. FileSaver.saveAs(
  24915. content,
  24916. this.courseDetail.title + "-" + "作业提交工具.zip"
  24917. ); // 利用file-saver保存文件 自定义文件名
  24918. setTimeout(() => {
  24919. loading.close();
  24920. }, 2000);
  24921. });
  24922. });
  24923. },
  24924. pickStudent(stu) {
  24925. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24926. return;
  24927. }
  24928. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24929. confirmButtonText: "确定",
  24930. cancelButtonText: "取消",
  24931. type: "warning"
  24932. })
  24933. .then(() => {
  24934. let params = [
  24935. {
  24936. uid: stu.userid,
  24937. cid: this.id,
  24938. stage: this.courseType,
  24939. task: this.taskCount,
  24940. tool: this.toolindex
  24941. }
  24942. ];
  24943. this.ajax
  24944. .post(this.$store.state.api + "updateCoursePick", params)
  24945. .then(res => {
  24946. this.$message.success("操作成功");
  24947. this.getPick();
  24948. })
  24949. .catch(err => {
  24950. this.$message.error("网络不佳");
  24951. console.error(err);
  24952. });
  24953. })
  24954. .catch(() => {});
  24955. },
  24956. selectUser() {
  24957. let params = {
  24958. userid: this.userid
  24959. };
  24960. this.ajax
  24961. .get(this.$store.state.api + "selectUser", params)
  24962. .then(res => {
  24963. this.userMes = res.data[0];
  24964. })
  24965. .catch(err => {
  24966. console.error(err);
  24967. });
  24968. },
  24969. setEngText(i) {
  24970. this.newEngIndex = i;
  24971. this.$forceUpdate();
  24972. },
  24973. addCorrect() {
  24974. this.$confirm("你确定提交批改嘛?", "提示", {
  24975. confirmButtonText: "确定",
  24976. showCancelButton: false,
  24977. closeOnClickModal: false,
  24978. type: "warning"
  24979. })
  24980. .then(() => {
  24981. let params = {
  24982. cid: this.id,
  24983. s: parseInt(this.courseType),
  24984. t: this.taskCount,
  24985. tool: this.toolindex,
  24986. wid: this.engWid,
  24987. c: this.userid,
  24988. w:
  24989. this.userMes[0].type == 2
  24990. ? JSON.parse(this.newEnglishList)
  24991. : this.newEngIndex == -1 &&
  24992. this.isNoUserid == true &&
  24993. this.newEnglishList1.length
  24994. ? JSON.stringify(this.oldEnglishJson1)
  24995. : this.newEngIndex == -1
  24996. ? JSON.stringify(this.newEnglishList)
  24997. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24998. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24999. : ""
  25000. };
  25001. this.ajax
  25002. .get(this.$store.state.api + "addEngC", params)
  25003. .then(res => {
  25004. this.$message.success("提交成功");
  25005. this.engUpdateDialogVisible = false;
  25006. })
  25007. .catch(err => {
  25008. console.error(err);
  25009. });
  25010. })
  25011. .catch(() => {});
  25012. },
  25013. selectEngC(id, z) {
  25014. let params = {
  25015. workid: id
  25016. };
  25017. this.ajax
  25018. .get(this.$store.state.api + "selectEngC", params)
  25019. .then(res => {
  25020. if (res.data[0].length == 0) {
  25021. this.newEnglishList.engTitle = z.engTitle;
  25022. this.newEnglishList.engText = z.engText;
  25023. } else {
  25024. var a = res.data[0];
  25025. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  25026. if (this.userMes[0].type == 2) {
  25027. var snum = 0;
  25028. for (var i = 0; i < a.length; i++) {
  25029. if (this.userMes[0].userid == a[i].correct) {
  25030. this.newEnglishList = JSON.parse(a[i].cWork);
  25031. snum = 1;
  25032. }
  25033. }
  25034. if (snum == 0) {
  25035. this.newEnglishList = { engTitle: "", engText: "" };
  25036. this.newEnglishList.engTitle = z.engTitle;
  25037. this.newEnglishList.engText = z.engText;
  25038. }
  25039. } else if (this.userMes[0].type == 1) {
  25040. var num = 0;
  25041. for (var w = 0; w < a.length; w++) {
  25042. if (this.userMes[0].userid == a[w].correct) {
  25043. num = 1;
  25044. }
  25045. }
  25046. if (num == 0) {
  25047. this.isNoUserid = true;
  25048. var c = JSON.parse(JSON.stringify(z));
  25049. this.oldEnglishJson1 = c;
  25050. } else {
  25051. this.isNoUserid = false;
  25052. }
  25053. var b = a.sort((item, index) => {
  25054. console.log(item);
  25055. if (item.correct === this.userMes[0].userid) {
  25056. return -1; // 将a移到前面
  25057. } else if (index.correct === this.userMes[0].userid) {
  25058. return 1; // 将b移到前面
  25059. } else {
  25060. return 0; // 保持默认顺序
  25061. }
  25062. });
  25063. for (var p = 0; p < b.length; p++) {
  25064. for (var y = 0; y < ppp.length; y++) {
  25065. if (b[p].id == ppp[y].id) {
  25066. b[p].cWork = JSON.parse(ppp[y].cWork);
  25067. break;
  25068. }
  25069. }
  25070. }
  25071. this.newEnglishList1 = b;
  25072. }
  25073. }
  25074. this.greyType = false;
  25075. setTimeout(() => {
  25076. this.topHeight = document.querySelectorAll(
  25077. ".engUpTop"
  25078. )[0].offsetHeight;
  25079. if (this.newEnglishList1.length > 0) {
  25080. if (this.isNoUserid == true) {
  25081. this.engListLength = this.newEnglishList1.length + 1;
  25082. this.newEngIndex = -1;
  25083. } else {
  25084. this.engListLength = this.newEnglishList1.length;
  25085. this.newEngIndex = 0;
  25086. }
  25087. }
  25088. if (this.userMes[0].type == 2) {
  25089. this.correctWord = Diff.diffWordsWithSpace(
  25090. this.oldEnglishJson.engText,
  25091. this.newEnglishList.engText
  25092. );
  25093. } else if (
  25094. this.newEngIndex == -1 &&
  25095. this.isNoUserid == true &&
  25096. this.newEnglishList1.length
  25097. ) {
  25098. this.correctWord = Diff.diffWordsWithSpace(
  25099. this.oldEnglishJson.engText,
  25100. this.oldEnglishJson1.engText
  25101. );
  25102. } else if (this.newEngIndex == -1) {
  25103. this.correctWord = Diff.diffWordsWithSpace(
  25104. this.oldEnglishJson.engText,
  25105. this.newEnglishList.engText
  25106. );
  25107. } else if (
  25108. this.newEngIndex > -1 &&
  25109. this.newEnglishList1.length > 0
  25110. ) {
  25111. this.correctWord = Diff.diffWordsWithSpace(
  25112. this.oldEnglishJson.engText,
  25113. this.newEnglishList1[this.newEngIndex].cWork.engText
  25114. );
  25115. }
  25116. }, 500);
  25117. this.engUpdateDialogVisible = true;
  25118. this.$forceUpdate();
  25119. })
  25120. .catch(err => {
  25121. console.error(err);
  25122. });
  25123. },
  25124. getPick() {
  25125. let params = {
  25126. cid: this.id
  25127. };
  25128. this.ajax
  25129. .get(this.$store.state.api + "getPick", params)
  25130. .then(res => {
  25131. let array = [];
  25132. for (var i = 0; i < res.data[0].length; i++) {
  25133. array.push(res.data[0][i].userid);
  25134. }
  25135. this.isPickStudent = array;
  25136. if (array.indexOf(this.userid) !== -1) {
  25137. this.$confirm("你被老师选到啦!", "提示", {
  25138. confirmButtonText: "确定",
  25139. showCancelButton: false,
  25140. closeOnClickModal: false,
  25141. type: "warning"
  25142. })
  25143. .then(() => {
  25144. let pa = [
  25145. {
  25146. uid: this.userid,
  25147. cid: this.id
  25148. }
  25149. ];
  25150. this.ajax
  25151. .post(this.$store.state.api + "deletePick", pa)
  25152. .then(res => {
  25153. this.getPick();
  25154. })
  25155. .catch(err => {
  25156. this.$message.error("网络不佳");
  25157. console.error(err);
  25158. });
  25159. })
  25160. .catch(() => {});
  25161. }
  25162. })
  25163. .catch(err => {
  25164. this.$message.error("网络不佳");
  25165. console.error(err);
  25166. });
  25167. },
  25168. foldEva() {
  25169. if (
  25170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25171. this.taskCount
  25172. ].isEvaFold2
  25173. ) {
  25174. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25175. this.taskCount
  25176. ].isEvaFold2 = false;
  25177. } else {
  25178. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25179. this.taskCount
  25180. ].isEvaFold2 = true;
  25181. setTimeout(() => {
  25182. this.checkEva();
  25183. setTimeout(() => {
  25184. this.checkEva();
  25185. }, 500);
  25186. }, 0);
  25187. }
  25188. this.$forceUpdate();
  25189. },
  25190. panToolHeight(tool) {
  25191. var _tool = document.querySelectorAll("#" + tool)[0];
  25192. var _toolA = _tool ? _tool.offsetHeight : 0;
  25193. var _toolC = 0;
  25194. var _toolC =
  25195. _tool && _tool.children && _tool.children[0]
  25196. ? _tool.children[0].offsetHeight + 50
  25197. : 0;
  25198. let boolean2 = _toolA > _toolC ? true : false;
  25199. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  25200. this.$forceUpdate();
  25201. },
  25202. async checkLink(url) {
  25203. // console.log(url)
  25204. let _url = url;
  25205. try {
  25206. const response = await fetch(url);
  25207. if (!response.ok) {
  25208. _url = await this.checkLink(
  25209. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25210. encodeURIComponent(
  25211. _url.split(
  25212. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  25213. )[1]
  25214. )
  25215. );
  25216. }
  25217. // console.log(response.ok)
  25218. } catch (error) {
  25219. console.error("Error checking link:", error);
  25220. // console.log(false)
  25221. _url = await this.checkLink(
  25222. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25223. encodeURIComponent(
  25224. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  25225. )
  25226. );
  25227. }
  25228. // console.log(_url)
  25229. return _url;
  25230. },
  25231. setClassRoomHelperWidth(width) {
  25232. this.classRoomHelperWidth = width;
  25233. },
  25234. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  25235. this.$refs.choseWorksDetailDialogRef.open({
  25236. toolType:tooc,
  25237. tType: this.tType,
  25238. toolIndex: toolIndex
  25239. });
  25240. this.changeSplitScreenBehavior({
  25241. code: 1,
  25242. form: {
  25243. toolType:tooc,
  25244. toolIndex: toolIndex,
  25245. courseType: this.courseType,
  25246. taskCount: this.taskCount,
  25247. type: 0
  25248. }
  25249. });
  25250. },
  25251. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  25252. this.$refs.statisticalAnalysisRef.open({
  25253. worksStudent: this.worksStudent[toolIndex],
  25254. tType: this.tType,
  25255. toolIndex: toolIndex
  25256. });
  25257. this.changeSplitScreenBehavior({
  25258. code: 2,
  25259. form: {
  25260. toolType:4,
  25261. courseType: this.courseType,
  25262. taskCount: this.taskCount,
  25263. toolIndex: toolIndex,
  25264. type: 0
  25265. }
  25266. });
  25267. },
  25268. statisticalAnalysisRefresh(toolIndex) {
  25269. this.$refs.statisticalAnalysisRef.refreshData({
  25270. worksStudent: this.worksStudent[toolIndex],
  25271. tType: this.tType,
  25272. toolIndex: toolIndex
  25273. });
  25274. },
  25275. async splitScreenBehavior(type = 0) {
  25276. // return;
  25277. if (this.splitScreenData.loading)
  25278. return this.$message.info("操作过快,请稍等");
  25279. if (type == 0) {
  25280. //关闭分屏
  25281. this.splitScreenData.isOpen = false;
  25282. // this.splitScreenData.userId = "";
  25283. // this.splitScreenData.uid = "";
  25284. this.splitScreenData.behavior = null;
  25285. await this.updateSplitScreenData(1);
  25286. this.$message.success("已关闭分屏模式");
  25287. this.studentFreePreview(false);
  25288. this.OpenJobPreview(false);
  25289. // this.followingMode(false);
  25290. } else if (type == 1) {
  25291. //开启分屏
  25292. this.splitScreenData.isOpen = true;
  25293. this.splitScreenData.userId = this.userid;
  25294. this.splitScreenData.uid = this.splitScreenData.myUid;
  25295. this.splitScreenData.behavior = null;
  25296. let status = await this.updateSplitScreenData(0);
  25297. if (status == 1) {
  25298. this.$message.success("已开启分屏");
  25299. this.studentFreePreview(false);
  25300. this.OpenJobPreview(true);
  25301. this.changeSplitScreenBehavior({form:{}})
  25302. // this.followingMode(true);
  25303. } else {
  25304. this.splitScreenData.isOpen = false;
  25305. this.splitScreenData.userId = "";
  25306. this.splitScreenData.uid = "";
  25307. this.splitScreenData.behavior = null;
  25308. this.$message.success("分屏开启失败");
  25309. }
  25310. }
  25311. },
  25312. enterFullScreen() {
  25313. let element = document.documentElement;
  25314. if (element.requestFullscreen) {
  25315. element.requestFullscreen();
  25316. } else if (element.mozRequestFullScreen) { /* Firefox */
  25317. element.mozRequestFullScreen();
  25318. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25319. element.webkitRequestFullscreen();
  25320. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25321. element.msRequestFullscreen();
  25322. }
  25323. },
  25324. exitFullScreen() {
  25325. if (document.exitFullscreen) {
  25326. document.exitFullscreen();
  25327. } else if (document.mozCancelFullScreen) { /* Firefox */
  25328. document.mozCancelFullScreen();
  25329. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25330. document.webkitExitFullscreen();
  25331. } else if (document.msExitFullscreen) { /* IE/Edge */
  25332. document.msExitFullscreen();
  25333. }
  25334. },
  25335. confirmOpen(){
  25336. this.splitScreenData.isOpen = true;
  25337. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25338. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25339. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25340. this.confirmOpenDig = false
  25341. if (!document.fullscreenElement) {
  25342. this.enterFullScreen();
  25343. }
  25344. if (this.timer2) {
  25345. clearInterval(this.timer2);
  25346. this.timer2 = null;
  25347. console.log('清除定时器');
  25348. }
  25349. this.timer2 = setInterval(()=> {
  25350. this.getSplitScreenData();//获取分屏数据
  25351. }, 1000);
  25352. this.IsLookOpen = flase
  25353. this.$message.success("分屏模式已开启");
  25354. },
  25355. getSplitScreenData() {
  25356. // return;
  25357. // if (this.tType != 1) return;
  25358. let params = {
  25359. cid: this.id
  25360. };
  25361. this.ajax
  25362. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25363. .then(async res => {
  25364. let data = res.data[0][0]["splitScreenData"];
  25365. console.log("获取了分屏数:", data);
  25366. if (data) {
  25367. data = JSON.parse(data);
  25368. if (
  25369. !this.splitScreenData.isOpen &&
  25370. data.isOpen &&
  25371. this.splitScreenData.myUid == data.uid
  25372. ) {
  25373. this.splitScreenData.isOpen = false;
  25374. this.splitScreenData.userId = "";
  25375. this.splitScreenData.uid = "";
  25376. this.splitScreenData.behavior = null;
  25377. await this.updateSplitScreenData(1);
  25378. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25379. this.confirmOpenDig = true
  25380. this.confirmOpenDigData = data
  25381. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25382. this.splitScreenData.isOpen = false;
  25383. this.splitScreenData.userId = "";
  25384. this.splitScreenData.uid = "";
  25385. this.splitScreenData.behavior = null;
  25386. this.$message.error("已结束分屏模式");
  25387. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25388. this.splitScreenData.isOpen = true;
  25389. this.splitScreenData.uid = data.uid;
  25390. this.splitScreenData.userId = data.userId;
  25391. this.splitScreenData.behavior = data.behavior;
  25392. }
  25393. this.doSplitScreenBehavior();
  25394. } else {
  25395. if (this.splitScreenData.isOpen) {
  25396. this.splitScreenData.isOpen = false;
  25397. this.splitScreenData.userId = "";
  25398. this.splitScreenData.uid = "";
  25399. this.splitScreenData.behavior = null;
  25400. this.$message.error("已结束分屏模式");
  25401. if (this.timer2) {
  25402. clearInterval(this.timer2);
  25403. this.timer2 = null;
  25404. }
  25405. this.timer2 = setInterval(()=> {
  25406. this.getSplitScreenData();//获取分屏数据
  25407. }, 5000);
  25408. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25409. confirmButtonText: '确定', //确认按钮的文字
  25410. showCancelButton: false, //是否显示取消按钮
  25411. showClose: false, //是否显示关闭按钮
  25412. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25413. type: "warning",
  25414. })
  25415. .then(() => {
  25416. if (document.fullscreenElement) {
  25417. this.exitFullScreen();
  25418. }
  25419. })
  25420. .catch(() => {});
  25421. }
  25422. }
  25423. })
  25424. .catch(e => {
  25425. console.log("获取分屏数出错:", e);
  25426. });
  25427. },
  25428. doSplitScreenBehavior() {
  25429. if (
  25430. this.splitScreenData.isOpen &&
  25431. this.splitScreenData.uid != this.splitScreenData.myUid
  25432. ) {
  25433. let behavior = this.splitScreenData.behavior;
  25434. if (behavior) {
  25435. if (behavior.code === 99) {
  25436. //初始化
  25437. this.fullDialogVisible = false;
  25438. if(this.$refs.choseWorksDetailDialogRef.show){
  25439. this.$refs.choseWorksDetailDialogRef.close();
  25440. }
  25441. if(this.$refs.statisticalAnalysisRef.show){
  25442. this.$refs.statisticalAnalysisRef.close();
  25443. }
  25444. }
  25445. if (behavior.code === 0) {
  25446. //开启内容列表弹窗
  25447. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25448. }else{
  25449. this.fullDialogVisible = false;
  25450. }
  25451. if (behavior.code === 1) {
  25452. //关于选择题的作业详细的操作
  25453. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25454. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25455. this.courseType = behavior.form.courseType;
  25456. this.taskCount = behavior.form.taskCount;
  25457. }
  25458. this.$nextTick(() => {
  25459. if (this.$refs.choseWorksDetailDialogRef.show) {
  25460. //已经打开了
  25461. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25462. } else {
  25463. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25464. }
  25465. });
  25466. }else{
  25467. this.$refs.choseWorksDetailDialogRef.close()
  25468. }
  25469. if(behavior.code === 2){
  25470. if(this.$refs.statisticalAnalysisRef.show){
  25471. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25472. }else{
  25473. this.$refs.statisticalAnalysisRef.open({
  25474. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25475. tType: this.tType,
  25476. toolIndex: behavior.form.toolIndex
  25477. });
  25478. }
  25479. }else{
  25480. this.$refs.statisticalAnalysisRef.close();
  25481. }
  25482. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25483. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25484. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25485. if (behavior.form.courseType != this.courseType ||
  25486. behavior.form.taskCount != this.taskCount ||
  25487. behavior.form.toolType != this.toolindex
  25488. ) {
  25489. var a = document.scrollingElement;
  25490. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25491. if (target) {
  25492. target.scrollIntoView(true);
  25493. setTimeout(()=>{
  25494. let scrollBody = document.querySelector('.body_student').parentElement
  25495. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25496. }, 0);
  25497. // setTimeout(() => {
  25498. // a.scrollTop = 0
  25499. // }, 0);
  25500. }
  25501. }
  25502. if(this.courseType !=behavior.form.courseType){
  25503. this.courseType = behavior.form.courseType;
  25504. }
  25505. if(this.taskCount !=behavior.form.taskCount){
  25506. this.taskCount = behavior.form.taskCount;
  25507. }
  25508. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25509. this.toolindex = behavior.form.toolType;
  25510. }
  25511. // if(behavior.form.navId){
  25512. // this.navId = behavior.form.navId
  25513. // }
  25514. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25515. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25516. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25517. this.getCourseDetail()
  25518. }
  25519. this.setContent2(false)
  25520. }
  25521. } else {
  25522. }
  25523. }
  25524. },
  25525. updateSplitScreenData(empty = 0) {
  25526. return new Promise(resolve => {
  25527. if(this.userid!==this.courseDetail.userid){
  25528. if(!this.courseDetail.userid){
  25529. return setTimeout(()=>{
  25530. this.updateSplitScreenData(empty)
  25531. },2000)
  25532. }
  25533. return;
  25534. };
  25535. if (
  25536. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25537. this.splitScreenData.userId == this.userid
  25538. ) {
  25539. this.splitScreenData.loading = true;
  25540. let params = [
  25541. {
  25542. cid: this.id,
  25543. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25544. }
  25545. ];
  25546. this.ajax
  25547. .post(
  25548. this.$store.state.api + "update_courseSplitScreenData",
  25549. params
  25550. )
  25551. .then(res => {
  25552. this.splitScreenData.loading = false;
  25553. if (res.data == 1) {
  25554. resolve(1);
  25555. console.log("修改分屏数据成功");
  25556. }
  25557. })
  25558. .catch(e => {
  25559. this.splitScreenData.loading = false;
  25560. console.log("修改分屏数据失败", e);
  25561. resoleve(0);
  25562. });
  25563. } else if (empty == 2 && this.tType == 1) {
  25564. let params = [
  25565. {
  25566. cid: this.id,
  25567. nData: ""
  25568. }
  25569. ];
  25570. return this.ajax
  25571. .post(
  25572. this.$store.state.api + "update_courseSplitScreenData",
  25573. params
  25574. )
  25575. .then(_ => resolve(1))
  25576. .catch(_ => resolve(0));
  25577. } else {
  25578. return resolve(0);
  25579. }
  25580. });
  25581. },
  25582. changeSplitScreenBehavior(newValue) {
  25583. if (
  25584. this.splitScreenData.isOpen &&
  25585. this.splitScreenData.uid == this.splitScreenData.myUid
  25586. ) {
  25587. let _behavior = null;
  25588. if(!newValue){
  25589. _behavior = {}
  25590. }else{
  25591. _behavior = newValue
  25592. }
  25593. if(_behavior.form){
  25594. _behavior.form.taskCount = this.taskCount;
  25595. _behavior.form.courseType = this.courseType
  25596. }else{
  25597. _behavior.form = {
  25598. taskCount:this.taskCount,
  25599. courseType:this.courseType
  25600. }
  25601. }
  25602. this.splitScreenData.behavior = _behavior;
  25603. this.updateSplitScreenData(0);
  25604. }
  25605. },
  25606. studentFreePreview(flag) {
  25607. this.IsLookOpen = flag;
  25608. this.followingMode(flag)
  25609. this.updateLookOpen();
  25610. },
  25611. OpenJobPreview(flag) {
  25612. this.sIsOpen = flag;
  25613. this.updateSLook();
  25614. },
  25615. followingMode(flag) {
  25616. this.IsFollow = flag;
  25617. this.updateFollow();
  25618. }
  25619. },
  25620. directives: {
  25621. // 使用局部注册指令的方式
  25622. resize: {
  25623. // 指令的名称
  25624. bind(el, binding) {
  25625. // el为绑定的元素,binding为绑定给指令的对象
  25626. let width = "",
  25627. height = "";
  25628. function isReize() {
  25629. const style = document.defaultView.getComputedStyle(el);
  25630. if (width !== style.width || height !== style.height) {
  25631. binding.value(); // 关键
  25632. }
  25633. width = style.width;
  25634. height = style.height;
  25635. }
  25636. el.__vueSetInterval__ = setInterval(isReize, 300);
  25637. },
  25638. unbind(el) {
  25639. clearInterval(el.__vueSetInterval__);
  25640. }
  25641. },
  25642. autoHeight: {
  25643. update(el, binding) {
  25644. const { value } = binding;
  25645. if (value && typeof value === "number") {
  25646. el.style.height = `${value}px`;
  25647. } else {
  25648. el.style.height = "auto";
  25649. }
  25650. },
  25651. componentUpdated(el) {
  25652. el.style.height = `${el.scrollHeight + 5}px`;
  25653. }
  25654. }
  25655. },
  25656. beforeDestroy() {
  25657. window.onresize = null;
  25658. clearInterval(this.timer);
  25659. this.timer = null;
  25660. clearInterval(this.timer2);
  25661. this.timer2 = null;
  25662. clearInterval(this.opertimer);
  25663. this.opertimer = null;
  25664. this.updateSplitScreenData(1);
  25665. },
  25666. computed: {
  25667. isAndroid() {
  25668. return /Android/i.test(navigator.userAgent);
  25669. },
  25670. getHeight() {
  25671. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25672. },
  25673. contentConvent() {
  25674. return function(c) {
  25675. return c
  25676. ? c
  25677. .replaceAll(/\r\n/g, "<br/>")
  25678. .replaceAll(/\n/g, "<br/>")
  25679. .replaceAll(/\s/g, " &nbsp")
  25680. : "";
  25681. };
  25682. },
  25683. commentRight() {
  25684. if (
  25685. !this.orgArray.includes(this.org) &&
  25686. !this.oidArray.includes(this.oid)
  25687. ) {
  25688. return "35px";
  25689. }
  25690. return `calc(${this.classRoomHelperWidth} + 5px)`;
  25691. // if(this.$refs["classRoomHelperRef"].type==0){
  25692. // return "100px";
  25693. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25694. // return "502px"
  25695. // }else{
  25696. // return "0px"
  25697. // }
  25698. },
  25699. checkUpload() {
  25700. return function() {
  25701. var studentK = [];
  25702. if (this.plworkFile.length > 0) {
  25703. for (var z = 0; z < this.plworkFile.length; z++) {
  25704. studentK.push(this.plworkFile[z].username);
  25705. }
  25706. studentK = studentK.join(",");
  25707. }
  25708. var a = this.uploadStudentJuri.filter(el => {
  25709. return studentK.indexOf(el.userid) == -1;
  25710. });
  25711. return a;
  25712. };
  25713. },
  25714. getSName() {
  25715. return function(name) {
  25716. var check = name;
  25717. this.uploadStudentJuri.forEach(el => {
  25718. if (el.userid == check) {
  25719. check = el.name ? el.name : el.username;
  25720. }
  25721. });
  25722. return check;
  25723. };
  25724. },
  25725. getImgList() {
  25726. return function(val) {
  25727. let srcList = []; // 定义一个数组用来接收后面的img地址
  25728. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  25729. match,
  25730. capture
  25731. ) {
  25732. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25733. srcList.push(capture);
  25734. });
  25735. return srcList;
  25736. };
  25737. },
  25738. retrnToolHeight() {
  25739. return function(tool) {
  25740. var _tool = document.querySelectorAll("#" + tool)[0];
  25741. return _tool
  25742. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  25743. 30 +
  25744. "px"
  25745. : 0;
  25746. };
  25747. },
  25748. Correct() {
  25749. return function(c) {
  25750. let w = "";
  25751. let a = this.correctWord;
  25752. for (var k = 0; k < a.length; k++) {
  25753. //diffWordsWithSpace
  25754. if (a.length > 1) {
  25755. if (a[k].added == true) {
  25756. w +=
  25757. '<span style="background-color: green;color:#fff">' +
  25758. a[k].value +
  25759. "</span>";
  25760. } else if (a[k].removed == true) {
  25761. w +=
  25762. '<span style="text-decoration: line-through;color:red">' +
  25763. a[k].value +
  25764. "</span>";
  25765. } else {
  25766. w += "<span>" + a[k].value + "</span>";
  25767. }
  25768. } else {
  25769. w = c;
  25770. }
  25771. //diffChars方法
  25772. // if(w == ""){
  25773. // if(a.length > 1){
  25774. // if(a[k].added == true){
  25775. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25776. // }else if(a[k].removed == true){
  25777. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25778. // }
  25779. // }else{
  25780. // w = c
  25781. // }
  25782. // }else{
  25783. // if(k == a.length - 1){
  25784. // if(a[k].added == true){
  25785. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25786. // }else if(a[k].removed == true){
  25787. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25788. // }
  25789. // }else{
  25790. // if(a[k].added == true){
  25791. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25792. // }else if(a[k].removed == true){
  25793. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25794. // }
  25795. // }
  25796. // }
  25797. }
  25798. c = w;
  25799. return c;
  25800. };
  25801. },
  25802. getScoreList() {
  25803. let params = {
  25804. cid: this.id
  25805. };
  25806. this.ajax
  25807. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25808. .then(res => {
  25809. let result = res.data;
  25810. this.scoreList.datalist = result[0];
  25811. this.scoreList.isScoreList = result[1];
  25812. })
  25813. .catch(err => {
  25814. console.error(err);
  25815. });
  25816. }
  25817. },
  25818. mounted() {
  25819. this.updateSplitScreenData(2);
  25820. this.splitScreenData.myUid = uuidv4();
  25821. document.body.addEventListener("click", e => {
  25822. if (this.isUpdateToolDetail1) {
  25823. this.updateToolDetail(this.toolDetailIndex);
  25824. }
  25825. });
  25826. try {
  25827. if (this.screenType == 2) {
  25828. window.topU.postMessage({ allScreen: 4 }, "*");
  25829. } else if (this.screenType == 3) {
  25830. window.topU.postMessage({ allScreen: 5 }, "*");
  25831. } else if (this.screenType == 1) {
  25832. window.topU.postMessage({ allScreen: 6 }, "*");
  25833. }
  25834. } catch (error) {
  25835. console.log(error)
  25836. }
  25837. this.setOperationTime();
  25838. this.selectEva();
  25839. this.getCourseDetail();
  25840. this.selectCount();
  25841. this.getHomeWork();
  25842. this.selectUser();
  25843. this.getAIJ();
  25844. this.contentDialog = true;
  25845. this.setContent2(true);
  25846. if (this.tType == 4) {
  25847. this.pzDialog = true;
  25848. this.selectPz();
  25849. }
  25850. // 获取评分列表
  25851. this.getScoreList();
  25852. document.scrollingElement.scrollTop = 0;
  25853. window.addEventListener("resize", () => {
  25854. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25855. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25856. if (this.showType == 2 || this.showType == 3) {
  25857. document.getElementsByClassName("navBox")[0].style.height =
  25858. a - 40 + 0 + "px";
  25859. } else {
  25860. document.getElementsByClassName("navBox")[0].style.height =
  25861. a - 40 + "px";
  25862. }
  25863. });
  25864. let _this = this;
  25865. setTimeout(() => {
  25866. // _this.vedioTime = [];
  25867. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25868. // _this.vedioTime[i] = document.getElementsByClassName(
  25869. // "vjs-duration-display"
  25870. // )[i].textContent;
  25871. // }
  25872. }, 1000);
  25873. }
  25874. };
  25875. </script>
  25876. <style scoped>
  25877. @media screen and (max-width: 1280px) {
  25878. /* .courseIndex > div:first-child(2) {
  25879. width: 15% !important;
  25880. } */
  25881. /* .navText {
  25882. width: 120px !important;
  25883. } */
  25884. .evaCss {
  25885. flex-direction: column !important;
  25886. align-items: center !important;
  25887. }
  25888. .elist_input {
  25889. width: 90% !important;
  25890. }
  25891. .dialog_diy1 >>> .el-dialog {
  25892. width: 100% !important;
  25893. }
  25894. .rightWidthCss {
  25895. width: 100% !important;
  25896. }
  25897. .dialog_diy3 >>> .el-dialog {
  25898. width: 100% !important;
  25899. }
  25900. .addToolCss {
  25901. right: 0 !important;
  25902. width: 100% !important;
  25903. min-width: unset !important;
  25904. }
  25905. }
  25906. .evaCssMax {
  25907. flex-direction: column !important;
  25908. align-items: center !important;
  25909. }
  25910. .dialog_diy >>> .el-dialog {
  25911. margin-top: 10vh !important;
  25912. }
  25913. .body_student {
  25914. width: 77%;
  25915. height: 100%;
  25916. position: absolute;
  25917. left: 22%;
  25918. top: 0;
  25919. }
  25920. .student_head {
  25921. width: 100%;
  25922. margin: 20px auto 0;
  25923. padding-bottom: 20px;
  25924. display: flex;
  25925. flex-direction: column;
  25926. flex-wrap: nowrap;
  25927. align-items: flex-start;
  25928. justify-content: flex-start;
  25929. }
  25930. .pb_left {
  25931. width: 20%;
  25932. margin-right: 10px;
  25933. background: rgb(255, 255, 255);
  25934. position: fixed;
  25935. height: calc(100% - 40px);
  25936. border-radius: 20px;
  25937. padding-bottom: 15px;
  25938. box-sizing: border-box;
  25939. }
  25940. .wheel > img,
  25941. .project > img,
  25942. .star > img,
  25943. .evaluate > img,
  25944. .up_photo > img,
  25945. .chapter_add > img,
  25946. .deleteWord > img,
  25947. .question > img,
  25948. .homework > img {
  25949. width: 100%;
  25950. height: 100%;
  25951. }
  25952. .upCover > img {
  25953. width: 131px;
  25954. height: 69px;
  25955. object-fit: cover;
  25956. }
  25957. .upCover {
  25958. width: calc(100% / 3.5);
  25959. position: relative;
  25960. margin: 0 15px 10px 0;
  25961. display: flex;
  25962. flex-direction: column;
  25963. flex-wrap: nowrap;
  25964. justify-content: center;
  25965. align-content: center;
  25966. align-items: center;
  25967. height: fit-content;
  25968. }
  25969. .upCover2 {
  25970. width: 100%;
  25971. position: relative;
  25972. margin: 0 15px 10px 0;
  25973. display: flex;
  25974. flex-direction: column;
  25975. flex-wrap: nowrap;
  25976. justify-content: center;
  25977. align-content: center;
  25978. align-items: center;
  25979. }
  25980. .upCover2 > img {
  25981. width: 100%;
  25982. height: 90px;
  25983. object-fit: contain;
  25984. }
  25985. .chapter_add {
  25986. width: 120px;
  25987. position: relative;
  25988. text-align: center;
  25989. }
  25990. .isAddThings {
  25991. margin-top: 20px;
  25992. position: relative;
  25993. text-align: center;
  25994. background: #f7f8fa;
  25995. height: 90px;
  25996. width: 90px;
  25997. display: flex;
  25998. flex-direction: column;
  25999. justify-content: center;
  26000. }
  26001. .deleteWord {
  26002. width: 22px;
  26003. height: 22px;
  26004. position: absolute;
  26005. right: -5px;
  26006. top: -5px;
  26007. cursor: pointer;
  26008. }
  26009. .box_course {
  26010. /* width: 60%; */
  26011. width: calc(100% - 300px);
  26012. }
  26013. .wheel {
  26014. width: 100%;
  26015. /* height: 100%; */
  26016. height: 650px;
  26017. }
  26018. .right_box {
  26019. display: flex;
  26020. flex-direction: column;
  26021. margin-left: 30px;
  26022. justify-content: space-around;
  26023. }
  26024. .right_box_title {
  26025. font-size: 23px;
  26026. }
  26027. .people {
  26028. display: flex;
  26029. }
  26030. .student_body {
  26031. width: 100%;
  26032. margin: 0 auto;
  26033. margin-top: 10px;
  26034. padding: 0 0 20px;
  26035. }
  26036. .study_top {
  26037. margin-top: 100px;
  26038. width: 100%;
  26039. height: auto;
  26040. padding-bottom: 20px;
  26041. margin-left: 2px;
  26042. min-height: 90%;
  26043. }
  26044. .study_top .checkbox {
  26045. display: flex;
  26046. align-items: center;
  26047. padding: 15px 0 15px 30px;
  26048. flex: 0 0 auto;
  26049. font-weight: bold;
  26050. border-bottom: 1px solid #eee;
  26051. }
  26052. .study_top .check {
  26053. padding-bottom: 5px;
  26054. text-align: center;
  26055. cursor: pointer;
  26056. height: 30px;
  26057. box-sizing: border-box;
  26058. display: flex;
  26059. }
  26060. .study_top .checked {
  26061. border-bottom: 4px solid #3fc6a0;
  26062. padding-bottom: 5px;
  26063. color: #3fc6a0;
  26064. display: flex;
  26065. height: 35px;
  26066. }
  26067. .study_top .checked > div,
  26068. .study_top .check > div {
  26069. margin-right: 5px;
  26070. }
  26071. .videoTop {
  26072. display: flex;
  26073. flex-direction: row;
  26074. justify-content: space-between;
  26075. background: #fff;
  26076. align-items: center;
  26077. width: 95%;
  26078. padding: 20px;
  26079. }
  26080. .filebox {
  26081. display: flex;
  26082. flex-wrap: wrap;
  26083. flex-direction: column;
  26084. padding: 0 0 5px;
  26085. position: relative;
  26086. }
  26087. .filebox:before {
  26088. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  26089. position: absolute;
  26090. top: 20px;
  26091. left: 13px;
  26092. border-left: 2px dotted #cad1dc;
  26093. height: calc(100% - 15px);
  26094. }
  26095. .toolHeng2 > div:last-child::before {
  26096. height: calc(100% - 43px);
  26097. }
  26098. .filebox .tooldetail {
  26099. width: calc(100%);
  26100. margin: 0px 12px;
  26101. padding: 12px;
  26102. line-height: 30px;
  26103. word-break: break-word;
  26104. background: #ffffff;
  26105. border-radius: 8px 8px 8px 8px;
  26106. opacity: 1;
  26107. border: 1px solid #cad1dc;
  26108. overflow: hidden;
  26109. box-sizing: border-box;
  26110. }
  26111. .file {
  26112. display: flex;
  26113. flex-direction: column;
  26114. align-items: center;
  26115. justify-content: center;
  26116. cursor: pointer;
  26117. width: 200px;
  26118. }
  26119. .file div {
  26120. margin-top: 10px;
  26121. width: 150px;
  26122. text-align: center;
  26123. overflow: hidden;
  26124. white-space: nowrap;
  26125. text-overflow: ellipsis;
  26126. }
  26127. .media {
  26128. display: flex;
  26129. flex-direction: column;
  26130. align-items: center;
  26131. justify-content: center;
  26132. margin: 0 20px 20px 0;
  26133. cursor: pointer;
  26134. margin: 12px 0 5px 15px;
  26135. overflow: hidden;
  26136. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  26137. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  26138. box-sizing: border-box;
  26139. }
  26140. .media img {
  26141. height: 90px;
  26142. width: 160px;
  26143. object-fit: cover;
  26144. }
  26145. .media .title {
  26146. padding: 5px;
  26147. text-align: left;
  26148. width: 100%;
  26149. box-sizing: border-box;
  26150. }
  26151. .media .btn {
  26152. width: 100%;
  26153. height: 35px;
  26154. line-height: 35px;
  26155. color: #fff;
  26156. background: #606060;
  26157. text-align: center;
  26158. overflow: hidden;
  26159. white-space: nowrap;
  26160. text-overflow: ellipsis;
  26161. }
  26162. .detail_content_top {
  26163. width: 100%;
  26164. padding: 25px 0 25px 0;
  26165. }
  26166. .detail_title {
  26167. text-align: center;
  26168. font-size: 24px;
  26169. }
  26170. .detail_time {
  26171. font-size: 13px;
  26172. padding: 15px 0 0 40px;
  26173. }
  26174. .detail_content {
  26175. line-height: 2pc;
  26176. width: 90%;
  26177. margin: 0 auto;
  26178. padding-top: 30px;
  26179. text-indent: 30px;
  26180. overflow: auto;
  26181. height: 200px;
  26182. }
  26183. .score_box >>> .el-rate {
  26184. margin-left: 10px;
  26185. }
  26186. .dialog_change >>> .el-dialog {
  26187. border-radius: 5px;
  26188. }
  26189. .dialog_change >>> .el-dialog__header {
  26190. background: #f2f2f2;
  26191. text-align: center;
  26192. }
  26193. .dialog_change >>> .el-dialog__title {
  26194. line-height: 5px;
  26195. }
  26196. .dialog_change >>> .el-dialog__body {
  26197. background: #fff;
  26198. padding: 10px 20px;
  26199. }
  26200. .score_box {
  26201. display: flex;
  26202. align-items: center;
  26203. margin-bottom: 18px;
  26204. margin-top: 20px;
  26205. }
  26206. .up_photo {
  26207. width: 120px;
  26208. cursor: pointer;
  26209. margin-top: 10px;
  26210. }
  26211. .up_photo2 {
  26212. width: 180px;
  26213. box-sizing: border-box;
  26214. min-width: 180px;
  26215. height: 180px;
  26216. max-height: 180px;
  26217. min-height: 180px;
  26218. cursor: pointer;
  26219. display: flex;
  26220. flex-direction: column;
  26221. align-items: center;
  26222. justify-content: center;
  26223. background: rgb(242, 246, 255);
  26224. /* padding: 25px; */
  26225. margin-bottom: 10px;
  26226. }
  26227. .up_photo2 img {
  26228. width: 50%;
  26229. height: auto;
  26230. }
  26231. .up_photo2 span {
  26232. color: #898989;
  26233. }
  26234. .plworkBox {
  26235. display: flex;
  26236. align-items: center;
  26237. margin-top: 10px;
  26238. flex-wrap: wrap;
  26239. }
  26240. .upload_send {
  26241. margin: 30px auto 30px;
  26242. width: 60%;
  26243. background: #3681fc;
  26244. text-align: center;
  26245. height: 35px;
  26246. line-height: 35px;
  26247. color: #fff;
  26248. border-radius: 5px;
  26249. cursor: pointer;
  26250. }
  26251. .marginT {
  26252. margin-top: 20px;
  26253. }
  26254. .cd_content_steps {
  26255. display: flex;
  26256. width: 90%;
  26257. justify-content: space-around;
  26258. border-top: 1px solid #eeeeee;
  26259. }
  26260. .cd_steps_box {
  26261. display: flex;
  26262. justify-content: center;
  26263. align-items: center;
  26264. flex-direction: column;
  26265. cursor: pointer;
  26266. }
  26267. .first {
  26268. display: flex;
  26269. align-items: center;
  26270. margin: 15px 0 20px 0;
  26271. font-size: 20px;
  26272. }
  26273. .first > div:nth-child(2) {
  26274. font-size: 16px !important;
  26275. padding-left: 10px;
  26276. line-height: 26px;
  26277. box-sizing: border-box;
  26278. }
  26279. .blue_box_one {
  26280. text-align: center;
  26281. color: #fff;
  26282. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26283. border-radius: 7px;
  26284. margin: 10px;
  26285. cursor: pointer;
  26286. width: 95%;
  26287. height: 45px;
  26288. display: flex;
  26289. flex-direction: row;
  26290. justify-content: flex-start;
  26291. align-items: center;
  26292. }
  26293. .blue_box_one > div:nth-child(1) {
  26294. line-height: 30px;
  26295. margin: 0 5px 0 10px;
  26296. width: 30%;
  26297. min-width: 70px;
  26298. border-radius: 4px;
  26299. }
  26300. .blue_box_one > div:nth-child(2) {
  26301. white-space: nowrap;
  26302. text-overflow: ellipsis;
  26303. overflow: hidden;
  26304. word-break: break-all;
  26305. width: 70%;
  26306. text-align: left;
  26307. margin-right: 10px;
  26308. max-width: calc(100% - 85px);
  26309. }
  26310. .blue_box_one > div:nth-child(2):hover {
  26311. overflow: hidden;
  26312. text-overflow: ellipsis;
  26313. white-space: nowrap;
  26314. cursor: pointer;
  26315. }
  26316. .upFile {
  26317. margin: 0 auto;
  26318. width: 120px;
  26319. background: #3681fc;
  26320. color: #fff;
  26321. height: 30px;
  26322. text-align: center;
  26323. line-height: 30px;
  26324. border-radius: 5px;
  26325. font-size: 14px;
  26326. cursor: pointer;
  26327. }
  26328. .courseTitle {
  26329. width: 85%;
  26330. margin: 10px auto 26px auto;
  26331. display: flex;
  26332. flex-direction: row;
  26333. align-items: center;
  26334. justify-content: space-between;
  26335. text-align: center;
  26336. }
  26337. .courseTitle .ctitle {
  26338. font-size: 20px;
  26339. font-weight: bold;
  26340. color: #0e1e33;
  26341. white-space: nowrap;
  26342. overflow: hidden;
  26343. text-overflow: ellipsis;
  26344. }
  26345. .inviteBox {
  26346. font-size: 14px;
  26347. /* margin-top: 5px; */
  26348. color: #00000099;
  26349. text-align: center;
  26350. }
  26351. .courseTitle >>> .el-tooltip {
  26352. width: 100%;
  26353. white-space: nowrap;
  26354. overflow: hidden;
  26355. text-overflow: ellipsis;
  26356. word-break: break-word;
  26357. }
  26358. .ml {
  26359. margin-left: 20px;
  26360. color: #5b7dba;
  26361. border-left: 3px solid #5b7dba;
  26362. padding-left: 5px;
  26363. font-weight: bold;
  26364. }
  26365. .return {
  26366. width: 2rem;
  26367. height: 2rem;
  26368. cursor: pointer;
  26369. }
  26370. .return > img {
  26371. width: 100%;
  26372. height: 100%;
  26373. }
  26374. .returnBtn {
  26375. width: 86px;
  26376. height: 36px;
  26377. background: #3681fc;
  26378. border-radius: 4px;
  26379. color: #fff;
  26380. text-align: center;
  26381. line-height: 36px;
  26382. margin-right: 20px;
  26383. cursor: pointer;
  26384. font-size: 14px;
  26385. font-weight: 400;
  26386. display: flex;
  26387. flex-direction: row;
  26388. flex-wrap: nowrap;
  26389. align-items: center;
  26390. justify-content: center;
  26391. }
  26392. .reBtnIcon,
  26393. .commentIcon,
  26394. .vedioIcon,
  26395. .vedioIcon1 {
  26396. /* width: 36px; */
  26397. height: 36px;
  26398. border-radius: 4px;
  26399. position: relative;
  26400. /* background: #e0eafb; */
  26401. background: #0061ff;
  26402. cursor: pointer;
  26403. margin-right: 12px;
  26404. display: flex;
  26405. align-items: center;
  26406. padding: 0 10px;
  26407. box-sizing: border-box;
  26408. font-size: 14px;
  26409. color: #fff;
  26410. }
  26411. .reBtnIcon::before,
  26412. .commentIcon::before,
  26413. .vedioIcon::before,
  26414. .vedioIcon1::before {
  26415. content: "";
  26416. display: block;
  26417. background-size: 100% 100%;
  26418. background-repeat: no-repeat;
  26419. width: 20px;
  26420. height: 20px;
  26421. margin-right: 5px;
  26422. /* position: absolute; */
  26423. /* top: 8px;
  26424. left: 8px; */
  26425. }
  26426. .vedioIcon1 {
  26427. background: #f63564;
  26428. }
  26429. .reBtnIcon::before {
  26430. background-image: url("../../assets/icon/newIcons/refresh.png");
  26431. }
  26432. .commentIcon::before {
  26433. background-image: url("../../assets/icon/newIcons/comment.png");
  26434. }
  26435. .vedioIcon::before {
  26436. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26437. }
  26438. .vedioIcon1::before {
  26439. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26440. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26441. }
  26442. .tool {
  26443. display: flex;
  26444. flex-direction: column;
  26445. flex-wrap: nowrap;
  26446. width: 13%;
  26447. margin: 0 30px;
  26448. align-items: center;
  26449. position: relative;
  26450. padding: 10px 25px;
  26451. cursor: pointer;
  26452. }
  26453. .whiteBIcon {
  26454. width: 150px;
  26455. }
  26456. .whiteBIcon > img {
  26457. width: 100%;
  26458. height: 100%;
  26459. }
  26460. .mask {
  26461. background-color: rgba(0, 0, 0, 0);
  26462. position: fixed;
  26463. top: 0;
  26464. left: 0;
  26465. width: 100%;
  26466. height: 100%;
  26467. z-index: 20000;
  26468. display: flex;
  26469. align-items: center;
  26470. justify-content: center;
  26471. }
  26472. .progressBox {
  26473. width: 500px;
  26474. height: 180px;
  26475. background: #fff;
  26476. border-radius: 10px;
  26477. box-shadow: 0 0 6px 1px #bfbfbf;
  26478. display: flex;
  26479. align-items: center;
  26480. justify-content: center;
  26481. flex-direction: column;
  26482. position: relative;
  26483. color: #6c6c6c;
  26484. }
  26485. .progressBox >>> .el-progress-bar__outer {
  26486. background-color: #d1dfff !important;
  26487. }
  26488. .progressBox .lbox {
  26489. height: 50px;
  26490. font-size: 19px;
  26491. display: flex;
  26492. align-items: center;
  26493. color: #747474;
  26494. }
  26495. .progressBox .lbox img {
  26496. width: 40px;
  26497. margin-right: 20px;
  26498. }
  26499. .closeCss {
  26500. position: absolute;
  26501. top: 8px;
  26502. right: 8px;
  26503. cursor: pointer;
  26504. width: 20px;
  26505. height: 20px;
  26506. }
  26507. .closeCss > img {
  26508. width: 100%;
  26509. height: 100%;
  26510. }
  26511. .uploadVedio {
  26512. display: flex;
  26513. flex-direction: column;
  26514. flex-wrap: nowrap;
  26515. justify-content: center;
  26516. align-items: center;
  26517. margin: 0 15px 10px 0;
  26518. }
  26519. .uploadVedio > img {
  26520. width: 30px;
  26521. height: 30px;
  26522. }
  26523. .uploadVedio > span {
  26524. white-space: nowrap;
  26525. overflow: hidden;
  26526. text-overflow: ellipsis;
  26527. width: 75px;
  26528. margin-top: 7px;
  26529. }
  26530. .picName {
  26531. white-space: nowrap;
  26532. overflow: hidden;
  26533. text-overflow: ellipsis;
  26534. width: 75px;
  26535. margin-top: 7px;
  26536. }
  26537. .new_top {
  26538. display: flex;
  26539. background: #fff;
  26540. flex-direction: row;
  26541. justify-content: flex-start;
  26542. align-items: center;
  26543. height: 60px;
  26544. position: fixed;
  26545. top: 20px;
  26546. left: 22%;
  26547. width: 77%;
  26548. z-index: 999;
  26549. border-radius: 12px 12px 0 0;
  26550. border-bottom: 1px solid #cad1dc;
  26551. padding: 10px 0;
  26552. }
  26553. .new_topFixed {
  26554. width: 100%;
  26555. height: 40px;
  26556. position: fixed;
  26557. top: 0px;
  26558. display: block;
  26559. background: #f2f2f2;
  26560. z-index: 998;
  26561. }
  26562. .before {
  26563. position: absolute;
  26564. background: #c3dad4;
  26565. width: 6px;
  26566. height: 100%;
  26567. }
  26568. .courseIndex {
  26569. display: flex;
  26570. flex-direction: row;
  26571. align-items: center;
  26572. width: calc(100% - 745px);
  26573. }
  26574. .courseIndex > div:nth-child(1) {
  26575. margin: 0 0 0 10px;
  26576. font-size: 20px;
  26577. min-width: 100px;
  26578. font-weight: bold;
  26579. border-left: 4px solid #3363b9;
  26580. height: 32px;
  26581. text-align: center;
  26582. line-height: 35px;
  26583. }
  26584. .courseIndex > div:nth-child(2) {
  26585. font-size: 20px;
  26586. /* width: 300px; */
  26587. max-width: calc(100% - 105px);
  26588. white-space: nowrap;
  26589. overflow: hidden;
  26590. text-overflow: ellipsis;
  26591. }
  26592. .courseIndex > div:nth-child(3) {
  26593. border-bottom: 1px solid #d7d7d7;
  26594. padding-bottom: 5px;
  26595. background: #3681fc;
  26596. width: 55px;
  26597. min-width: 55px;
  26598. border-radius: 5px;
  26599. color: #fff;
  26600. text-align: center;
  26601. height: 20px;
  26602. line-height: 26px;
  26603. font-size: 14px;
  26604. margin: 0 0 0 10px;
  26605. }
  26606. .course_text {
  26607. padding: 20px 0 0 15px;
  26608. text-indent: 30px;
  26609. width: 80%;
  26610. min-height: 20px;
  26611. }
  26612. .vedioList {
  26613. background: #f2f2f2;
  26614. border: 1px solid #ececec;
  26615. /* width: 38.8%; */
  26616. /* width: 300px; */
  26617. width: 100%;
  26618. height: 445px;
  26619. border-radius: 10px;
  26620. overflow: hidden;
  26621. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26622. }
  26623. .vedioNav {
  26624. margin: 10px 0 0 15px;
  26625. border-bottom: 1px solid #d7d7d7;
  26626. padding-bottom: 5px;
  26627. background: #3681fc;
  26628. width: 55px;
  26629. min-width: 55px;
  26630. border-radius: 5px;
  26631. color: #fff;
  26632. text-align: center;
  26633. height: 20px;
  26634. line-height: 26px;
  26635. font-size: 14px;
  26636. }
  26637. .queTop {
  26638. display: flex;
  26639. padding: 20px 0 20px 30px;
  26640. width: 100%;
  26641. flex-direction: row;
  26642. justify-content: flex-start;
  26643. align-items: center;
  26644. box-sizing: border-box;
  26645. }
  26646. .queTopTitle {
  26647. display: flex;
  26648. flex-direction: row;
  26649. flex-wrap: nowrap;
  26650. align-items: center;
  26651. font-weight: bold;
  26652. font-size: 20px;
  26653. color: rgb(14, 30, 51);
  26654. }
  26655. .queTopTitle::before {
  26656. content: "";
  26657. width: 2px;
  26658. height: 22px;
  26659. background: #3681fc;
  26660. border-radius: 3px;
  26661. display: block;
  26662. margin: 2px 6px 0 0;
  26663. }
  26664. .queTopRight {
  26665. display: flex;
  26666. flex-direction: row;
  26667. flex-wrap: nowrap;
  26668. align-items: center;
  26669. }
  26670. .queTopClose {
  26671. margin-right: 20px;
  26672. cursor: pointer;
  26673. position: relative;
  26674. display: flex;
  26675. }
  26676. .closeImg,
  26677. .openImg {
  26678. width: 25px;
  26679. height: 25px;
  26680. position: absolute;
  26681. left: -20px;
  26682. top: -1px;
  26683. }
  26684. .closeImg > img,
  26685. .openImg > img {
  26686. width: 100%;
  26687. height: 100%;
  26688. }
  26689. .question {
  26690. width: 40px;
  26691. margin-right: 10px;
  26692. margin-top: 7px;
  26693. }
  26694. .queTitle {
  26695. margin-left: 5px;
  26696. font-size: 25px;
  26697. display: flex;
  26698. align-items: center;
  26699. }
  26700. .addEditor {
  26701. width: 100px;
  26702. height: 30px;
  26703. background: #42cda6;
  26704. color: #fff;
  26705. border-radius: 5px;
  26706. text-align: center;
  26707. line-height: 30px;
  26708. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26709. cursor: pointer;
  26710. }
  26711. /* .vedioName {
  26712. cursor: pointer;
  26713. margin: 0px 0px 10px 5px;
  26714. white-space: nowrap;
  26715. overflow: hidden;
  26716. text-overflow: ellipsis;
  26717. width: 100%;
  26718. } */
  26719. .vedioTime {
  26720. width: 35px;
  26721. position: absolute;
  26722. color: #fff;
  26723. bottom: 0px;
  26724. right: 0px;
  26725. text-align: center;
  26726. background: #46411f;
  26727. height: 20px;
  26728. font-size: 14px;
  26729. line-height: 20px;
  26730. }
  26731. .homework {
  26732. width: 200px;
  26733. display: flex;
  26734. flex-direction: column;
  26735. flex-wrap: nowrap;
  26736. align-items: center;
  26737. cursor: pointer;
  26738. }
  26739. .homebox {
  26740. display: flex;
  26741. flex-wrap: wrap;
  26742. flex-direction: row;
  26743. justify-content: flex-start;
  26744. align-items: center;
  26745. padding: 15px 0;
  26746. }
  26747. .isChooseActive {
  26748. color: #3681fc !important;
  26749. font-weight: bold !important;
  26750. }
  26751. .chooseWho {
  26752. display: flex;
  26753. width: 100%;
  26754. flex-direction: row;
  26755. flex-wrap: nowrap;
  26756. justify-content: flex-start;
  26757. padding-bottom: 10px;
  26758. }
  26759. .chooseWho > div {
  26760. cursor: pointer;
  26761. padding-bottom: 10px;
  26762. margin: 0 30px 0 0;
  26763. font-weight: 400;
  26764. color: #0e1e33;
  26765. }
  26766. .addPoint > div > img {
  26767. cursor: pointer;
  26768. width: 85px;
  26769. border-radius: 15px;
  26770. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26771. }
  26772. .addPoint > div {
  26773. display: flex;
  26774. flex-direction: column;
  26775. flex-wrap: nowrap;
  26776. align-items: center;
  26777. }
  26778. .isBorder > div {
  26779. margin: 0 0 10px 0;
  26780. align-items: flex-start !important;
  26781. }
  26782. .noiframeBox {
  26783. display: flex;
  26784. flex-wrap: wrap;
  26785. }
  26786. .iframeBox iframe {
  26787. width: 100%;
  26788. height: 800px;
  26789. border: none;
  26790. margin-bottom: 20px;
  26791. border: 1px solid #ccc;
  26792. }
  26793. .upload_toolBtn {
  26794. background: #3681fc;
  26795. color: #fff;
  26796. width: 110px;
  26797. text-align: center;
  26798. height: 35px;
  26799. line-height: 35px;
  26800. font-size: 14px;
  26801. border-radius: 5px;
  26802. cursor: pointer;
  26803. position: absolute;
  26804. right: 10px;
  26805. bottom: 0;
  26806. }
  26807. .binfo_input,
  26808. .pj {
  26809. font: inherit;
  26810. color: currentColor;
  26811. width: 100%;
  26812. margin: 0;
  26813. padding: 15px 14px;
  26814. display: block;
  26815. min-width: 0;
  26816. outline: none;
  26817. box-sizing: content-box;
  26818. background: none;
  26819. -webkit-tap-highlight-color: transparent;
  26820. border: 1px solid rgba(0, 0, 0, 0.23);
  26821. border-radius: 4px;
  26822. box-sizing: border-box;
  26823. resize: none;
  26824. }
  26825. .binfo_input:focus-visible {
  26826. border: 1px solid rgba(61, 103, 188);
  26827. }
  26828. .dialog_diyCopy >>> .el-dialog__header {
  26829. display: none !important;
  26830. }
  26831. .dialog_diyCopy >>> .el-dialog__body {
  26832. padding: 0 !important;
  26833. height: 100% !important;
  26834. }
  26835. .confirmOpenDigCss > div{
  26836. font-size: 14px;
  26837. color: rgba(0, 0, 0, 0.6);
  26838. }
  26839. .confirmOpenDigCss >>> .el-dialog{
  26840. border-radius: 6px;
  26841. }
  26842. .confirmOpenDigCss >>> .el-dialog__body{
  26843. padding: 25px !important;
  26844. }
  26845. .confirmOpenDigCss > span{
  26846. font-size: 16px;
  26847. font-weight: 600;
  26848. color: rgba(0, 0, 0, 0.8);
  26849. }
  26850. .dialog_diy >>> .el-dialog__header,
  26851. .dialog_diy1 >>> .el-dialog__header {
  26852. background: #454545 !important;
  26853. padding: 15px 20px;
  26854. }
  26855. .dialog_diy >>> .el-dialog__title,
  26856. .dialog_diy1 >>> .el-dialog__title {
  26857. color: #fff;
  26858. }
  26859. .dialog_diy >>> .el-dialog__headerbtn,
  26860. .dialog_diy1 >>> .el-dialog__headerbtn {
  26861. top: 19px;
  26862. }
  26863. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26864. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26865. color: #fff;
  26866. }
  26867. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26868. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26869. color: #fff;
  26870. }
  26871. .dialog_diy1 >>> .el-dialog__body {
  26872. padding: 0;
  26873. }
  26874. .dialog_diy >>> .el-dialog__body,
  26875. .dialog_diy >>> .el-dialog__footer,
  26876. .dialog_diy1 >>> .el-dialog__footer {
  26877. background: #fafafa;
  26878. }
  26879. .markScore_diy >>> .el-dialog {
  26880. border-radius: 10px;
  26881. }
  26882. .markScore_diy >>> .el-dialog__body {
  26883. padding: 0;
  26884. height: 621px;
  26885. min-height: calc(100% - 60px);
  26886. }
  26887. .markScore_diy >>> .el-dialog__header {
  26888. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26889. }
  26890. .markScore_diy >>> .markScore_diyTit {
  26891. width: calc(100% - 60px);
  26892. display: flex;
  26893. justify-content: space-between;
  26894. align-items: center;
  26895. }
  26896. .a_addBox {
  26897. padding: 0 0 0 15px;
  26898. }
  26899. .a_add_box {
  26900. padding: 10px;
  26901. background: #fff;
  26902. margin-bottom: 10px;
  26903. border-radius: 5px;
  26904. box-shadow: 0 0 5px 0 #d5d5d5;
  26905. }
  26906. .a_add_head {
  26907. display: flex;
  26908. align-items: flex-start;
  26909. /* justify-content: space-between; */
  26910. flex-direction: column;
  26911. /* flex-direction: row; */
  26912. margin: 10px 0 20px 0;
  26913. font-size: 18px;
  26914. width: 100%;
  26915. }
  26916. .askIndex {
  26917. background: #3681fc;
  26918. border-radius: 50%;
  26919. color: #fff;
  26920. width: 25px;
  26921. height: 25px;
  26922. min-width: 25px;
  26923. min-height: 25px;
  26924. text-align: center;
  26925. line-height: 25px;
  26926. margin-right: 5px;
  26927. }
  26928. .a_add_head .a_add_head_input {
  26929. width: 300px;
  26930. }
  26931. .a_add_head .a_add_head_div {
  26932. display: flex;
  26933. align-items: center;
  26934. justify-content: space-between;
  26935. }
  26936. .a_add_body {
  26937. display: flex;
  26938. align-items: center;
  26939. }
  26940. .a_add_input {
  26941. display: flex;
  26942. align-items: center;
  26943. flex-wrap: wrap;
  26944. width: 100%;
  26945. }
  26946. .a_add_input >>> .el-radio-group,
  26947. .a_add_input >>> .el-checkbox-group {
  26948. width: 100%;
  26949. }
  26950. .a_add_input >>> .el-radio,
  26951. .a_add_input >>> .el-checkbox {
  26952. display: flex;
  26953. flex-direction: row;
  26954. flex-wrap: nowrap;
  26955. align-items: center;
  26956. padding: 15px 0;
  26957. }
  26958. .a_add_input >>> .el-radio:not(:last-child),
  26959. .a_add_input >>> .el-checkbox:not(:last-child) {
  26960. width: 100%;
  26961. border-bottom: 1px solid #efefef;
  26962. }
  26963. .redioStyle >>> .el-radio__label {
  26964. font-size: 18px;
  26965. }
  26966. .redioStyle >>> .el-radio__label > span,
  26967. .redioStyle >>> .el-checkbox__label > span {
  26968. word-break: break-all;
  26969. white-space: normal;
  26970. }
  26971. .redioStyle >>> .el-checkbox__label {
  26972. font-size: 18px;
  26973. }
  26974. .toolHeng2 {
  26975. width: 100%;
  26976. padding-left: 15px;
  26977. box-sizing: border-box;
  26978. }
  26979. .workNav {
  26980. font-size: 20px;
  26981. font-weight: bold;
  26982. color: #0e1e33;
  26983. display: flex;
  26984. flex-direction: row;
  26985. flex-wrap: nowrap;
  26986. align-items: center;
  26987. padding: 15px 0 15px 0;
  26988. }
  26989. .workNav::before {
  26990. content: "";
  26991. width: 2px;
  26992. height: 22px;
  26993. background: #3681fc;
  26994. border-radius: 3px;
  26995. display: block;
  26996. margin: 2px 6px 0 0;
  26997. }
  26998. .toolHeng {
  26999. display: flex;
  27000. flex-direction: row;
  27001. flex-wrap: wrap;
  27002. justify-content: flex-start;
  27003. align-items: center;
  27004. width: 100%;
  27005. }
  27006. .toolHeng > div {
  27007. padding-left: 20px;
  27008. }
  27009. .isWidth {
  27010. width: 20%;
  27011. }
  27012. .textTitle {
  27013. display: flex;
  27014. flex-direction: row;
  27015. flex-wrap: nowrap;
  27016. align-items: center;
  27017. width: 95%;
  27018. }
  27019. .textTitle >>> .el-form-item__label {
  27020. font-size: 22px;
  27021. color: #918f8f;
  27022. width: 100px;
  27023. }
  27024. .textTitle >>> .el-form-item__content {
  27025. width: calc(100% - 100px);
  27026. }
  27027. .textCss >>> .el-dialog {
  27028. width: 800px !important;
  27029. height: 400px;
  27030. background: #fafafa;
  27031. }
  27032. .textCss >>> .el-dialog__body {
  27033. margin: 55px 8% 0 8%;
  27034. padding: 0 !important;
  27035. }
  27036. .textCss >>> .el-dialog__footer {
  27037. padding-top: 38px;
  27038. }
  27039. .toolsCss >>> .el-dialog__body {
  27040. padding: 20px;
  27041. }
  27042. .lineCss >>> .el-dialog__body {
  27043. display: flex;
  27044. flex-direction: row;
  27045. align-items: center;
  27046. justify-content: center;
  27047. }
  27048. .newNav {
  27049. display: flex;
  27050. flex-direction: row;
  27051. align-items: baseline;
  27052. justify-content: flex-start;
  27053. }
  27054. .navListItem {
  27055. width: calc(100% - 20px);
  27056. height: 50px;
  27057. margin: 0px auto 10px;
  27058. display: flex;
  27059. flex-direction: row;
  27060. flex-wrap: nowrap;
  27061. align-items: center;
  27062. justify-content: space-between;
  27063. background: #f0f4fa;
  27064. border-radius: 6px 6px 6px 6px;
  27065. }
  27066. .navText {
  27067. cursor: pointer;
  27068. white-space: nowrap;
  27069. overflow: hidden;
  27070. text-overflow: ellipsis;
  27071. width: 220px;
  27072. padding: 0 10px;
  27073. font-weight: 400;
  27074. color: #0e1e33;
  27075. }
  27076. .downIcon {
  27077. width: 20px;
  27078. min-width: 20px;
  27079. height: 20px;
  27080. margin-right: 15px;
  27081. cursor: pointer;
  27082. }
  27083. .downIcon > img {
  27084. width: 100%;
  27085. height: 100%;
  27086. }
  27087. .noVedio {
  27088. display: flex;
  27089. flex-direction: row;
  27090. justify-content: center;
  27091. align-content: center;
  27092. }
  27093. .noNavText {
  27094. cursor: pointer;
  27095. margin: 0px 0px 10px 5px;
  27096. width: 112px;
  27097. }
  27098. .listNoVedio {
  27099. margin: 0 0 0 30px;
  27100. width: 97%;
  27101. }
  27102. .video-player >>> .video-js {
  27103. height: 100%;
  27104. }
  27105. .hangVedioList {
  27106. width: 90% !important;
  27107. height: 150px !important;
  27108. margin: 20px 0 0 30px;
  27109. }
  27110. .hangVedio {
  27111. width: 100%;
  27112. height: 170px !important;
  27113. align-items: flex-start !important;
  27114. }
  27115. .hangHand {
  27116. height: 150px !important;
  27117. }
  27118. .twoChild {
  27119. width: 95%;
  27120. margin: 10px;
  27121. border-radius: 5px;
  27122. background: #f2f2f2;
  27123. display: flex;
  27124. flex-direction: column;
  27125. flex-wrap: nowrap;
  27126. justify-content: flex-start;
  27127. align-items: flex-start;
  27128. transition: all 0.5s;
  27129. overflow: hidden;
  27130. height: 0;
  27131. background: #e7f3ff;
  27132. }
  27133. .twoChild > div:nth-child(1) {
  27134. margin-top: 5px;
  27135. }
  27136. .navChild {
  27137. width: 100%;
  27138. cursor: pointer;
  27139. margin-bottom: 10px;
  27140. position: relative;
  27141. }
  27142. .navChild img {
  27143. position: absolute;
  27144. right: 11px;
  27145. width: 15px;
  27146. top: 50%;
  27147. transform: translateY(-50%);
  27148. }
  27149. .navActive,
  27150. .toolActive {
  27151. height: auto !important;
  27152. overflow: auto !important;
  27153. /* // padding-bottom: 16px; */
  27154. }
  27155. .toolActive {
  27156. padding: 0;
  27157. }
  27158. .navTask {
  27159. display: flex;
  27160. flex-direction: row;
  27161. flex-wrap: nowrap;
  27162. align-items: center;
  27163. align-content: flex-start;
  27164. height: 40px;
  27165. justify-content: flex-start;
  27166. padding: 0 10px;
  27167. width: 100%;
  27168. box-sizing: border-box;
  27169. }
  27170. .navTaskname {
  27171. white-space: nowrap;
  27172. text-overflow: ellipsis;
  27173. overflow: hidden;
  27174. word-break: break-all;
  27175. padding-left: 5px;
  27176. }
  27177. .openTaskActive {
  27178. /* background-color: #e0eafb !important;
  27179. color: #0061ff; */
  27180. color: #fff;
  27181. background: rgb(55, 129, 252) !important;
  27182. }
  27183. .iframeName {
  27184. margin: 5px 0;
  27185. border-left: 4px solid #41c4a4;
  27186. padding-left: 4px;
  27187. }
  27188. .toolTitle {
  27189. margin: 0px 0px 20px;
  27190. font-size: 20px;
  27191. font-weight: 500;
  27192. border-left: 4px solid #41c4a4;
  27193. padding-left: 4px;
  27194. }
  27195. .cru_selectBox {
  27196. overflow: auto;
  27197. width: 95%;
  27198. margin: 17px auto 0;
  27199. height: calc(100% - 40px - 21px - 20px - 17px);
  27200. background: #fff;
  27201. border-radius: 8px;
  27202. }
  27203. .cru_selectBox::-webkit-scrollbar,
  27204. .study_top::-webkit-scrollbar,
  27205. .textContent::-webkit-scrollbar {
  27206. /*滚动条整体样式*/
  27207. width: 6px;
  27208. /*高宽分别对应横竖滚动条的尺寸*/
  27209. height: 6px;
  27210. }
  27211. /*定义滚动条轨道 内阴影+圆角*/
  27212. .cru_selectBox::-webkit-scrollbar-track,
  27213. .study_top::-webkit-scrollbar-track,
  27214. .textContent::-webkit-scrollbar {
  27215. border-radius: 10px;
  27216. background-color: #b8bdc9;
  27217. }
  27218. /*定义滑块 内阴影+圆角*/
  27219. .cru_selectBox::-webkit-scrollbar-thumb,
  27220. .study_top::-webkit-scrollbar-thumb,
  27221. .textContent::-webkit-scrollbar-thumb {
  27222. border-radius: 10px;
  27223. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  27224. background-color: #2c5ab3;
  27225. }
  27226. .vedioBox {
  27227. border-radius: 0 0 20px 20px;
  27228. background: #fff;
  27229. overflow: auto;
  27230. }
  27231. .taskBox {
  27232. width: 98%;
  27233. background: #f0f4fa;
  27234. margin: 10px auto;
  27235. padding: 0 10px;
  27236. border-radius: 4px;
  27237. box-sizing: border-box;
  27238. }
  27239. .vedioTaskBox {
  27240. width: 100%;
  27241. display: flex;
  27242. flex-direction: row;
  27243. flex-wrap: nowrap;
  27244. align-items: flex-start;
  27245. position: relative;
  27246. }
  27247. .toolBox {
  27248. margin: 15px 0 0 25px;
  27249. display: flex;
  27250. position: relative;
  27251. padding: 18px 20px;
  27252. border-top-left-radius: 5px;
  27253. border-top-right-radius: 5px;
  27254. width: 90%;
  27255. }
  27256. .btnAll {
  27257. position: absolute;
  27258. right: 0;
  27259. display: flex;
  27260. flex-direction: row;
  27261. flex-wrap: nowrap;
  27262. align-items: center;
  27263. }
  27264. .btnLeft,
  27265. .btnRight {
  27266. display: flex;
  27267. flex-direction: row;
  27268. flex-wrap: nowrap;
  27269. align-items: center;
  27270. padding: 5px 0;
  27271. }
  27272. .btnLeft {
  27273. border-right: 1px solid #cad1dc;
  27274. }
  27275. .btnLeft > .custom-tooltip {
  27276. background: #3681fc;
  27277. color: #fff;
  27278. }
  27279. .last:hover {
  27280. background: #3383fa !important;
  27281. color: #fff;
  27282. border: 1px solid #3383fa !important;
  27283. }
  27284. .last,
  27285. .returnBtn1 {
  27286. width: 90px;
  27287. height: 36px;
  27288. background: #ffffff;
  27289. border-radius: 4px;
  27290. border: 1px solid #0061ff;
  27291. color: #0061ff;
  27292. cursor: pointer;
  27293. display: flex;
  27294. flex-direction: row;
  27295. flex-wrap: nowrap;
  27296. align-items: center;
  27297. justify-content: center;
  27298. margin-left: 12px;
  27299. }
  27300. .returnBtn1 {
  27301. background: #f0f4fa;
  27302. border-radius: 4px;
  27303. border: 1px solid #cad1dc;
  27304. margin: 0 12px;
  27305. }
  27306. .lastImg {
  27307. min-width: 15px;
  27308. width: 15px;
  27309. height: 15px;
  27310. display: flex;
  27311. }
  27312. .lastText {
  27313. padding: 0 5px 0 5px;
  27314. box-sizing: border-box;
  27315. font-size: 14px;
  27316. }
  27317. .lastImg > img {
  27318. width: 100%;
  27319. height: 100%;
  27320. }
  27321. /* .vedioTimeBox {
  27322. display: flex;
  27323. flex-direction: row;
  27324. align-items: center;
  27325. flex-wrap: nowrap;
  27326. position: relative;
  27327. } */
  27328. .navBox {
  27329. background: #fff;
  27330. height: calc(100% - 40px);
  27331. overflow-y: auto;
  27332. overflow-x: hidden;
  27333. }
  27334. .worksBox {
  27335. margin: 0 0 10px 25px;
  27336. border-bottom: 1px solid #eeeeee;
  27337. padding: 18px 20px;
  27338. border-radius: 4px;
  27339. width: 90%;
  27340. }
  27341. .worksBTitle {
  27342. font-size: 20px;
  27343. padding-bottom: 15px;
  27344. border-bottom: 1px solid #eeeeee;
  27345. display: flex;
  27346. align-items: center;
  27347. }
  27348. .greenBox {
  27349. width: 5px;
  27350. height: 30px;
  27351. background: #63b6fa;
  27352. margin-right: 5px;
  27353. }
  27354. .worksDetailBox {
  27355. display: flex;
  27356. width: 100%;
  27357. flex-direction: row;
  27358. flex-wrap: wrap;
  27359. align-items: flex-end;
  27360. justify-content: flex-start;
  27361. padding: 15px 5px;
  27362. box-sizing: border-box;
  27363. }
  27364. .works {
  27365. display: flex;
  27366. flex-direction: column;
  27367. flex-wrap: nowrap;
  27368. align-items: flex-start;
  27369. justify-content: flex-start;
  27370. align-content: center;
  27371. max-width: 240px;
  27372. width: calc(100% / 3 - 10px);
  27373. height: auto;
  27374. margin-right: 10px;
  27375. margin-bottom: 10px;
  27376. overflow: hidden;
  27377. height: 140px;
  27378. box-shadow: 0 0 6px 1px #dfdada;
  27379. border-radius: 15px;
  27380. }
  27381. .workImg {
  27382. width: 100%;
  27383. /* height: calc(100% - 40px); */
  27384. height: 105px;
  27385. position: relative;
  27386. }
  27387. .workImg > img {
  27388. width: 100%;
  27389. height: 100%;
  27390. object-fit: contain;
  27391. cursor: pointer;
  27392. }
  27393. .worksName {
  27394. height: 40px;
  27395. line-height: 40px;
  27396. display: flex;
  27397. width: 100%;
  27398. flex-direction: row;
  27399. flex-wrap: nowrap;
  27400. justify-content: space-between;
  27401. align-items: center;
  27402. margin: 0 0 0 10px;
  27403. }
  27404. .worksName > div:nth-child(1) {
  27405. width: 110px;
  27406. white-space: nowrap;
  27407. overflow: hidden;
  27408. text-overflow: ellipsis;
  27409. }
  27410. .worksName > div:nth-child(2) {
  27411. color: #b7b4b5;
  27412. }
  27413. .noWorksS {
  27414. padding: 15px 0;
  27415. display: flex;
  27416. flex-direction: row;
  27417. flex-wrap: wrap;
  27418. align-items: center;
  27419. justify-content: flex-start;
  27420. }
  27421. .noWorksName,
  27422. .isWorksName,
  27423. .isWorksName2 {
  27424. background: #ddebf8;
  27425. color: #000;
  27426. width: 90px;
  27427. height: 25px;
  27428. text-align: center;
  27429. line-height: 25px;
  27430. border-radius: 4px;
  27431. margin: 10px 15px 10px 0;
  27432. white-space: nowrap;
  27433. overflow: hidden;
  27434. padding: 5px;
  27435. text-overflow: ellipsis;
  27436. cursor: pointer;
  27437. border: 1px solid #ddebf8;
  27438. }
  27439. .noWorksName {
  27440. background: #fff;
  27441. color: #0061ff;
  27442. border: 1px solid #0061ff;
  27443. }
  27444. .noWorksName > span {
  27445. max-width: 100%;
  27446. display: block;
  27447. overflow: hidden;
  27448. text-overflow: ellipsis;
  27449. white-space: nowrap;
  27450. }
  27451. .isWorksName2 {
  27452. width: 100px;
  27453. height: 40px;
  27454. line-height: 40px;
  27455. position: relative;
  27456. background: #dae6f9;
  27457. }
  27458. .isWorksName {
  27459. background: #e7ebf1 !important;
  27460. width: 100px;
  27461. height: 40px;
  27462. line-height: 40px;
  27463. position: relative;
  27464. color: #acb4bf;
  27465. border: 1px solid #cad1dc !important;
  27466. }
  27467. .isSelectName,
  27468. .noWorksName:hover {
  27469. background: #3383fa !important;
  27470. color: #fff !important;
  27471. border: 1px solid #3383fa !important;
  27472. }
  27473. .title {
  27474. background: #1e5cc9;
  27475. /* width: 98%; */
  27476. height: 45px;
  27477. color: #fff;
  27478. line-height: 45px;
  27479. padding-left: 20px;
  27480. box-sizing: border-box;
  27481. }
  27482. .textBox {
  27483. font-size: 20px;
  27484. width: 90%;
  27485. display: flex;
  27486. flex-direction: column;
  27487. align-items: center;
  27488. margin: 20px auto 0;
  27489. max-height: calc(100% - 75px);
  27490. overflow: auto;
  27491. }
  27492. .textContent {
  27493. font-size: 18px;
  27494. width: 95%;
  27495. max-width: 95%;
  27496. }
  27497. .answerBg {
  27498. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27499. background-size: 100% 100%;
  27500. width: 100%;
  27501. height: 100%;
  27502. color: #fff;
  27503. text-align: center;
  27504. display: flex;
  27505. flex-direction: column;
  27506. flex-wrap: nowrap;
  27507. align-items: center;
  27508. position: relative;
  27509. justify-content: center;
  27510. }
  27511. /* .answerBg > div:nth-child(1) { */
  27512. /* font-size: 22px;
  27513. padding: 25px 0 10px; */
  27514. /* } */
  27515. .answerContent {
  27516. width: 215px;
  27517. max-height: 60px;
  27518. word-break: break-all;
  27519. text-align: center;
  27520. /* white-space: nowrap; */
  27521. overflow: hidden;
  27522. text-overflow: ellipsis;
  27523. /* padding: 23px 0 0; */
  27524. -webkit-line-clamp: 3;
  27525. -webkit-box-orient: vertical;
  27526. display: -webkit-box;
  27527. font-size: 15px;
  27528. cursor: pointer;
  27529. }
  27530. .elist_input_box {
  27531. display: flex;
  27532. align-items: flex-start;
  27533. flex-wrap: nowrap;
  27534. padding: 10px 0 15px 30px;
  27535. flex-direction: column;
  27536. }
  27537. .elist_input {
  27538. /* width: 40%; */
  27539. width: 45%;
  27540. padding: 20px;
  27541. /* margin: 20px; */
  27542. box-sizing: border-box;
  27543. }
  27544. .elist_input .elist_input_box input {
  27545. font: inherit;
  27546. color: currentColor;
  27547. width: 200px;
  27548. padding: 8px 14px;
  27549. display: block;
  27550. min-width: 0;
  27551. outline: none;
  27552. border: 1px solid rgba(0, 0, 0, 0.23);
  27553. border-radius: 4px;
  27554. box-sizing: border-box;
  27555. background: #fff;
  27556. margin: 0 20px 0 0;
  27557. }
  27558. .elist_input .elist_input_box span {
  27559. height: 36px;
  27560. line-height: 36px;
  27561. color: rgb(82, 82, 82);
  27562. }
  27563. .elist_input .elist_input_box .remove {
  27564. height: 20px;
  27565. width: 20px;
  27566. background-size: 100% 100%;
  27567. background-position: unset;
  27568. margin-left: 5px;
  27569. }
  27570. .elist_input_box >>> .el-rate {
  27571. display: flex;
  27572. height: 36px;
  27573. align-items: center;
  27574. }
  27575. .elist_input_box .elist_inptu_text {
  27576. min-height: 50px;
  27577. /* width: 500px;
  27578. max-height: 150px; */
  27579. width: 100%;
  27580. line-height: 50px;
  27581. color: rgb(82, 82, 82);
  27582. overflow: auto;
  27583. text-indent: 5px;
  27584. background: #f7f6f9;
  27585. border-radius: 10px;
  27586. }
  27587. .elist_input_box .elist_inptu_text input {
  27588. width: 500px;
  27589. }
  27590. .elist_input_box >>> .el-rate__icon {
  27591. font-size: 24px;
  27592. }
  27593. .isClick {
  27594. background: #4d9def;
  27595. }
  27596. .bzBox {
  27597. display: flex;
  27598. flex-direction: row;
  27599. align-items: center;
  27600. }
  27601. .bzBox .yCss {
  27602. width: 7px;
  27603. height: 7px;
  27604. background: #fff;
  27605. margin: 0 16px 0 6px;
  27606. border-radius: 50%;
  27607. border: 5px solid #3681fc;
  27608. z-index: 99;
  27609. }
  27610. .bzBox > div:nth-child(2) {
  27611. font-size: 18px;
  27612. font-weight: bold;
  27613. color: #0e1e33;
  27614. }
  27615. .navTitile {
  27616. padding: 0 0px 0 15px;
  27617. font-size: 16px;
  27618. font-weight: bold;
  27619. color: #0e1e33;
  27620. height: 40px;
  27621. line-height: 40px;
  27622. }
  27623. .isTypeOne {
  27624. width: 240px;
  27625. height: 170px;
  27626. /* border: 1px solid #f8f8f8; */
  27627. border-radius: 10px;
  27628. box-shadow: 0 0 6px 1px #dfdada;
  27629. }
  27630. .e_add_top {
  27631. display: flex;
  27632. justify-content: space-between;
  27633. padding: 10px 20px;
  27634. border-radius: 3px;
  27635. background: #fff;
  27636. }
  27637. .e_add_title2 {
  27638. display: flex;
  27639. align-items: center;
  27640. }
  27641. .e_add_title2 span {
  27642. width: 40px;
  27643. }
  27644. .e_add_title {
  27645. display: flex;
  27646. align-items: center;
  27647. color: #b8b8b8;
  27648. font-size: 18px;
  27649. position: relative;
  27650. height: 40px;
  27651. }
  27652. .e_add_title span {
  27653. margin-right: 10px;
  27654. }
  27655. .e_add_title .el_input {
  27656. width: 300px;
  27657. }
  27658. .e_add_title >>> .el-input__inner {
  27659. width: 400px;
  27660. }
  27661. .e_add_btn {
  27662. }
  27663. .e_add_content {
  27664. display: flex;
  27665. width: 100%;
  27666. max-width: 650px;
  27667. height: 550px;
  27668. }
  27669. .e_add_list {
  27670. background: #fff;
  27671. height: 500px;
  27672. width: 210px;
  27673. position: relative;
  27674. margin: 15px 5px 0 0;
  27675. flex-shrink: 0;
  27676. display: flex;
  27677. flex-direction: column;
  27678. }
  27679. .e_add_list_title {
  27680. font-size: 20px;
  27681. width: 100%;
  27682. box-sizing: border-box;
  27683. padding: 15px 40px;
  27684. text-align: center;
  27685. border-bottom: 1px solid #eaeaea;
  27686. position: relative;
  27687. display: flex;
  27688. align-items: center;
  27689. justify-content: center;
  27690. height: 57px;
  27691. background: #f6f6f6;
  27692. }
  27693. .e_add_list_title span {
  27694. overflow: hidden;
  27695. white-space: nowrap;
  27696. text-overflow: ellipsis;
  27697. }
  27698. .e_add_list_title img {
  27699. position: absolute;
  27700. right: 15px;
  27701. width: 25px;
  27702. cursor: pointer;
  27703. top: 50%;
  27704. transform: translateY(-50%);
  27705. }
  27706. .e_add_list_body {
  27707. height: calc(100% - 187px);
  27708. overflow: auto;
  27709. }
  27710. .e_add_list_child {
  27711. width: 100%;
  27712. display: flex;
  27713. align-items: center;
  27714. justify-content: center;
  27715. position: relative;
  27716. box-sizing: border-box;
  27717. padding: 15px 40px;
  27718. text-align: center;
  27719. }
  27720. .e_add_list_child span {
  27721. overflow: hidden;
  27722. white-space: nowrap;
  27723. text-overflow: ellipsis;
  27724. cursor: pointer;
  27725. }
  27726. .e_add_list_child img {
  27727. position: absolute;
  27728. right: 10px;
  27729. width: 21px;
  27730. cursor: pointer;
  27731. top: 50%;
  27732. transform: translateY(-50%);
  27733. }
  27734. .e_add_list_child + .e_add_list_child {
  27735. border-top: 1px solid #eaeaea;
  27736. }
  27737. .e_add_list_child .active {
  27738. color: #409eff;
  27739. }
  27740. .e_add_list_btn {
  27741. position: absolute;
  27742. bottom: 0;
  27743. height: 50px;
  27744. background: rgb(120, 120, 254);
  27745. width: 100%;
  27746. color: #fff;
  27747. font-size: 16px;
  27748. text-align: center;
  27749. line-height: 50px;
  27750. cursor: pointer;
  27751. }
  27752. .e_add_list_detail {
  27753. position: absolute;
  27754. bottom: 0;
  27755. height: 130px;
  27756. background: rgb(120, 120, 254);
  27757. width: 100%;
  27758. color: #fff;
  27759. font-size: 16px;
  27760. display: flex;
  27761. align-items: center;
  27762. justify-content: center;
  27763. }
  27764. .e_add_list_detail textarea {
  27765. height: 90%;
  27766. width: 95%;
  27767. border: none;
  27768. resize: none;
  27769. outline: none;
  27770. padding: 5px;
  27771. box-sizing: border-box;
  27772. }
  27773. .e_add_list_pbox {
  27774. width: 100%;
  27775. max-width: 650px;
  27776. /* height: 600px; */
  27777. }
  27778. .e_add_list_pbox_title {
  27779. height: 50px;
  27780. background: #fff;
  27781. display: flex;
  27782. align-items: center;
  27783. width: 100%;
  27784. box-sizing: border-box;
  27785. padding: 0 20px;
  27786. }
  27787. .type_title {
  27788. font-size: 18px;
  27789. font-weight: 700;
  27790. }
  27791. .type_content {
  27792. font-size: 16px;
  27793. /* margin-left: 30px; */
  27794. }
  27795. .type_content span + span {
  27796. margin-left: 20px;
  27797. }
  27798. .type_content span {
  27799. cursor: pointer;
  27800. padding-bottom: 5px;
  27801. box-sizing: border-box;
  27802. }
  27803. .type_content .active {
  27804. color: #409eff;
  27805. border-bottom: 2px solid #409eff;
  27806. }
  27807. .e_add_list_pbox_content {
  27808. height: calc(100% - 50px);
  27809. display: flex;
  27810. align-items: center;
  27811. width: 100%;
  27812. background: #fff;
  27813. }
  27814. .evaCss {
  27815. display: flex;
  27816. flex-direction: row;
  27817. flex-wrap: nowrap;
  27818. align-items: flex-start;
  27819. padding: 0 0 20px;
  27820. }
  27821. .evaCss >>> .cell {
  27822. position: relative;
  27823. overflow: visible;
  27824. }
  27825. .evaCss >>> .el-table__body-wrapper {
  27826. overflow: visible;
  27827. }
  27828. .evaCss >>> .el-table {
  27829. overflow: visible;
  27830. }
  27831. .blueRootCss {
  27832. position: absolute;
  27833. top: 50%;
  27834. left: 0;
  27835. transform: translate(-20px, -50%);
  27836. }
  27837. .cru_line {
  27838. position: absolute;
  27839. bottom: 0px;
  27840. transition: all 0.5s;
  27841. left: 0px;
  27842. width: 125px;
  27843. margin-left: -25px;
  27844. }
  27845. .isNoMessage {
  27846. width: 20%;
  27847. margin: 25% auto 0;
  27848. }
  27849. .isNoMessage > img {
  27850. width: 100%;
  27851. height: 100%;
  27852. }
  27853. .fullStyle >>> .el-dialog__body {
  27854. height: 100% !important;
  27855. }
  27856. .fullStyle >>> .el-dialog,
  27857. .fullStyle {
  27858. width: 100% !important;
  27859. max-width: 100% !important;
  27860. height: 100% !important;
  27861. margin: 0 !important;
  27862. }
  27863. .full_diy >>> .el-dialog {
  27864. margin: 0 !important;
  27865. height: 100%;
  27866. padding: 4px;
  27867. }
  27868. .full_diy >>> .el-dialog__body {
  27869. height: calc(100% - 100px);
  27870. }
  27871. .full_diy2 >>> .el-dialog__body {
  27872. height: calc(100% - 50px);
  27873. padding: 0;
  27874. }
  27875. .switchCss {
  27876. /* width: 100%; */
  27877. display: flex;
  27878. flex-direction: row;
  27879. flex-wrap: nowrap;
  27880. align-items: center;
  27881. /* justify-content: center; */
  27882. }
  27883. .isClickNav {
  27884. /* color: #499eef; */
  27885. color: #000;
  27886. }
  27887. .commentImg {
  27888. width: 25px;
  27889. height: 25px;
  27890. cursor: pointer;
  27891. }
  27892. .commentImg > img {
  27893. width: 100%;
  27894. height: 100%;
  27895. }
  27896. .comment {
  27897. background: #f9f9f9;
  27898. border-radius: 0 0 4px 4px;
  27899. display: flex;
  27900. flex-direction: row;
  27901. flex-wrap: nowrap;
  27902. align-items: center;
  27903. justify-content: flex-end;
  27904. height: 35px;
  27905. }
  27906. .commentList {
  27907. display: flex;
  27908. flex-direction: row;
  27909. flex-wrap: nowrap;
  27910. align-items: center;
  27911. justify-content: center;
  27912. align-content: center;
  27913. /* margin-left: 15px; */
  27914. /* margin-left: 8px; */
  27915. }
  27916. .scoreImg {
  27917. width: 17px;
  27918. height: 17px;
  27919. }
  27920. .studentDetail {
  27921. display: flex;
  27922. flex-direction: row;
  27923. flex-wrap: nowrap;
  27924. /* align-items: center; */
  27925. align-items: flex-start;
  27926. }
  27927. .tx {
  27928. width: 50px;
  27929. }
  27930. .tx > img {
  27931. width: 100%;
  27932. height: 100%;
  27933. }
  27934. .nameAndTime {
  27935. display: flex;
  27936. flex-direction: column;
  27937. flex-wrap: nowrap;
  27938. align-items: flex-start;
  27939. margin-left: 10px;
  27940. }
  27941. .worksAnswer {
  27942. color: #4078dd;
  27943. margin: 10px 0;
  27944. font-size: 16px;
  27945. position: relative;
  27946. }
  27947. .worksAnswer > img {
  27948. width: 500px;
  27949. height: 300px;
  27950. object-fit: contain;
  27951. margin: 0 auto;
  27952. display: block;
  27953. }
  27954. .commentTop {
  27955. border-bottom: 1px solid #eaeaea;
  27956. padding-bottom: 10px;
  27957. }
  27958. .commentBox {
  27959. padding-top: 15px;
  27960. }
  27961. .pl {
  27962. font-size: 18px;
  27963. }
  27964. .plPerson {
  27965. width: 100%;
  27966. }
  27967. .plName {
  27968. display: flex;
  27969. flex-direction: row;
  27970. flex-wrap: nowrap;
  27971. align-items: baseline;
  27972. color: #78787a;
  27973. width: 100%;
  27974. }
  27975. .deleteComment {
  27976. cursor: pointer;
  27977. margin-left: auto;
  27978. color: #237ade;
  27979. }
  27980. .plContent {
  27981. margin-top: 5px;
  27982. }
  27983. .evalCss {
  27984. background: #fff;
  27985. font-size: 18px;
  27986. }
  27987. .nav {
  27988. color: #9d9d9d;
  27989. padding: 5px 0 15px 20px;
  27990. }
  27991. .middleBox {
  27992. padding: 5px 0 15px 20px;
  27993. }
  27994. .pfBox {
  27995. padding-bottom: 30px;
  27996. }
  27997. .nameAndrate {
  27998. display: flex;
  27999. flex-direction: row;
  28000. flex-wrap: nowrap;
  28001. align-items: center;
  28002. padding-bottom: 10px;
  28003. height: 30px;
  28004. line-height: 30px;
  28005. }
  28006. .nameAndrate > div {
  28007. margin-left: 10px;
  28008. color: #000;
  28009. height: 30px;
  28010. }
  28011. .nameAndrate >>> .el-rate__icon {
  28012. font-size: 28px !important;
  28013. }
  28014. .pfBox > div:nth-child(2) {
  28015. background: #f7f6f9;
  28016. width: 400px;
  28017. min-height: 45px;
  28018. border-radius: 10px;
  28019. font-size: 16px;
  28020. display: flex;
  28021. flex-wrap: wrap;
  28022. align-items: center;
  28023. padding: 10px 20px;
  28024. box-sizing: border-box;
  28025. color: #000;
  28026. }
  28027. .bz {
  28028. display: flex;
  28029. flex-direction: row;
  28030. flex-wrap: nowrap;
  28031. align-items: flex-start;
  28032. }
  28033. .bz > div {
  28034. padding: 0 10px;
  28035. }
  28036. .select_box2_title {
  28037. background: #fff;
  28038. border-radius: 5px;
  28039. padding: 15px 10px;
  28040. box-sizing: border-box;
  28041. margin-bottom: 10px;
  28042. display: flex;
  28043. flex-direction: row;
  28044. flex-wrap: nowrap;
  28045. align-items: center;
  28046. }
  28047. .select_box2_title > div:nth-child(2) {
  28048. margin-left: 10px;
  28049. color: #c4c4c4;
  28050. }
  28051. .select_box2_box {
  28052. display: flex;
  28053. height: 500px;
  28054. }
  28055. .select_box2_img {
  28056. width: calc(100% - 310px);
  28057. height: 100%;
  28058. overflow: auto;
  28059. background: #fff;
  28060. border-radius: 5px;
  28061. }
  28062. .select_box2_img img {
  28063. width: 100%;
  28064. }
  28065. .select_box2_answer {
  28066. background: #fff;
  28067. margin-left: 10px;
  28068. border-radius: 5px;
  28069. width: 300px;
  28070. overflow: auto;
  28071. height: 90%;
  28072. display: flex;
  28073. flex-direction: column;
  28074. align-items: flex-start;
  28075. padding-top: 10px;
  28076. box-sizing: border-box;
  28077. position: relative;
  28078. }
  28079. .select_answer_title {
  28080. padding: 0 0 15px 20px;
  28081. color: #c4c4c4;
  28082. }
  28083. .select_box2_answer_box {
  28084. margin: 0 0 10px 20px;
  28085. width: 85%;
  28086. display: flex;
  28087. flex-direction: row;
  28088. flex-wrap: nowrap;
  28089. align-items: center;
  28090. }
  28091. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  28092. color: #000;
  28093. }
  28094. .upAnswerCss {
  28095. position: absolute;
  28096. bottom: 15px;
  28097. right: 15px;
  28098. }
  28099. .upAnswerCss >>> .el-button {
  28100. width: 95px;
  28101. height: 35px;
  28102. line-height: 35px;
  28103. padding: 0;
  28104. }
  28105. .rightWidthCss {
  28106. width: 60%;
  28107. display: flex;
  28108. flex-direction: row;
  28109. align-items: flex-start;
  28110. }
  28111. .rightAnswer {
  28112. display: flex;
  28113. flex-direction: row;
  28114. flex-wrap: nowrap;
  28115. align-items: center;
  28116. color: red;
  28117. margin-bottom: 31px;
  28118. }
  28119. .rightAnswerCss {
  28120. display: flex;
  28121. flex-direction: column;
  28122. flex-wrap: nowrap;
  28123. padding-top: 60px;
  28124. }
  28125. .blueCss {
  28126. color: #767de1;
  28127. margin-left: 10px;
  28128. }
  28129. .redCss {
  28130. color: red;
  28131. }
  28132. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  28133. color: rgb(0 123 255) !important;
  28134. }
  28135. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  28136. color: rgb(0 123 255) !important;
  28137. }
  28138. .zuoyeYulan {
  28139. padding-top: 0;
  28140. font-size: 18px;
  28141. display: flex;
  28142. align-items: flex-end;
  28143. }
  28144. .buttonA {
  28145. margin-left: 10px;
  28146. padding: 0;
  28147. }
  28148. .displayBox {
  28149. margin-bottom: 10px;
  28150. display: block;
  28151. border-bottom: 3px solid #eee;
  28152. display: flex;
  28153. align-items: center;
  28154. }
  28155. .easy_comment {
  28156. width: calc(100% - 90px);
  28157. margin-left: 10px;
  28158. display: flex;
  28159. flex-wrap: wrap;
  28160. }
  28161. .easy_comment > div {
  28162. border: 1px solid #4a4a4a;
  28163. color: #666;
  28164. border-radius: 15px;
  28165. padding: 5px 10px;
  28166. font-size: 16px;
  28167. margin-bottom: 10px;
  28168. margin-right: 5px;
  28169. cursor: pointer;
  28170. }
  28171. .easy_comment div:hover {
  28172. border: 1px solid #f7ba2a;
  28173. color: #c69217;
  28174. }
  28175. .xuan_right_box {
  28176. padding: 10px 0;
  28177. background: #f0f4fa;
  28178. margin: 0 15px 0 25px;
  28179. border-bottom-left-radius: 5px;
  28180. border-bottom-right-radius: 5px;
  28181. width: 91.5%;
  28182. }
  28183. .tool_right_box {
  28184. display: flex;
  28185. align-items: center;
  28186. }
  28187. .tool_right_box + .tool_right_box {
  28188. margin-top: 10px;
  28189. }
  28190. .right_box_xuan {
  28191. border-radius: 5px;
  28192. padding: 5px;
  28193. margin-left: 10px;
  28194. min-width: 85px;
  28195. background: #fff;
  28196. color: #0061ff;
  28197. border: 1px solid #0061ff;
  28198. font-size: 14px;
  28199. }
  28200. .pButton:hover {
  28201. opacity: 1 !important;
  28202. }
  28203. .pButton {
  28204. position: fixed;
  28205. text-align: center;
  28206. cursor: pointer;
  28207. z-index: 999;
  28208. right: 20px;
  28209. top: 110px;
  28210. width: 50px;
  28211. height: 50px;
  28212. display: flex;
  28213. align-items: center;
  28214. justify-content: center;
  28215. border-radius: 5px;
  28216. }
  28217. .pzClass {
  28218. width: calc(100% - 340px);
  28219. }
  28220. .newDialogCss {
  28221. /* position: fixed;
  28222. right: 5%;
  28223. top: 50%;
  28224. width: 340px;
  28225. transform: translateY(-50%);
  28226. height: 60%;
  28227. box-shadow: 0px 0 8px 0px #555555;
  28228. border-radius: 15px;
  28229. z-index: 999; */
  28230. position: fixed;
  28231. right: 20px;
  28232. top: 101px;
  28233. width: 330px;
  28234. height: calc(100% - 80px);
  28235. z-index: 999;
  28236. background: #fff;
  28237. border-top-right-radius: 0px;
  28238. border-bottom-right-radius: 0px;
  28239. overflow: hidden;
  28240. }
  28241. .newDialogCss > .scoreList {
  28242. width: 100%;
  28243. height: 100%;
  28244. box-sizing: border-box;
  28245. padding: 10px 15px;
  28246. overflow: auto;
  28247. padding-bottom: 80px;
  28248. }
  28249. .pzTop {
  28250. color: #fff;
  28251. background: #000;
  28252. display: flex;
  28253. flex-direction: row;
  28254. flex-wrap: nowrap;
  28255. align-items: center;
  28256. justify-content: space-between;
  28257. height: 40px;
  28258. border-radius: 15px 15px 0 0;
  28259. user-select: none;
  28260. }
  28261. .pzTop2 .checkbox {
  28262. display: flex;
  28263. align-items: center;
  28264. padding: 5px 10px;
  28265. flex: 0 0 auto;
  28266. font-weight: bold;
  28267. border-bottom: 1px solid #eee;
  28268. justify-content: space-between;
  28269. }
  28270. .checkbox > .cb-tabList {
  28271. display: flex;
  28272. align-items: center;
  28273. }
  28274. .cb-tabList > div {
  28275. margin-right: 20px;
  28276. font-weight: 400;
  28277. cursor: pointer;
  28278. }
  28279. .cb-tabList > .cb-tabItem {
  28280. color: #1684fc;
  28281. position: relative;
  28282. }
  28283. .cb-tabItem::after {
  28284. content: "";
  28285. width: 100%;
  28286. height: 2px;
  28287. background: #1684fc;
  28288. position: absolute;
  28289. bottom: -5px;
  28290. left: 0;
  28291. }
  28292. .pzTop2 .check {
  28293. text-align: center;
  28294. cursor: pointer;
  28295. box-sizing: border-box;
  28296. display: flex;
  28297. }
  28298. .pzTop2 img {
  28299. width: 25px;
  28300. cursor: pointer;
  28301. }
  28302. .pzTop > div:nth-child(1) {
  28303. padding-left: 10px;
  28304. }
  28305. .pzTop > div:nth-child(2) {
  28306. width: 15px;
  28307. height: 15px;
  28308. padding-right: 10px;
  28309. cursor: pointer;
  28310. }
  28311. .pzTop > div:nth-child(2) > img {
  28312. width: 100%;
  28313. height: 100%;
  28314. }
  28315. .pzBox,
  28316. .noPzBox {
  28317. height: calc(100% - 60px);
  28318. /* background: #ededed; */
  28319. background: #fff;
  28320. /* border-radius: 0 0 15px 15px; */
  28321. }
  28322. .noPzBox {
  28323. display: flex;
  28324. flex-direction: column;
  28325. flex-wrap: nowrap;
  28326. justify-content: center;
  28327. align-items: center;
  28328. }
  28329. .pzList {
  28330. background: #f7f7f7;
  28331. width: 90%;
  28332. margin: 0 auto 15px;
  28333. border-radius: 5px;
  28334. }
  28335. .pzNavTop {
  28336. display: flex;
  28337. flex-direction: row;
  28338. flex-wrap: nowrap;
  28339. padding: 10px 10px 0 10px;
  28340. align-items: center;
  28341. }
  28342. .pzDelete {
  28343. cursor: pointer;
  28344. margin-left: auto;
  28345. font-size: 14px;
  28346. color: #afafaf;
  28347. }
  28348. .pzNavTop > div:nth-child(1) {
  28349. background: #3760af;
  28350. width: 35px;
  28351. height: 35px;
  28352. color: #fff;
  28353. text-align: center;
  28354. line-height: 35px;
  28355. border-radius: 50%;
  28356. font-size: 14px;
  28357. }
  28358. .pzNavTop > div:nth-child(2) {
  28359. font-size: 18px;
  28360. color: #959595;
  28361. margin-left: 5px;
  28362. }
  28363. .pzContent {
  28364. padding: 10px;
  28365. word-break: break-word;
  28366. }
  28367. .pzContent audio {
  28368. width: 100%;
  28369. }
  28370. .pzContent audio::-webkit-media-controls-panel {
  28371. background: #fff;
  28372. }
  28373. .pzContent >>> img {
  28374. max-width: 100%;
  28375. }
  28376. .pzListBox {
  28377. padding-top: 15px;
  28378. height: calc(100% - 110px);
  28379. overflow: auto;
  28380. }
  28381. .addPzButton {
  28382. position: relative;
  28383. margin-top: 3px;
  28384. width: 100%;
  28385. }
  28386. .addPzButton .img1 {
  28387. position: absolute;
  28388. top: 50%;
  28389. right: 25px;
  28390. transform: translateY(-50%);
  28391. height: 100%;
  28392. display: flex;
  28393. align-items: center;
  28394. }
  28395. .addPzButton .img1 div {
  28396. display: flex;
  28397. }
  28398. .addPzButton .img1 div img {
  28399. width: 28px;
  28400. margin-left: 10px;
  28401. cursor: pointer;
  28402. }
  28403. .addPzButton .img1 div span {
  28404. font-size: 14px;
  28405. margin: 4px 0 0 3px;
  28406. color: #afafaf;
  28407. }
  28408. .addPz {
  28409. background: #4b79ce;
  28410. width: 100px;
  28411. color: #fff;
  28412. font-size: 12px;
  28413. height: 30px;
  28414. margin: 0 auto;
  28415. text-align: center;
  28416. line-height: 30px;
  28417. border-radius: 10px;
  28418. cursor: pointer;
  28419. }
  28420. .addDialogCss {
  28421. position: fixed;
  28422. width: 600px;
  28423. height: 70%;
  28424. min-height: 450px;
  28425. box-shadow: 0px 0 8px 0px #555555;
  28426. border-radius: 15px;
  28427. z-index: 999;
  28428. left: 50%;
  28429. top: 50%;
  28430. margin: -18% 0 0 -300px;
  28431. }
  28432. .teacherPz {
  28433. display: flex;
  28434. flex-direction: row;
  28435. align-items: center;
  28436. flex-wrap: nowrap;
  28437. }
  28438. .teacherPzImg {
  28439. width: 30px;
  28440. height: 30px;
  28441. }
  28442. .teacherPzImg > img {
  28443. width: 100%;
  28444. height: 100%;
  28445. }
  28446. .addPzBox {
  28447. height: calc(100% - 40px);
  28448. background: #ededed;
  28449. border-bottom-left-radius: 15px;
  28450. border-bottom-right-radius: 15px;
  28451. }
  28452. .pzAudioClass {
  28453. margin: 15px 14px;
  28454. background: #fff;
  28455. height: 100%;
  28456. display: flex;
  28457. justify-content: center;
  28458. align-items: center;
  28459. }
  28460. .pzConText {
  28461. width: 95%;
  28462. height: 100%;
  28463. margin: 10px auto 0;
  28464. border: none;
  28465. background: #fff;
  28466. border-radius: 0px;
  28467. }
  28468. .pzConText >>> .text {
  28469. height: calc(100% - 82px);
  28470. }
  28471. .addTextCss {
  28472. background: #4b79ce;
  28473. width: 80px;
  28474. height: 30px;
  28475. text-align: center;
  28476. color: #fff;
  28477. line-height: 30px;
  28478. border-radius: 10px;
  28479. margin: 10px auto 0;
  28480. cursor: pointer;
  28481. }
  28482. .pzConText:focus-visible {
  28483. border: none !important;
  28484. }
  28485. .maxWidth {
  28486. width: 1000px;
  28487. }
  28488. .noPz {
  28489. width: 150px;
  28490. margin: 0 auto 20%;
  28491. }
  28492. .noPz > img {
  28493. width: 100%;
  28494. height: 100%;
  28495. }
  28496. .timeAndReply {
  28497. display: flex;
  28498. flex-direction: row;
  28499. flex-wrap: nowrap;
  28500. justify-content: space-between;
  28501. align-items: center;
  28502. font-size: 14px;
  28503. box-sizing: border-box;
  28504. padding: 0 10px 10px 0px;
  28505. }
  28506. .timeAndReply .time {
  28507. color: #bfbfbf;
  28508. padding: 0 0 0 10px;
  28509. box-sizing: border-box;
  28510. }
  28511. .timeAndReply > div:last-child {
  28512. cursor: pointer;
  28513. color: #777;
  28514. }
  28515. /* table 样式 */
  28516. .cont >>> table {
  28517. border-top: 1px solid #ccc;
  28518. border-left: 1px solid #ccc;
  28519. }
  28520. .cont >>> table td,
  28521. .cont >>> table th {
  28522. border-bottom: 1px solid #ccc;
  28523. border-right: 1px solid #ccc;
  28524. /* padding: 20px 5px; */
  28525. padding: 5px 10px;
  28526. max-width: 0px;
  28527. height: 30px;
  28528. vertical-align: baseline;
  28529. box-sizing: border-box;
  28530. }
  28531. .cont >>> table th {
  28532. border-bottom: 2px solid #ccc;
  28533. text-align: center;
  28534. }
  28535. /* blockquote 样式 */
  28536. .cont >>> blockquote {
  28537. display: block;
  28538. border-left: 8px solid #d0e5f2;
  28539. padding: 5px 10px;
  28540. margin: 10px 0;
  28541. line-height: 1.4;
  28542. font-size: 100%;
  28543. background-color: #f1f1f1;
  28544. }
  28545. /* code 样式 */
  28546. .cont >>> code {
  28547. display: inline-block;
  28548. /* *display: inline; */
  28549. zoom: 1;
  28550. background-color: #f1f1f1;
  28551. border-radius: 3px;
  28552. padding: 3px 5px;
  28553. margin: 0 3px;
  28554. }
  28555. .cont >>> pre code {
  28556. display: block;
  28557. }
  28558. /* ul ol 样式 */
  28559. .cont >>> ul,
  28560. ol {
  28561. margin: 10px 0 10px 20px;
  28562. }
  28563. .addPzCheck {
  28564. display: flex;
  28565. flex-direction: row;
  28566. flex-wrap: nowrap;
  28567. padding: 10px 15px 0;
  28568. }
  28569. .addPzCheck span {
  28570. cursor: pointer;
  28571. padding-bottom: 5px;
  28572. font-weight: bold;
  28573. }
  28574. .addPzCheck span + span {
  28575. margin-left: 10px;
  28576. }
  28577. .addPzCheck .isChooseActive {
  28578. color: #3e88f4;
  28579. border-bottom: 2px solid #2f80f3;
  28580. }
  28581. /* code 样式 */
  28582. .cont {
  28583. /* -webkit-user-modify: read-write; */
  28584. overflow-wrap: break-word;
  28585. -webkit-line-break: after-white-space;
  28586. word-break: break-word;
  28587. white-space: pre-line;
  28588. }
  28589. .scoreBox,
  28590. .scoreDetailBox {
  28591. display: flex;
  28592. align-items: center;
  28593. justify-content: flex-start;
  28594. margin-top: 20px;
  28595. font-size: 18px;
  28596. width: 100%;
  28597. }
  28598. .scoreBox .t,
  28599. .scoreDetailBox .t {
  28600. margin-right: 10px;
  28601. width: 100px;
  28602. text-align: right;
  28603. }
  28604. .scoreDetailBox {
  28605. align-items: flex-start;
  28606. }
  28607. .scoreDetailBox >>> .el-textarea {
  28608. width: calc(100% - 200px);
  28609. }
  28610. .scoreBox >>> .el-input {
  28611. width: 130px;
  28612. font-size: 38px;
  28613. }
  28614. .scoreBox >>> .el-input__inner {
  28615. height: 60px;
  28616. }
  28617. .answerScore {
  28618. position: absolute;
  28619. top: 10px;
  28620. right: 10px;
  28621. background: #0000008f;
  28622. border-radius: 5px;
  28623. padding: 3px 5px;
  28624. font-size: 14px;
  28625. color: #fff;
  28626. cursor: pointer;
  28627. }
  28628. .open_box .switch_box {
  28629. width: 100%;
  28630. margin: 0 auto;
  28631. display: flex;
  28632. justify-content: space-between;
  28633. }
  28634. .open_box .switch_box + .switch_box {
  28635. margin-top: 10px;
  28636. }
  28637. .deleteImg,
  28638. .deleteImg1 {
  28639. width: 25px !important;
  28640. height: 25px !important;
  28641. cursor: pointer;
  28642. position: absolute;
  28643. top: 10px;
  28644. right: 10px;
  28645. }
  28646. .deleteImg2 {
  28647. width: 23px !important;
  28648. height: 23px !important;
  28649. top: 5px;
  28650. right: 5px;
  28651. }
  28652. .deleteImg1 {
  28653. width: 23px !important;
  28654. height: 23px !important;
  28655. top: 5px !important;
  28656. right: 30px !important;
  28657. }
  28658. .rightW {
  28659. right: 40px;
  28660. }
  28661. .drawPBox {
  28662. display: flex;
  28663. flex-direction: column;
  28664. position: relative;
  28665. }
  28666. .drawPBox span {
  28667. font-size: 18px;
  28668. color: #606266;
  28669. padding-bottom: 10px;
  28670. margin: 10px 0;
  28671. border-bottom: 1px solid #eaeaea;
  28672. }
  28673. .drawPBox img {
  28674. width: 500px;
  28675. height: 300px;
  28676. object-fit: contain;
  28677. cursor: pointer;
  28678. margin: 0 auto;
  28679. }
  28680. .sentenBox {
  28681. background: #fff;
  28682. height: 450px;
  28683. overflow: auto;
  28684. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28685. background-position: 102%;
  28686. background-repeat: no-repeat;
  28687. background-size: 60%;
  28688. }
  28689. .addSen {
  28690. background: #409efe;
  28691. width: 90px;
  28692. color: #fff;
  28693. height: 35px;
  28694. text-align: center;
  28695. line-height: 35px;
  28696. border-radius: 5px;
  28697. float: right;
  28698. margin: 10px 20px 0 0;
  28699. cursor: pointer;
  28700. }
  28701. .sentenTop {
  28702. display: flex;
  28703. flex-direction: row;
  28704. flex-wrap: nowrap;
  28705. align-items: center;
  28706. padding: 55px 0 0 20px;
  28707. box-sizing: border-box;
  28708. }
  28709. .sentenTop > div:nth-child(2) {
  28710. width: 300px;
  28711. margin: 0 15px;
  28712. }
  28713. .sentenTop > div:nth-child(3) {
  28714. background: #409efe;
  28715. color: #fff;
  28716. width: 65px;
  28717. height: 35px;
  28718. text-align: center;
  28719. line-height: 35px;
  28720. border-radius: 5px;
  28721. cursor: pointer;
  28722. }
  28723. .cardList,
  28724. .cardList1 {
  28725. padding: 10px 0 10px 0;
  28726. display: flex;
  28727. flex-direction: row;
  28728. flex-wrap: wrap;
  28729. align-items: center;
  28730. box-sizing: border-box;
  28731. border-bottom: 1px solid #f4f4f4;
  28732. width: 98%;
  28733. margin: 0 auto;
  28734. min-width: 60%;
  28735. max-width: 85%;
  28736. }
  28737. .cardList1 {
  28738. padding: 10px 0 10px 10px !important;
  28739. margin: 0 !important;
  28740. }
  28741. .cardBox {
  28742. display: flex;
  28743. flex-direction: row;
  28744. flex-wrap: wrap;
  28745. align-items: center;
  28746. align-content: center;
  28747. }
  28748. .cardBox > div {
  28749. margin-bottom: 10px;
  28750. }
  28751. .isCard,
  28752. .isChooseCard,
  28753. .noCard,
  28754. .isCard1 {
  28755. min-width: 130px;
  28756. width: auto;
  28757. height: 60px;
  28758. text-align: center;
  28759. line-height: 60px;
  28760. font-size: 20px;
  28761. cursor: pointer;
  28762. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28763. background-size: cover;
  28764. transition: all 2s;
  28765. margin-right: 20px;
  28766. background-size: 100% 100%;
  28767. padding: 0 20px;
  28768. box-sizing: border-box;
  28769. }
  28770. .isCard > div,
  28771. .noCard > div,
  28772. .isCard1 > div {
  28773. white-space: nowrap;
  28774. overflow: hidden;
  28775. text-overflow: ellipsis;
  28776. width: 100%;
  28777. margin: 0 auto;
  28778. }
  28779. .noCard {
  28780. background-image: none;
  28781. }
  28782. .isCard1 {
  28783. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28784. }
  28785. .isChooseCard {
  28786. background-image: none;
  28787. border: 1px dashed #b9b9b9;
  28788. border-radius: 10px;
  28789. }
  28790. .card {
  28791. width: 130px;
  28792. height: 60px;
  28793. }
  28794. .card > img {
  28795. width: 100%;
  28796. height: 100%;
  28797. }
  28798. .rightCardBox {
  28799. margin: 10px 0 0 10px;
  28800. }
  28801. .rightCardBox > div:nth-child(1) {
  28802. margin-bottom: 10px;
  28803. }
  28804. .cardCss {
  28805. display: flex;
  28806. flex-direction: column;
  28807. flex-wrap: nowrap;
  28808. align-items: center;
  28809. border-bottom: 3px solid #b4c3d3;
  28810. padding: 0 0 5px 0;
  28811. margin-right: 10px;
  28812. }
  28813. .cardCss > div:nth-child(2) {
  28814. background: #5b7b9d;
  28815. color: #fff;
  28816. width: 20px;
  28817. height: 20px;
  28818. border-radius: 50%;
  28819. text-align: center;
  28820. line-height: 20px;
  28821. }
  28822. .isWrong {
  28823. display: flex;
  28824. flex-direction: row;
  28825. flex-wrap: nowrap;
  28826. align-content: center;
  28827. align-items: center;
  28828. }
  28829. .answerRight {
  28830. width: 25%;
  28831. }
  28832. .isTj {
  28833. display: flex;
  28834. flex-direction: row;
  28835. flex-wrap: nowrap;
  28836. align-items: center;
  28837. }
  28838. .isTj > div:nth-child(2) {
  28839. color: #727070;
  28840. margin-left: 10px;
  28841. }
  28842. .isTjImg {
  28843. width: 30px;
  28844. height: 30px;
  28845. }
  28846. .isTjImg > img {
  28847. width: 100%;
  28848. height: 100%;
  28849. }
  28850. .cardAnswerBox {
  28851. font-size: 18px;
  28852. width: 97%;
  28853. border: 5px;
  28854. padding: 0;
  28855. border-radius: 5px;
  28856. margin: 10px auto;
  28857. word-break: break-word;
  28858. }
  28859. .w_name {
  28860. margin-bottom: 10px;
  28861. }
  28862. .w_name span {
  28863. font-size: 16px;
  28864. }
  28865. .w_teachert {
  28866. width: 50px !important;
  28867. position: absolute;
  28868. height: auto !important;
  28869. z-index: 10;
  28870. right: 25px;
  28871. top: -25px;
  28872. }
  28873. /* .group_workBox {
  28874. } */
  28875. .group_workBox + .group_workBox {
  28876. margin-top: 20px;
  28877. }
  28878. .group_box {
  28879. padding-bottom: 20px;
  28880. border-bottom: 2px solid #f0f0f0;
  28881. margin-top: 10px;
  28882. }
  28883. .group_title {
  28884. display: flex;
  28885. align-items: center;
  28886. justify-content: space-between;
  28887. width: 95%;
  28888. }
  28889. .group_name {
  28890. background-image: url(../../assets/icon/groupN.png);
  28891. width: 220px;
  28892. background-size: 100% 100%;
  28893. height: 67px;
  28894. padding: 0 20px 0 43px;
  28895. box-sizing: border-box;
  28896. line-height: 63px;
  28897. color: #fff;
  28898. overflow: hidden;
  28899. white-space: nowrap;
  28900. text-overflow: ellipsis;
  28901. }
  28902. .group_work {
  28903. width: 100%;
  28904. padding: 0 10px;
  28905. box-sizing: border-box;
  28906. display: flex;
  28907. flex-wrap: wrap;
  28908. }
  28909. .g_d_box {
  28910. display: flex;
  28911. flex-flow: wrap;
  28912. justify-content: space-around;
  28913. }
  28914. .g_d_box .isChair {
  28915. background-image: url(../../assets/avatar.png) !important;
  28916. }
  28917. .g_d_group {
  28918. width: 500px;
  28919. margin-bottom: 80px;
  28920. }
  28921. .g_d_group_chair {
  28922. display: flex;
  28923. align-items: center;
  28924. justify-content: center;
  28925. }
  28926. .g_d_group_chair > div + div {
  28927. margin-left: 30px;
  28928. }
  28929. .g_d_group_chair > div,
  28930. .g_d_group_chair2 > div {
  28931. display: flex;
  28932. flex-direction: column;
  28933. align-items: center;
  28934. }
  28935. .g_d_group_chair > div > span:nth-child(1),
  28936. .g_d_group_chair2 > div > span:nth-child(1) {
  28937. background-image: url(../../assets/icon/chair.png);
  28938. width: 50px;
  28939. height: 50px;
  28940. display: block;
  28941. background-size: 100% 100%;
  28942. }
  28943. .g_d_group_tableBox {
  28944. display: flex;
  28945. align-items: center;
  28946. justify-content: center;
  28947. }
  28948. .g_d_group_chair2 {
  28949. display: flex;
  28950. flex-direction: column;
  28951. align-items: center;
  28952. justify-content: center;
  28953. }
  28954. .g_d_group_chair2 > div + div {
  28955. margin-top: 10px;
  28956. }
  28957. .g_d_group_table {
  28958. background-image: url(../../assets/icon/groupBg.png);
  28959. width: 354px;
  28960. height: 196px;
  28961. background-size: 100% 100%;
  28962. display: flex;
  28963. align-items: center;
  28964. justify-content: center;
  28965. flex-direction: column;
  28966. color: #fff;
  28967. }
  28968. .g_d_group_table > div:nth-child(1) {
  28969. font-size: 24px;
  28970. margin-bottom: 5px;
  28971. }
  28972. .g_d_group_table > div:nth-child(2) div {
  28973. cursor: pointer;
  28974. background: #2e77bf;
  28975. padding: 4px 10px;
  28976. border-radius: 5px;
  28977. }
  28978. .groupBox {
  28979. }
  28980. .groupContent + .groupContent {
  28981. margin-top: 30px;
  28982. }
  28983. .groupTitle {
  28984. font-size: 24px;
  28985. color: rgb(80, 80, 80);
  28986. margin-bottom: 20px;
  28987. }
  28988. .groupName {
  28989. display: flex;
  28990. align-items: center;
  28991. }
  28992. .groupn {
  28993. font-size: 15px;
  28994. margin-right: 10px;
  28995. }
  28996. .groupName + .groupName {
  28997. margin-top: 15px;
  28998. }
  28999. .groupBtn {
  29000. margin-left: 10px;
  29001. }
  29002. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  29003. text-align: left;
  29004. }
  29005. .g_d_btnBox {
  29006. display: flex;
  29007. justify-content: flex-end;
  29008. align-items: center;
  29009. margin-bottom: 20px;
  29010. }
  29011. .updateChair {
  29012. position: relative;
  29013. }
  29014. .updateChairBtn {
  29015. position: absolute;
  29016. width: 50px;
  29017. height: 50px;
  29018. overflow: hidden;
  29019. /* display: flex; */
  29020. align-items: center;
  29021. justify-content: center;
  29022. background: #00000087;
  29023. color: #fff;
  29024. border-radius: 50px;
  29025. display: none;
  29026. cursor: pointer;
  29027. }
  29028. .updateChair:hover .updateChairBtn {
  29029. display: flex;
  29030. }
  29031. .group_staic_box {
  29032. display: flex;
  29033. padding: 30px 40px 10px;
  29034. flex-wrap: wrap;
  29035. }
  29036. .group_staic {
  29037. /* width: 50%; */
  29038. margin-bottom: 20px;
  29039. display: flex;
  29040. align-items: center;
  29041. }
  29042. .group_staic span:nth-child(1) {
  29043. width: 150px;
  29044. text-align: right;
  29045. margin-right: 15px;
  29046. }
  29047. .group_staic span:nth-child(2) {
  29048. background: rgb(0 123 255);
  29049. color: #fff;
  29050. border-radius: 5px;
  29051. padding: 5px;
  29052. }
  29053. .codeFileBox {
  29054. height: 300px;
  29055. background: #fff;
  29056. display: flex;
  29057. align-items: center;
  29058. justify-content: center;
  29059. }
  29060. .codeFileBox img {
  29061. width: 200px;
  29062. margin: 0;
  29063. height: auto;
  29064. }
  29065. .codeFileBox div {
  29066. background: rgb(80, 142, 226);
  29067. color: #fff;
  29068. padding: 10px 20px;
  29069. border-radius: 25px;
  29070. cursor: pointer;
  29071. margin-left: 15px;
  29072. }
  29073. .radioBox {
  29074. display: flex;
  29075. flex-direction: column;
  29076. flex-wrap: nowrap;
  29077. align-items: flex-start;
  29078. }
  29079. .radioBox > div {
  29080. margin: 10px 0 0 10px;
  29081. }
  29082. /* .radioBox >>> .el-radio__input,
  29083. .radioBox >>> .el-checkbox__inner {
  29084. margin-left: 10px;
  29085. } */
  29086. .radioBox >>> .el-radio__label,
  29087. .radioBox >>> .el-checkbox__label {
  29088. display: flex;
  29089. align-items: center;
  29090. width: 100%;
  29091. }
  29092. .radioBox >>> .el-radio__label > span {
  29093. width: 100%;
  29094. display: -webkit-box;
  29095. overflow: hidden;
  29096. white-space: normal !important;
  29097. text-overflow: ellipsis;
  29098. word-wrap: break-word;
  29099. }
  29100. .inImg {
  29101. width: 100px;
  29102. cursor: pointer;
  29103. }
  29104. .inImg > img {
  29105. width: 100%;
  29106. height: 100%;
  29107. object-fit: cover;
  29108. }
  29109. .timuImgBox {
  29110. margin: 10px 0;
  29111. display: flex;
  29112. flex-direction: column;
  29113. flex-wrap: wrap;
  29114. align-items: flex-start;
  29115. }
  29116. .timuImg {
  29117. width: 150px;
  29118. margin: 5px 0;
  29119. cursor: pointer;
  29120. }
  29121. .timuImg > img {
  29122. width: 100%;
  29123. height: 100%;
  29124. object-fit: cover;
  29125. }
  29126. .worksTop {
  29127. display: flex;
  29128. flex-direction: row;
  29129. align-items: flex-end;
  29130. }
  29131. .worksTitle {
  29132. display: flex;
  29133. flex-direction: row;
  29134. flex-wrap: nowrap;
  29135. align-items: center;
  29136. }
  29137. .worksTitle::before,
  29138. .worksTop::before {
  29139. content: "";
  29140. display: block;
  29141. width: 3px;
  29142. height: 20px;
  29143. background: #0061ff;
  29144. border-radius: 3px;
  29145. margin: 0 5px 0 0;
  29146. }
  29147. .corOpen {
  29148. margin: 0 0 0 10px;
  29149. font-size: 14px;
  29150. cursor: pointer;
  29151. color: #505050;
  29152. }
  29153. .corOpen:hover {
  29154. color: #499eef;
  29155. }
  29156. .navCorOpenBox {
  29157. display: flex;
  29158. flex-direction: row;
  29159. align-items: center;
  29160. justify-content: space-between;
  29161. height: 55px;
  29162. background: #ffffff;
  29163. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  29164. border-radius: 8px 8px 0px 0px;
  29165. z-index: 9;
  29166. position: relative;
  29167. }
  29168. .navCorOpen {
  29169. padding-right: 15px;
  29170. cursor: pointer;
  29171. width: 45px;
  29172. display: flex;
  29173. }
  29174. .navCorOpen > img {
  29175. width: 100%;
  29176. height: 100%;
  29177. }
  29178. .mlImg {
  29179. width: 40px !important;
  29180. min-width: 40px;
  29181. cursor: pointer;
  29182. transform: rotate(180deg);
  29183. }
  29184. .mlImg > img {
  29185. width: 100%;
  29186. height: 100%;
  29187. }
  29188. .navLeftCss {
  29189. width: 100% !important;
  29190. left: 0 !important;
  29191. }
  29192. .isContentCss {
  29193. width: 100% !important;
  29194. }
  29195. .isAllWidth {
  29196. width: 100% !important;
  29197. }
  29198. .group_switch {
  29199. margin-right: 10px;
  29200. height: 30px;
  29201. display: flex;
  29202. align-items: center;
  29203. }
  29204. .group_switch > span {
  29205. margin-right: 5px;
  29206. }
  29207. .fileC_box {
  29208. padding-top: 15px;
  29209. }
  29210. .fileC_box > .fileC_title {
  29211. padding: 10px 5px 14px 10px;
  29212. border-top: 1px solid #cad1dc;
  29213. font-size: 14px;
  29214. font-weight: 400;
  29215. color: #cad1dc;
  29216. width: calc(100% - 20px);
  29217. margin: 0 auto;
  29218. box-sizing: border-box;
  29219. }
  29220. .pl_select_box {
  29221. height: 40px;
  29222. line-height: 40px;
  29223. width: 100%;
  29224. cursor: pointer;
  29225. padding: 0 20px;
  29226. box-sizing: border-box;
  29227. border-radius: 5px;
  29228. border: 1px solid #d6d6d6;
  29229. white-space: nowrap;
  29230. overflow: hidden;
  29231. text-overflow: ellipsis;
  29232. background: #fff;
  29233. text-align: left;
  29234. }
  29235. .newButton {
  29236. width: 102px;
  29237. height: 36px;
  29238. background: #e7ebf1;
  29239. border-radius: 4px;
  29240. color: #0e1e33;
  29241. font-weight: 400;
  29242. font-size: 14px;
  29243. border: none;
  29244. float: right;
  29245. margin-left: 10px;
  29246. }
  29247. .el-table >>> .even_row {
  29248. background-color: #f0f4fa;
  29249. }
  29250. .stageBoxCss,
  29251. .stageBoxIsCss {
  29252. display: flex;
  29253. flex-direction: row;
  29254. flex-wrap: nowrap;
  29255. align-items: center;
  29256. height: 50px;
  29257. border-bottom: 1px solid #e2f5fc;
  29258. cursor: pointer;
  29259. width: 100%;
  29260. }
  29261. .stageBoxIsCss {
  29262. background: #0061ff;
  29263. color: #fff;
  29264. border-radius: 8px;
  29265. }
  29266. .closeTri,
  29267. .closeTri1 {
  29268. min-width: 15px;
  29269. width: 15px;
  29270. height: 15px;
  29271. }
  29272. .closeTri1 {
  29273. padding-left: 10px;
  29274. cursor: pointer;
  29275. }
  29276. .closeTri > img,
  29277. .closeTri1 > img {
  29278. width: 100%;
  29279. height: 100%;
  29280. /* transition: all .5s; */
  29281. }
  29282. .noToolBlue {
  29283. min-width: 10px;
  29284. width: 10px;
  29285. height: 10px;
  29286. background: #0061ff;
  29287. border-radius: 50%;
  29288. margin-left: 13px;
  29289. }
  29290. .stageChild,
  29291. .toolChild {
  29292. height: 0;
  29293. overflow: hidden;
  29294. transition: all 0.5s;
  29295. }
  29296. /* .toolChild { */
  29297. /* margin: 0 0 0 17px;
  29298. padding: 0 0 0 20px;
  29299. border-left: 1px solid #d7d7d7; */
  29300. /* } */
  29301. .toolChild > div + div {
  29302. margin-top: 5px;
  29303. }
  29304. .gjCss {
  29305. display: flex;
  29306. flex-direction: row;
  29307. flex-wrap: nowrap;
  29308. align-items: center;
  29309. padding: 10px 0 10px 40px;
  29310. box-sizing: border-box;
  29311. font-size: 14px;
  29312. cursor: pointer;
  29313. border-radius: 5px;
  29314. }
  29315. .toolChild > div {
  29316. position: relative;
  29317. width: 100%;
  29318. }
  29319. /* .toolChild > div::before { */
  29320. /* content: "";
  29321. width: 15px;
  29322. height: 1px;
  29323. background: #cad1dc;
  29324. position: absolute;
  29325. top: 24px;
  29326. left: -20px;
  29327. display: block; */
  29328. /* } */
  29329. .isGjCss {
  29330. /* color: #0061ff; */
  29331. color: #fff;
  29332. background: rgb(55, 129, 252);
  29333. /* background-color: #e0eafb !important;
  29334. color: #0061ff !important; */
  29335. }
  29336. .navItem {
  29337. background: #ffffff;
  29338. border-radius: 4px;
  29339. width: 100%;
  29340. margin: 10px auto;
  29341. position: relative;
  29342. height: 40px;
  29343. display: flex;
  29344. flex-direction: row;
  29345. flex-wrap: nowrap;
  29346. align-items: center;
  29347. }
  29348. .navItemList {
  29349. display: flex;
  29350. flex-direction: row;
  29351. flex-wrap: nowrap;
  29352. align-items: center;
  29353. padding: 0 13px;
  29354. cursor: pointer;
  29355. width: calc(100% - 60px);
  29356. height: 100%;
  29357. }
  29358. .navItemList > div:first-child {
  29359. min-width: 60px;
  29360. }
  29361. .navItemList > div:last-child {
  29362. width: calc(100% - 80px);
  29363. white-space: nowrap;
  29364. overflow: hidden;
  29365. text-overflow: ellipsis;
  29366. word-break: break-word;
  29367. }
  29368. /* .isItemList > div {
  29369. color: #fff !important;
  29370. } */
  29371. .tool_work_box {
  29372. width: 100%;
  29373. padding: 0 37px 0;
  29374. box-sizing: border-box;
  29375. }
  29376. .tool_box {
  29377. width: 100%;
  29378. padding: 0 0 0 20px;
  29379. }
  29380. .tool_type_box {
  29381. display: flex;
  29382. flex-direction: row;
  29383. align-items: baseline;
  29384. flex-wrap: nowrap;
  29385. justify-content: flex-start;
  29386. position: relative;
  29387. }
  29388. .toolSort {
  29389. display: flex;
  29390. flex-direction: row;
  29391. flex-wrap: wrap;
  29392. justify-content: flex-start;
  29393. align-items: flex-start;
  29394. padding: 0 0 15px 0;
  29395. }
  29396. .toolSort > div {
  29397. margin: 0 10px 0 0;
  29398. width: 135px;
  29399. box-sizing: border-box;
  29400. border: 2px solid transparent;
  29401. }
  29402. .tools {
  29403. width: 100%;
  29404. display: flex;
  29405. flex-direction: column;
  29406. flex-wrap: nowrap;
  29407. align-items: flex-start;
  29408. }
  29409. .whiteBIcon {
  29410. width: fit-content;
  29411. cursor: pointer;
  29412. display: flex;
  29413. flex-direction: column;
  29414. flex-wrap: nowrap;
  29415. align-items: center;
  29416. font-size: 14px;
  29417. }
  29418. .tool:hover {
  29419. border: 2px solid #a5c7ff;
  29420. border-radius: 5px;
  29421. }
  29422. .whiteBIcon > img {
  29423. width: 65px;
  29424. height: 100%;
  29425. }
  29426. .whiteBIcon > img {
  29427. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29428. border-radius: 15px;
  29429. }
  29430. .check {
  29431. /* width: 20px;
  29432. height: 20px; */
  29433. cursor: pointer;
  29434. margin: 10px 0;
  29435. position: absolute;
  29436. right: 2px;
  29437. top: -5px;
  29438. }
  29439. .noChoose,
  29440. .isChoose {
  29441. width: 15px;
  29442. height: 15px;
  29443. border-radius: 50%;
  29444. border: 1px solid #adadad;
  29445. }
  29446. .isChoose {
  29447. border: 4px solid #0363ff !important;
  29448. width: 10px;
  29449. height: 10px;
  29450. }
  29451. .isToolChoose {
  29452. border: 2px solid #5394ff !important;
  29453. border-radius: 5px;
  29454. box-shadow: 0 0 6px 0px #5394ff;
  29455. }
  29456. .checkDiv {
  29457. display: flex;
  29458. align-items: center;
  29459. }
  29460. .checkDiv span {
  29461. margin-left: 5px;
  29462. color: #858585;
  29463. }
  29464. .check img {
  29465. width: 20px;
  29466. height: 20px;
  29467. }
  29468. .lockTaskIcon {
  29469. width: 20px;
  29470. height: 20px;
  29471. position: absolute;
  29472. right: 10px;
  29473. top: 10px;
  29474. }
  29475. .lockTaskIcon > img {
  29476. width: 100%;
  29477. height: 100%;
  29478. }
  29479. .pick_box {
  29480. display: flex;
  29481. align-items: flex-start;
  29482. flex-wrap: wrap;
  29483. }
  29484. .selectBox {
  29485. width: 110px;
  29486. margin-left: 10px;
  29487. margin: 0 10px 0 auto;
  29488. }
  29489. .selectBox >>> .el-input__inner {
  29490. height: 30px;
  29491. line-height: 30px;
  29492. }
  29493. .selectBox >>> .el-input__icon {
  29494. line-height: 30px;
  29495. }
  29496. .sentenceTitle {
  29497. display: flex;
  29498. flex-direction: row;
  29499. flex-wrap: nowrap;
  29500. align-items: center;
  29501. }
  29502. .sentenceTitle::before {
  29503. content: attr(index);
  29504. background: #3681fc;
  29505. border-radius: 50%;
  29506. color: #fff;
  29507. width: 25px;
  29508. height: 25px;
  29509. min-width: 25px;
  29510. min-height: 25px;
  29511. text-align: center;
  29512. line-height: 25px;
  29513. margin-right: 5px;
  29514. }
  29515. .hfBox {
  29516. padding: 10px;
  29517. box-sizing: border-box;
  29518. }
  29519. .whoReplyWho {
  29520. display: flex;
  29521. flex-direction: row;
  29522. flex-wrap: nowrap;
  29523. align-items: baseline;
  29524. justify-content: flex-start;
  29525. }
  29526. .hfBottom {
  29527. display: flex;
  29528. flex-direction: row;
  29529. flex-wrap: nowrap;
  29530. align-items: center;
  29531. justify-content: space-between;
  29532. font-size: 14px;
  29533. }
  29534. .deleteHfItem {
  29535. cursor: pointer;
  29536. width: 20px;
  29537. height: 20px;
  29538. }
  29539. .deleteHfItem > img {
  29540. width: 100%;
  29541. height: 100%;
  29542. }
  29543. .whoReplyWho > .hfImg {
  29544. width: 12px;
  29545. height: 12px;
  29546. margin: 0 5px;
  29547. }
  29548. .whoReplyWho > .hfImg > img {
  29549. width: 100%;
  29550. height: 100%;
  29551. }
  29552. .hfContent {
  29553. padding-top: 10px;
  29554. box-sizing: border-box;
  29555. display: -webkit-box;
  29556. overflow: hidden;
  29557. white-space: normal !important;
  29558. text-overflow: ellipsis;
  29559. word-wrap: break-word;
  29560. -webkit-box-orient: vertical;
  29561. }
  29562. .hfTime {
  29563. text-align: left;
  29564. box-sizing: border-box;
  29565. padding: 10px 0 10px 0px;
  29566. color: #bfbfbf;
  29567. font-size: 14px;
  29568. }
  29569. .btnAllNT {
  29570. position: fixed;
  29571. bottom: 100px;
  29572. right: 40px;
  29573. z-index: 999;
  29574. display: flex;
  29575. flex-direction: row;
  29576. }
  29577. .btnAllNT > img {
  29578. cursor: pointer;
  29579. width: 80px;
  29580. }
  29581. .toolMask {
  29582. position: fixed;
  29583. width: 100%;
  29584. height: 100%;
  29585. background: #3f3c3c;
  29586. opacity: 0.5;
  29587. top: 0;
  29588. left: 0;
  29589. z-index: 999;
  29590. }
  29591. .addToolCss {
  29592. position: fixed;
  29593. z-index: 999;
  29594. background: #fff;
  29595. right: 5%;
  29596. bottom: 18%;
  29597. min-width: 1035px;
  29598. min-height: 300px;
  29599. border-radius: 10px;
  29600. box-shadow: 0 0 8px 1px #b2b2b2;
  29601. }
  29602. .toolTop {
  29603. display: flex;
  29604. flex-direction: row;
  29605. flex-wrap: nowrap;
  29606. justify-content: space-between;
  29607. align-items: center;
  29608. padding: 20px;
  29609. }
  29610. .toolTop > div:nth-child(2) {
  29611. width: 15px;
  29612. height: 15px;
  29613. padding-right: 10px;
  29614. cursor: pointer;
  29615. }
  29616. .toolTop > div:nth-child(2) > img {
  29617. width: 100%;
  29618. height: 100%;
  29619. }
  29620. .fullStyle >>> .el-dialog__body {
  29621. height: calc(100% - 125px) !important;
  29622. box-sizing: border-box;
  29623. padding: 30px 0 !important;
  29624. background: #fff !important;
  29625. }
  29626. .fullStyle >>> .el-dialog {
  29627. width: 100% !important;
  29628. max-width: 100% !important;
  29629. height: 100% !important;
  29630. margin: 0 !important;
  29631. }
  29632. .fullStyle {
  29633. width: 100% !important;
  29634. max-width: 100% !important;
  29635. height: 100% !important;
  29636. margin: 0 auto !important;
  29637. }
  29638. .fullStyle >>> .el-dialog__footer {
  29639. background: #fff !important;
  29640. }
  29641. .engUpBox {
  29642. width: 100%;
  29643. height: 100%;
  29644. }
  29645. .engTitle,
  29646. .engText {
  29647. display: flex;
  29648. flex-direction: row;
  29649. flex-wrap: nowrap;
  29650. align-items: flex-start;
  29651. padding: 0 20px 20px 20px;
  29652. box-sizing: border-box;
  29653. }
  29654. .engTitle > .div:first-child,
  29655. .engText > div:first-child {
  29656. min-width: 75px;
  29657. }
  29658. .correctBox {
  29659. width: 100%;
  29660. display: flex;
  29661. flex-direction: row;
  29662. flex-wrap: nowrap;
  29663. align-items: flex-start;
  29664. }
  29665. .oldBox {
  29666. width: 50%;
  29667. height: 100%;
  29668. display: flex;
  29669. flex-direction: column;
  29670. flex-wrap: nowrap;
  29671. align-items: center;
  29672. border-top: 1px solid #d9d9d9;
  29673. border-left: 1px solid #d9d9d9;
  29674. border-right: 1px solid #d9d9d9;
  29675. }
  29676. .oldBox > div:first-child {
  29677. width: 100%;
  29678. text-align: center;
  29679. background: #d9d9d9;
  29680. height: 35px;
  29681. line-height: 35px;
  29682. font-weight: bold;
  29683. }
  29684. .oldText {
  29685. width: 100%;
  29686. height: calc(100% - 35px);
  29687. overflow: auto;
  29688. margin: 10px 0;
  29689. display: flex;
  29690. flex-direction: column;
  29691. flex-wrap: nowrap;
  29692. align-content: center;
  29693. align-items: center;
  29694. }
  29695. .detailBox {
  29696. width: 50%;
  29697. padding: 10px;
  29698. background: #f6f6f6;
  29699. border-radius: 5px;
  29700. }
  29701. .oldDetail,
  29702. .oldDetail1 {
  29703. padding-bottom: 30px;
  29704. }
  29705. .oldImg {
  29706. width: 30px;
  29707. height: 30px;
  29708. }
  29709. .oldImg > img {
  29710. width: 100%;
  29711. height: 100%;
  29712. }
  29713. .allName {
  29714. min-width: 200px;
  29715. white-space: nowrap;
  29716. overflow: hidden;
  29717. text-overflow: ellipsis;
  29718. word-break: break-word;
  29719. cursor: pointer;
  29720. text-align: center;
  29721. border: 1px solid #bcc2cc;
  29722. box-sizing: border-box;
  29723. }
  29724. .engUpTop {
  29725. max-height: 300px;
  29726. overflow: auto;
  29727. }
  29728. .isUpdateToolDetailClass {
  29729. padding: 0 !important;
  29730. }
  29731. .isUpdateToolDetailClass textarea {
  29732. padding: 12px;
  29733. font-size: 16px;
  29734. min-height: 100%;
  29735. width: 100%;
  29736. box-sizing: border-box;
  29737. outline: none;
  29738. border: none;
  29739. line-height: 30px;
  29740. resize: none;
  29741. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  29742. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29743. color: #838383;
  29744. }
  29745. .show_taskD {
  29746. min-width: fit-content;
  29747. margin-left: 10px;
  29748. display: flex;
  29749. align-items: center;
  29750. font-size: 14px;
  29751. cursor: pointer;
  29752. color: #717c8d;
  29753. }
  29754. .show_taskD > img {
  29755. width: 15px;
  29756. margin-right: 5px;
  29757. transition: 0.2s all;
  29758. transform: rotate(-90deg);
  29759. }
  29760. .show_taskD.show > img {
  29761. transform: rotate(0deg);
  29762. }
  29763. .correctCss {
  29764. position: absolute;
  29765. bottom: -70px;
  29766. background: #409eff;
  29767. color: #fff;
  29768. }
  29769. .ScoreBtn {
  29770. background: rgba(87, 159, 248, 1);
  29771. display: flex;
  29772. justify-content: center;
  29773. align-items: center;
  29774. color: #fff;
  29775. font-size: 14px;
  29776. padding: 8px 12px;
  29777. border-radius: 5px;
  29778. cursor: pointer;
  29779. }
  29780. .max-height-popover .el-popover {
  29781. min-height: 200px;
  29782. max-height: 400px; /* 设置最大高度 */
  29783. overflow: auto; /* 超出部分显示滚动条 */
  29784. }
  29785. .blueRootCss {
  29786. display: block;
  29787. margin-right: 5px;
  29788. }
  29789. .stuLookScore {
  29790. position: absolute;
  29791. top: 12px;
  29792. right: 40px;
  29793. background: #0000008f;
  29794. border-radius: 5px;
  29795. padding: 3px 5px;
  29796. font-size: 14px;
  29797. color: #fff;
  29798. cursor: pointer;
  29799. }
  29800. div::-webkit-scrollbar {
  29801. width: 10px;
  29802. height: 6px;
  29803. }
  29804. .Ovh{
  29805. margin: 5px 0;
  29806. width: 4em;
  29807. -webkit-line-clamp: 2;
  29808. display: -webkit-box;
  29809. -webkit-box-orient: vertical;
  29810. overflow: hidden;
  29811. text-overflow: ellipsis;
  29812. }
  29813. </style>