studyStudent.vue 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220
  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}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  262. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  263. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 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) && (tType == 1 || (tType == 2 && IsStulook))
  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. class="renderedFor"
  509. >
  510. <div
  511. style="
  512. padding: 15px 0;
  513. line-height: 29px;
  514. font-size: 18px;
  515. color: #0e1e33;
  516. "
  517. class="cont"
  518. v-if="
  519. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  520. .taskDetail != ''
  521. "
  522. v-html="
  523. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  524. .taskDetail
  525. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  526. taskCount
  527. ].taskDetail)
  528. : '暂无描述'
  529. "
  530. ></div>
  531. </div>
  532. </div>
  533. <div
  534. class="student_head"
  535. v-if="
  536. vChapterData[taskCount].length > 0 ||
  537. fileC[taskCount].length > 0
  538. "
  539. >
  540. <div
  541. class="vedioTaskBox"
  542. v-loading="downLoading || showType == 7"
  543. >
  544. <div
  545. :class="
  546. contentDialog == false
  547. ? 'box_course isContentCss'
  548. : 'box_course'
  549. "
  550. v-if="
  551. vChapterData.length > 0 &&
  552. vChapterData[taskCount] &&
  553. showType !== ''
  554. "
  555. >
  556. <div class="wheel" style="height: auto" v-if="showType === 0">
  557. <div
  558. class="workd_media"
  559. style="height: 650px; width: calc(100% - 50px)"
  560. >
  561. <video-player
  562. class="video-player vjs-custom-skin notop"
  563. :class="contentDialog == false ? 'isAllWidth' : ''"
  564. :playsinline="true"
  565. :options="playerO[taskCount]"
  566. @play="onPlayerPlay($event)"
  567. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  568. ></video-player>
  569. </div>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-if="showType == 1"
  574. style="
  575. box-shadow: 0 0 6px 1px #f2f2f2;
  576. width: 95%;
  577. margin: 0 auto;
  578. background: #f1f1f1;
  579. "
  580. >
  581. <div class="title">查看文档</div>
  582. <el-form class="textBox">
  583. <el-form-item class="textTitle">
  584. <div style="font-size: 22px">
  585. {{ text.name }}
  586. </div>
  587. </el-form-item>
  588. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  589. <div v-html="text.url" class="textContent cont"></div>
  590. </el-form>
  591. </div>
  592. <div
  593. class="wheel"
  594. v-if="
  595. pptImgUrl1.indexOf(
  596. 'https://view.officeapps.live.com/op/view.aspx?src='
  597. ) != -1 && showType == 2
  598. "
  599. style="width: 95%; margin: 0 auto"
  600. >
  601. <iframe
  602. style="width: 100%; height: 100%; border: none"
  603. :src="pptImgUrl1"
  604. ></iframe>
  605. </div>
  606. <div
  607. class="wheel"
  608. v-else-if="showType == 2"
  609. style="width: 95%; margin: 0 auto"
  610. >
  611. <iframe
  612. style="width: 100%; height: 100%; border: none"
  613. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  614. :key="diffKey"
  615. v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
  616. :src="pptImgUrl1"
  617. ></iframe>
  618. <iframe
  619. style="width: 100%; height: 100%; border: none"
  620. security="restricted"
  621. v-else
  622. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  623. :src="pptImgUrl1"
  624. ></iframe>
  625. </div>
  626. <div
  627. class="wheel"
  628. v-if="showType === 16"
  629. style="width: 95%; margin: 0 auto"
  630. >
  631. <iframe
  632. style="width: 100%; height: 100%; border: none"
  633. :src="pptImgUrl1"
  634. ></iframe>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType == 3"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <pdf
  642. :pdfUrl="pptImgUrl1"
  643. style="width: 100%; height: 100%; overflow: auto"
  644. ></pdf>
  645. </div>
  646. <div
  647. class="wheel"
  648. v-if="showType == 4"
  649. style="width: 95%; margin: 0 auto"
  650. >
  651. <el-image
  652. :src="pptImgUrl1"
  653. fit="contain"
  654. style="width: 100%; height: 100%; cursor: pointer"
  655. @click="previewImg(pptImgUrl1)"
  656. ></el-image>
  657. </div>
  658. </div>
  659. <div
  660. class="pButton"
  661. style="position: absolute; right: 20px; top: 0; z-index: 998"
  662. v-if="!contentDialog"
  663. @click="setContent(true)"
  664. >
  665. <!-- 批 -->
  666. <img
  667. src="../../assets/icon/newIcons/isLeft.png"
  668. style="width: 45px"
  669. alt=""
  670. />
  671. </div>
  672. <div
  673. v-if="contentDialog == true"
  674. :style="{
  675. width:
  676. (vChapterData[taskCount].length > 0 ||
  677. fileC[taskCount].length > 0) &&
  678. showType === ''
  679. ? 'calc(100%)'
  680. : '300px',
  681. margin:
  682. (vChapterData[taskCount].length > 0 ||
  683. fileC[taskCount].length > 0) &&
  684. showType === ''
  685. ? '0 15px'
  686. : '0 15px 0 0'
  687. }"
  688. >
  689. <div
  690. class="vedioList"
  691. v-if="
  692. vChapterData[taskCount].length > 0 ||
  693. fileC[taskCount].length > 0
  694. "
  695. style="height: 650px"
  696. >
  697. <div class="navCorOpenBox">
  698. <div class="navTitile">内容列表:</div>
  699. <div class="navCorOpen" @click="setContent(false)">
  700. <img
  701. src="../../assets/icon/newIcons/isRight.png"
  702. alt=""
  703. />
  704. </div>
  705. </div>
  706. <div class="navBox">
  707. <div
  708. v-show="
  709. vChapterData[taskCount].length > 0 ||
  710. fileC[taskCount].length > 0
  711. "
  712. style="padding: 10px 0 25px 0"
  713. >
  714. <div
  715. class="vedioTimeBox"
  716. v-for="(vitem, vindex) in vChapterData[taskCount]"
  717. :key="vindex + '1'"
  718. >
  719. <div class="navListItem" v-if="vitem.type == 2">
  720. <div
  721. @click="lookVedio(vitem.url, vindex)"
  722. class="navText"
  723. :class="isClickNav == vindex ? 'isClickNav' : ''"
  724. >
  725. <span v-if="vitem.text">{{ vitem.text }}-</span
  726. >{{ vitem.name }}
  727. </div>
  728. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  729. <img
  730. src="../../assets/icon/newIcon/down.png"
  731. alt
  732. />
  733. </div> -->
  734. </div>
  735. <div class="navListItem" v-if="vitem.type == 6">
  736. <div
  737. @click="lookText(taskCount, vindex)"
  738. class="navText"
  739. :class="isClickNav == vindex ? 'isClickNav' : ''"
  740. >
  741. {{ vitem.name }}.doc
  742. </div>
  743. <div
  744. class="downIcon"
  745. @click="checkFileFull1(vitem.type, vitem)"
  746. >
  747. <img
  748. src="../../assets/icon/newIcon/allScreen.png"
  749. alt
  750. />
  751. </div>
  752. </div>
  753. <div
  754. class="navListItem"
  755. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  756. >
  757. <div
  758. @click="doUrl(vitem.url, vindex)"
  759. class="navText"
  760. :class="isClickNav == vindex ? 'isClickNav' : ''"
  761. >
  762. {{ vitem.title ? vitem.title : vitem.url }}
  763. </div>
  764. <div
  765. class="downIcon"
  766. @click="checkFileFull1(vitem.type, vitem)"
  767. >
  768. <img
  769. src="../../assets/icon/newIcon/allScreen.png"
  770. alt
  771. />
  772. </div>
  773. </div>
  774. <div class="navListItem" v-if="vitem.type == 3">
  775. <div
  776. @click="downFile(vitem, vindex)"
  777. class="navText"
  778. :class="isClickNav == vindex ? 'isClickNav' : ''"
  779. >
  780. <span v-if="vitem.text">{{ vitem.text }}-</span
  781. >{{ vitem.name }}
  782. </div>
  783. <div
  784. class="downIcon"
  785. @click="checkFileFull1(vitem.type, vitem)"
  786. >
  787. <img
  788. src="../../assets/icon/newIcon/allScreen.png"
  789. alt
  790. />
  791. </div>
  792. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  793. <img
  794. src="../../assets/icon/newIcon/down.png"
  795. alt
  796. />
  797. </div> -->
  798. </div>
  799. <div class="navListItem" v-if="vitem.type == 12">
  800. <div class="navText" @click="downloadFile2(vitem)">
  801. <span v-if="vitem.text">{{ vitem.text }}-</span
  802. >{{ vitem.name }}
  803. </div>
  804. <div
  805. class="downIcon"
  806. @click="checkFileFull1(vitem.type, vitem)"
  807. >
  808. <img
  809. src="../../assets/icon/newIcon/allScreen.png"
  810. alt
  811. />
  812. </div>
  813. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  814. <img
  815. src="../../assets/icon/newIcon/down.png"
  816. alt
  817. />
  818. </div> -->
  819. </div>
  820. <div class="navListItem" v-if="vitem.type == 13">
  821. <div
  822. class="navText"
  823. @click="checkPhoto(vitem, vindex)"
  824. :class="isClickNav == vindex ? 'isClickNav' : ''"
  825. >
  826. {{ vitem.name }}
  827. </div>
  828. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  829. <img
  830. src="../../assets/icon/newIcon/down.png"
  831. alt
  832. />
  833. </div> -->
  834. </div>
  835. <div class="navListItem" v-if="vitem.type == 16">
  836. <div
  837. class="navText"
  838. @click="checkHtml(vitem, vindex)"
  839. :class="isClickNav == vindex ? 'isClickNav' : ''"
  840. >
  841. {{ vitem.name }}
  842. </div>
  843. <div
  844. class="downIcon"
  845. @click="checkFileFull1(vitem.type, vitem)"
  846. >
  847. <img
  848. src="../../assets/icon/newIcon/allScreen.png"
  849. alt
  850. />
  851. </div>
  852. </div>
  853. <div class="navListItem" v-if="vitem.type == 17">
  854. <div
  855. class="navText"
  856. @click="checkHtml(vitem, vindex)"
  857. :class="isClickNav == vindex ? 'isClickNav' : ''"
  858. >
  859. {{ vitem.name }}
  860. </div>
  861. <div
  862. class="downIcon"
  863. @click="checkFileFull1(vitem.type, vitem)"
  864. >
  865. <img
  866. src="../../assets/icon/newIcon/allScreen.png"
  867. alt
  868. />
  869. </div>
  870. </div>
  871. </div>
  872. <div
  873. class="fileC_box"
  874. v-if="fileC[taskCount].length > 0"
  875. >
  876. <div class="fileC_title">以下文件不支持预览</div>
  877. <div
  878. class="vedioTimeBox"
  879. v-for="(vitem, vindex) in fileC[taskCount]"
  880. :key="vindex + '1'"
  881. >
  882. <div class="navListItem" v-if="vitem.type == 12">
  883. <div class="navText" style="color: #acb4bf">
  884. <span v-if="vitem.text">{{ vitem.text }}-</span
  885. >{{ vitem.name }}
  886. </div>
  887. <!-- <div
  888. class="downIcon"
  889. @click="downloadFile2(vitem)"
  890. >
  891. <img
  892. src="../../assets/icon/newIcon/down.png"
  893. alt
  894. />
  895. </div> -->
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. <div style="width: calc(100% - 315px)">
  905. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  906. <!-- <el-button
  907. type="primary"
  908. class="newButton"
  909. @click="checkFileFull(showType, pptImgUrl1)"
  910. >全屏查看</el-button
  911. >
  912. <el-button
  913. type="primary"
  914. class="newButton"
  915. @click="downloadFile(pptImgUrl1)"
  916. v-if="showType != 2"
  917. >文件下载</el-button
  918. > -->
  919. <el-button
  920. class="newButton"
  921. v-if="
  922. showType == 2 &&
  923. pptImgUrl1.indexOf(
  924. 'https://view.officeapps.live.com/op/view.aspx?src='
  925. ) == -1
  926. "
  927. type="primary"
  928. @click="openLine(pptImgUrl1)"
  929. >打开链接
  930. </el-button>
  931. </div>
  932. <!-- <div
  933. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  934. v-if="showType == 1"
  935. >
  936. <el-button
  937. type="primary"
  938. class="newButton"
  939. @click="checkFileFull(showType, text)"
  940. >全屏查看</el-button
  941. >
  942. </div> -->
  943. </div>
  944. </div>
  945. </div>
  946. <div class="student_body" v-resize="resize">
  947. <div
  948. class="vedioBox"
  949. :style="{
  950. borderRadius:
  951. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  952. .taskDetail == '' &&
  953. vChapterData[taskCount].length == 0 &&
  954. fileC[taskCount].length == 0
  955. ? '0 0 20px 20px'
  956. : '20px'
  957. }"
  958. v-if="
  959. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  960. .toolChoose[0].tool &&
  961. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  962. .toolChoose[0].tool.length > 0
  963. "
  964. >
  965. <div
  966. class="toolHeng2"
  967. style="position: relative"
  968. v-if="
  969. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  970. .toolChoose[0].tool &&
  971. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  972. .toolChoose[0].tool.length &&
  973. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  974. .toolChoose[0].tool.length > 0
  975. "
  976. >
  977. <div class="workNav">工作区</div>
  978. <div
  979. class="filebox"
  980. style="flex-wrap: nowrap"
  981. v-for="(tool, toolIndex) in chapInfoList[courseType]
  982. .chapterInfo[0].taskJson[taskCount].toolChoose"
  983. :key="toolIndex"
  984. >
  985. <div class="bzBox">
  986. <div class="yCss"></div>
  987. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  988. 工具{{ toolIndex + 1 }}
  989. </div>
  990. <div
  991. v-if="timeWorkList[toolIndex].length > 0"
  992. style="margin: 0 0 0 10px"
  993. >
  994. {{
  995. timeWorkList[toolIndex][0].time
  996. ? "时间:" + timeWorkList[toolIndex][0].time
  997. : ""
  998. }}
  999. </div>
  1000. </div>
  1001. <div class="toolBox">
  1002. <div>
  1003. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1004. :key="indexTool"-->
  1005. <!-- <div class="iframeBox">
  1006. <div
  1007. class="addPoint isBorder"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1012. <div
  1013. class="iframeName"
  1014. >
  1015. 电子白板
  1016. </div>
  1017. <iframe
  1018. src="https://iwb.cocorobo.cn/"
  1019. ref="whiteBoard"
  1020. ></iframe>
  1021. </div>
  1022. </div>
  1023. </div>-->
  1024. <div class="noiframeBox">
  1025. <div
  1026. class="addPoint"
  1027. v-for="(tooC, toolCIndex) in tool.tool"
  1028. :key="toolCIndex"
  1029. >
  1030. <div v-if="tooC == 1">
  1031. <img
  1032. src="../../assets/icon/secondToolList/whiteBoard.png"
  1033. alt
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. />
  1036. <div style="margin: 5px 0">电子白板</div>
  1037. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1038. style="position: absolute;right: 33px;top: -30px;">
  1039. 分析
  1040. </div>
  1041. </div>
  1042. <div v-if="tooC == 3">
  1043. <img
  1044. src="../../assets/icon/secondToolList/mindMapping.png"
  1045. alt
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. />
  1048. <div style="margin: 5px 0">思维导图</div>
  1049. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1050. style="position: absolute;right: 33px;top: -30px;">
  1051. 分析
  1052. </div>
  1053. </div>
  1054. <div v-if="tooC == 6">
  1055. <img
  1056. src="../../assets/icon/secondToolList/doc.png"
  1057. alt
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. />
  1060. <div style="margin: 5px 0">协同文档</div>
  1061. </div>
  1062. <div v-if="tooC == 7">
  1063. <img
  1064. src="../../assets/icon/secondToolList/mindNetwork.png"
  1065. alt
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. />
  1068. <div style="margin: 5px 0">思维网格</div>
  1069. <!-- && worksStudent[toolIndex].length>0 -->
  1070. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1071. style="position: absolute;right: 33px;top: -30px;">
  1072. 分析
  1073. </div>
  1074. </div>
  1075. <div v-if="tooC == 8">
  1076. <img
  1077. src="../../assets/icon/secondToolList/library.png"
  1078. alt
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. />
  1081. <div style="margin: 5px 0">素材库</div>
  1082. </div>
  1083. <div v-if="tooC == 17">
  1084. <img
  1085. src="../../assets/icon/secondToolList/library.png"
  1086. alt
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. />
  1089. <div style="margin: 5px 0">学习资料</div>
  1090. </div>
  1091. <div v-if="tooC == 2">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../../assets/icon/secondToolList/note.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">便签</div>
  1098. </div>
  1099. <div v-if="tooC == 4">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../../assets/icon/thirdToolList/ask.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">问卷调查</div>
  1106. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1107. style="position: absolute;right: 153px;top: -30px;">
  1108. 分析
  1109. </div>
  1110. <div
  1111. class="upload_toolBtn"
  1112. v-if="tType === '1'"
  1113. @click="
  1114. openStatisticalAnalysis(
  1115. tooC,
  1116. toolIndex,
  1117. taskCount,
  1118. 45
  1119. )
  1120. "
  1121. style="position: absolute;right: 33px;top: -30px;"
  1122. >
  1123. 统计分析
  1124. </div>
  1125. </div>
  1126. <div v-if="tooC == 45">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../../assets/icon/thirdToolList/choose.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">选择题</div>
  1133. <div
  1134. class="upload_toolBtn"
  1135. v-if="tType == 1"
  1136. @click="
  1137. openChoseWorksDetailDialog(
  1138. tooC,
  1139. toolIndex,
  1140. taskCount,
  1141. 45
  1142. )
  1143. "
  1144. style="position: absolute;right: 33px;top: -30px;"
  1145. >
  1146. 分析
  1147. </div>
  1148. </div>
  1149. <!-- <div v-if="tooC == 5">
  1150. <img
  1151. @click="addTools(tooC, toolIndex, taskCount)"
  1152. src="../../assets/icon/thirdToolList/score.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">量规评分</div>
  1156. </div> -->
  1157. <div v-if="tooC == 10">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/thirdToolList/time.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">倒计时</div>
  1164. </div>
  1165. <div v-if="tooC == 15">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/answer.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">问答</div>
  1172. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1173. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1174. 分析
  1175. </div>
  1176. </div>
  1177. <div v-if="tooC == 26">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../../assets/icon/thirdToolList/courseDesign.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">课程设计</div>
  1184. </div>
  1185. <div v-if="tooC == 18">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">训练服务器</div>
  1192. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1193. style="position: absolute;right: 33px;top: -30px;">
  1194. 分析
  1195. </div>
  1196. </div>
  1197. <div v-if="tooC == 16">
  1198. <img
  1199. @click="addTools(tooC, toolIndex, taskCount)"
  1200. src="../../assets/icon/thirdToolList/work.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">作业提交</div>
  1204. </div>
  1205. <div v-if="tooC == 50">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/thirdToolList/plwork.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">批量上传</div>
  1212. </div>
  1213. <div v-if="tooC == 21">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/fourthToolList/program.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">AIoT Blockly</div>
  1220. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1221. style="position: absolute;right: 33px;top: -30px;">
  1222. 分析
  1223. </div>
  1224. </div>
  1225. <!-- <div v-if="tooC == 22">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../../assets/icon/fourthToolList/program.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">AI体验</div>
  1232. </div> -->
  1233. <div v-if="tooC == 23">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">AI Python</div>
  1240. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1241. style="position: absolute;right: 33px;top: -30px;">
  1242. 分析
  1243. </div>
  1244. </div>
  1245. <div v-if="tooC == 24">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../../assets/icon/fourthToolList/AIprogram.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">AI Blockly</div>
  1252. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1253. style="position: absolute;right: 33px;top: -30px;">
  1254. 分析
  1255. </div>
  1256. </div>
  1257. <div v-if="tooC == 25">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../../assets/icon/thirdToolList/evalua.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">目标管理</div>
  1264. </div>
  1265. <div v-if="tooC == 31">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../../assets/icon/secondToolList/networkPanel.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">数学画板</div>
  1272. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1273. style="position: absolute;right: 33px;top: -30px;">
  1274. 分析
  1275. </div>
  1276. </div>
  1277. <div v-if="tooC == 28">
  1278. <img
  1279. @click="addTools(tooC, toolIndex, taskCount)"
  1280. src="../../assets/icon/secondToolList/translation.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">翻译</div>
  1284. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1285. style="position: absolute;right: 33px;top: -30px;">
  1286. 分析
  1287. </div>
  1288. </div>
  1289. <div v-if="tooC == 37">
  1290. <img
  1291. @click="addTools(tooC, toolIndex, taskCount)"
  1292. src="../../assets/icon/secondToolList/mohe.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">魔盒识字</div>
  1296. </div>
  1297. <div v-if="tooC == 38">
  1298. <img
  1299. @click="addTools(tooC, toolIndex, taskCount)"
  1300. src="../../assets/icon/secondToolList/24game.png"
  1301. alt
  1302. />
  1303. <div style="margin: 5px 0">24点</div>
  1304. </div>
  1305. <div v-if="tooC == 39">
  1306. <img
  1307. @click="addTools(tooC, toolIndex, taskCount)"
  1308. src="../../assets/icon/secondToolList/GeoGebra.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">GeoGebra</div>
  1312. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1313. style="position: absolute;right: 33px;top: -30px;">
  1314. 分析
  1315. </div>
  1316. </div>
  1317. <div v-if="tooC == 32">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../../assets/icon/thirdToolList/code.png"
  1321. alt
  1322. />
  1323. <div style="margin: 5px 0">源码编辑</div>
  1324. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1325. style="position: absolute;right: 153px;top: -42px;">
  1326. 分析
  1327. </div>
  1328. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1329. style="position: absolute;left: 110px;bottom: 30px;">
  1330. 上传文件
  1331. <input type="file" accept="*" style="display: none"
  1332. @change="beforeUpload1($event, 7, toolIndex)" />
  1333. </div> -->
  1334. </div>
  1335. <div v-if="tooC == 40">
  1336. <img
  1337. @click="addTools(tooC, toolIndex, taskCount)"
  1338. src="../../assets/icon/secondToolList/eval.png"
  1339. alt
  1340. />
  1341. <div style="margin: 5px 0">个人评价</div>
  1342. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1343. style="position: absolute;right: 33px;top: -30px;">
  1344. 分析
  1345. </div>
  1346. </div>
  1347. <div v-if="tooC == 41">
  1348. <img
  1349. @click="addTools(tooC, toolIndex, taskCount)"
  1350. src="../../assets/icon/thirdToolList/select.png"
  1351. alt
  1352. />
  1353. <div style="margin: 5px 0">选择匹配</div>
  1354. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1355. style="position: absolute;right: 33px;top: -30px;">
  1356. 分析
  1357. </div>
  1358. </div>
  1359. <div v-if="tooC == 44">
  1360. <img
  1361. @click="addTools(tooC, toolIndex, taskCount)"
  1362. src="../../assets/icon/thirdToolList/hanClass.png"
  1363. alt
  1364. />
  1365. <div style="margin: 5px 0">汉字宫</div>
  1366. </div>
  1367. <div v-if="tooC == 47">
  1368. <img
  1369. @click="addTools(tooC, toolIndex, taskCount)"
  1370. src="../../assets/icon/fourthToolList/conSentences.png"
  1371. alt
  1372. />
  1373. <div style="margin: 5px 0">排序</div>
  1374. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1375. style="position: absolute;right: 33px;top: -30px;">
  1376. 分析
  1377. </div>
  1378. </div>
  1379. <div v-if="tooC == 48">
  1380. <img
  1381. @click="addTools(tooC, toolIndex, taskCount)"
  1382. src="../../assets/icon/fourthToolList/table.png"
  1383. alt
  1384. />
  1385. <div style="margin: 5px 0">表格</div>
  1386. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1387. style="position: absolute;right: 33px;top: -30px;">
  1388. 分析
  1389. </div>
  1390. </div>
  1391. <div v-if="tooC == 52">
  1392. <img
  1393. @click="addTools(tooC, toolIndex, taskCount)"
  1394. src="../../assets/icon/fourthToolList/text.png"
  1395. alt
  1396. />
  1397. <div style="margin: 5px 0">文档</div>
  1398. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1399. style="position: absolute;right: 33px;top: -30px;">
  1400. 分析
  1401. </div>
  1402. </div>
  1403. <div v-if="tooC == 49">
  1404. <img
  1405. @click="addTools(tooC, toolIndex, taskCount)"
  1406. src="../../assets/icon/fourthToolList/group.png"
  1407. alt
  1408. />
  1409. <div style="margin: 5px 0">学生分组</div>
  1410. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1411. style="position: absolute;right: 33px;top: -30px;">
  1412. 分析
  1413. </div>
  1414. </div>
  1415. <div v-if="tooC == 57">
  1416. <img
  1417. @click="addTools(tooC, toolIndex, taskCount)"
  1418. src="../../assets/icon/fourthToolList/cocopi.png"
  1419. alt
  1420. />
  1421. <div style="margin: 5px 0">CocoPi</div>
  1422. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1423. style="position: absolute;right: 33px;top: -30px;">
  1424. 分析
  1425. </div>
  1426. </div>
  1427. <div v-if="tooC == 58">
  1428. <img
  1429. @click="addTools(tooC, toolIndex, taskCount)"
  1430. src="../../assets/icon/fourthToolList/car.png"
  1431. alt
  1432. />
  1433. <div style="margin: 5px 0">模拟驾驶</div>
  1434. </div>
  1435. <div v-if="tooC == 59">
  1436. <img
  1437. @click="addTools(tooC, toolIndex, taskCount)"
  1438. src="../../assets/icon/fourthToolList/lineSearch.png"
  1439. alt
  1440. />
  1441. <div style="margin: 5px 0">路径搜索</div>
  1442. </div>
  1443. <div v-if="tooC == 60">
  1444. <img
  1445. @click="addTools(tooC, toolIndex, taskCount)"
  1446. src="../../assets/icon/fourthToolList/deepLearning.png"
  1447. alt
  1448. />
  1449. <div style="margin: 5px 0">深度学习</div>
  1450. </div>
  1451. <div v-if="tooC == 61">
  1452. <img
  1453. @click="addTools(tooC, toolIndex, taskCount)"
  1454. src="../../assets/icon/fourthToolList/allHistory.png"
  1455. alt
  1456. />
  1457. <div style="margin: 5px 0">全历史</div>
  1458. </div>
  1459. <div v-if="tooC == 62">
  1460. <img
  1461. @click="addTools(tooC, toolIndex, taskCount)"
  1462. src="../../assets/icon/fourthToolList/interVideo.png"
  1463. alt
  1464. />
  1465. <div style="margin: 5px 0">交互视频</div>
  1466. </div>
  1467. <div v-if="tooC == 63">
  1468. <img
  1469. @click="addTools(tooC, toolIndex, taskCount)"
  1470. src="../../assets/icon/fourthToolList/Wood.png"
  1471. alt
  1472. />
  1473. <div style="margin: 5px 0">海龟编程</div>
  1474. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1475. style="position: absolute;right: 33px;top: -30px;">
  1476. 分析
  1477. </div>
  1478. </div>
  1479. <div v-if="tooC == 71">
  1480. <img
  1481. @click="addTools(tooC, toolIndex, taskCount)"
  1482. src="../../assets/icon/fourthToolList/chatgpt.png"
  1483. alt
  1484. />
  1485. <div style="margin: 5px 0">AI智能体</div>
  1486. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1487. style="position: absolute;right: 33px;top: -30px;">
  1488. 分析
  1489. </div>
  1490. </div>
  1491. <div v-if="tooC == 72">
  1492. <img
  1493. style="height: 85px;object-fit: cover;"
  1494. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1495. @click="addTools(tooC, toolIndex, taskCount)"
  1496. :src="tool.appJson.json.icon"
  1497. alt
  1498. />
  1499. <img
  1500. v-else
  1501. @click="addTools(tooC, toolIndex, taskCount)"
  1502. src="../../assets/icon/firstToolList/appStore.png"
  1503. alt
  1504. />
  1505. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1506. <!-- content to trigger tooltip here -->
  1507. <div class="Ovh">
  1508. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1509. </div>
  1510. </el-tooltip>
  1511. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1512. style="position: absolute;right: 33px;top: -30px;">
  1513. 分析
  1514. </div>
  1515. </div>
  1516. <div v-if="tooC == 65">
  1517. <img
  1518. @click="addTools(tooC, toolIndex, taskCount)"
  1519. src="../../assets/icon/firstToolList/pickPeople.png"
  1520. alt
  1521. />
  1522. <div style="margin: 5px 0">挑人</div>
  1523. </div>
  1524. <div v-if="tooC == 66">
  1525. <img
  1526. @click="addTools(tooC, toolIndex, taskCount)"
  1527. src="../../assets/icon/secondToolList/formulaEdi.png"
  1528. alt
  1529. />
  1530. <div style="margin: 5px 0">公式编辑</div>
  1531. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1532. style="position: absolute;right: 33px;top: -30px;">
  1533. 分析
  1534. </div>
  1535. </div>
  1536. <div v-if="tooC == 67">
  1537. <img
  1538. @click="addTools(tooC, toolIndex, taskCount)"
  1539. src="../../assets/icon/secondToolList/molStr.png"
  1540. alt
  1541. />
  1542. <div style="margin: 5px 0">分子结构</div>
  1543. </div>
  1544. <div v-if="tooC == 68">
  1545. <img
  1546. @click="addTools(tooC, toolIndex, taskCount)"
  1547. src="../../assets/icon/secondToolList/timeAxis.png"
  1548. alt
  1549. />
  1550. <div style="margin: 5px 0">时间轴</div>
  1551. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1552. style="position: absolute;right: 33px;top: -30px;">
  1553. 分析
  1554. </div> -->
  1555. </div>
  1556. <div v-if="tooC == 69">
  1557. <img
  1558. @click="addTools(tooC, toolIndex, taskCount)"
  1559. src="../../assets/icon/secondToolList/english.png"
  1560. alt
  1561. />
  1562. <div style="margin: 5px 0">英语写作</div>
  1563. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1564. style="position: absolute;right: 33px;top: -30px;">
  1565. 分析
  1566. </div>
  1567. </div>
  1568. <div v-if="tooC == 70">
  1569. <img
  1570. @click="addTools(tooC, toolIndex, taskCount)"
  1571. src="../../assets/icon/thirdToolList/englishVoice.png"
  1572. alt
  1573. />
  1574. <div style="margin: 5px 0">英语口语</div>
  1575. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1576. style="position: absolute;right: 33px;top: -30px;">
  1577. 分析
  1578. </div>
  1579. </div>
  1580. </div>
  1581. </div>
  1582. </div>
  1583. <div
  1584. class="tooldetail renderedFor"
  1585. v-if="tool.toolDetail != ''"
  1586. :class="{
  1587. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1588. }"
  1589. >
  1590. <!-- <div class="toolTitle">工具描述</div> -->
  1591. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1592. <div
  1593. style="height:100%;"
  1594. v-html="renderedFormula(tool.toolDetail)"
  1595. v-if="toolDetailIndex != toolIndex"
  1596. ></div>
  1597. <div v-else @click.stop="" style="height:100%;">
  1598. <textarea
  1599. @change="
  1600. () => {
  1601. $forceUpdate();
  1602. }
  1603. "
  1604. class="checkTextArea"
  1605. rows="3"
  1606. v-autoHeight="70"
  1607. type="text"
  1608. placeholder="请输入任务描述"
  1609. v-model="updateToolDetailInner"
  1610. ></textarea>
  1611. </div>
  1612. </div>
  1613. <el-button
  1614. type="primary"
  1615. v-if="tool.tool[0] == 32"
  1616. style="position: absolute; right: 30px; top: -45px"
  1617. @click="addImg($event)"
  1618. >上传作业<input
  1619. type="file"
  1620. accept="*"
  1621. style="display: none"
  1622. @change="beforeUpload1($event, 7, toolIndex)"
  1623. /></el-button>
  1624. <el-button
  1625. type="primary"
  1626. v-if="tool.tool[0] == 15"
  1627. style="position: absolute; right: 30px; top: -45px"
  1628. @click="openWordCloud(toolIndex)"
  1629. >生成词云</el-button
  1630. >
  1631. <el-button
  1632. type="primary"
  1633. v-if="
  1634. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1635. "
  1636. style="position: absolute; right: 30px; top: -45px"
  1637. @click="uploadWorks(toolIndex)"
  1638. >导出作业</el-button
  1639. >
  1640. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1641. position: absolute;
  1642. right: 30px;
  1643. transform: translateY(-130%);
  1644. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1645. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1646. </div>
  1647. <div
  1648. v-if="
  1649. tType &&
  1650. tType == 2 &&
  1651. !sIsOpen &&
  1652. tool.tool.indexOf(16) != -1
  1653. "
  1654. class="worksBox"
  1655. >
  1656. <div
  1657. class="zuoyeYulan"
  1658. v-if="workStudent[toolIndex].length > 0"
  1659. >
  1660. <span class="worksTitle">作业预览</span>
  1661. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1662. </div>
  1663. <div
  1664. class="worksDetailBox"
  1665. v-if="workStudent[toolIndex].length > 0"
  1666. >
  1667. <div
  1668. class="works"
  1669. style="
  1670. width: 200px;
  1671. height: 140px;
  1672. margin: 10px 10px 10px 0;
  1673. box-shadow: 0 0 6px 1px #dfdada;
  1674. "
  1675. v-for="(w, wIndex) in workStudent[toolIndex]"
  1676. :key="wIndex"
  1677. >
  1678. <div class="workImg" v-if="w.type == 0">
  1679. <img
  1680. :src="w.works"
  1681. @click="previewImg(w.works, w)"
  1682. alt
  1683. />
  1684. <div
  1685. class="answerScore"
  1686. v-if="w.score"
  1687. @click.stop="openScore(w)"
  1688. :class="{
  1689. rightW:
  1690. w.userid == userid || tType == 1 || tType == 4
  1691. }"
  1692. >
  1693. {{ JSON.parse(w.score).wScore }}分
  1694. </div>
  1695. <div
  1696. class="answerScore"
  1697. @click.stop="openScore(w)"
  1698. v-else-if="courseDetail.userid == userid"
  1699. :class="{
  1700. rightW:
  1701. w.userid == userid || tType == 1 || tType == 4
  1702. }"
  1703. >
  1704. 评分
  1705. </div>
  1706. <div
  1707. class="stuLookScore"
  1708. v-if="
  1709. w.userid == userid ||
  1710. (tType == 1 &&
  1711. courseDetail.state == 5 &&
  1712. ((chapInfoList[courseType].chapterInfo[0]
  1713. .taskJson[taskCount].eList &&
  1714. chapInfoList[courseType].chapterInfo[0]
  1715. .taskJson[taskCount].eList.length) ||
  1716. (tool.eList && tool.eList.length)))
  1717. "
  1718. >
  1719. <el-popover
  1720. placement="top"
  1721. width="318"
  1722. trigger="hover"
  1723. >
  1724. <markScore
  1725. :loading="AIloading[toolIndex][wIndex].loading"
  1726. :markScoreVisible="markScoreVisible"
  1727. :ref="`markSco${toolIndex}${wIndex}`"
  1728. @updateLoading="updateLoading"
  1729. @updateDocSco="updateDocSco"
  1730. @refreshOther="refreshOther"
  1731. @markScoreDig="markScoreDig"
  1732. :tool="tool"
  1733. :wIndex="wIndex"
  1734. :scoCon="w"
  1735. :toolIndex="toolIndex"
  1736. :key="refreshKey"
  1737. :stage="courseType"
  1738. :task="taskCount"
  1739. :scoTit="
  1740. chapInfoList[courseType].chapterInfo[0]
  1741. .taskJson[taskCount].eList
  1742. "
  1743. >
  1744. </markScore>
  1745. <div
  1746. @click="
  1747. markScoreDig2(
  1748. w.sName,
  1749. worksStudent,
  1750. w.userid,
  1751. toolIndex,
  1752. chapInfoList[courseType].chapterInfo[0]
  1753. .taskJson[taskCount].eList,
  1754. AIloading[toolIndex][wIndex].loading,
  1755. tool
  1756. )
  1757. "
  1758. slot="reference"
  1759. >
  1760. <span v-if="AIloading[toolIndex][wIndex].sco">
  1761. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1762. </span>
  1763. <span v-else>
  1764. 评分
  1765. </span>
  1766. </div>
  1767. </el-popover>
  1768. </div>
  1769. <img
  1770. class="deleteImg"
  1771. src="../../assets/deleteworks.png"
  1772. v-if="
  1773. w.userid == userid || tType == 1 || tType == 4
  1774. "
  1775. @click.stop="deleteWorks(w.wid)"
  1776. alt
  1777. />
  1778. </div>
  1779. <div class="workImg" v-if="w.type == 1">
  1780. <img :src="word" @click="openFile(w.works)" alt />
  1781. <div
  1782. class="answerScore"
  1783. v-if="w.score"
  1784. @click.stop="openScore(w)"
  1785. :class="{
  1786. rightW:
  1787. w.userid == userid || tType == 1 || tType == 4
  1788. }"
  1789. >
  1790. {{ JSON.parse(w.score).wScore }}分
  1791. </div>
  1792. <div
  1793. class="answerScore"
  1794. @click.stop="openScore(w)"
  1795. v-else-if="courseDetail.userid == userid"
  1796. :class="{
  1797. rightW:
  1798. w.userid == userid || tType == 1 || tType == 4
  1799. }"
  1800. >
  1801. 评分
  1802. </div>
  1803. <div
  1804. class="stuLookScore"
  1805. v-if="
  1806. w.userid == userid ||
  1807. (tType == 1 &&
  1808. courseDetail.state == 5 &&
  1809. ((chapInfoList[courseType].chapterInfo[0]
  1810. .taskJson[taskCount].eList &&
  1811. chapInfoList[courseType].chapterInfo[0]
  1812. .taskJson[taskCount].eList.length) ||
  1813. (tool.eList && tool.eList.length)))
  1814. "
  1815. >
  1816. <el-popover
  1817. placement="top"
  1818. width="318"
  1819. trigger="hover"
  1820. >
  1821. <markScore
  1822. :loading="AIloading[toolIndex][wIndex].loading"
  1823. :markScoreVisible="markScoreVisible"
  1824. :ref="`markSco${toolIndex}${wIndex}`"
  1825. @updateLoading="updateLoading"
  1826. @updateDocSco="updateDocSco"
  1827. @refreshOther="refreshOther"
  1828. @markScoreDig="markScoreDig"
  1829. :tool="tool"
  1830. :wIndex="wIndex"
  1831. :scoCon="w"
  1832. :toolIndex="toolIndex"
  1833. :key="refreshKey"
  1834. :stage="courseType"
  1835. :task="taskCount"
  1836. :scoTit="
  1837. chapInfoList[courseType].chapterInfo[0]
  1838. .taskJson[taskCount].eList
  1839. "
  1840. >
  1841. </markScore>
  1842. <div
  1843. @click="
  1844. markScoreDig2(
  1845. w.sName,
  1846. worksStudent,
  1847. w.userid,
  1848. toolIndex,
  1849. chapInfoList[courseType].chapterInfo[0]
  1850. .taskJson[taskCount].eList,
  1851. AIloading[toolIndex][wIndex].loading,
  1852. tool
  1853. )
  1854. "
  1855. slot="reference"
  1856. >
  1857. <span v-if="AIloading[toolIndex][wIndex].sco">
  1858. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1859. </span>
  1860. <span v-else>
  1861. 评分
  1862. </span>
  1863. </div>
  1864. </el-popover>
  1865. </div>
  1866. <img
  1867. class="deleteImg"
  1868. src="../../assets/deleteworks.png"
  1869. v-if="
  1870. w.userid == userid || tType == 1 || tType == 4
  1871. "
  1872. @click.stop="deleteWorks(w.wid)"
  1873. alt
  1874. />
  1875. </div>
  1876. <div class="workImg" v-if="w.type == 3">
  1877. <img
  1878. style="cursor: pointer"
  1879. :src="video"
  1880. @click="openVideo(w)"
  1881. alt
  1882. />
  1883. <div
  1884. class="answerScore"
  1885. v-if="w.score"
  1886. @click.stop="openScore(w)"
  1887. :class="{
  1888. rightW:
  1889. w.userid == userid || tType == 1 || tType == 4
  1890. }"
  1891. >
  1892. {{ JSON.parse(w.score).wScore }}分
  1893. </div>
  1894. <div
  1895. class="answerScore"
  1896. @click.stop="openScore(w)"
  1897. v-else-if="courseDetail.userid == userid"
  1898. :class="{
  1899. rightW:
  1900. w.userid == userid || tType == 1 || tType == 4
  1901. }"
  1902. >
  1903. 评分
  1904. </div>
  1905. <div
  1906. class="stuLookScore"
  1907. v-if="
  1908. w.userid == userid ||
  1909. (tType == 1 &&
  1910. courseDetail.state == 5 &&
  1911. ((chapInfoList[courseType].chapterInfo[0]
  1912. .taskJson[taskCount].eList &&
  1913. chapInfoList[courseType].chapterInfo[0]
  1914. .taskJson[taskCount].eList.length) ||
  1915. (tool.eList && tool.eList.length)))
  1916. "
  1917. >
  1918. <el-popover
  1919. placement="top"
  1920. width="318"
  1921. trigger="hover"
  1922. >
  1923. <markScore
  1924. :loading="AIloading[toolIndex][wIndex].loading"
  1925. :markScoreVisible="markScoreVisible"
  1926. :ref="`markSco${toolIndex}${wIndex}`"
  1927. @updateLoading="updateLoading"
  1928. @updateDocSco="updateDocSco"
  1929. @refreshOther="refreshOther"
  1930. @markScoreDig="markScoreDig"
  1931. :tool="tool"
  1932. :wIndex="wIndex"
  1933. :scoCon="w"
  1934. :toolIndex="toolIndex"
  1935. :key="refreshKey"
  1936. :stage="courseType"
  1937. :task="taskCount"
  1938. :scoTit="
  1939. chapInfoList[courseType].chapterInfo[0]
  1940. .taskJson[taskCount].eList
  1941. "
  1942. >
  1943. </markScore>
  1944. <div
  1945. @click="
  1946. markScoreDig2(
  1947. w.sName,
  1948. worksStudent,
  1949. w.userid,
  1950. toolIndex,
  1951. chapInfoList[courseType].chapterInfo[0]
  1952. .taskJson[taskCount].eList,
  1953. AIloading[toolIndex][wIndex].loading,
  1954. tool
  1955. )
  1956. "
  1957. slot="reference"
  1958. >
  1959. <span v-if="AIloading[toolIndex][wIndex].sco">
  1960. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1961. </span>
  1962. <span v-else>
  1963. 评分
  1964. </span>
  1965. </div>
  1966. </el-popover>
  1967. </div>
  1968. <img
  1969. class="deleteImg"
  1970. src="../../assets/deleteworks.png"
  1971. v-if="
  1972. w.userid == userid || tType == 1 || tType == 4
  1973. "
  1974. @click.stop="deleteWorks(w.wid)"
  1975. alt
  1976. />
  1977. </div>
  1978. <div class="workImg" v-if="w.type == 12">
  1979. <img
  1980. style="cursor: pointer"
  1981. :src="word2"
  1982. @click="downloadFile(w.works,w.userid)"
  1983. alt
  1984. />
  1985. <div
  1986. class="answerScore"
  1987. v-if="w.score"
  1988. @click.stop="openScore(w)"
  1989. :class="{
  1990. rightW:
  1991. w.userid == userid || tType == 1 || tType == 4
  1992. }"
  1993. >
  1994. {{ JSON.parse(w.score).wScore }}分
  1995. </div>
  1996. <div
  1997. class="answerScore"
  1998. @click.stop="openScore(w)"
  1999. v-else-if="courseDetail.userid == userid"
  2000. :class="{
  2001. rightW:
  2002. w.userid == userid || tType == 1 || tType == 4
  2003. }"
  2004. >
  2005. 评分
  2006. </div>
  2007. <div
  2008. class="stuLookScore"
  2009. v-if="
  2010. w.userid == userid ||
  2011. (tType == 1 &&
  2012. courseDetail.state == 5 &&
  2013. ((chapInfoList[courseType].chapterInfo[0]
  2014. .taskJson[taskCount].eList &&
  2015. chapInfoList[courseType].chapterInfo[0]
  2016. .taskJson[taskCount].eList.length) ||
  2017. (tool.eList && tool.eList.length)))
  2018. "
  2019. >
  2020. <el-popover
  2021. placement="top"
  2022. width="318"
  2023. trigger="hover"
  2024. >
  2025. <markScore
  2026. :loading="AIloading[toolIndex][wIndex].loading"
  2027. :markScoreVisible="markScoreVisible"
  2028. :ref="`markSco${toolIndex}${wIndex}`"
  2029. @updateLoading="updateLoading"
  2030. @updateDocSco="updateDocSco"
  2031. @refreshOther="refreshOther"
  2032. @markScoreDig="markScoreDig"
  2033. :tool="tool"
  2034. :wIndex="wIndex"
  2035. :scoCon="w"
  2036. :toolIndex="toolIndex"
  2037. :key="refreshKey"
  2038. :stage="courseType"
  2039. :task="taskCount"
  2040. :scoTit="
  2041. chapInfoList[courseType].chapterInfo[0]
  2042. .taskJson[taskCount].eList
  2043. "
  2044. >
  2045. </markScore>
  2046. <div
  2047. @click="
  2048. markScoreDig2(
  2049. w.sName,
  2050. worksStudent,
  2051. w.userid,
  2052. toolIndex,
  2053. chapInfoList[courseType].chapterInfo[0]
  2054. .taskJson[taskCount].eList,
  2055. AIloading[toolIndex][wIndex].loading,
  2056. tool
  2057. )
  2058. "
  2059. slot="reference"
  2060. >
  2061. <span v-if="AIloading[toolIndex][wIndex].sco">
  2062. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2063. </span>
  2064. <span v-else>
  2065. 评分
  2066. </span>
  2067. </div>
  2068. </el-popover>
  2069. </div>
  2070. <img
  2071. class="deleteImg"
  2072. src="../../assets/deleteworks.png"
  2073. v-if="
  2074. w.userid == userid || tType == 1 || tType == 4
  2075. "
  2076. @click.stop="deleteWorks(w.wid)"
  2077. alt
  2078. />
  2079. </div>
  2080. <div class="worksName">
  2081. <div>{{ w.sName }}</div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. <div
  2087. v-if="
  2088. tType &&
  2089. tType == 2 &&
  2090. !sIsOpen &&
  2091. tool.tool.indexOf(32) != -1
  2092. "
  2093. class="worksBox"
  2094. >
  2095. <div
  2096. class="zuoyeYulan"
  2097. v-if="workStudent[toolIndex].length > 0"
  2098. >
  2099. <span class="worksTitle">作业预览</span>
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="workStudent[toolIndex].length > 0"
  2104. >
  2105. <div
  2106. class="works"
  2107. style="
  2108. width: 200px;
  2109. height: 140px;
  2110. margin: 10px 10px 10px 0;
  2111. box-shadow: 0 0 6px 1px #dfdada;
  2112. "
  2113. v-for="(w, wIndex) in workStudent[toolIndex]"
  2114. :key="wIndex"
  2115. >
  2116. <div class="workImg">
  2117. <img
  2118. :src="word2"
  2119. @click="downloadFile(w.works,w.userid)"
  2120. alt
  2121. />
  2122. <div
  2123. class="answerScore"
  2124. v-if="w.score"
  2125. @click.stop="openScore(w)"
  2126. :class="{
  2127. rightW:
  2128. w.userid == userid || tType == 1 || tType == 4
  2129. }"
  2130. >
  2131. {{ JSON.parse(w.score).wScore }}分
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. @click.stop="openScore(w)"
  2136. v-else-if="courseDetail.userid == userid"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4
  2140. }"
  2141. >
  2142. 评分
  2143. </div>
  2144. <img
  2145. class="deleteImg"
  2146. src="../../assets/deleteworks.png"
  2147. v-if="
  2148. w.userid == userid || tType == 1 || tType == 4
  2149. "
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. <div class="worksName">
  2155. <div>{{ w.sName }}</div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. <div
  2161. v-if="
  2162. tType &&
  2163. tType == 2 &&
  2164. !sIsOpen &&
  2165. tool.tool.indexOf(57) != -1
  2166. "
  2167. class="worksBox"
  2168. >
  2169. <div
  2170. class="zuoyeYulan"
  2171. v-if="workStudent[toolIndex].length > 0"
  2172. >
  2173. <span class="worksTitle">作业预览</span>
  2174. </div>
  2175. <div
  2176. class="worksDetailBox"
  2177. v-if="workStudent[toolIndex].length > 0"
  2178. >
  2179. <div
  2180. class="works"
  2181. style="
  2182. width: 200px;
  2183. height: 140px;
  2184. margin: 10px 10px 10px 0;
  2185. box-shadow: 0 0 6px 1px #dfdada;
  2186. "
  2187. v-for="(w, wIndex) in workStudent[toolIndex]"
  2188. :key="wIndex"
  2189. >
  2190. <div class="workImg">
  2191. <img
  2192. :src="word2"
  2193. @click="downloadFile(w.works,w.userid)"
  2194. v-if="w.type == 12"
  2195. alt
  2196. />
  2197. <img
  2198. :src="word2"
  2199. @click="
  2200. openCocoPi(57, toolIndex, w.userid, w.sName)
  2201. "
  2202. v-else-if="w.type == 15"
  2203. alt
  2204. />
  2205. <div
  2206. class="answerScore"
  2207. v-if="w.score"
  2208. @click.stop="openScore(w)"
  2209. :class="{
  2210. rightW:
  2211. w.userid == userid || tType == 1 || tType == 4
  2212. }"
  2213. >
  2214. {{ JSON.parse(w.score).wScore }}分
  2215. </div>
  2216. <div
  2217. class="answerScore"
  2218. @click.stop="openScore(w)"
  2219. v-else-if="courseDetail.userid == userid"
  2220. :class="{
  2221. rightW:
  2222. w.userid == userid || tType == 1 || tType == 4
  2223. }"
  2224. >
  2225. 评分
  2226. </div>
  2227. <img
  2228. class="deleteImg"
  2229. src="../../assets/deleteworks.png"
  2230. v-if="
  2231. w.userid == userid || tType == 1 || tType == 4
  2232. "
  2233. @click.stop="deleteWorks(w.wid)"
  2234. alt
  2235. />
  2236. </div>
  2237. <div class="worksName">
  2238. <div>{{ w.sName }}</div>
  2239. </div>
  2240. </div>
  2241. </div>
  2242. </div>
  2243. <div
  2244. v-if="
  2245. tType &&
  2246. tType == 2 &&
  2247. !sIsOpen &&
  2248. tool.tool.indexOf(4) != -1
  2249. "
  2250. class="worksBox"
  2251. >
  2252. <div
  2253. class="zuoyeYulan"
  2254. v-if="workStudent[toolIndex].length > 0"
  2255. >
  2256. <span class="worksTitle">作业预览</span>
  2257. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2258. </div>
  2259. <div
  2260. class="worksDetailBox"
  2261. v-if="workStudent[toolIndex].length > 0"
  2262. >
  2263. <div
  2264. class="isWorksName2"
  2265. v-for="(w, wIndex) in workStudent[toolIndex]"
  2266. :key="wIndex"
  2267. @click="
  2268. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2269. "
  2270. >
  2271. {{ w.sName }}
  2272. <img
  2273. class="deleteImg deleteImg2"
  2274. src="../../assets/deleteworks.png"
  2275. v-if="w.userid == userid || tType == 1 || tType == 4"
  2276. @click.stop="deleteWorks(w.wid)"
  2277. alt
  2278. />
  2279. </div>
  2280. <!-- <div
  2281. class="works"
  2282. style="
  2283. width: 200px;
  2284. height: 140px;
  2285. border-radius: 10px;
  2286. box-shadow: 0 0 6px 1px #dfdada;
  2287. overflow: hidden;
  2288. "
  2289. v-for="(w, wIndex) in workStudent[toolIndex]"
  2290. :key="wIndex"
  2291. >
  2292. <div class="workImg">
  2293. <img
  2294. src="../../assets/icon/works/noImg.png"
  2295. @click="
  2296. openTools(
  2297. 4,
  2298. toolIndex,
  2299. taskCount,
  2300. w.works,
  2301. w.sName
  2302. )
  2303. "
  2304. alt
  2305. />
  2306. </div>
  2307. <div class="worksName">
  2308. <div>{{ w.sName }}</div>
  2309. <div>{{ w.time }}</div>
  2310. </div>
  2311. </div> -->
  2312. </div>
  2313. </div>
  2314. <div
  2315. v-if="
  2316. tType &&
  2317. ((tType == 2 && sIsOpen == true) ||
  2318. tType == 1 ||
  2319. tType == 4) &&
  2320. tool.tool.indexOf(62) != -1
  2321. "
  2322. class="worksBox"
  2323. >
  2324. <div
  2325. class="zuoyeYulan"
  2326. v-if="
  2327. worksStudent.length &&
  2328. worksStudent[toolIndex].length > 0
  2329. "
  2330. >
  2331. <div class="worksTop">
  2332. <div>作业预览</div>
  2333. <div
  2334. class="corOpen"
  2335. @click="contract(toolIndex)"
  2336. v-if="
  2337. isCloseList[toolIndex].isCloseBoolean &&
  2338. isCloseList[toolIndex].isClose == 0
  2339. "
  2340. >
  2341. 折叠
  2342. </div>
  2343. <div
  2344. class="corOpen"
  2345. @click="contract(toolIndex)"
  2346. v-if="isCloseList[toolIndex].isClose == 1"
  2347. >
  2348. 展开
  2349. </div>
  2350. </div>
  2351. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2352. </div>
  2353. <div>
  2354. <div
  2355. :id="'tool-' + toolIndex"
  2356. :style="{
  2357. height:
  2358. isCloseList[toolIndex].isClose == 1
  2359. ? retrnToolHeight('tool-' + toolIndex)
  2360. : 'auto',
  2361. overflow:
  2362. isCloseList[toolIndex].isClose == 1
  2363. ? 'hidden'
  2364. : 'unset'
  2365. }"
  2366. class="worksDetailBox"
  2367. v-if="
  2368. worksStudent.length &&
  2369. worksStudent[toolIndex].length > 0
  2370. "
  2371. >
  2372. <div
  2373. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2374. :key="wIndex"
  2375. class="isWorksName2"
  2376. @click="
  2377. openTools(
  2378. 62,
  2379. toolIndex,
  2380. taskCount,
  2381. w.works,
  2382. w.sName
  2383. )
  2384. "
  2385. >
  2386. {{ w.sName }}
  2387. <img
  2388. class="deleteImg deleteImg2"
  2389. src="../../assets/deleteworks.png"
  2390. v-if="
  2391. w.userid == userid || tType == 1 || tType == 4
  2392. "
  2393. @click.stop="deleteWorks(w.wid)"
  2394. alt
  2395. />
  2396. </div>
  2397. </div>
  2398. </div>
  2399. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2400. 未提交
  2401. </div>
  2402. <div
  2403. class="noWorksS"
  2404. v-if="noWorksS && noWorksS[toolIndex].length"
  2405. >
  2406. <div
  2407. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2408. :key="sIndex"
  2409. class="noWorksName"
  2410. >
  2411. <el-tooltip
  2412. effect="dark"
  2413. :content="s.student"
  2414. placement="top"
  2415. >
  2416. <span>{{ s.student }}</span>
  2417. </el-tooltip>
  2418. </div>
  2419. </div>
  2420. </div>
  2421. <div
  2422. v-if="
  2423. tType &&
  2424. tType == 2 &&
  2425. !sIsOpen &&
  2426. tool.tool.indexOf(62) != -1
  2427. "
  2428. class="worksBox"
  2429. >
  2430. <div
  2431. class="zuoyeYulan"
  2432. v-if="workStudent[toolIndex].length > 0"
  2433. >
  2434. <span class="worksTitle">作业预览</span>
  2435. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2436. </div>
  2437. <div
  2438. class="worksDetailBox"
  2439. v-if="workStudent[toolIndex].length > 0"
  2440. >
  2441. <div
  2442. class="isWorksName2"
  2443. v-for="(w, wIndex) in workStudent[toolIndex]"
  2444. :key="wIndex"
  2445. @click="
  2446. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2447. "
  2448. >
  2449. {{ w.sName }}
  2450. <img
  2451. class="deleteImg deleteImg2"
  2452. src="../../assets/deleteworks.png"
  2453. v-if="w.userid == userid || tType == 1 || tType == 4"
  2454. @click.stop="deleteWorks(w.wid)"
  2455. alt
  2456. />
  2457. </div>
  2458. </div>
  2459. </div>
  2460. <div
  2461. v-if="
  2462. tType &&
  2463. tType == 2 &&
  2464. !sIsOpen &&
  2465. tool.tool.indexOf(45) != -1
  2466. "
  2467. class="worksBox"
  2468. >
  2469. <div
  2470. class="zuoyeYulan"
  2471. v-if="workStudent[toolIndex].length > 0"
  2472. >
  2473. <span class="worksTitle">作业预览</span>
  2474. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2475. </div>
  2476. <div
  2477. class="worksDetailBox"
  2478. v-if="workStudent[toolIndex].length > 0"
  2479. >
  2480. <div
  2481. class="isWorksName2"
  2482. v-for="(w, wIndex) in workStudent[toolIndex]"
  2483. :key="wIndex"
  2484. @click="
  2485. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2486. "
  2487. >
  2488. {{ w.sName }}
  2489. <img
  2490. class="deleteImg deleteImg2"
  2491. src="../../assets/deleteworks.png"
  2492. v-if="w.userid == userid || tType == 1 || tType == 4"
  2493. @click.stop="deleteWorks(w.wid)"
  2494. alt
  2495. />
  2496. </div>
  2497. </div>
  2498. </div>
  2499. <div
  2500. v-if="
  2501. tType &&
  2502. tType == 2 &&
  2503. !sIsOpen &&
  2504. tool.tool.indexOf(69) != -1
  2505. "
  2506. class="worksBox"
  2507. >
  2508. <div
  2509. class="zuoyeYulan"
  2510. v-if="workStudent[toolIndex].length > 0"
  2511. >
  2512. <span class="worksTitle">作业预览</span>
  2513. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2514. </div>
  2515. <div
  2516. class="worksDetailBox"
  2517. v-if="workStudent[toolIndex].length > 0"
  2518. >
  2519. <div
  2520. class="isWorksName2"
  2521. v-for="(w, wIndex) in workStudent[toolIndex]"
  2522. :key="wIndex"
  2523. @click="
  2524. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2525. "
  2526. >
  2527. {{ w.sName }}
  2528. <img
  2529. class="deleteImg deleteImg2"
  2530. src="../../assets/deleteworks.png"
  2531. v-if="w.userid == userid || tType == 1 || tType == 4"
  2532. @click.stop="deleteWorks(w.wid)"
  2533. alt
  2534. />
  2535. </div>
  2536. </div>
  2537. </div>
  2538. <div
  2539. v-if="
  2540. tType &&
  2541. tType == 2 &&
  2542. !sIsOpen &&
  2543. tool.tool.indexOf(15) != -1
  2544. "
  2545. class="worksBox"
  2546. >
  2547. <div
  2548. class="zuoyeYulan"
  2549. v-if="workStudent[toolIndex].length > 0"
  2550. >
  2551. <span class="worksTitle">作业预览</span>
  2552. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2553. </div>
  2554. <div
  2555. class="worksDetailBox"
  2556. v-if="workStudent[toolIndex].length > 0"
  2557. >
  2558. <div
  2559. class="works"
  2560. v-for="(w, wIndex) in workStudent[toolIndex]"
  2561. :key="wIndex"
  2562. >
  2563. <div class="workImg">
  2564. <!-- <img
  2565. src="../../assets/icon/works/noImg.png"
  2566. @click="openTools(15, toolIndex, taskCount, w.works)"
  2567. alt=""
  2568. />-->
  2569. <div class="answerBg">
  2570. <!-- <div>{{ w.sName }}</div> -->
  2571. <el-tooltip
  2572. class="item"
  2573. effect="light"
  2574. :content="JSON.parse(w.works)[0].answer"
  2575. placement="top"
  2576. >
  2577. <div class="answerContent">
  2578. {{ JSON.parse(w.works)[0].answer }}
  2579. </div>
  2580. </el-tooltip>
  2581. <div
  2582. class="answerScore"
  2583. v-if="w.score"
  2584. @click.stop="openScore(w)"
  2585. :class="{
  2586. rightW:
  2587. w.userid == userid || tType == 1 || tType == 4
  2588. }"
  2589. >
  2590. {{ JSON.parse(w.score).wScore }}分
  2591. </div>
  2592. <div
  2593. class="answerScore"
  2594. @click.stop="openScore(w)"
  2595. v-else-if="courseDetail.userid == userid"
  2596. :class="{
  2597. rightW:
  2598. w.userid == userid || tType == 1 || tType == 4
  2599. }"
  2600. >
  2601. 评分
  2602. </div>
  2603. <img
  2604. class="deleteImg"
  2605. src="../../assets/deleteworks.png"
  2606. v-if="
  2607. w.userid == userid || tType == 1 || tType == 4
  2608. "
  2609. @click.stop="deleteWorks(w.wid)"
  2610. alt
  2611. />
  2612. </div>
  2613. <div class="comment">
  2614. <div class="worksName">
  2615. <div>{{ w.sName }}</div>
  2616. </div>
  2617. </div>
  2618. </div>
  2619. </div>
  2620. </div>
  2621. </div>
  2622. <div
  2623. v-if="
  2624. tType &&
  2625. tType == 2 &&
  2626. !sIsOpen &&
  2627. tool.tool.indexOf(1) != -1
  2628. "
  2629. class="worksBox"
  2630. >
  2631. <div
  2632. class="zuoyeYulan"
  2633. v-if="workStudent[toolIndex].length > 0"
  2634. >
  2635. <span class="worksTitle">作业预览</span>
  2636. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2637. </div>
  2638. <div
  2639. class="worksDetailBox"
  2640. v-if="workStudent[toolIndex].length > 0"
  2641. >
  2642. <div
  2643. class="works"
  2644. style="
  2645. width: 200px;
  2646. height: 140px;
  2647. margin: 10px 10px 10px 0;
  2648. box-shadow: 0 0 6px 1px #dfdada;
  2649. "
  2650. v-for="(w, wIndex) in workStudent[toolIndex]"
  2651. :key="wIndex"
  2652. >
  2653. <div class="workImg">
  2654. <img
  2655. :src="w.works"
  2656. @click="previewImg(w.works, w)"
  2657. alt
  2658. />
  2659. <div
  2660. class="answerScore"
  2661. v-if="w.score"
  2662. @click.stop="openScore(w)"
  2663. :class="{
  2664. rightW:
  2665. w.userid == userid || tType == 1 || tType == 4
  2666. }"
  2667. >
  2668. {{ JSON.parse(w.score).wScore }}分
  2669. </div>
  2670. <div
  2671. class="answerScore"
  2672. @click.stop="openScore(w)"
  2673. v-else-if="courseDetail.userid == userid"
  2674. :class="{
  2675. rightW:
  2676. w.userid == userid || tType == 1 || tType == 4
  2677. }"
  2678. >
  2679. 评分
  2680. </div>
  2681. <div
  2682. class="stuLookScore"
  2683. v-if="
  2684. w.userid == userid ||
  2685. (tType == 1 &&
  2686. courseDetail.state == 5 &&
  2687. ((chapInfoList[courseType].chapterInfo[0]
  2688. .taskJson[taskCount].eList &&
  2689. chapInfoList[courseType].chapterInfo[0]
  2690. .taskJson[taskCount].eList.length) ||
  2691. (tool.eList && tool.eList.length)))
  2692. "
  2693. >
  2694. <el-popover
  2695. placement="top"
  2696. width="318"
  2697. trigger="hover"
  2698. >
  2699. <markScore
  2700. :loading="AIloading[toolIndex][wIndex].loading"
  2701. :markScoreVisible="markScoreVisible"
  2702. :ref="`markSco${toolIndex}${wIndex}`"
  2703. @updateLoading="updateLoading"
  2704. @updateDocSco="updateDocSco"
  2705. @refreshOther="refreshOther"
  2706. @markScoreDig="markScoreDig"
  2707. :tool="tool"
  2708. :wIndex="wIndex"
  2709. :scoCon="w"
  2710. :toolIndex="toolIndex"
  2711. :key="refreshKey"
  2712. :stage="courseType"
  2713. :task="taskCount"
  2714. :scoTit="
  2715. chapInfoList[courseType].chapterInfo[0]
  2716. .taskJson[taskCount].eList
  2717. "
  2718. >
  2719. </markScore>
  2720. <div
  2721. @click="
  2722. markScoreDig2(
  2723. w.sName,
  2724. worksStudent,
  2725. w.userid,
  2726. toolIndex,
  2727. chapInfoList[courseType].chapterInfo[0]
  2728. .taskJson[taskCount].eList,
  2729. AIloading[toolIndex][wIndex].loading,
  2730. tool
  2731. )
  2732. "
  2733. slot="reference"
  2734. >
  2735. <span v-if="AIloading[toolIndex][wIndex].sco">
  2736. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2737. </span>
  2738. <span v-else>
  2739. 评分
  2740. </span>
  2741. </div>
  2742. </el-popover>
  2743. </div>
  2744. <img
  2745. class="deleteImg"
  2746. src="../../assets/deleteworks.png"
  2747. v-if="
  2748. w.userid == userid || tType == 1 || tType == 4
  2749. "
  2750. @click.stop="deleteWorks(w.wid)"
  2751. alt
  2752. />
  2753. </div>
  2754. <div class="worksName">
  2755. <div>{{ w.sName }}</div>
  2756. </div>
  2757. </div>
  2758. </div>
  2759. </div>
  2760. <div
  2761. v-if="
  2762. tType &&
  2763. tType == 2 &&
  2764. !sIsOpen &&
  2765. tool.tool.indexOf(3) != -1
  2766. "
  2767. class="worksBox"
  2768. >
  2769. <div
  2770. class="zuoyeYulan"
  2771. v-if="workStudent[toolIndex].length > 0"
  2772. >
  2773. <span class="worksTitle">作业预览</span>
  2774. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2775. </div>
  2776. <div
  2777. class="worksDetailBox"
  2778. v-if="workStudent[toolIndex].length > 0"
  2779. >
  2780. <div
  2781. class="works"
  2782. style="
  2783. width: 200px;
  2784. height: 140px;
  2785. margin: 10px 10px 10px 0;
  2786. box-shadow: 0 0 6px 1px #dfdada;
  2787. "
  2788. v-for="(w, wIndex) in workStudent[toolIndex]"
  2789. :key="wIndex"
  2790. >
  2791. <div class="workImg">
  2792. <img
  2793. :src="w.works"
  2794. @click="previewImg(w.works, w)"
  2795. alt
  2796. />
  2797. <div
  2798. class="answerScore"
  2799. v-if="w.score"
  2800. @click.stop="openScore(w)"
  2801. :class="{
  2802. rightW:
  2803. w.userid == userid || tType == 1 || tType == 4
  2804. }"
  2805. >
  2806. {{ JSON.parse(w.score).wScore }}分
  2807. </div>
  2808. <div
  2809. class="answerScore"
  2810. @click.stop="openScore(w)"
  2811. v-else-if="courseDetail.userid == userid"
  2812. :class="{
  2813. rightW:
  2814. w.userid == userid || tType == 1 || tType == 4
  2815. }"
  2816. >
  2817. 评分
  2818. </div>
  2819. <div
  2820. class="stuLookScore"
  2821. v-if="
  2822. w.userid == userid ||
  2823. (tType == 1 &&
  2824. courseDetail.state == 5 &&
  2825. ((chapInfoList[courseType].chapterInfo[0]
  2826. .taskJson[taskCount].eList &&
  2827. chapInfoList[courseType].chapterInfo[0]
  2828. .taskJson[taskCount].eList.length) ||
  2829. (tool.eList && tool.eList.length)))
  2830. "
  2831. >
  2832. <el-popover
  2833. placement="top"
  2834. width="318"
  2835. trigger="hover"
  2836. >
  2837. <markScore
  2838. :loading="AIloading[toolIndex][wIndex].loading"
  2839. :markScoreVisible="markScoreVisible"
  2840. :ref="`markSco${toolIndex}${wIndex}`"
  2841. @updateLoading="updateLoading"
  2842. @updateDocSco="updateDocSco"
  2843. @refreshOther="refreshOther"
  2844. @markScoreDig="markScoreDig"
  2845. :tool="tool"
  2846. :wIndex="wIndex"
  2847. :scoCon="w"
  2848. :toolIndex="toolIndex"
  2849. :key="refreshKey"
  2850. :stage="courseType"
  2851. :task="taskCount"
  2852. :scoTit="
  2853. chapInfoList[courseType].chapterInfo[0]
  2854. .taskJson[taskCount].eList
  2855. "
  2856. >
  2857. </markScore>
  2858. <div
  2859. @click="
  2860. markScoreDig2(
  2861. w.sName,
  2862. worksStudent,
  2863. w.userid,
  2864. toolIndex,
  2865. chapInfoList[courseType].chapterInfo[0]
  2866. .taskJson[taskCount].eList,
  2867. AIloading[toolIndex][wIndex].loading,
  2868. tool
  2869. )
  2870. "
  2871. slot="reference"
  2872. >
  2873. <span v-if="AIloading[toolIndex][wIndex].sco">
  2874. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2875. </span>
  2876. <span v-else>
  2877. 评分
  2878. </span>
  2879. </div>
  2880. </el-popover>
  2881. </div>
  2882. <img
  2883. class="deleteImg"
  2884. src="../../assets/deleteworks.png"
  2885. v-if="
  2886. w.userid == userid || tType == 1 || tType == 4
  2887. "
  2888. @click.stop="deleteWorks(w.wid)"
  2889. alt
  2890. />
  2891. </div>
  2892. <div class="worksName">
  2893. <div>{{ w.sName }}</div>
  2894. </div>
  2895. </div>
  2896. </div>
  2897. </div>
  2898. <div
  2899. v-if="
  2900. tType &&
  2901. tType == 2 &&
  2902. !sIsOpen &&
  2903. tool.tool.indexOf(6) != -1
  2904. "
  2905. class="worksBox"
  2906. >
  2907. <div
  2908. class="zuoyeYulan"
  2909. v-if="workStudent[toolIndex].length > 0"
  2910. >
  2911. <span class="worksTitle">作业预览</span>
  2912. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2913. </div>
  2914. <div
  2915. class="worksDetailBox"
  2916. v-if="workStudent[toolIndex].length > 0"
  2917. >
  2918. <div
  2919. class="works"
  2920. style="
  2921. width: 200px;
  2922. height: 140px;
  2923. margin: 10px 10px 10px 0;
  2924. box-shadow: 0 0 6px 1px #dfdada;
  2925. "
  2926. v-for="(w, wIndex) in workStudent[toolIndex]"
  2927. :key="wIndex"
  2928. >
  2929. <div class="workImg">
  2930. <img
  2931. :src="w.works"
  2932. @click="previewImg(w.works, w)"
  2933. alt
  2934. />
  2935. <div
  2936. class="answerScore"
  2937. v-if="w.score"
  2938. @click.stop="openScore(w)"
  2939. :class="{
  2940. rightW:
  2941. w.userid == userid || tType == 1 || tType == 4
  2942. }"
  2943. >
  2944. {{ JSON.parse(w.score).wScore }}分
  2945. </div>
  2946. <div
  2947. class="answerScore"
  2948. @click.stop="openScore(w)"
  2949. v-else-if="courseDetail.userid == userid"
  2950. :class="{
  2951. rightW:
  2952. w.userid == userid || tType == 1 || tType == 4
  2953. }"
  2954. >
  2955. 评分
  2956. </div>
  2957. <img
  2958. class="deleteImg"
  2959. src="../../assets/deleteworks.png"
  2960. v-if="
  2961. w.userid == userid || tType == 1 || tType == 4
  2962. "
  2963. @click.stop="deleteWorks(w.wid)"
  2964. alt
  2965. />
  2966. </div>
  2967. <div class="worksName">
  2968. <div>{{ w.sName }}</div>
  2969. </div>
  2970. </div>
  2971. </div>
  2972. </div>
  2973. <div
  2974. v-if="
  2975. tType &&
  2976. tType == 2 &&
  2977. !sIsOpen &&
  2978. tool.tool.indexOf(7) != -1
  2979. "
  2980. class="worksBox"
  2981. >
  2982. <div
  2983. class="zuoyeYulan"
  2984. v-if="workStudent[toolIndex].length > 0"
  2985. >
  2986. <span class="worksTitle">作业预览</span>
  2987. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2988. </div>
  2989. <div
  2990. class="worksDetailBox"
  2991. v-if="workStudent[toolIndex].length > 0"
  2992. >
  2993. <div
  2994. class="works"
  2995. style="
  2996. width: 200px;
  2997. height: 140px;
  2998. margin: 10px 10px 10px 0;
  2999. box-shadow: 0 0 6px 1px #dfdada;
  3000. "
  3001. v-for="(w, wIndex) in workStudent[toolIndex]"
  3002. :key="wIndex"
  3003. >
  3004. <div class="workImg">
  3005. <img
  3006. :src="w.works"
  3007. @click="previewImg(w.works, w)"
  3008. alt
  3009. />
  3010. <div
  3011. class="answerScore"
  3012. v-if="w.score"
  3013. @click.stop="openScore(w)"
  3014. :class="{
  3015. rightW:
  3016. w.userid == userid || tType == 1 || tType == 4
  3017. }"
  3018. >
  3019. {{ JSON.parse(w.score).wScore }}分
  3020. </div>
  3021. <div
  3022. class="answerScore"
  3023. @click.stop="openScore(w)"
  3024. v-else-if="courseDetail.userid == userid"
  3025. :class="{
  3026. rightW:
  3027. w.userid == userid || tType == 1 || tType == 4
  3028. }"
  3029. >
  3030. 评分
  3031. </div>
  3032. <div
  3033. class="stuLookScore"
  3034. v-if="
  3035. w.userid == userid ||
  3036. (tType == 1 &&
  3037. courseDetail.state == 5 &&
  3038. ((chapInfoList[courseType].chapterInfo[0]
  3039. .taskJson[taskCount].eList &&
  3040. chapInfoList[courseType].chapterInfo[0]
  3041. .taskJson[taskCount].eList.length) ||
  3042. (tool.eList && tool.eList.length)))
  3043. "
  3044. >
  3045. <el-popover
  3046. placement="top"
  3047. width="318"
  3048. trigger="hover"
  3049. >
  3050. <markScore
  3051. :loading="AIloading[toolIndex][wIndex].loading"
  3052. :markScoreVisible="markScoreVisible"
  3053. :ref="`markSco${toolIndex}${wIndex}`"
  3054. @updateLoading="updateLoading"
  3055. @updateDocSco="updateDocSco"
  3056. @refreshOther="refreshOther"
  3057. @markScoreDig="markScoreDig"
  3058. :tool="tool"
  3059. :wIndex="wIndex"
  3060. :scoCon="w"
  3061. :toolIndex="toolIndex"
  3062. :key="refreshKey"
  3063. :stage="courseType"
  3064. :task="taskCount"
  3065. :scoTit="
  3066. chapInfoList[courseType].chapterInfo[0]
  3067. .taskJson[taskCount].eList
  3068. "
  3069. >
  3070. </markScore>
  3071. <div
  3072. @click="
  3073. markScoreDig2(
  3074. w.sName,
  3075. worksStudent,
  3076. w.userid,
  3077. toolIndex,
  3078. chapInfoList[courseType].chapterInfo[0]
  3079. .taskJson[taskCount].eList,
  3080. AIloading[toolIndex][wIndex].loading,
  3081. tool
  3082. )
  3083. "
  3084. slot="reference"
  3085. >
  3086. <span v-if="AIloading[toolIndex][wIndex].sco">
  3087. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3088. </span>
  3089. <span v-else>
  3090. 评分
  3091. </span>
  3092. </div>
  3093. </el-popover>
  3094. </div>
  3095. <img
  3096. class="deleteImg"
  3097. src="../../assets/deleteworks.png"
  3098. v-if="
  3099. w.userid == userid || tType == 1 || tType == 4
  3100. "
  3101. @click.stop="deleteWorks(w.wid)"
  3102. alt
  3103. />
  3104. </div>
  3105. <div class="worksName">
  3106. <div>{{ w.sName }}</div>
  3107. </div>
  3108. </div>
  3109. </div>
  3110. </div>
  3111. <div
  3112. v-if="
  3113. tType &&
  3114. tType == 2 &&
  3115. !sIsOpen &&
  3116. tool.tool.indexOf(26) != -1
  3117. "
  3118. class="worksBox"
  3119. >
  3120. <div
  3121. class="zuoyeYulan"
  3122. v-if="workStudent[toolIndex].length > 0"
  3123. >
  3124. <span class="worksTitle">作业预览</span>
  3125. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3126. </div>
  3127. <div
  3128. class="worksDetailBox"
  3129. v-if="workStudent[toolIndex].length > 0"
  3130. >
  3131. <div
  3132. class="works"
  3133. style="
  3134. width: 200px;
  3135. height: 140px;
  3136. margin: 10px 10px 10px 0;
  3137. box-shadow: 0 0 6px 1px #dfdada;
  3138. "
  3139. v-for="(w, wIndex) in workStudent[toolIndex]"
  3140. :key="wIndex"
  3141. >
  3142. <div class="workImg">
  3143. <img
  3144. :src="w.works"
  3145. @click="previewImg(w.works, w)"
  3146. alt
  3147. />
  3148. <img
  3149. class="deleteImg"
  3150. src="../../assets/deleteworks.png"
  3151. v-if="
  3152. w.userid == userid || tType == 1 || tType == 4
  3153. "
  3154. @click.stop="deleteWorks(w.wid)"
  3155. alt
  3156. />
  3157. </div>
  3158. <div class="worksName">
  3159. <div>{{ w.sName }}</div>
  3160. </div>
  3161. </div>
  3162. </div>
  3163. </div>
  3164. <div
  3165. v-if="
  3166. tType &&
  3167. ((tType == 2 && sIsOpen == true) ||
  3168. tType == 1 ||
  3169. tType == 4) &&
  3170. tool.tool.indexOf(16) != -1
  3171. "
  3172. class="worksBox"
  3173. >
  3174. <div
  3175. class="zuoyeYulan"
  3176. style="display: flex;justify-content: space-between;align-items: center;"
  3177. v-if="
  3178. (worksStudent.length &&
  3179. worksStudent[toolIndex].length > 0) ||
  3180. (courseGroup.group && courseGroup.group.length)
  3181. "
  3182. >
  3183. <div class="worksTop">
  3184. <div>作业预览</div>
  3185. <div
  3186. class="corOpen"
  3187. @click="contract(toolIndex)"
  3188. v-if="
  3189. isCloseList[toolIndex].isCloseBoolean &&
  3190. isCloseList[toolIndex].isClose == 0
  3191. "
  3192. >
  3193. 折叠
  3194. </div>
  3195. <div
  3196. class="corOpen"
  3197. @click="contract(toolIndex)"
  3198. v-if="isCloseList[toolIndex].isClose == 1"
  3199. >
  3200. 展开
  3201. </div>
  3202. </div>
  3203. <div
  3204. style="display: flex;"
  3205. v-if="
  3206. (courseDetail.userid == userid ||
  3207. (courseDetail.course_teacher &&
  3208. courseDetail.course_teacher.indexOf(userid) !=
  3209. -1)) &&
  3210. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3211. taskCount
  3212. ].eList &&
  3213. chapInfoList[courseType].chapterInfo[0].taskJson[
  3214. taskCount
  3215. ].eList.length) ||
  3216. (tool.eList && tool.eList.length)) &&
  3217. courseDetail.state == 5
  3218. "
  3219. >
  3220. <!-- <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"> -->
  3221. <div
  3222. style="margin-right:10px"
  3223. class="ScoreBtn"
  3224. @click="
  3225. resetLoopEva(
  3226. worksStudent[toolIndex],
  3227. chapInfoList[courseType].chapterInfo[0].taskJson[
  3228. taskCount
  3229. ].eList,
  3230. courseType,
  3231. taskCount,
  3232. toolIndex,
  3233. tool.toolDetail,
  3234. worksStudent
  3235. )
  3236. "
  3237. >
  3238. 一键重置
  3239. </div>
  3240. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3241. <img
  3242. src="../../assets/icon/newIcons/rootImg.png"
  3243. alt=""
  3244. />
  3245. AI评分
  3246. </div>
  3247. <div
  3248. class="ScoreBtn"
  3249. v-else-if="!loopLoading[toolIndex].loading"
  3250. @click="
  3251. loopEva(
  3252. worksStudent[toolIndex],
  3253. chapInfoList[courseType].chapterInfo[0].taskJson[
  3254. taskCount
  3255. ].eList,
  3256. courseType,
  3257. taskCount,
  3258. toolIndex,
  3259. tool.toolDetail,
  3260. chapInfoList[courseType].chapterInfo[0].taskJson[
  3261. taskCount
  3262. ].taskDetail,
  3263. tool
  3264. )
  3265. "
  3266. >
  3267. <img
  3268. src="../../assets/icon/newIcons/rootImg.png"
  3269. alt=""
  3270. />
  3271. AI评分
  3272. </div>
  3273. <div class="ScoreBtn" v-else>
  3274. <img
  3275. src="../../assets/icon/newIcons/rootImg.png"
  3276. alt=""
  3277. />
  3278. 正在评分
  3279. </div>
  3280. </div>
  3281. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3282. </div>
  3283. <div
  3284. class="group_workBox"
  3285. v-for="(g, gindex) in courseGroup.group"
  3286. :key="gindex"
  3287. >
  3288. <div class="group_box">
  3289. <div class="group_title">
  3290. <el-tooltip
  3291. class="item"
  3292. effect="light"
  3293. :content="g.name"
  3294. placement="top"
  3295. >
  3296. <div class="group_name">{{ g.name }}</div>
  3297. </el-tooltip>
  3298. </div>
  3299. <div
  3300. class="group_work"
  3301. v-if="
  3302. g.works &&
  3303. g.works.length &&
  3304. g.works[toolIndex].length
  3305. "
  3306. >
  3307. <div
  3308. class="works"
  3309. style="
  3310. width: 200px;
  3311. height: 140px;
  3312. margin: 10px 10px 10px 0;
  3313. border-radius: 15px;
  3314. box-shadow: 0 0 6px 1px #dfdada;
  3315. "
  3316. v-for="(w, wIndex) in g.works[toolIndex]"
  3317. :key="wIndex"
  3318. :class="w.type == 1 ? 'isTypeOne' : ''"
  3319. >
  3320. <div class="workImg" v-if="w.type == 0">
  3321. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3322. <img
  3323. :src="w.works"
  3324. @click="previewImg(w.works, w)"
  3325. alt
  3326. />
  3327. <div
  3328. class="answerScore"
  3329. v-if="w.score"
  3330. @click.stop="openScore(w)"
  3331. :class="{
  3332. rightW:
  3333. w.userid == userid ||
  3334. tType == 1 ||
  3335. tType == 4 ||
  3336. w.ateacher == userid
  3337. }"
  3338. >
  3339. {{ JSON.parse(w.score).wScore }}分
  3340. </div>
  3341. <div
  3342. class="answerScore"
  3343. @click.stop="openScore(w)"
  3344. v-else-if="courseDetail.userid == userid"
  3345. :class="{
  3346. rightW:
  3347. w.userid == userid ||
  3348. tType == 1 ||
  3349. tType == 4 ||
  3350. w.ateacher == userid
  3351. }"
  3352. >
  3353. 评分
  3354. </div>
  3355. <img
  3356. class="deleteImg"
  3357. src="../../assets/deleteworks.png"
  3358. v-if="
  3359. w.userid == userid || tType == 1 || tType == 4
  3360. "
  3361. @click.stop="deleteWorks(w.wid)"
  3362. alt
  3363. />
  3364. </div>
  3365. <div class="workImg" v-if="w.type == 1">
  3366. <img :src="word" @click="openFile(w.works)" alt />
  3367. <!-- @click="openFile(w.works)" -->
  3368. <div
  3369. class="answerScore"
  3370. v-if="w.score"
  3371. @click.stop="openScore(w)"
  3372. :class="{
  3373. rightW:
  3374. w.userid == userid ||
  3375. tType == 1 ||
  3376. tType == 4 ||
  3377. w.ateacher == userid
  3378. }"
  3379. >
  3380. {{ JSON.parse(w.score).wScore }}分
  3381. </div>
  3382. <div
  3383. class="answerScore"
  3384. @click.stop="openScore(w)"
  3385. v-else-if="courseDetail.userid == userid"
  3386. :class="{
  3387. rightW:
  3388. w.userid == userid ||
  3389. tType == 1 ||
  3390. tType == 4 ||
  3391. w.ateacher == userid
  3392. }"
  3393. >
  3394. 评分
  3395. </div>
  3396. <img
  3397. class="deleteImg"
  3398. src="../../assets/deleteworks.png"
  3399. v-if="
  3400. w.userid == userid || tType == 1 || tType == 4
  3401. "
  3402. @click.stop="deleteWorks(w.wid)"
  3403. alt
  3404. />
  3405. </div>
  3406. <div class="workImg" v-if="w.type == 3">
  3407. <img
  3408. style="cursor: pointer"
  3409. :src="video"
  3410. @click="openVideo(w)"
  3411. alt
  3412. />
  3413. <!-- @click="openVideo(w.works)" -->
  3414. <div
  3415. class="answerScore"
  3416. v-if="w.score"
  3417. @click.stop="openScore(w)"
  3418. :class="{
  3419. rightW:
  3420. w.userid == userid ||
  3421. tType == 1 ||
  3422. tType == 4 ||
  3423. w.ateacher == userid
  3424. }"
  3425. >
  3426. {{ JSON.parse(w.score).wScore }}分
  3427. </div>
  3428. <div
  3429. class="answerScore"
  3430. @click.stop="openScore(w)"
  3431. v-else-if="courseDetail.userid == userid"
  3432. :class="{
  3433. rightW:
  3434. w.userid == userid ||
  3435. tType == 1 ||
  3436. tType == 4 ||
  3437. w.ateacher == userid
  3438. }"
  3439. >
  3440. 评分
  3441. </div>
  3442. <img
  3443. class="deleteImg"
  3444. src="../../assets/deleteworks.png"
  3445. v-if="
  3446. w.userid == userid || tType == 1 || tType == 4
  3447. "
  3448. @click.stop="deleteWorks(w.wid)"
  3449. alt
  3450. />
  3451. </div>
  3452. <div class="workImg" v-if="w.type == 12">
  3453. <img
  3454. style="cursor: pointer"
  3455. :src="word2"
  3456. @click="downloadFile(w.works,w.userid)"
  3457. alt
  3458. />
  3459. <!-- @click="openVideo(w.works)" -->
  3460. <div
  3461. class="answerScore"
  3462. v-if="w.score"
  3463. @click.stop="openScore(w)"
  3464. :class="{
  3465. rightW:
  3466. w.userid == userid ||
  3467. tType == 1 ||
  3468. tType == 4 ||
  3469. w.ateacher == userid
  3470. }"
  3471. >
  3472. {{ JSON.parse(w.score).wScore }}分
  3473. </div>
  3474. <div
  3475. class="answerScore"
  3476. @click.stop="openScore(w)"
  3477. v-else-if="courseDetail.userid == userid"
  3478. :class="{
  3479. rightW:
  3480. w.userid == userid ||
  3481. tType == 1 ||
  3482. tType == 4 ||
  3483. w.ateacher == userid
  3484. }"
  3485. >
  3486. 评分
  3487. </div>
  3488. <img
  3489. class="deleteImg"
  3490. src="../../assets/deleteworks.png"
  3491. v-if="
  3492. w.userid == userid || tType == 1 || tType == 4
  3493. "
  3494. @click.stop="deleteWorks(w.wid)"
  3495. alt
  3496. />
  3497. </div>
  3498. <div class="comment" style="min-width: 200px">
  3499. <div class="worksName">
  3500. <div>{{ w.sName }}</div>
  3501. </div>
  3502. <div class="commentList">
  3503. <div class="commentList">
  3504. <div
  3505. class="commentImg"
  3506. @click="
  3507. isLikes(
  3508. w.wid,
  3509. userid,
  3510. 1,
  3511. null,
  3512. w.isLikes,
  3513. w.sName
  3514. )
  3515. "
  3516. >
  3517. <img
  3518. :src="w.isLikes == true ? likes : noLikes"
  3519. alt=""
  3520. />
  3521. </div>
  3522. <div>{{ w.likesCount }}</div>
  3523. </div>
  3524. <div
  3525. class="commentList"
  3526. style="margin-right: 15px"
  3527. >
  3528. <div
  3529. class="commentImg"
  3530. @click="
  3531. commentOther(
  3532. w,
  3533. toolIndex,
  3534. wIndex,
  3535. null,
  3536. g.id
  3537. )
  3538. "
  3539. >
  3540. <img
  3541. src="../../assets/icon/comment/comment.png"
  3542. alt=""
  3543. />
  3544. </div>
  3545. <div>{{ w.commentCount }}</div>
  3546. </div>
  3547. </div>
  3548. </div>
  3549. </div>
  3550. </div>
  3551. <div class="group_work" v-else>暂无提交作业</div>
  3552. </div>
  3553. </div>
  3554. <div
  3555. :id="'tool-' + toolIndex"
  3556. :style="{
  3557. height:
  3558. isCloseList[toolIndex].isClose == 1
  3559. ? retrnToolHeight('tool-' + toolIndex)
  3560. : 'auto',
  3561. overflow:
  3562. isCloseList[toolIndex].isClose == 1
  3563. ? 'hidden'
  3564. : 'unset'
  3565. }"
  3566. class="worksDetailBox"
  3567. v-if="
  3568. worksStudent.length &&
  3569. worksStudent[toolIndex].length > 0
  3570. "
  3571. >
  3572. <div
  3573. class="works"
  3574. style="
  3575. width: 200px;
  3576. height: 140px;
  3577. margin: 10px 10px 10px 0;
  3578. border-radius: 15px;
  3579. box-shadow: 0 0 6px 1px #dfdada;
  3580. "
  3581. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3582. :key="wIndex"
  3583. :class="w.type == 1 ? 'isTypeOne' : ''"
  3584. >
  3585. <div class="workImg" v-if="w.type == 0">
  3586. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3587. <img
  3588. :src="w.works"
  3589. @click="previewImg(w.works, w)"
  3590. alt
  3591. />
  3592. <div
  3593. class="answerScore"
  3594. v-if="w.score"
  3595. @click.stop="openScore(w)"
  3596. :class="{
  3597. rightW:
  3598. w.userid == userid ||
  3599. tType == 1 ||
  3600. tType == 4 ||
  3601. w.ateacher == userid
  3602. }"
  3603. >
  3604. {{ JSON.parse(w.score).wScore }}分
  3605. </div>
  3606. <div
  3607. class="answerScore"
  3608. @click.stop="openScore(w)"
  3609. v-else-if="
  3610. courseDetail.userid == userid &&
  3611. courseDetail.state != 5 &&
  3612. chapInfoList[courseType].chapterInfo[0]
  3613. .taskJson[taskCount].eList &&
  3614. chapInfoList[courseType].chapterInfo[0]
  3615. .taskJson[taskCount].eList.length
  3616. "
  3617. :class="{
  3618. rightW:
  3619. w.userid == userid ||
  3620. tType == 1 ||
  3621. tType == 4 ||
  3622. w.ateacher == userid
  3623. }"
  3624. >
  3625. 评分
  3626. </div>
  3627. <!-- <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"> -->
  3628. <div
  3629. v-else-if="
  3630. (courseDetail.userid == userid ||
  3631. (courseDetail.course_teacher &&
  3632. courseDetail.course_teacher.indexOf(userid) !=
  3633. -1) ||
  3634. (w.userid == userid && sIsOpen)) &&
  3635. courseDetail.state == 5 &&
  3636. ((chapInfoList[courseType].chapterInfo[0]
  3637. .taskJson[taskCount].eList &&
  3638. chapInfoList[courseType].chapterInfo[0]
  3639. .taskJson[taskCount].eList.length) ||
  3640. (tool.eList && tool.eList.length))
  3641. "
  3642. >
  3643. <el-popover
  3644. placement="top"
  3645. width="318"
  3646. :disabled="AIloading[toolIndex][wIndex].loading"
  3647. trigger="hover"
  3648. >
  3649. <markScore
  3650. :loading="AIloading[toolIndex][wIndex].loading"
  3651. :markScoreVisible="markScoreVisible"
  3652. :ref="`markSco${toolIndex}${wIndex}`"
  3653. @updateLoading="updateLoading"
  3654. @updateDocSco="updateDocSco"
  3655. @refreshOther="refreshOther"
  3656. @markScoreDig="markScoreDig"
  3657. :tool="tool"
  3658. :wIndex="wIndex"
  3659. :scoCon="w"
  3660. :toolIndex="toolIndex"
  3661. :key="refreshKey"
  3662. :stage="courseType"
  3663. :task="taskCount"
  3664. :scoTit="
  3665. chapInfoList[courseType].chapterInfo[0]
  3666. .taskJson[taskCount].eList
  3667. "
  3668. >
  3669. </markScore>
  3670. <div
  3671. class="answerScore"
  3672. @click="
  3673. markScoreDig2(
  3674. w.sName,
  3675. worksStudent,
  3676. w.userid,
  3677. toolIndex,
  3678. chapInfoList[courseType].chapterInfo[0]
  3679. .taskJson[taskCount].eList,
  3680. AIloading[toolIndex][wIndex].loading,
  3681. tool
  3682. )
  3683. "
  3684. slot="reference"
  3685. :class="{
  3686. rightW:
  3687. w.userid == userid ||
  3688. tType == 1 ||
  3689. tType == 4 ||
  3690. w.ateacher == userid
  3691. }"
  3692. >
  3693. <span v-if="AIloading[toolIndex][wIndex].sco">
  3694. {{
  3695. AIloading[toolIndex][wIndex].loading
  3696. ? "评分中"
  3697. : AIloading[toolIndex][wIndex].sco + "分"
  3698. }}
  3699. </span>
  3700. <span v-else>
  3701. {{
  3702. AIloading[toolIndex][wIndex].loading
  3703. ? "评分中"
  3704. : "评分"
  3705. }}
  3706. </span>
  3707. </div>
  3708. </el-popover>
  3709. </div>
  3710. <img
  3711. class="deleteImg"
  3712. src="../../assets/deleteworks.png"
  3713. v-if="
  3714. w.userid == userid || tType == 1 || tType == 4
  3715. "
  3716. @click.stop="deleteWorks(w.wid)"
  3717. alt
  3718. />
  3719. </div>
  3720. <div class="workImg" v-if="w.type == 1">
  3721. <img :src="word" @click="openFile(w.works)" alt />
  3722. <!-- @click="openFile(w.works)" -->
  3723. <div
  3724. class="answerScore"
  3725. v-if="w.score"
  3726. @click.stop="openScore(w)"
  3727. :class="{
  3728. rightW:
  3729. w.userid == userid ||
  3730. tType == 1 ||
  3731. tType == 4 ||
  3732. w.ateacher == userid
  3733. }"
  3734. >
  3735. {{ JSON.parse(w.score).wScore }}分
  3736. </div>
  3737. <div
  3738. class="answerScore"
  3739. @click.stop="openScore(w)"
  3740. v-else-if="
  3741. courseDetail.userid == userid &&
  3742. courseDetail.state != 5 &&
  3743. chapInfoList[courseType].chapterInfo[0]
  3744. .taskJson[taskCount].eList &&
  3745. chapInfoList[courseType].chapterInfo[0]
  3746. .taskJson[taskCount].eList.length
  3747. "
  3748. :class="{
  3749. rightW:
  3750. w.userid == userid ||
  3751. tType == 1 ||
  3752. tType == 4 ||
  3753. w.ateacher == userid
  3754. }"
  3755. >
  3756. 评分
  3757. </div>
  3758. <!-- <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"> -->
  3759. <div
  3760. v-else-if="
  3761. (courseDetail.userid == userid ||
  3762. (courseDetail.course_teacher &&
  3763. courseDetail.course_teacher.indexOf(userid) !=
  3764. -1) ||
  3765. (w.userid == userid && sIsOpen)) &&
  3766. courseDetail.state == 5 &&
  3767. ((chapInfoList[courseType].chapterInfo[0]
  3768. .taskJson[taskCount].eList &&
  3769. chapInfoList[courseType].chapterInfo[0]
  3770. .taskJson[taskCount].eList.length) ||
  3771. (tool.eList && tool.eList.length))
  3772. "
  3773. >
  3774. <el-popover
  3775. placement="top"
  3776. width="318"
  3777. :disabled="AIloading[toolIndex][wIndex].loading"
  3778. trigger="hover"
  3779. >
  3780. <markScore
  3781. :loading="AIloading[toolIndex][wIndex].loading"
  3782. :markScoreVisible="markScoreVisible"
  3783. :ref="`markSco${toolIndex}${wIndex}`"
  3784. @updateLoading="updateLoading"
  3785. @updateDocSco="updateDocSco"
  3786. @refreshOther="refreshOther"
  3787. @markScoreDig="markScoreDig"
  3788. :tool="tool"
  3789. :wIndex="wIndex"
  3790. :scoCon="w"
  3791. :toolIndex="toolIndex"
  3792. :key="refreshKey"
  3793. :stage="courseType"
  3794. :task="taskCount"
  3795. :scoTit="
  3796. chapInfoList[courseType].chapterInfo[0]
  3797. .taskJson[taskCount].eList
  3798. "
  3799. >
  3800. </markScore>
  3801. <div
  3802. class="answerScore"
  3803. @click="
  3804. markScoreDig2(
  3805. w.sName,
  3806. worksStudent,
  3807. w.userid,
  3808. toolIndex,
  3809. chapInfoList[courseType].chapterInfo[0]
  3810. .taskJson[taskCount].eList,
  3811. AIloading[toolIndex][wIndex].loading,
  3812. tool
  3813. )
  3814. "
  3815. slot="reference"
  3816. :class="{
  3817. rightW:
  3818. w.userid == userid ||
  3819. tType == 1 ||
  3820. tType == 4 ||
  3821. w.ateacher == userid
  3822. }"
  3823. >
  3824. <span v-if="AIloading[toolIndex][wIndex].sco">
  3825. {{
  3826. AIloading[toolIndex][wIndex].loading
  3827. ? "评分中"
  3828. : AIloading[toolIndex][wIndex].sco + "分"
  3829. }}
  3830. </span>
  3831. <span v-else>
  3832. {{
  3833. AIloading[toolIndex][wIndex].loading
  3834. ? "评分中"
  3835. : "评分"
  3836. }}
  3837. </span>
  3838. </div>
  3839. </el-popover>
  3840. </div>
  3841. <img
  3842. class="deleteImg"
  3843. src="../../assets/deleteworks.png"
  3844. v-if="
  3845. w.userid == userid || tType == 1 || tType == 4
  3846. "
  3847. @click.stop="deleteWorks(w.wid)"
  3848. alt
  3849. />
  3850. </div>
  3851. <div class="workImg" v-if="w.type == 3">
  3852. <img
  3853. style="cursor: pointer"
  3854. :src="video"
  3855. @click="openVideo(w)"
  3856. alt
  3857. />
  3858. <!-- @click="openVideo(w.works)" -->
  3859. <div
  3860. class="answerScore"
  3861. v-if="w.score"
  3862. @click.stop="openScore(w)"
  3863. :class="{
  3864. rightW:
  3865. w.userid == userid ||
  3866. tType == 1 ||
  3867. tType == 4 ||
  3868. w.ateacher == userid
  3869. }"
  3870. >
  3871. {{ JSON.parse(w.score).wScore }}分
  3872. </div>
  3873. <div
  3874. class="answerScore"
  3875. @click.stop="openScore(w)"
  3876. v-else-if="
  3877. courseDetail.userid == userid &&
  3878. courseDetail.state != 5 &&
  3879. chapInfoList[courseType].chapterInfo[0]
  3880. .taskJson[taskCount].eList &&
  3881. chapInfoList[courseType].chapterInfo[0]
  3882. .taskJson[taskCount].eList.length
  3883. "
  3884. :class="{
  3885. rightW:
  3886. w.userid == userid ||
  3887. tType == 1 ||
  3888. tType == 4 ||
  3889. w.ateacher == userid
  3890. }"
  3891. >
  3892. 评分
  3893. </div>
  3894. <!-- <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"> -->
  3895. <div
  3896. v-else-if="
  3897. (courseDetail.userid == userid ||
  3898. (courseDetail.course_teacher &&
  3899. courseDetail.course_teacher.indexOf(userid) !=
  3900. -1) ||
  3901. (w.userid == userid && sIsOpen)) &&
  3902. courseDetail.state == 5 &&
  3903. ((chapInfoList[courseType].chapterInfo[0]
  3904. .taskJson[taskCount].eList &&
  3905. chapInfoList[courseType].chapterInfo[0]
  3906. .taskJson[taskCount].eList.length) ||
  3907. (tool.eList && tool.eList.length))
  3908. "
  3909. >
  3910. <el-popover
  3911. placement="top"
  3912. width="318"
  3913. :disabled="AIloading[toolIndex][wIndex].loading"
  3914. trigger="hover"
  3915. >
  3916. <markScore
  3917. :loading="AIloading[toolIndex][wIndex].loading"
  3918. :markScoreVisible="markScoreVisible"
  3919. :ref="`markSco${toolIndex}${wIndex}`"
  3920. @updateLoading="updateLoading"
  3921. @updateDocSco="updateDocSco"
  3922. @refreshOther="refreshOther"
  3923. @markScoreDig="markScoreDig"
  3924. :tool="tool"
  3925. :wIndex="wIndex"
  3926. :scoCon="w"
  3927. :toolIndex="toolIndex"
  3928. :key="refreshKey"
  3929. :stage="courseType"
  3930. :task="taskCount"
  3931. :scoTit="
  3932. chapInfoList[courseType].chapterInfo[0]
  3933. .taskJson[taskCount].eList
  3934. "
  3935. >
  3936. </markScore>
  3937. <div
  3938. class="answerScore"
  3939. @click="
  3940. markScoreDig2(
  3941. w.sName,
  3942. worksStudent,
  3943. w.userid,
  3944. toolIndex,
  3945. chapInfoList[courseType].chapterInfo[0]
  3946. .taskJson[taskCount].eList,
  3947. AIloading[toolIndex][wIndex].loading,
  3948. tool
  3949. )
  3950. "
  3951. slot="reference"
  3952. :class="{
  3953. rightW:
  3954. w.userid == userid ||
  3955. tType == 1 ||
  3956. tType == 4 ||
  3957. w.ateacher == userid
  3958. }"
  3959. >
  3960. <span v-if="AIloading[toolIndex][wIndex].sco">
  3961. {{
  3962. AIloading[toolIndex][wIndex].loading
  3963. ? "评分中"
  3964. : AIloading[toolIndex][wIndex].sco + "分"
  3965. }}
  3966. </span>
  3967. <span v-else>
  3968. {{
  3969. AIloading[toolIndex][wIndex].loading
  3970. ? "评分中"
  3971. : "评分"
  3972. }}
  3973. </span>
  3974. </div>
  3975. </el-popover>
  3976. </div>
  3977. <img
  3978. class="deleteImg"
  3979. src="../../assets/deleteworks.png"
  3980. v-if="
  3981. w.userid == userid || tType == 1 || tType == 4
  3982. "
  3983. @click.stop="deleteWorks(w.wid)"
  3984. alt
  3985. />
  3986. </div>
  3987. <div class="workImg" v-if="w.type == 12">
  3988. <img
  3989. style="cursor: pointer"
  3990. :src="word2"
  3991. @click="downloadFile(w.works,w.userid)"
  3992. alt
  3993. />
  3994. <!-- @click="openVideo(w.works)" -->
  3995. <div
  3996. class="answerScore"
  3997. v-if="w.score"
  3998. @click.stop="openScore(w)"
  3999. :class="{
  4000. rightW:
  4001. w.userid == userid ||
  4002. tType == 1 ||
  4003. tType == 4 ||
  4004. w.ateacher == userid
  4005. }"
  4006. >
  4007. {{ JSON.parse(w.score).wScore }}分
  4008. </div>
  4009. <div
  4010. class="answerScore"
  4011. @click.stop="openScore(w)"
  4012. v-else-if="
  4013. courseDetail.userid == userid &&
  4014. courseDetail.state != 5 &&
  4015. chapInfoList[courseType].chapterInfo[0]
  4016. .taskJson[taskCount].eList &&
  4017. chapInfoList[courseType].chapterInfo[0]
  4018. .taskJson[taskCount].eList.length
  4019. "
  4020. :class="{
  4021. rightW:
  4022. w.userid == userid ||
  4023. tType == 1 ||
  4024. tType == 4 ||
  4025. w.ateacher == userid
  4026. }"
  4027. >
  4028. 评分
  4029. </div>
  4030. <!-- <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"> -->
  4031. <div
  4032. v-else-if="
  4033. (courseDetail.userid == userid ||
  4034. (courseDetail.course_teacher &&
  4035. courseDetail.course_teacher.indexOf(userid) !=
  4036. -1) ||
  4037. (w.userid == userid && sIsOpen)) &&
  4038. courseDetail.state == 5 &&
  4039. ((chapInfoList[courseType].chapterInfo[0]
  4040. .taskJson[taskCount].eList &&
  4041. chapInfoList[courseType].chapterInfo[0]
  4042. .taskJson[taskCount].eList.length) ||
  4043. (tool.eList && tool.eList.length))
  4044. "
  4045. >
  4046. <el-popover
  4047. placement="top"
  4048. width="318"
  4049. :disabled="AIloading[toolIndex][wIndex].loading"
  4050. trigger="hover"
  4051. >
  4052. <markScore
  4053. :loading="AIloading[toolIndex][wIndex].loading"
  4054. :markScoreVisible="markScoreVisible"
  4055. :ref="`markSco${toolIndex}${wIndex}`"
  4056. @updateLoading="updateLoading"
  4057. @updateDocSco="updateDocSco"
  4058. @refreshOther="refreshOther"
  4059. @markScoreDig="markScoreDig"
  4060. :tool="tool"
  4061. :wIndex="wIndex"
  4062. :scoCon="w"
  4063. :toolIndex="toolIndex"
  4064. :key="refreshKey"
  4065. :stage="courseType"
  4066. :task="taskCount"
  4067. :scoTit="
  4068. chapInfoList[courseType].chapterInfo[0]
  4069. .taskJson[taskCount].eList
  4070. "
  4071. >
  4072. </markScore>
  4073. <div
  4074. class="answerScore"
  4075. @click="
  4076. markScoreDig2(
  4077. w.sName,
  4078. worksStudent,
  4079. w.userid,
  4080. toolIndex,
  4081. chapInfoList[courseType].chapterInfo[0]
  4082. .taskJson[taskCount].eList,
  4083. AIloading[toolIndex][wIndex].loading,
  4084. tool
  4085. )
  4086. "
  4087. slot="reference"
  4088. :class="{
  4089. rightW:
  4090. w.userid == userid ||
  4091. tType == 1 ||
  4092. tType == 4 ||
  4093. w.ateacher == userid
  4094. }"
  4095. >
  4096. <span v-if="AIloading[toolIndex][wIndex].sco">
  4097. {{
  4098. AIloading[toolIndex][wIndex].loading
  4099. ? "评分中"
  4100. : AIloading[toolIndex][wIndex].sco + "分"
  4101. }}
  4102. </span>
  4103. <span v-else>
  4104. {{
  4105. AIloading[toolIndex][wIndex].loading
  4106. ? "评分中"
  4107. : "评分"
  4108. }}
  4109. </span>
  4110. </div>
  4111. </el-popover>
  4112. </div>
  4113. <img
  4114. class="deleteImg"
  4115. src="../../assets/deleteworks.png"
  4116. v-if="
  4117. w.userid == userid || tType == 1 || tType == 4
  4118. "
  4119. @click.stop="deleteWorks(w.wid)"
  4120. alt
  4121. />
  4122. </div>
  4123. <div class="comment" style="min-width: 200px">
  4124. <div class="worksName">
  4125. <div>{{ w.sName }}</div>
  4126. </div>
  4127. <div class="commentList">
  4128. <div class="commentList">
  4129. <div
  4130. class="commentImg"
  4131. @click="
  4132. isLikes(
  4133. w.wid,
  4134. userid,
  4135. 1,
  4136. null,
  4137. w.isLikes,
  4138. w.sName
  4139. )
  4140. "
  4141. >
  4142. <img
  4143. :src="w.isLikes == true ? likes : noLikes"
  4144. alt=""
  4145. />
  4146. </div>
  4147. <div>{{ w.likesCount }}</div>
  4148. </div>
  4149. <div class="commentList" style="margin-right: 15px">
  4150. <div
  4151. class="commentImg"
  4152. @click="commentOther(w, toolIndex, wIndex)"
  4153. >
  4154. <img
  4155. src="../../assets/icon/comment/comment.png"
  4156. alt=""
  4157. />
  4158. </div>
  4159. <div>{{ w.commentCount }}</div>
  4160. </div>
  4161. </div>
  4162. </div>
  4163. </div>
  4164. </div>
  4165. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4166. 未提交
  4167. </div>
  4168. <div
  4169. class="noWorksS"
  4170. v-if="noWorksS && noWorksS[toolIndex].length"
  4171. >
  4172. <div
  4173. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4174. :key="sIndex"
  4175. class="noWorksName"
  4176. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4177. >
  4178. <el-tooltip
  4179. effect="dark"
  4180. :content="s.student"
  4181. placement="top"
  4182. >
  4183. <span>{{ s.student }}</span>
  4184. </el-tooltip>
  4185. </div>
  4186. </div>
  4187. </div>
  4188. <div
  4189. v-if="
  4190. tType &&
  4191. ((tType == 2 && sIsOpen == true) ||
  4192. tType == 1 ||
  4193. tType == 4) &&
  4194. tool.tool.indexOf(70) != -1
  4195. "
  4196. class="worksBox"
  4197. >
  4198. <div
  4199. class="zuoyeYulan"
  4200. v-if="
  4201. worksStudent.length &&
  4202. worksStudent[toolIndex].length > 0
  4203. "
  4204. >
  4205. <div class="worksTop">
  4206. <div>作业预览</div>
  4207. <div
  4208. class="corOpen"
  4209. @click="contract(toolIndex)"
  4210. v-if="
  4211. isCloseList[toolIndex].isCloseBoolean &&
  4212. isCloseList[toolIndex].isClose == 0
  4213. "
  4214. >
  4215. 折叠
  4216. </div>
  4217. <div
  4218. class="corOpen"
  4219. @click="contract(toolIndex)"
  4220. v-if="isCloseList[toolIndex].isClose == 1"
  4221. >
  4222. 展开
  4223. </div>
  4224. </div>
  4225. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4226. </div>
  4227. <div
  4228. :id="'tool-' + toolIndex"
  4229. :style="{
  4230. height:
  4231. isCloseList[toolIndex].isClose == 1
  4232. ? retrnToolHeight('tool-' + toolIndex)
  4233. : 'auto',
  4234. overflow:
  4235. isCloseList[toolIndex].isClose == 1
  4236. ? 'hidden'
  4237. : 'unset'
  4238. }"
  4239. class="worksDetailBox"
  4240. v-if="
  4241. worksStudent.length &&
  4242. worksStudent[toolIndex].length > 0
  4243. "
  4244. >
  4245. <div
  4246. class="works"
  4247. style="
  4248. width: 200px;
  4249. height: 140px;
  4250. margin: 10px 10px 10px 0;
  4251. border-radius: 15px;
  4252. box-shadow: 0 0 6px 1px #dfdada;
  4253. "
  4254. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4255. :key="wIndex"
  4256. :class="w.type == 1 ? 'isTypeOne' : ''"
  4257. >
  4258. <div
  4259. class="workImg"
  4260. @click.stop="openScore(w, toolIndex)"
  4261. >
  4262. <img :src="word" alt />
  4263. <img
  4264. class="deleteImg"
  4265. src="../../assets/deleteworks.png"
  4266. v-if="
  4267. w.userid == userid || tType == 1 || tType == 4
  4268. "
  4269. @click.stop="deleteWorks(w.wid)"
  4270. alt
  4271. />
  4272. </div>
  4273. <div class="comment" style="min-width: 200px">
  4274. <div class="worksName">
  4275. <div>{{ w.sName }}</div>
  4276. </div>
  4277. </div>
  4278. </div>
  4279. </div>
  4280. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4281. 未提交
  4282. </div>
  4283. <div
  4284. class="noWorksS"
  4285. v-if="noWorksS && noWorksS[toolIndex].length"
  4286. >
  4287. <div
  4288. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4289. :key="sIndex"
  4290. class="noWorksName"
  4291. >
  4292. <el-tooltip
  4293. effect="dark"
  4294. :content="s.student"
  4295. placement="top"
  4296. >
  4297. <span>{{ s.student }}</span>
  4298. </el-tooltip>
  4299. </div>
  4300. </div>
  4301. </div>
  4302. <div
  4303. v-if="
  4304. tType &&
  4305. tType == 2 &&
  4306. !sIsOpen &&
  4307. tool.tool.indexOf(70) != -1
  4308. "
  4309. class="worksBox"
  4310. >
  4311. <div
  4312. class="zuoyeYulan"
  4313. v-if="workStudent[toolIndex].length > 0"
  4314. >
  4315. <span class="worksTitle">作业预览</span>
  4316. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4317. </div>
  4318. <div
  4319. class="worksDetailBox"
  4320. v-if="workStudent[toolIndex].length > 0"
  4321. >
  4322. <div
  4323. class="works"
  4324. style="
  4325. width: 200px;
  4326. height: 140px;
  4327. margin: 10px 10px 10px 0;
  4328. box-shadow: 0 0 6px 1px #dfdada;
  4329. "
  4330. v-for="(w, wIndex) in workStudent[toolIndex]"
  4331. :key="wIndex"
  4332. >
  4333. <div
  4334. class="workImg"
  4335. @click.stop="openScore(w, toolIndex)"
  4336. >
  4337. <img :src="word" alt />
  4338. <img
  4339. class="deleteImg"
  4340. src="../../assets/deleteworks.png"
  4341. v-if="
  4342. w.userid == userid || tType == 1 || tType == 4
  4343. "
  4344. @click.stop="deleteWorks(w.wid)"
  4345. alt
  4346. />
  4347. </div>
  4348. <div class="worksName">
  4349. <div>{{ w.sName }}</div>
  4350. </div>
  4351. </div>
  4352. </div>
  4353. </div>
  4354. <div
  4355. v-if="
  4356. tType &&
  4357. ((tType == 2 && sIsOpen == true) ||
  4358. tType == 1 ||
  4359. tType == 4) &&
  4360. tool.tool.indexOf(32) != -1
  4361. "
  4362. class="worksBox"
  4363. >
  4364. <div
  4365. class="zuoyeYulan"
  4366. v-if="
  4367. worksStudent.length &&
  4368. worksStudent[toolIndex].length > 0
  4369. "
  4370. >
  4371. <div class="worksTop">
  4372. <div>作业预览</div>
  4373. <div
  4374. class="corOpen"
  4375. @click="contract(toolIndex)"
  4376. v-if="
  4377. isCloseList[toolIndex].isCloseBoolean &&
  4378. isCloseList[toolIndex].isClose == 0
  4379. "
  4380. >
  4381. 折叠
  4382. </div>
  4383. <div
  4384. class="corOpen"
  4385. @click="contract(toolIndex)"
  4386. v-if="isCloseList[toolIndex].isClose == 1"
  4387. >
  4388. 展开
  4389. </div>
  4390. </div>
  4391. </div>
  4392. <div
  4393. :id="'tool-' + toolIndex"
  4394. :style="{
  4395. height:
  4396. isCloseList[toolIndex].isClose == 1
  4397. ? retrnToolHeight('tool-' + toolIndex)
  4398. : 'auto',
  4399. overflow:
  4400. isCloseList[toolIndex].isClose == 1
  4401. ? 'hidden'
  4402. : 'unset'
  4403. }"
  4404. class="worksDetailBox"
  4405. v-if="
  4406. worksStudent.length &&
  4407. worksStudent[toolIndex].length > 0
  4408. "
  4409. >
  4410. <div
  4411. class="works"
  4412. style="
  4413. width: 200px;
  4414. height: 140px;
  4415. margin: 10px 10px 10px 0;
  4416. border-radius: 15px;
  4417. box-shadow: 0 0 6px 1px #dfdada;
  4418. "
  4419. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4420. :key="wIndex"
  4421. :class="w.type == 1 ? 'isTypeOne' : ''"
  4422. >
  4423. <div class="workImg">
  4424. <img
  4425. :src="word2"
  4426. @click="downloadFile(w.works,w.userid)"
  4427. alt
  4428. />
  4429. <div
  4430. class="answerScore"
  4431. v-if="w.score"
  4432. @click.stop="openScore(w)"
  4433. :class="{
  4434. rightW:
  4435. w.userid == userid ||
  4436. tType == 1 ||
  4437. tType == 4 ||
  4438. w.ateacher == userid
  4439. }"
  4440. >
  4441. {{ JSON.parse(w.score).wScore }}分
  4442. </div>
  4443. <div
  4444. class="answerScore"
  4445. @click.stop="openScore(w)"
  4446. v-else-if="courseDetail.userid == userid"
  4447. :class="{
  4448. rightW:
  4449. w.userid == userid ||
  4450. tType == 1 ||
  4451. tType == 4 ||
  4452. w.ateacher == userid
  4453. }"
  4454. >
  4455. 评分
  4456. </div>
  4457. <img
  4458. class="deleteImg"
  4459. src="../../assets/deleteworks.png"
  4460. v-if="
  4461. w.userid == userid || tType == 1 || tType == 4
  4462. "
  4463. @click.stop="deleteWorks(w.wid)"
  4464. alt
  4465. />
  4466. </div>
  4467. <div class="comment" style="min-width: 200px">
  4468. <div class="worksName">
  4469. <div>{{ w.sName }}</div>
  4470. </div>
  4471. <div class="commentList">
  4472. <div class="commentList">
  4473. <div
  4474. class="commentImg"
  4475. @click="
  4476. isLikes(
  4477. w.wid,
  4478. userid,
  4479. 1,
  4480. null,
  4481. w.isLikes,
  4482. w.sName
  4483. )
  4484. "
  4485. >
  4486. <img
  4487. :src="w.isLikes == true ? likes : noLikes"
  4488. alt=""
  4489. />
  4490. </div>
  4491. <div>{{ w.likesCount }}</div>
  4492. </div>
  4493. <div class="commentList" style="margin-right: 15px">
  4494. <div
  4495. class="commentImg"
  4496. @click="commentOther(w, toolIndex, wIndex)"
  4497. >
  4498. <img
  4499. src="../../assets/icon/comment/comment.png"
  4500. alt=""
  4501. />
  4502. </div>
  4503. <div>{{ w.commentCount }}</div>
  4504. </div>
  4505. </div>
  4506. </div>
  4507. </div>
  4508. </div>
  4509. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4510. 未提交
  4511. </div>
  4512. <div
  4513. class="noWorksS"
  4514. v-if="noWorksS && noWorksS[toolIndex].length"
  4515. >
  4516. <div
  4517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4518. :key="sIndex"
  4519. class="noWorksName"
  4520. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4521. >
  4522. <el-tooltip
  4523. effect="dark"
  4524. :content="s.student"
  4525. placement="top"
  4526. >
  4527. <span>{{ s.student }}</span>
  4528. </el-tooltip>
  4529. </div>
  4530. </div>
  4531. </div>
  4532. <div
  4533. v-if="
  4534. tType &&
  4535. ((tType == 2 && sIsOpen == true) ||
  4536. tType == 1 ||
  4537. tType == 4) &&
  4538. tool.tool.indexOf(57) != -1
  4539. "
  4540. class="worksBox"
  4541. >
  4542. <div
  4543. class="zuoyeYulan"
  4544. v-if="
  4545. worksStudent.length &&
  4546. worksStudent[toolIndex].length > 0
  4547. "
  4548. >
  4549. <div class="worksTop">
  4550. <div>作业预览</div>
  4551. <div
  4552. class="corOpen"
  4553. @click="contract(toolIndex)"
  4554. v-if="
  4555. isCloseList[toolIndex].isCloseBoolean &&
  4556. isCloseList[toolIndex].isClose == 0
  4557. "
  4558. >
  4559. 折叠
  4560. </div>
  4561. <div
  4562. class="corOpen"
  4563. @click="contract(toolIndex)"
  4564. v-if="isCloseList[toolIndex].isClose == 1"
  4565. >
  4566. 展开
  4567. </div>
  4568. </div>
  4569. </div>
  4570. <div
  4571. :id="'tool-' + toolIndex"
  4572. :style="{
  4573. height:
  4574. isCloseList[toolIndex].isClose == 1
  4575. ? retrnToolHeight('tool-' + toolIndex)
  4576. : 'auto',
  4577. overflow:
  4578. isCloseList[toolIndex].isClose == 1
  4579. ? 'hidden'
  4580. : 'unset'
  4581. }"
  4582. class="worksDetailBox"
  4583. v-if="
  4584. worksStudent.length &&
  4585. worksStudent[toolIndex].length > 0
  4586. "
  4587. >
  4588. <div
  4589. class="works"
  4590. style="
  4591. width: 200px;
  4592. height: 140px;
  4593. margin: 10px 10px 10px 0;
  4594. border-radius: 15px;
  4595. box-shadow: 0 0 6px 1px #dfdada;
  4596. "
  4597. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4598. :key="wIndex"
  4599. :class="w.type == 1 ? 'isTypeOne' : ''"
  4600. >
  4601. <div class="workImg">
  4602. <img
  4603. :src="word2"
  4604. @click="downloadFile(w.works,w.userid)"
  4605. v-if="w.type == 12"
  4606. alt
  4607. />
  4608. <img
  4609. :src="word2"
  4610. @click="
  4611. openCocoPi(57, toolIndex, w.userid, w.sName)
  4612. "
  4613. v-else-if="w.type == 15"
  4614. alt
  4615. />
  4616. <div
  4617. class="answerScore"
  4618. v-if="w.score"
  4619. @click.stop="openScore(w)"
  4620. :class="{
  4621. rightW:
  4622. w.userid == userid ||
  4623. tType == 1 ||
  4624. tType == 4 ||
  4625. w.ateacher == userid
  4626. }"
  4627. >
  4628. {{ JSON.parse(w.score).wScore }}分
  4629. </div>
  4630. <div
  4631. class="answerScore"
  4632. @click.stop="openScore(w)"
  4633. v-else-if="
  4634. courseDetail.userid == userid &&
  4635. courseDetail.state != 5 &&
  4636. chapInfoList[courseType].chapterInfo[0]
  4637. .taskJson[taskCount].eList &&
  4638. chapInfoList[courseType].chapterInfo[0]
  4639. .taskJson[taskCount].eList.length
  4640. "
  4641. :class="{
  4642. rightW:
  4643. w.userid == userid ||
  4644. tType == 1 ||
  4645. tType == 4 ||
  4646. w.ateacher == userid
  4647. }"
  4648. >
  4649. 评分
  4650. </div>
  4651. <!-- <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"> -->
  4652. <div
  4653. v-else-if="
  4654. (courseDetail.userid == userid ||
  4655. (courseDetail.course_teacher &&
  4656. courseDetail.course_teacher.indexOf(userid) !=
  4657. -1) ||
  4658. (w.userid == userid && sIsOpen)) &&
  4659. courseDetail.state == 5 &&
  4660. ((chapInfoList[courseType].chapterInfo[0]
  4661. .taskJson[taskCount].eList &&
  4662. chapInfoList[courseType].chapterInfo[0]
  4663. .taskJson[taskCount].eList.length) ||
  4664. (tool.eList && tool.eList.length))
  4665. "
  4666. >
  4667. <el-popover
  4668. placement="top"
  4669. width="318"
  4670. :disabled="AIloading[toolIndex][wIndex].loading"
  4671. trigger="hover"
  4672. >
  4673. <markScore
  4674. :loading="AIloading[toolIndex][wIndex].loading"
  4675. :markScoreVisible="markScoreVisible"
  4676. :ref="`markSco${toolIndex}${wIndex}`"
  4677. @updateLoading="updateLoading"
  4678. @updateDocSco="updateDocSco"
  4679. @refreshOther="refreshOther"
  4680. @markScoreDig="markScoreDig"
  4681. :tool="tool"
  4682. :wIndex="wIndex"
  4683. :scoCon="w"
  4684. :toolIndex="toolIndex"
  4685. :key="refreshKey"
  4686. :stage="courseType"
  4687. :task="taskCount"
  4688. :scoTit="
  4689. chapInfoList[courseType].chapterInfo[0]
  4690. .taskJson[taskCount].eList
  4691. "
  4692. >
  4693. </markScore>
  4694. <div
  4695. class="answerScore"
  4696. @click="
  4697. markScoreDig2(
  4698. w.sName,
  4699. worksStudent,
  4700. w.userid,
  4701. toolIndex,
  4702. chapInfoList[courseType].chapterInfo[0]
  4703. .taskJson[taskCount].eList,
  4704. AIloading[toolIndex][wIndex].loading,
  4705. tool
  4706. )
  4707. "
  4708. slot="reference"
  4709. :class="{
  4710. rightW:
  4711. w.userid == userid ||
  4712. tType == 1 ||
  4713. tType == 4 ||
  4714. w.ateacher == userid
  4715. }"
  4716. >
  4717. <span v-if="AIloading[toolIndex][wIndex].sco">
  4718. {{
  4719. AIloading[toolIndex][wIndex].loading
  4720. ? "评分中"
  4721. : AIloading[toolIndex][wIndex].sco + "分"
  4722. }}
  4723. </span>
  4724. <span v-else>
  4725. {{
  4726. AIloading[toolIndex][wIndex].loading
  4727. ? "评分中"
  4728. : "评分"
  4729. }}
  4730. </span>
  4731. </div>
  4732. </el-popover>
  4733. </div>
  4734. <img
  4735. class="deleteImg"
  4736. src="../../assets/deleteworks.png"
  4737. v-if="
  4738. w.userid == userid || tType == 1 || tType == 4
  4739. "
  4740. @click.stop="deleteWorks(w.wid)"
  4741. alt
  4742. />
  4743. </div>
  4744. <div class="comment" style="min-width: 200px">
  4745. <div class="worksName">
  4746. <div>{{ w.sName }}</div>
  4747. </div>
  4748. <div class="commentList">
  4749. <div class="commentList">
  4750. <div
  4751. class="commentImg"
  4752. @click="
  4753. isLikes(
  4754. w.wid,
  4755. userid,
  4756. 1,
  4757. null,
  4758. w.isLikes,
  4759. w.sName
  4760. )
  4761. "
  4762. >
  4763. <img
  4764. :src="w.isLikes == true ? likes : noLikes"
  4765. alt=""
  4766. />
  4767. </div>
  4768. <div>{{ w.likesCount }}</div>
  4769. </div>
  4770. <div class="commentList" style="margin-right: 15px">
  4771. <div
  4772. class="commentImg"
  4773. @click="commentOther(w, toolIndex, wIndex)"
  4774. >
  4775. <img
  4776. src="../../assets/icon/comment/comment.png"
  4777. alt=""
  4778. />
  4779. </div>
  4780. <div>{{ w.commentCount }}</div>
  4781. </div>
  4782. </div>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4787. 未提交
  4788. </div>
  4789. <div
  4790. class="noWorksS"
  4791. v-if="noWorksS && noWorksS[toolIndex].length"
  4792. >
  4793. <div
  4794. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4795. :key="sIndex"
  4796. class="noWorksName"
  4797. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4798. >
  4799. <el-tooltip
  4800. effect="dark"
  4801. :content="s.student"
  4802. placement="top"
  4803. >
  4804. <span>{{ s.student }}</span>
  4805. </el-tooltip>
  4806. </div>
  4807. </div>
  4808. </div>
  4809. <div
  4810. v-if="
  4811. tType &&
  4812. ((tType == 2 && sIsOpen == true) ||
  4813. tType == 1 ||
  4814. tType == 4) &&
  4815. tool.tool.indexOf(72) != -1
  4816. "
  4817. class="worksBox"
  4818. >
  4819. <div
  4820. class="zuoyeYulan"
  4821. style="display: flex;justify-content: space-between;align-items: center;"
  4822. v-if="
  4823. worksStudent.length &&
  4824. worksStudent[toolIndex].length > 0
  4825. "
  4826. >
  4827. <div class="worksTop">
  4828. <div>作业预览</div>
  4829. <div
  4830. class="corOpen"
  4831. @click="contract(toolIndex)"
  4832. v-if="
  4833. isCloseList[toolIndex].isCloseBoolean &&
  4834. isCloseList[toolIndex].isClose == 0
  4835. "
  4836. >
  4837. 折叠
  4838. </div>
  4839. <div
  4840. class="corOpen"
  4841. @click="contract(toolIndex)"
  4842. v-if="isCloseList[toolIndex].isClose == 1"
  4843. >
  4844. 展开
  4845. </div>
  4846. </div>
  4847. <div
  4848. style="display: flex;"
  4849. v-if="
  4850. (courseDetail.userid == userid ||
  4851. (courseDetail.course_teacher &&
  4852. courseDetail.course_teacher.indexOf(userid) !=
  4853. -1)) &&
  4854. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4855. taskCount
  4856. ].eList &&
  4857. chapInfoList[courseType].chapterInfo[0].taskJson[
  4858. taskCount
  4859. ].eList.length) ||
  4860. (tool.eList && tool.eList.length)) &&
  4861. courseDetail.state == 5
  4862. "
  4863. >
  4864. <!-- <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"> -->
  4865. <div
  4866. @click="
  4867. resetLoopEva(
  4868. worksStudent[toolIndex],
  4869. chapInfoList[courseType].chapterInfo[0].taskJson[
  4870. taskCount
  4871. ].eList,
  4872. courseType,
  4873. taskCount,
  4874. toolIndex,
  4875. tool.toolDetail,
  4876. tool
  4877. )
  4878. "
  4879. style="margin-right:10px"
  4880. class="ScoreBtn"
  4881. >
  4882. 一键重置
  4883. </div>
  4884. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4885. <img
  4886. src="../../assets/icon/newIcons/rootImg.png"
  4887. alt=""
  4888. />
  4889. AI评分
  4890. </div>
  4891. <div
  4892. class="ScoreBtn"
  4893. v-else-if="!loopLoading[toolIndex].loading"
  4894. @click="
  4895. loopEva(
  4896. worksStudent[toolIndex],
  4897. chapInfoList[courseType].chapterInfo[0].taskJson[
  4898. taskCount
  4899. ].eList,
  4900. courseType,
  4901. taskCount,
  4902. toolIndex,
  4903. tool.toolDetail,
  4904. chapInfoList[courseType].chapterInfo[0].taskJson[
  4905. taskCount
  4906. ].taskDetail,
  4907. tool
  4908. )
  4909. "
  4910. >
  4911. <img
  4912. src="../../assets/icon/newIcons/rootImg.png"
  4913. alt=""
  4914. />
  4915. AI评分
  4916. </div>
  4917. <div class="ScoreBtn" v-else>
  4918. <img
  4919. src="../../assets/icon/newIcons/rootImg.png"
  4920. alt=""
  4921. />
  4922. 正在评分
  4923. </div>
  4924. </div>
  4925. </div>
  4926. <div
  4927. :id="'tool-' + toolIndex"
  4928. :style="{
  4929. height:
  4930. isCloseList[toolIndex].isClose == 1
  4931. ? retrnToolHeight('tool-' + toolIndex)
  4932. : 'auto',
  4933. overflow:
  4934. isCloseList[toolIndex].isClose == 1
  4935. ? 'hidden'
  4936. : 'unset'
  4937. }"
  4938. class="worksDetailBox"
  4939. v-if="
  4940. worksStudent.length &&
  4941. worksStudent[toolIndex].length > 0
  4942. "
  4943. >
  4944. <div
  4945. class="works"
  4946. style="
  4947. width: 200px;
  4948. height: 140px;
  4949. margin: 10px 10px 10px 0;
  4950. border-radius: 15px;
  4951. box-shadow: 0 0 6px 1px #dfdada;
  4952. "
  4953. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4954. :key="wIndex"
  4955. :class="w.type == 1 ? 'isTypeOne' : ''"
  4956. >
  4957. <div class="workImg">
  4958. <!-- <img
  4959. :src="word2"
  4960. @click="downloadFile(w.works)"
  4961. v-if="w.type == 12"
  4962. alt
  4963. /> -->
  4964. <img
  4965. :src="word2"
  4966. @click="
  4967. openCocoFlow(w)
  4968. "
  4969. alt
  4970. />
  4971. <div
  4972. class="answerScore"
  4973. v-if="w.score"
  4974. @click.stop="openScore(w)"
  4975. :class="{
  4976. rightW:
  4977. w.userid == userid ||
  4978. tType == 1 ||
  4979. tType == 4 ||
  4980. w.ateacher == userid
  4981. }"
  4982. >
  4983. {{ JSON.parse(w.score).wScore }}分
  4984. </div>
  4985. <div
  4986. class="answerScore"
  4987. @click.stop="openScore(w)"
  4988. v-else-if="
  4989. courseDetail.userid == userid &&
  4990. courseDetail.state != 5 &&
  4991. chapInfoList[courseType].chapterInfo[0]
  4992. .taskJson[taskCount].eList &&
  4993. chapInfoList[courseType].chapterInfo[0]
  4994. .taskJson[taskCount].eList.length
  4995. "
  4996. :class="{
  4997. rightW:
  4998. w.userid == userid ||
  4999. tType == 1 ||
  5000. tType == 4 ||
  5001. w.ateacher == userid
  5002. }"
  5003. >
  5004. 评分
  5005. </div>
  5006. <div
  5007. v-else-if="
  5008. (courseDetail.userid == userid ||
  5009. (courseDetail.course_teacher &&
  5010. courseDetail.course_teacher.indexOf(userid) !=
  5011. -1) ||
  5012. (w.userid == userid && sIsOpen)) &&
  5013. courseDetail.state == 5 &&
  5014. ((chapInfoList[courseType].chapterInfo[0]
  5015. .taskJson[taskCount].eList &&
  5016. chapInfoList[courseType].chapterInfo[0]
  5017. .taskJson[taskCount].eList.length) ||
  5018. (tool.eList && tool.eList.length))
  5019. "
  5020. >
  5021. <!-- <div
  5022. class="answerScore"
  5023. @click="markScoreDig(w.userid,toolIndex)"
  5024. :class="{
  5025. rightW:
  5026. w.userid == userid ||
  5027. tType == 1 ||
  5028. tType == 4 ||
  5029. w.ateacher == userid,
  5030. }"
  5031. >
  5032. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5033. </div> -->
  5034. <!-- @show="handleShow(toolIndex,wIndex)"
  5035. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5036. <el-popover
  5037. placement="top"
  5038. width="318"
  5039. :disabled="AIloading[toolIndex][wIndex].loading"
  5040. trigger="hover"
  5041. >
  5042. <markScore
  5043. :loading="AIloading[toolIndex][wIndex].loading"
  5044. :markScoreVisible="markScoreVisible"
  5045. :ref="`markSco${toolIndex}${wIndex}`"
  5046. @updateLoading="updateLoading"
  5047. @updateDocSco="updateDocSco"
  5048. @refreshOther="refreshOther"
  5049. @markScoreDig="markScoreDig"
  5050. :tool="tool"
  5051. :wIndex="wIndex"
  5052. :scoCon="w"
  5053. :toolIndex="toolIndex"
  5054. :key="refreshKey"
  5055. :stage="courseType"
  5056. :task="taskCount"
  5057. :scoTit="
  5058. chapInfoList[courseType].chapterInfo[0]
  5059. .taskJson[taskCount].eList
  5060. "
  5061. >
  5062. </markScore>
  5063. <div
  5064. class="answerScore"
  5065. @click="
  5066. markScoreDig2(
  5067. w.sName,
  5068. worksStudent,
  5069. w.userid,
  5070. toolIndex,
  5071. chapInfoList[courseType].chapterInfo[0]
  5072. .taskJson[taskCount].eList,
  5073. AIloading[toolIndex][wIndex].loading,
  5074. tool
  5075. )
  5076. "
  5077. slot="reference"
  5078. :class="{
  5079. rightW:
  5080. w.userid == userid ||
  5081. tType == 1 ||
  5082. tType == 4 ||
  5083. w.ateacher == userid
  5084. }"
  5085. >
  5086. <span v-if="AIloading[toolIndex][wIndex].sco">
  5087. {{
  5088. AIloading[toolIndex][wIndex].loading
  5089. ? "评分中"
  5090. : AIloading[toolIndex][wIndex].sco + "分"
  5091. }}
  5092. </span>
  5093. <span v-else>
  5094. {{
  5095. AIloading[toolIndex][wIndex].loading
  5096. ? "评分中"
  5097. : "评分"
  5098. }}
  5099. </span>
  5100. </div>
  5101. </el-popover>
  5102. </div>
  5103. <img
  5104. class="deleteImg"
  5105. src="../../assets/deleteworks.png"
  5106. v-if="
  5107. w.userid == userid || tType == 1 || tType == 4
  5108. "
  5109. @click.stop="deleteWorks(w.wid)"
  5110. alt
  5111. />
  5112. </div>
  5113. <div class="comment" style="min-width: 200px">
  5114. <div class="worksName">
  5115. <div>{{ w.sName }}</div>
  5116. </div>
  5117. <div class="commentList">
  5118. <div class="commentList">
  5119. <div
  5120. class="commentImg"
  5121. @click="
  5122. isLikes(
  5123. w.wid,
  5124. userid,
  5125. 1,
  5126. null,
  5127. w.isLikes,
  5128. w.sName
  5129. )
  5130. "
  5131. >
  5132. <img
  5133. :src="w.isLikes == true ? likes : noLikes"
  5134. alt=""
  5135. />
  5136. </div>
  5137. <div>{{ w.likesCount }}</div>
  5138. </div>
  5139. <div class="commentList" style="margin-right: 15px">
  5140. <div
  5141. class="commentImg"
  5142. @click="commentOther(w, toolIndex, wIndex)"
  5143. >
  5144. <img
  5145. src="../../assets/icon/comment/comment.png"
  5146. alt=""
  5147. />
  5148. </div>
  5149. <div>{{ w.commentCount }}</div>
  5150. </div>
  5151. </div>
  5152. </div>
  5153. </div>
  5154. </div>
  5155. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5156. 未提交
  5157. </div>
  5158. <div
  5159. class="noWorksS"
  5160. v-if="noWorksS && noWorksS[toolIndex].length"
  5161. >
  5162. <div
  5163. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5164. :key="sIndex"
  5165. class="noWorksName2"
  5166. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5167. >
  5168. <el-tooltip
  5169. effect="dark"
  5170. :content="s.student"
  5171. placement="top"
  5172. >
  5173. <span>{{ s.student }}</span>
  5174. </el-tooltip>
  5175. </div>
  5176. </div>
  5177. </div>
  5178. <div
  5179. v-if="
  5180. tType &&
  5181. tType == 2 &&
  5182. !sIsOpen &&
  5183. tool.tool.indexOf(72) != -1
  5184. "
  5185. class="worksBox"
  5186. >
  5187. <div
  5188. class="zuoyeYulan"
  5189. v-if="workStudent[toolIndex].length > 0"
  5190. >
  5191. <span class="worksTitle">作业预览</span>
  5192. </div>
  5193. <div
  5194. class="worksDetailBox"
  5195. v-if="workStudent[toolIndex].length > 0"
  5196. >
  5197. <div
  5198. class="works"
  5199. style="
  5200. width: 200px;
  5201. height: 140px;
  5202. margin: 10px 10px 10px 0;
  5203. box-shadow: 0 0 6px 1px #dfdada;
  5204. "
  5205. v-for="(w, wIndex) in workStudent[toolIndex]"
  5206. :key="wIndex"
  5207. >
  5208. <div class="workImg">
  5209. <!-- <img
  5210. :src="word2"
  5211. @click="downloadFile(w.works)"
  5212. v-if="w.type == 12"
  5213. alt
  5214. /> -->
  5215. <img
  5216. :src="word2"
  5217. @click="
  5218. openCocoFlow(w)
  5219. "
  5220. alt
  5221. />
  5222. <div
  5223. class="answerScore"
  5224. v-if="w.score"
  5225. @click.stop="openScore(w)"
  5226. :class="{
  5227. rightW:
  5228. w.userid == userid || tType == 1 || tType == 4
  5229. }"
  5230. >
  5231. {{ JSON.parse(w.score).wScore }}分
  5232. </div>
  5233. <div
  5234. class="answerScore"
  5235. @click.stop="openScore(w)"
  5236. v-else-if="courseDetail.userid == userid"
  5237. :class="{
  5238. rightW:
  5239. w.userid == userid || tType == 1 || tType == 4
  5240. }"
  5241. >
  5242. 评分
  5243. </div>
  5244. <div
  5245. class="stuLookScore"
  5246. v-if="
  5247. w.userid == userid ||
  5248. (tType == 1 &&
  5249. courseDetail.state == 5 &&
  5250. ((chapInfoList[courseType].chapterInfo[0]
  5251. .taskJson[taskCount].eList &&
  5252. chapInfoList[courseType].chapterInfo[0]
  5253. .taskJson[taskCount].eList.length) ||
  5254. (tool.eList && tool.eList.length)))
  5255. "
  5256. >
  5257. <el-popover
  5258. placement="top"
  5259. width="318"
  5260. trigger="hover"
  5261. >
  5262. <markScore
  5263. :loading="AIloading[toolIndex][wIndex].loading"
  5264. :markScoreVisible="markScoreVisible"
  5265. :ref="`markSco${toolIndex}${wIndex}`"
  5266. @updateLoading="updateLoading"
  5267. @updateDocSco="updateDocSco"
  5268. @refreshOther="refreshOther"
  5269. @markScoreDig="markScoreDig"
  5270. :tool="tool"
  5271. :wIndex="wIndex"
  5272. :scoCon="w"
  5273. :toolIndex="toolIndex"
  5274. :key="refreshKey"
  5275. :stage="courseType"
  5276. :task="taskCount"
  5277. :scoTit="
  5278. chapInfoList[courseType].chapterInfo[0]
  5279. .taskJson[taskCount].eList
  5280. "
  5281. >
  5282. </markScore>
  5283. <div
  5284. @click="
  5285. markScoreDig2(
  5286. w.sName,
  5287. worksStudent,
  5288. w.userid,
  5289. toolIndex,
  5290. chapInfoList[courseType].chapterInfo[0]
  5291. .taskJson[taskCount].eList,
  5292. AIloading[toolIndex][wIndex].loading,
  5293. tool
  5294. )
  5295. "
  5296. slot="reference"
  5297. >
  5298. <span v-if="AIloading[toolIndex][wIndex].sco">
  5299. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5300. </span>
  5301. <span v-else>
  5302. 评分
  5303. </span>
  5304. </div>
  5305. </el-popover>
  5306. </div>
  5307. <img
  5308. class="deleteImg"
  5309. src="../../assets/deleteworks.png"
  5310. v-if="
  5311. w.userid == userid || tType == 1 || tType == 4
  5312. "
  5313. @click.stop="deleteWorks(w.wid)"
  5314. alt
  5315. />
  5316. </div>
  5317. <div class="worksName">
  5318. <div>{{ w.sName }}</div>
  5319. </div>
  5320. </div>
  5321. </div>
  5322. </div>
  5323. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5324. <div
  5325. style="display: flex;justify-content: space-between;align-items: center;"
  5326. >
  5327. <div
  5328. class="zuoyeYulan"
  5329. v-if="
  5330. worksStudent.length &&
  5331. worksStudent[toolIndex].length > 0
  5332. "
  5333. >
  5334. <span class="worksTitle">作业预览</span>
  5335. <div
  5336. class="corOpen"
  5337. @click="contract(toolIndex)"
  5338. v-if="
  5339. isCloseList[toolIndex].isCloseBoolean &&
  5340. isCloseList[toolIndex].isClose == 0
  5341. "
  5342. >
  5343. 折叠
  5344. </div>
  5345. <div
  5346. class="corOpen"
  5347. @click="contract(toolIndex)"
  5348. v-if="isCloseList[toolIndex].isClose == 1"
  5349. >
  5350. 展开
  5351. </div>
  5352. </div>
  5353. <div
  5354. style="display: flex;"
  5355. v-if="
  5356. (courseDetail.userid == userid ||
  5357. (courseDetail.course_teacher &&
  5358. courseDetail.course_teacher.indexOf(userid) !=
  5359. -1)) &&
  5360. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5361. taskCount
  5362. ].eList &&
  5363. chapInfoList[courseType].chapterInfo[0].taskJson[
  5364. taskCount
  5365. ].eList.length) ||
  5366. (tool.eList && tool.eList.length)) &&
  5367. courseDetail.state == 5
  5368. "
  5369. >
  5370. <!-- <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 "> -->
  5371. <div
  5372. style="margin-right:10px"
  5373. class="ScoreBtn"
  5374. @click="
  5375. resetLoopEva(
  5376. worksStudent[toolIndex],
  5377. chapInfoList[courseType].chapterInfo[0].taskJson[
  5378. taskCount
  5379. ].eList,
  5380. courseType,
  5381. taskCount,
  5382. toolIndex,
  5383. tool.toolDetail,
  5384. worksStudent
  5385. )
  5386. "
  5387. >
  5388. 一键重置
  5389. </div>
  5390. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5391. <img
  5392. src="../../assets/icon/newIcons/rootImg.png"
  5393. alt=""
  5394. />
  5395. AI评分
  5396. </div>
  5397. <div
  5398. class="ScoreBtn"
  5399. v-else-if="!loopLoading[toolIndex].loading"
  5400. @click="
  5401. loopEva(
  5402. worksStudent[toolIndex],
  5403. chapInfoList[courseType].chapterInfo[0].taskJson[
  5404. taskCount
  5405. ].eList,
  5406. courseType,
  5407. taskCount,
  5408. toolIndex,
  5409. tool.toolDetail,
  5410. chapInfoList[courseType].chapterInfo[0].taskJson[
  5411. taskCount
  5412. ].taskDetail,
  5413. tool
  5414. )
  5415. "
  5416. >
  5417. <img
  5418. src="../../assets/icon/newIcons/rootImg.png"
  5419. alt=""
  5420. />
  5421. AI评分
  5422. </div>
  5423. <div class="ScoreBtn" v-else>
  5424. <img
  5425. src="../../assets/icon/newIcons/rootImg.png"
  5426. alt=""
  5427. />
  5428. 正在评分
  5429. </div>
  5430. </div>
  5431. </div>
  5432. <div
  5433. :id="'tool-' + toolIndex"
  5434. :style="{
  5435. height:
  5436. isCloseList[toolIndex].isClose == 1
  5437. ? retrnToolHeight('tool-' + toolIndex)
  5438. : 'auto',
  5439. overflow:
  5440. isCloseList[toolIndex].isClose == 1
  5441. ? 'hidden'
  5442. : 'unset'
  5443. }"
  5444. class="worksDetailBox"
  5445. v-if="
  5446. worksStudent.length &&
  5447. worksStudent[toolIndex].length > 0
  5448. "
  5449. >
  5450. <div
  5451. class="works"
  5452. style="
  5453. width: 200px;
  5454. height: 140px;
  5455. margin: 10px 10px 10px 0;
  5456. border-radius: 15px;
  5457. box-shadow: 0 0 6px 1px #dfdada;
  5458. "
  5459. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5460. :key="wIndex"
  5461. :class="w.type == 1 ? 'isTypeOne' : ''"
  5462. >
  5463. <div class="workImg" v-if="w.type == 0">
  5464. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5465. <img
  5466. :src="w.works"
  5467. @click="previewImg(w.works, w)"
  5468. alt
  5469. />
  5470. <div
  5471. class="answerScore"
  5472. v-if="w.score"
  5473. @click.stop="openScore(w)"
  5474. :class="{
  5475. rightW:
  5476. w.userid == userid ||
  5477. tType == 1 ||
  5478. tType == 4 ||
  5479. w.ateacher == userid
  5480. }"
  5481. >
  5482. {{ JSON.parse(w.score).wScore }}分
  5483. </div>
  5484. <div
  5485. class="answerScore"
  5486. @click.stop="openScore(w)"
  5487. v-else-if="
  5488. courseDetail.userid == userid &&
  5489. courseDetail.state != 5 &&
  5490. chapInfoList[courseType].chapterInfo[0]
  5491. .taskJson[taskCount].eList &&
  5492. chapInfoList[courseType].chapterInfo[0]
  5493. .taskJson[taskCount].eList.length
  5494. "
  5495. :class="{
  5496. rightW:
  5497. w.userid == userid ||
  5498. tType == 1 ||
  5499. tType == 4 ||
  5500. w.ateacher == userid
  5501. }"
  5502. >
  5503. 评分
  5504. </div>
  5505. <!-- <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"> -->
  5506. <div
  5507. v-else-if="
  5508. (courseDetail.userid == userid ||
  5509. (courseDetail.course_teacher &&
  5510. courseDetail.course_teacher.indexOf(userid) !=
  5511. -1) ||
  5512. (w.userid == userid && sIsOpen)) &&
  5513. courseDetail.state == 5 &&
  5514. ((chapInfoList[courseType].chapterInfo[0]
  5515. .taskJson[taskCount].eList &&
  5516. chapInfoList[courseType].chapterInfo[0]
  5517. .taskJson[taskCount].eList.length) ||
  5518. (tool.eList && tool.eList.length))
  5519. "
  5520. >
  5521. <el-popover
  5522. placement="top"
  5523. width="318"
  5524. :disabled="AIloading[toolIndex][wIndex].loading"
  5525. trigger="hover"
  5526. >
  5527. <markScore
  5528. :loading="AIloading[toolIndex][wIndex].loading"
  5529. :markScoreVisible="markScoreVisible"
  5530. :ref="`markSco${toolIndex}${wIndex}`"
  5531. @updateLoading="updateLoading"
  5532. @updateDocSco="updateDocSco"
  5533. @refreshOther="refreshOther"
  5534. @markScoreDig="markScoreDig"
  5535. :tool="tool"
  5536. :wIndex="wIndex"
  5537. :scoCon="w"
  5538. :toolIndex="toolIndex"
  5539. :key="refreshKey"
  5540. :stage="courseType"
  5541. :task="taskCount"
  5542. :scoTit="
  5543. chapInfoList[courseType].chapterInfo[0]
  5544. .taskJson[taskCount].eList
  5545. "
  5546. >
  5547. </markScore>
  5548. <div
  5549. class="answerScore"
  5550. @click="
  5551. markScoreDig2(
  5552. w.sName,
  5553. worksStudent,
  5554. w.userid,
  5555. toolIndex,
  5556. chapInfoList[courseType].chapterInfo[0]
  5557. .taskJson[taskCount].eList,
  5558. AIloading[toolIndex][wIndex].loading,
  5559. tool
  5560. )
  5561. "
  5562. slot="reference"
  5563. :class="{
  5564. rightW:
  5565. w.userid == userid ||
  5566. tType == 1 ||
  5567. tType == 4 ||
  5568. w.ateacher == userid
  5569. }"
  5570. >
  5571. <span v-if="AIloading[toolIndex][wIndex].sco">
  5572. {{
  5573. AIloading[toolIndex][wIndex].loading
  5574. ? "评分中"
  5575. : AIloading[toolIndex][wIndex].sco + "分"
  5576. }}
  5577. </span>
  5578. <span v-else>
  5579. {{
  5580. AIloading[toolIndex][wIndex].loading
  5581. ? "评分中"
  5582. : "评分"
  5583. }}
  5584. </span>
  5585. </div>
  5586. </el-popover>
  5587. </div>
  5588. <img
  5589. class="deleteImg"
  5590. src="../../assets/deleteworks.png"
  5591. v-if="
  5592. w.userid == userid || tType == 1 || tType == 4
  5593. "
  5594. @click.stop="deleteWorks(w.wid)"
  5595. alt
  5596. />
  5597. </div>
  5598. <div
  5599. class="workImg"
  5600. style="cursor: pointer"
  5601. v-if="w.type == 1"
  5602. >
  5603. <img :src="word" @click="openFile(w.works)" alt />
  5604. <!-- @click="openFile(w.works)" -->
  5605. <div
  5606. class="answerScore"
  5607. v-if="w.score"
  5608. @click.stop="openScore(w)"
  5609. :class="{
  5610. rightW:
  5611. w.userid == userid ||
  5612. tType == 1 ||
  5613. tType == 4 ||
  5614. w.ateacher == userid
  5615. }"
  5616. >
  5617. {{ JSON.parse(w.score).wScore }}分
  5618. </div>
  5619. <div
  5620. class="answerScore"
  5621. @click.stop="openScore(w)"
  5622. v-else-if="
  5623. courseDetail.userid == userid &&
  5624. courseDetail.state != 5 &&
  5625. chapInfoList[courseType].chapterInfo[0]
  5626. .taskJson[taskCount].eList &&
  5627. chapInfoList[courseType].chapterInfo[0]
  5628. .taskJson[taskCount].eList.length
  5629. "
  5630. :class="{
  5631. rightW:
  5632. w.userid == userid ||
  5633. tType == 1 ||
  5634. tType == 4 ||
  5635. w.ateacher == userid
  5636. }"
  5637. >
  5638. 评分
  5639. </div>
  5640. <!-- <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"> -->
  5641. <div
  5642. v-else-if="
  5643. (courseDetail.userid == userid ||
  5644. (courseDetail.course_teacher &&
  5645. courseDetail.course_teacher.indexOf(userid) !=
  5646. -1) ||
  5647. (w.userid == userid && sIsOpen)) &&
  5648. courseDetail.state == 5 &&
  5649. ((chapInfoList[courseType].chapterInfo[0]
  5650. .taskJson[taskCount].eList &&
  5651. chapInfoList[courseType].chapterInfo[0]
  5652. .taskJson[taskCount].eList.length) ||
  5653. (tool.eList && tool.eList.length))
  5654. "
  5655. >
  5656. <el-popover
  5657. placement="top"
  5658. width="318"
  5659. :disabled="AIloading[toolIndex][wIndex].loading"
  5660. trigger="hover"
  5661. >
  5662. <markScore
  5663. :loading="AIloading[toolIndex][wIndex].loading"
  5664. :markScoreVisible="markScoreVisible"
  5665. :ref="`markSco${toolIndex}${wIndex}`"
  5666. @updateLoading="updateLoading"
  5667. @updateDocSco="updateDocSco"
  5668. @refreshOther="refreshOther"
  5669. @markScoreDig="markScoreDig"
  5670. :tool="tool"
  5671. :wIndex="wIndex"
  5672. :scoCon="w"
  5673. :toolIndex="toolIndex"
  5674. :key="refreshKey"
  5675. :stage="courseType"
  5676. :task="taskCount"
  5677. :scoTit="
  5678. chapInfoList[courseType].chapterInfo[0]
  5679. .taskJson[taskCount].eList
  5680. "
  5681. >
  5682. </markScore>
  5683. <div
  5684. class="answerScore"
  5685. @click="
  5686. markScoreDig2(
  5687. w.sName,
  5688. worksStudent,
  5689. w.userid,
  5690. toolIndex,
  5691. chapInfoList[courseType].chapterInfo[0]
  5692. .taskJson[taskCount].eList,
  5693. AIloading[toolIndex][wIndex].loading,
  5694. tool
  5695. )
  5696. "
  5697. slot="reference"
  5698. :class="{
  5699. rightW:
  5700. w.userid == userid ||
  5701. tType == 1 ||
  5702. tType == 4 ||
  5703. w.ateacher == userid
  5704. }"
  5705. >
  5706. <span v-if="AIloading[toolIndex][wIndex].sco">
  5707. {{
  5708. AIloading[toolIndex][wIndex].loading
  5709. ? "评分中"
  5710. : AIloading[toolIndex][wIndex].sco + "分"
  5711. }}
  5712. </span>
  5713. <span v-else>
  5714. {{
  5715. AIloading[toolIndex][wIndex].loading
  5716. ? "评分中"
  5717. : "评分"
  5718. }}
  5719. </span>
  5720. </div>
  5721. </el-popover>
  5722. </div>
  5723. <img
  5724. class="deleteImg"
  5725. src="../../assets/deleteworks.png"
  5726. v-if="
  5727. w.userid == userid || tType == 1 || tType == 4
  5728. "
  5729. @click.stop="deleteWorks(w.wid)"
  5730. alt
  5731. />
  5732. </div>
  5733. <div class="workImg" v-if="w.type == 3">
  5734. <img
  5735. style="cursor: pointer"
  5736. :src="video"
  5737. @click="openVideo(w)"
  5738. alt
  5739. />
  5740. <!-- @click="openVideo(w.works)" -->
  5741. <div
  5742. class="answerScore"
  5743. v-if="w.score"
  5744. @click.stop="openScore(w)"
  5745. :class="{
  5746. rightW:
  5747. w.userid == userid ||
  5748. tType == 1 ||
  5749. tType == 4 ||
  5750. w.ateacher == userid
  5751. }"
  5752. >
  5753. {{ JSON.parse(w.score).wScore }}分
  5754. </div>
  5755. <div
  5756. class="answerScore"
  5757. @click.stop="openScore(w)"
  5758. v-else-if="
  5759. courseDetail.userid == userid &&
  5760. courseDetail.state != 5 &&
  5761. chapInfoList[courseType].chapterInfo[0]
  5762. .taskJson[taskCount].eList &&
  5763. chapInfoList[courseType].chapterInfo[0]
  5764. .taskJson[taskCount].eList.length
  5765. "
  5766. :class="{
  5767. rightW:
  5768. w.userid == userid ||
  5769. tType == 1 ||
  5770. tType == 4 ||
  5771. w.ateacher == userid
  5772. }"
  5773. >
  5774. 评分
  5775. </div>
  5776. <!-- <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"> -->
  5777. <div
  5778. v-else-if="
  5779. (courseDetail.userid == userid ||
  5780. (courseDetail.course_teacher &&
  5781. courseDetail.course_teacher.indexOf(userid) !=
  5782. -1) ||
  5783. (w.userid == userid && sIsOpen)) &&
  5784. courseDetail.state == 5 &&
  5785. ((chapInfoList[courseType].chapterInfo[0]
  5786. .taskJson[taskCount].eList &&
  5787. chapInfoList[courseType].chapterInfo[0]
  5788. .taskJson[taskCount].eList.length) ||
  5789. (tool.eList && tool.eList.length))
  5790. "
  5791. >
  5792. <el-popover
  5793. placement="top"
  5794. width="318"
  5795. :disabled="AIloading[toolIndex][wIndex].loading"
  5796. trigger="hover"
  5797. >
  5798. <markScore
  5799. :loading="AIloading[toolIndex][wIndex].loading"
  5800. :markScoreVisible="markScoreVisible"
  5801. :ref="`markSco${toolIndex}${wIndex}`"
  5802. @updateLoading="updateLoading"
  5803. @updateDocSco="updateDocSco"
  5804. @refreshOther="refreshOther"
  5805. @markScoreDig="markScoreDig"
  5806. :tool="tool"
  5807. :wIndex="wIndex"
  5808. :scoCon="w"
  5809. :toolIndex="toolIndex"
  5810. :key="refreshKey"
  5811. :stage="courseType"
  5812. :task="taskCount"
  5813. :scoTit="
  5814. chapInfoList[courseType].chapterInfo[0]
  5815. .taskJson[taskCount].eList
  5816. "
  5817. >
  5818. </markScore>
  5819. <div
  5820. class="answerScore"
  5821. @click="
  5822. markScoreDig2(
  5823. w.sName,
  5824. worksStudent,
  5825. w.userid,
  5826. toolIndex,
  5827. chapInfoList[courseType].chapterInfo[0]
  5828. .taskJson[taskCount].eList,
  5829. AIloading[toolIndex][wIndex].loading,
  5830. tool
  5831. )
  5832. "
  5833. slot="reference"
  5834. :class="{
  5835. rightW:
  5836. w.userid == userid ||
  5837. tType == 1 ||
  5838. tType == 4 ||
  5839. w.ateacher == userid
  5840. }"
  5841. >
  5842. <span v-if="AIloading[toolIndex][wIndex].sco">
  5843. {{
  5844. AIloading[toolIndex][wIndex].loading
  5845. ? "评分中"
  5846. : AIloading[toolIndex][wIndex].sco + "分"
  5847. }}
  5848. </span>
  5849. <span v-else>
  5850. {{
  5851. AIloading[toolIndex][wIndex].loading
  5852. ? "评分中"
  5853. : "评分"
  5854. }}
  5855. </span>
  5856. </div>
  5857. </el-popover>
  5858. </div>
  5859. <img
  5860. class="deleteImg"
  5861. src="../../assets/deleteworks.png"
  5862. v-if="
  5863. w.userid == userid || tType == 1 || tType == 4
  5864. "
  5865. @click.stop="deleteWorks(w.wid)"
  5866. alt
  5867. />
  5868. </div>
  5869. <div class="comment" style="min-width: 200px">
  5870. <div class="worksName">
  5871. <div
  5872. style="cursor: pointer"
  5873. @click="
  5874. openSname(w.sName, w.wid, toolIndex, w.userid)
  5875. "
  5876. >
  5877. {{ w.sName }}
  5878. </div>
  5879. </div>
  5880. <div class="commentList">
  5881. <div class="commentList">
  5882. <div
  5883. class="commentImg"
  5884. @click="
  5885. isLikes(
  5886. w.wid,
  5887. userid,
  5888. 1,
  5889. null,
  5890. w.isLikes,
  5891. w.sName
  5892. )
  5893. "
  5894. >
  5895. <img
  5896. :src="w.isLikes == true ? likes : noLikes"
  5897. alt=""
  5898. />
  5899. </div>
  5900. <div>{{ w.likesCount }}</div>
  5901. </div>
  5902. <div class="commentList" style="margin-right: 15px">
  5903. <div
  5904. class="commentImg"
  5905. @click="commentOther(w, toolIndex, wIndex)"
  5906. >
  5907. <img
  5908. src="../../assets/icon/comment/comment.png"
  5909. alt=""
  5910. />
  5911. </div>
  5912. <div>{{ w.commentCount }}</div>
  5913. </div>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5919. 未提交
  5920. </div>
  5921. <div
  5922. class="noWorksS"
  5923. v-if="noWorksS && noWorksS[toolIndex].length"
  5924. >
  5925. <div
  5926. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5927. :key="sIndex"
  5928. class="noWorksName"
  5929. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5930. >
  5931. <el-tooltip
  5932. effect="dark"
  5933. :content="s.student"
  5934. placement="top"
  5935. >
  5936. <span>{{ s.student }}</span>
  5937. </el-tooltip>
  5938. </div>
  5939. </div>
  5940. </div>
  5941. <div
  5942. v-if="
  5943. tType &&
  5944. ((tType == 2 && sIsOpen == true) ||
  5945. tType == 1 ||
  5946. tType == 4) &&
  5947. tool.tool.indexOf(4) != -1 &&
  5948. (tool.askJson[0].answer ||
  5949. tool.askJson[0].answer === 0) &&
  5950. checkJson[toolIndex].length
  5951. "
  5952. class="xuan_right_box"
  5953. >
  5954. <div
  5955. class="tool_right_box"
  5956. v-for="(item, index) in tool.askJson"
  5957. :key="index"
  5958. >
  5959. <div style="width: calc(100% - 30px);">
  5960. <el-tooltip
  5961. effect="light"
  5962. :content="index + 1 + '、' + item.askstitle"
  5963. placement="top"
  5964. popper-class="text_tooltip"
  5965. >
  5966. <div
  5967. style="
  5968. width: calc(100% - 130px);
  5969. display: block;
  5970. white-space: nowrap;
  5971. overflow: hidden;
  5972. text-overflow: ellipsis;
  5973. word-break: break-word;
  5974. cursor: pointer;
  5975. "
  5976. >
  5977. {{ index + 1 + "、" + item.askstitle }}
  5978. </div>
  5979. </el-tooltip>
  5980. </div>
  5981. <div class="right_box_xuan">
  5982. <span>正确率</span>
  5983. <span>{{
  5984. (checkJson[toolIndex][index].right
  5985. ? checkJson[toolIndex][index].right
  5986. : 0) + "%"
  5987. }}</span>
  5988. </div>
  5989. </div>
  5990. </div>
  5991. <div
  5992. class="xuan_right_box"
  5993. style="background: unset; padding: 0 10px"
  5994. v-if="
  5995. tType &&
  5996. ((tType == 2 && sIsOpen == true) ||
  5997. tType == 1 ||
  5998. tType == 4) &&
  5999. tool.tool.indexOf(4) != -1
  6000. "
  6001. >
  6002. <AskStatic
  6003. v-if="
  6004. worksStudent.length &&
  6005. worksStudent[toolIndex].length > 0
  6006. "
  6007. :askJSON="tool"
  6008. :checkJson="checkJson[toolIndex]"
  6009. ></AskStatic>
  6010. </div>
  6011. <div
  6012. v-if="
  6013. tType &&
  6014. ((tType == 2 && sIsOpen == true) ||
  6015. tType == 1 ||
  6016. tType == 4) &&
  6017. tool.tool.indexOf(4) != -1
  6018. "
  6019. class="worksBox"
  6020. >
  6021. <div
  6022. class="zuoyeYulan"
  6023. v-if="
  6024. worksStudent.length &&
  6025. worksStudent[toolIndex].length > 0
  6026. "
  6027. >
  6028. <div class="worksTop">
  6029. <div>作业预览</div>
  6030. <div
  6031. class="corOpen"
  6032. @click="contract(toolIndex)"
  6033. v-if="
  6034. isCloseList[toolIndex].isCloseBoolean &&
  6035. isCloseList[toolIndex].isClose == 0
  6036. "
  6037. >
  6038. 折叠
  6039. </div>
  6040. <div
  6041. class="corOpen"
  6042. @click="contract(toolIndex)"
  6043. v-if="isCloseList[toolIndex].isClose == 1"
  6044. >
  6045. 展开
  6046. </div>
  6047. </div>
  6048. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6049. </div>
  6050. <div>
  6051. <div
  6052. :id="'tool-' + toolIndex"
  6053. :style="{
  6054. height:
  6055. isCloseList[toolIndex].isClose == 1
  6056. ? retrnToolHeight('tool-' + toolIndex)
  6057. : 'auto',
  6058. overflow:
  6059. isCloseList[toolIndex].isClose == 1
  6060. ? 'hidden'
  6061. : 'unset'
  6062. }"
  6063. class="worksDetailBox"
  6064. v-if="
  6065. worksStudent.length &&
  6066. worksStudent[toolIndex].length > 0
  6067. "
  6068. >
  6069. <div
  6070. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6071. :key="wIndex"
  6072. class="isWorksName2"
  6073. @click="
  6074. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6075. "
  6076. >
  6077. {{ w.sName }}
  6078. <img
  6079. class="deleteImg deleteImg2"
  6080. src="../../assets/deleteworks.png"
  6081. v-if="
  6082. w.userid == userid || tType == 1 || tType == 4
  6083. "
  6084. @click.stop="deleteWorks(w.wid)"
  6085. alt
  6086. />
  6087. </div>
  6088. <!-- <div class="works" style="
  6089. width: 200px;
  6090. height: 140px;
  6091. border-radius: 10px;
  6092. box-shadow: 0 0 6px 1px #dfdada;
  6093. overflow: hidden;
  6094. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6095. <div class="workImg">
  6096. <img src="../../assets/icon/works/noImg.png" @click="
  6097. openTools(
  6098. 4,
  6099. toolIndex,
  6100. taskCount,
  6101. w.works,
  6102. w.sName
  6103. )
  6104. " alt />
  6105. </div>
  6106. <div class="worksName">
  6107. <div>{{ w.sName }}</div>
  6108. <div>{{ w.time }}</div>
  6109. </div>
  6110. </div> -->
  6111. </div>
  6112. </div>
  6113. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6114. 未提交
  6115. </div>
  6116. <div
  6117. class="noWorksS"
  6118. v-if="noWorksS && noWorksS[toolIndex].length"
  6119. >
  6120. <div
  6121. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6122. :key="sIndex"
  6123. class="noWorksName"
  6124. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6125. >
  6126. <el-tooltip
  6127. effect="dark"
  6128. :content="s.student"
  6129. placement="top"
  6130. >
  6131. <span>{{ s.student }}</span>
  6132. </el-tooltip>
  6133. </div>
  6134. </div>
  6135. </div>
  6136. <div
  6137. v-if="
  6138. tType &&
  6139. ((tType == 2 && sIsOpen == true) ||
  6140. tType == 1 ||
  6141. tType == 4) &&
  6142. tool.tool.indexOf(45) != -1 &&
  6143. (tool.testJson.testJson[0].answer ||
  6144. tool.testJson.testJson[0].answer === 0) &&
  6145. checkJson[toolIndex].length
  6146. "
  6147. class="xuan_right_box"
  6148. >
  6149. <div
  6150. class="tool_right_box"
  6151. v-for="(item, index) in tool.testJson.testJson"
  6152. :key="index"
  6153. >
  6154. <div class="right_box_xuan" style="margin-right: 10px">
  6155. <span>正确率</span>
  6156. <span>{{
  6157. (checkJson[toolIndex][index].right
  6158. ? checkJson[toolIndex][index].right
  6159. : 0) + "%"
  6160. }}</span>
  6161. </div>
  6162. <div style="width: calc(100% - 30px);">
  6163. <el-tooltip
  6164. effect="light"
  6165. :content="index + 1 + '、' + item.teststitle"
  6166. placement="top"
  6167. popper-class="text_tooltip"
  6168. >
  6169. <div
  6170. style="
  6171. width: calc(100% - 130px);
  6172. display: flex;
  6173. white-space: nowrap;
  6174. overflow: hidden;
  6175. text-overflow: ellipsis;
  6176. word-break: break-word;
  6177. cursor: pointer;
  6178. "
  6179. class="renderedFor"
  6180. >
  6181. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  6182. </div>
  6183. </el-tooltip>
  6184. </div>
  6185. </div>
  6186. </div>
  6187. <div
  6188. class="xuan_right_box"
  6189. style="background: unset; padding: 0 10px; width: 91.5%"
  6190. v-if="
  6191. tType &&
  6192. ((tType == 2 && sIsOpen == true) ||
  6193. tType == 1 ||
  6194. tType == 4) &&
  6195. tool.tool.indexOf(45) != -1
  6196. "
  6197. >
  6198. <AskStatic2
  6199. v-if="
  6200. worksStudent.length &&
  6201. worksStudent[toolIndex].length > 0
  6202. "
  6203. :askJSON="tool"
  6204. :checkJson="checkJson[toolIndex]"
  6205. ></AskStatic2>
  6206. </div>
  6207. <div
  6208. v-if="
  6209. tType &&
  6210. ((tType == 2 && sIsOpen == true) ||
  6211. tType == 1 ||
  6212. tType == 4) &&
  6213. tool.tool.indexOf(45) != -1
  6214. "
  6215. class="worksBox"
  6216. >
  6217. <div
  6218. class="zuoyeYulan"
  6219. v-if="
  6220. worksStudent.length &&
  6221. worksStudent[toolIndex].length > 0
  6222. "
  6223. >
  6224. <div class="worksTop">
  6225. <div>作业预览</div>
  6226. <div
  6227. class="corOpen"
  6228. @click="contract(toolIndex)"
  6229. v-if="
  6230. isCloseList[toolIndex].isCloseBoolean &&
  6231. isCloseList[toolIndex].isClose == 0
  6232. "
  6233. >
  6234. 折叠
  6235. </div>
  6236. <div
  6237. class="corOpen"
  6238. @click="contract(toolIndex)"
  6239. v-if="isCloseList[toolIndex].isClose == 1"
  6240. >
  6241. 展开
  6242. </div>
  6243. </div>
  6244. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6245. </div>
  6246. <div>
  6247. <div
  6248. :id="'tool-' + toolIndex"
  6249. :style="{
  6250. height:
  6251. isCloseList[toolIndex].isClose == 1
  6252. ? retrnToolHeight('tool-' + toolIndex)
  6253. : 'auto',
  6254. overflow:
  6255. isCloseList[toolIndex].isClose == 1
  6256. ? 'hidden'
  6257. : 'unset'
  6258. }"
  6259. class="worksDetailBox"
  6260. v-if="
  6261. worksStudent.length &&
  6262. worksStudent[toolIndex].length > 0
  6263. "
  6264. >
  6265. <div
  6266. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6267. :key="wIndex"
  6268. class="isWorksName2"
  6269. @click="
  6270. openTools(
  6271. 45,
  6272. toolIndex,
  6273. taskCount,
  6274. w.works,
  6275. w.sName
  6276. )
  6277. "
  6278. >
  6279. {{ w.sName }}
  6280. <img
  6281. class="deleteImg deleteImg2"
  6282. src="../../assets/deleteworks.png"
  6283. v-if="
  6284. w.userid == userid || tType == 1 || tType == 4
  6285. "
  6286. @click.stop="deleteWorks(w.wid)"
  6287. alt
  6288. />
  6289. </div>
  6290. </div>
  6291. </div>
  6292. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6293. 未提交
  6294. </div>
  6295. <div
  6296. class="noWorksS"
  6297. v-if="noWorksS && noWorksS[toolIndex].length"
  6298. >
  6299. <div
  6300. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6301. :key="sIndex"
  6302. class="noWorksName"
  6303. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6304. >
  6305. <el-tooltip
  6306. effect="dark"
  6307. :content="s.student"
  6308. placement="top"
  6309. >
  6310. <span>{{ s.student }}</span>
  6311. </el-tooltip>
  6312. </div>
  6313. </div>
  6314. </div>
  6315. <div
  6316. v-if="
  6317. tType &&
  6318. ((tType == 2 && sIsOpen == true) ||
  6319. tType == 1 ||
  6320. tType == 4) &&
  6321. tool.tool.indexOf(69) != -1
  6322. "
  6323. class="worksBox"
  6324. >
  6325. <div
  6326. class="zuoyeYulan"
  6327. v-if="
  6328. worksStudent.length &&
  6329. worksStudent[toolIndex].length > 0
  6330. "
  6331. >
  6332. <div class="worksTop">
  6333. <div>作业预览</div>
  6334. <div
  6335. class="corOpen"
  6336. @click="contract(toolIndex)"
  6337. v-if="
  6338. isCloseList[toolIndex].isCloseBoolean &&
  6339. isCloseList[toolIndex].isClose == 0
  6340. "
  6341. >
  6342. 折叠
  6343. </div>
  6344. <div
  6345. class="corOpen"
  6346. @click="contract(toolIndex)"
  6347. v-if="isCloseList[toolIndex].isClose == 1"
  6348. >
  6349. 展开
  6350. </div>
  6351. </div>
  6352. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6353. </div>
  6354. <div>
  6355. <div
  6356. :id="'tool-' + toolIndex"
  6357. :style="{
  6358. height:
  6359. isCloseList[toolIndex].isClose == 1
  6360. ? retrnToolHeight('tool-' + toolIndex)
  6361. : 'auto',
  6362. overflow:
  6363. isCloseList[toolIndex].isClose == 1
  6364. ? 'hidden'
  6365. : 'unset'
  6366. }"
  6367. class="worksDetailBox"
  6368. v-if="
  6369. worksStudent.length &&
  6370. worksStudent[toolIndex].length > 0
  6371. "
  6372. >
  6373. <div
  6374. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6375. :key="wIndex"
  6376. class="isWorksName2"
  6377. style="width: 160px;height: 65px;line-height: 65px;"
  6378. @click="
  6379. openTools(
  6380. 69,
  6381. toolIndex,
  6382. taskCount,
  6383. w.works,
  6384. w.sName,
  6385. w.wid
  6386. )
  6387. "
  6388. >
  6389. {{ w.sName }}
  6390. <img
  6391. class="deleteImg1"
  6392. src="../../assets/evaEnglish.png"
  6393. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6394. alt
  6395. v-if="
  6396. (courseDetail &&
  6397. (courseDetail.userid == userid ||
  6398. (courseDetail.course_teacher &&
  6399. courseDetail.course_teacher.indexOf(
  6400. userid
  6401. ) != -1))) ||
  6402. w.aiCode || w.teacherCode
  6403. "
  6404. />
  6405. <img
  6406. class="deleteImg deleteImg2"
  6407. src="../../assets/deleteworks.png"
  6408. v-if="
  6409. w.userid == userid || tType == 1 || tType == 4
  6410. "
  6411. @click.stop="deleteWorks(w.wid)"
  6412. alt
  6413. />
  6414. </div>
  6415. </div>
  6416. </div>
  6417. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6418. 未提交
  6419. </div>
  6420. <div
  6421. class="noWorksS"
  6422. v-if="noWorksS && noWorksS[toolIndex].length"
  6423. >
  6424. <div
  6425. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6426. :key="sIndex"
  6427. class="noWorksName"
  6428. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6429. >
  6430. <el-tooltip
  6431. effect="dark"
  6432. :content="s.student"
  6433. placement="top"
  6434. >
  6435. <span>{{ s.student }}</span>
  6436. </el-tooltip>
  6437. </div>
  6438. </div>
  6439. </div>
  6440. <div
  6441. v-if="
  6442. tType &&
  6443. ((tType == 2 && sIsOpen == true) ||
  6444. tType == 1 ||
  6445. tType == 4) &&
  6446. tool.tool.indexOf(15) != -1
  6447. "
  6448. class="worksBox"
  6449. >
  6450. <div
  6451. class="zuoyeYulan"
  6452. v-if="
  6453. (worksStudent.length &&
  6454. worksStudent[toolIndex].length > 0) ||
  6455. (courseGroup.group && courseGroup.group.length)
  6456. "
  6457. >
  6458. <div class="worksTop">
  6459. <div>作业预览</div>
  6460. <div
  6461. class="corOpen"
  6462. @click="contract(toolIndex)"
  6463. v-if="
  6464. isCloseList[toolIndex].isCloseBoolean &&
  6465. isCloseList[toolIndex].isClose == 0
  6466. "
  6467. >
  6468. 折叠
  6469. </div>
  6470. <div
  6471. class="corOpen"
  6472. @click="contract(toolIndex)"
  6473. v-if="isCloseList[toolIndex].isClose == 1"
  6474. >
  6475. 展开
  6476. </div>
  6477. </div>
  6478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6479. </div>
  6480. <div
  6481. class="group_workBox"
  6482. v-for="(g, gindex) in courseGroup.group"
  6483. :key="gindex"
  6484. >
  6485. <div class="group_box">
  6486. <div class="group_title">
  6487. <el-tooltip
  6488. class="item"
  6489. effect="light"
  6490. :content="g.name"
  6491. placement="top"
  6492. >
  6493. <div class="group_name">{{ g.name }}</div>
  6494. </el-tooltip>
  6495. </div>
  6496. <div
  6497. class="group_work"
  6498. v-if="
  6499. g.works &&
  6500. g.works.length &&
  6501. g.works[toolIndex].length
  6502. "
  6503. >
  6504. <div
  6505. class="works"
  6506. v-for="(w, wIndex) in g.works[toolIndex]"
  6507. :key="wIndex"
  6508. >
  6509. <div
  6510. class="workImg"
  6511. style="
  6512. border-radius: 15px;
  6513. box-shadow: 0px 0px 5px 5px #eee;
  6514. "
  6515. >
  6516. <div
  6517. class="answerBg"
  6518. style="border-radius: 15px 15px 0 0"
  6519. @click="
  6520. commentOther(w, toolIndex, wIndex, null, g.id)
  6521. "
  6522. >
  6523. <div class="answerContent">
  6524. {{ JSON.parse(w.works)[0].answer }}
  6525. </div>
  6526. <div
  6527. class="answerScore"
  6528. v-if="w.score"
  6529. @click.stop="openScore(w)"
  6530. :class="{
  6531. rightW:
  6532. w.userid == userid ||
  6533. tType == 1 ||
  6534. tType == 4
  6535. }"
  6536. >
  6537. {{ JSON.parse(w.score).wScore }}分
  6538. </div>
  6539. <div
  6540. class="answerScore"
  6541. @click.stop="openScore(w)"
  6542. v-else-if="
  6543. courseDetail.userid == userid &&
  6544. courseDetail.state != 5 &&
  6545. chapInfoList[courseType].chapterInfo[0]
  6546. .taskJson[taskCount].eList &&
  6547. chapInfoList[courseType].chapterInfo[0]
  6548. .taskJson[taskCount].eList.length
  6549. "
  6550. :class="{
  6551. rightW:
  6552. w.userid == userid ||
  6553. tType == 1 ||
  6554. tType == 4
  6555. }"
  6556. >
  6557. 评分
  6558. </div>
  6559. <!-- <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"> -->
  6560. <div
  6561. v-else-if="
  6562. (courseDetail.userid == userid ||
  6563. (courseDetail.course_teacher &&
  6564. courseDetail.course_teacher.indexOf(
  6565. userid
  6566. ) != -1) ||
  6567. (w.userid == userid && sIsOpen)) &&
  6568. courseDetail.state == 5 &&
  6569. ((chapInfoList[courseType].chapterInfo[0]
  6570. .taskJson[taskCount].eList &&
  6571. chapInfoList[courseType].chapterInfo[0]
  6572. .taskJson[taskCount].eList.length) ||
  6573. (tool.eList && tool.eList.length))
  6574. "
  6575. >
  6576. <el-popover
  6577. placement="top"
  6578. width="318"
  6579. :disabled="
  6580. AIloading[toolIndex][wIndex].loading
  6581. "
  6582. trigger="hover"
  6583. >
  6584. <markScore
  6585. :loading="
  6586. AIloading[toolIndex][wIndex].loading
  6587. "
  6588. :markScoreVisible="markScoreVisible"
  6589. :ref="`markSco${toolIndex}${wIndex}`"
  6590. @updateLoading="updateLoading"
  6591. @updateDocSco="updateDocSco"
  6592. @refreshOther="refreshOther"
  6593. @markScoreDig="markScoreDig"
  6594. :tool="tool"
  6595. :wIndex="wIndex"
  6596. :scoCon="w"
  6597. :toolIndex="toolIndex"
  6598. :key="refreshKey"
  6599. :stage="courseType"
  6600. :task="taskCount"
  6601. :scoTit="
  6602. chapInfoList[courseType].chapterInfo[0]
  6603. .taskJson[taskCount].eList
  6604. "
  6605. >
  6606. </markScore>
  6607. <div
  6608. class="answerScore"
  6609. @click.stop="
  6610. markScoreDig2(
  6611. w.sName,
  6612. worksStudent,
  6613. w.userid,
  6614. toolIndex,
  6615. chapInfoList[courseType]
  6616. .chapterInfo[0].taskJson[taskCount]
  6617. .eList,
  6618. AIloading[toolIndex][wIndex].loading,
  6619. tool
  6620. )
  6621. "
  6622. slot="reference"
  6623. :class="{
  6624. rightW:
  6625. w.userid == userid ||
  6626. tType == 1 ||
  6627. tType == 4 ||
  6628. w.ateacher == userid
  6629. }"
  6630. >
  6631. <span
  6632. v-if="AIloading[toolIndex][wIndex].sco"
  6633. >
  6634. {{
  6635. AIloading[toolIndex][wIndex].loading
  6636. ? "评分中"
  6637. : AIloading[toolIndex][wIndex].sco +
  6638. "分"
  6639. }}
  6640. </span>
  6641. <span v-else>
  6642. {{
  6643. AIloading[toolIndex][wIndex].loading
  6644. ? "评分中"
  6645. : "评分"
  6646. }}
  6647. </span>
  6648. </div>
  6649. </el-popover>
  6650. </div>
  6651. <img
  6652. class="deleteImg"
  6653. src="../../assets/deleteworks.png"
  6654. v-if="
  6655. w.userid == userid ||
  6656. tType == 1 ||
  6657. tType == 4
  6658. "
  6659. @click.stop="deleteWorks(w.wid)"
  6660. alt
  6661. />
  6662. </div>
  6663. <div class="comment">
  6664. <div class="worksName">
  6665. <div>{{ w.sName }}</div>
  6666. </div>
  6667. <div class="commentList">
  6668. <div
  6669. class="commentImg"
  6670. @click="
  6671. isLikes(
  6672. w.wid,
  6673. userid,
  6674. 1,
  6675. null,
  6676. w.isLikes,
  6677. w.sName
  6678. )
  6679. "
  6680. >
  6681. <img
  6682. :src="w.isLikes == true ? likes : noLikes"
  6683. alt=""
  6684. />
  6685. </div>
  6686. <div>{{ w.likesCount }}</div>
  6687. </div>
  6688. <div
  6689. class="commentList"
  6690. style="margin-right: 15px"
  6691. >
  6692. <div
  6693. class="commentImg"
  6694. @click="
  6695. commentOther(
  6696. w,
  6697. toolIndex,
  6698. wIndex,
  6699. null,
  6700. g.id
  6701. )
  6702. "
  6703. >
  6704. <img
  6705. src="../../assets/icon/comment/comment.png"
  6706. alt=""
  6707. />
  6708. </div>
  6709. <div>{{ w.commentCount }}</div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. </div>
  6715. <div class="group_work" v-else>暂无提交作业</div>
  6716. </div>
  6717. </div>
  6718. <div
  6719. :id="'tool-' + toolIndex"
  6720. :style="{
  6721. height:
  6722. isCloseList[toolIndex].isClose == 1
  6723. ? retrnToolHeight('tool-' + toolIndex)
  6724. : 'auto',
  6725. overflow:
  6726. isCloseList[toolIndex].isClose == 1
  6727. ? 'hidden'
  6728. : 'unset'
  6729. }"
  6730. class="worksDetailBox"
  6731. v-if="
  6732. worksStudent.length &&
  6733. worksStudent[toolIndex].length > 0
  6734. "
  6735. >
  6736. <div
  6737. class="works"
  6738. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6739. :key="wIndex"
  6740. >
  6741. <div
  6742. class="workImg"
  6743. style="
  6744. border-radius: 15px;
  6745. box-shadow: 0px 0px 5px 5px #eee;
  6746. "
  6747. >
  6748. <!-- <img
  6749. src="../../assets/icon/works/noImg.png"
  6750. @click="openTools(15, toolIndex, taskCount, w.works)"
  6751. alt=""
  6752. />-->
  6753. <div
  6754. class="answerBg"
  6755. style="border-radius: 15px 15px 0 0"
  6756. @click="commentOther(w, toolIndex, wIndex)"
  6757. >
  6758. <!-- <div>{{ w.sName }}</div> -->
  6759. <div class="answerContent">
  6760. {{ JSON.parse(w.works)[0].answer }}
  6761. </div>
  6762. <div
  6763. class="answerScore"
  6764. v-if="w.score"
  6765. @click.stop="openScore(w)"
  6766. :class="{
  6767. rightW:
  6768. w.userid == userid || tType == 1 || tType == 4
  6769. }"
  6770. >
  6771. {{ JSON.parse(w.score).wScore }}分
  6772. </div>
  6773. <div
  6774. class="answerScore"
  6775. @click.stop="openScore(w)"
  6776. v-else-if="
  6777. courseDetail.userid == userid &&
  6778. courseDetail.state != 5 &&
  6779. chapInfoList[courseType].chapterInfo[0]
  6780. .taskJson[taskCount].eList &&
  6781. chapInfoList[courseType].chapterInfo[0]
  6782. .taskJson[taskCount].eList.length
  6783. "
  6784. :class="{
  6785. rightW:
  6786. w.userid == userid || tType == 1 || tType == 4
  6787. }"
  6788. >
  6789. 评分
  6790. </div>
  6791. <!-- <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"> -->
  6792. <div
  6793. v-else-if="
  6794. (courseDetail.userid == userid ||
  6795. (courseDetail.course_teacher &&
  6796. courseDetail.course_teacher.indexOf(
  6797. userid
  6798. ) != -1) ||
  6799. (w.userid == userid && sIsOpen)) &&
  6800. courseDetail.state == 5 &&
  6801. ((chapInfoList[courseType].chapterInfo[0]
  6802. .taskJson[taskCount].eList &&
  6803. chapInfoList[courseType].chapterInfo[0]
  6804. .taskJson[taskCount].eList.length) ||
  6805. (tool.eList && tool.eList.length))
  6806. "
  6807. >
  6808. <el-popover
  6809. placement="top"
  6810. width="318"
  6811. :disabled="AIloading[toolIndex][wIndex].loading"
  6812. trigger="hover"
  6813. >
  6814. <markScore
  6815. :loading="
  6816. AIloading[toolIndex][wIndex].loading
  6817. "
  6818. :markScoreVisible="markScoreVisible"
  6819. :ref="`markSco${toolIndex}${wIndex}`"
  6820. @updateLoading="updateLoading"
  6821. @updateDocSco="updateDocSco"
  6822. @refreshOther="refreshOther"
  6823. @markScoreDig="markScoreDig"
  6824. :tool="tool"
  6825. :wIndex="wIndex"
  6826. :scoCon="w"
  6827. :toolIndex="toolIndex"
  6828. :key="refreshKey"
  6829. :stage="courseType"
  6830. :task="taskCount"
  6831. :scoTit="
  6832. chapInfoList[courseType].chapterInfo[0]
  6833. .taskJson[taskCount].eList
  6834. "
  6835. >
  6836. </markScore>
  6837. <div
  6838. class="answerScore"
  6839. @click.stop="
  6840. markScoreDig2(
  6841. w.sName,
  6842. worksStudent,
  6843. w.userid,
  6844. toolIndex,
  6845. chapInfoList[courseType].chapterInfo[0]
  6846. .taskJson[taskCount].eList,
  6847. AIloading[toolIndex][wIndex].loading,
  6848. tool
  6849. )
  6850. "
  6851. slot="reference"
  6852. :class="{
  6853. rightW:
  6854. w.userid == userid ||
  6855. tType == 1 ||
  6856. tType == 4 ||
  6857. w.ateacher == userid
  6858. }"
  6859. >
  6860. <span v-if="AIloading[toolIndex][wIndex].sco">
  6861. {{
  6862. AIloading[toolIndex][wIndex].loading
  6863. ? "评分中"
  6864. : AIloading[toolIndex][wIndex].sco +
  6865. "分"
  6866. }}
  6867. </span>
  6868. <span v-else>
  6869. {{
  6870. AIloading[toolIndex][wIndex].loading
  6871. ? "评分中"
  6872. : "评分"
  6873. }}
  6874. </span>
  6875. </div>
  6876. </el-popover>
  6877. </div>
  6878. <img
  6879. class="deleteImg"
  6880. src="../../assets/deleteworks.png"
  6881. v-if="
  6882. w.userid == userid || tType == 1 || tType == 4
  6883. "
  6884. @click.stop="deleteWorks(w.wid)"
  6885. alt
  6886. />
  6887. </div>
  6888. <div class="comment">
  6889. <div class="worksName">
  6890. <div>{{ w.sName }}</div>
  6891. </div>
  6892. <div class="commentList">
  6893. <div
  6894. class="commentImg"
  6895. @click="
  6896. isLikes(
  6897. w.wid,
  6898. userid,
  6899. 1,
  6900. null,
  6901. w.isLikes,
  6902. w.sName
  6903. )
  6904. "
  6905. >
  6906. <img
  6907. :src="w.isLikes == true ? likes : noLikes"
  6908. alt=""
  6909. />
  6910. </div>
  6911. <div>{{ w.likesCount }}</div>
  6912. </div>
  6913. <div class="commentList" style="margin-right: 15px">
  6914. <div
  6915. class="commentImg"
  6916. @click="commentOther(w, toolIndex, wIndex)"
  6917. >
  6918. <img
  6919. src="../../assets/icon/comment/comment.png"
  6920. alt=""
  6921. />
  6922. </div>
  6923. <div>{{ w.commentCount }}</div>
  6924. </div>
  6925. </div>
  6926. </div>
  6927. </div>
  6928. </div>
  6929. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6930. 未提交
  6931. </div>
  6932. <div
  6933. class="noWorksS"
  6934. v-if="noWorksS && noWorksS[toolIndex].length"
  6935. >
  6936. <div
  6937. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6938. :key="sIndex"
  6939. class="noWorksName"
  6940. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6941. >
  6942. <el-tooltip
  6943. effect="dark"
  6944. :content="s.student"
  6945. placement="top"
  6946. >
  6947. <span>{{ s.student }}</span>
  6948. </el-tooltip>
  6949. </div>
  6950. </div>
  6951. </div>
  6952. <div
  6953. v-if="
  6954. tType &&
  6955. ((tType == 2 && sIsOpen == true) ||
  6956. tType == 1 ||
  6957. tType == 4) &&
  6958. tool.tool.indexOf(1) != -1
  6959. "
  6960. class="worksBox"
  6961. >
  6962. <div
  6963. class="zuoyeYulan"
  6964. style="display: flex;justify-content: space-between;align-items: center;"
  6965. v-if="
  6966. (worksStudent.length &&
  6967. worksStudent[toolIndex].length > 0) ||
  6968. (courseGroup.group && courseGroup.group.length)
  6969. "
  6970. >
  6971. <div class="worksTop">
  6972. <div>作业预览</div>
  6973. <div
  6974. class="corOpen"
  6975. @click="contract(toolIndex)"
  6976. v-if="
  6977. isCloseList[toolIndex].isCloseBoolean &&
  6978. isCloseList[toolIndex].isClose == 0
  6979. "
  6980. >
  6981. 折叠
  6982. </div>
  6983. <div
  6984. class="corOpen"
  6985. @click="contract(toolIndex)"
  6986. v-if="isCloseList[toolIndex].isClose == 1"
  6987. >
  6988. 展开
  6989. </div>
  6990. </div>
  6991. <div
  6992. style="display: flex;"
  6993. v-if="
  6994. (courseDetail.userid == userid ||
  6995. (courseDetail.course_teacher &&
  6996. courseDetail.course_teacher.indexOf(userid) !=
  6997. -1)) &&
  6998. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6999. taskCount
  7000. ].eList &&
  7001. chapInfoList[courseType].chapterInfo[0].taskJson[
  7002. taskCount
  7003. ].eList.length) ||
  7004. (tool.eList && tool.eList.length)) &&
  7005. courseDetail.state == 5
  7006. "
  7007. >
  7008. <div
  7009. style="margin-right:10px"
  7010. class="ScoreBtn"
  7011. @click="
  7012. resetLoopEva(
  7013. worksStudent[toolIndex],
  7014. chapInfoList[courseType].chapterInfo[0].taskJson[
  7015. taskCount
  7016. ].eList,
  7017. courseType,
  7018. taskCount,
  7019. toolIndex,
  7020. tool.toolDetail,
  7021. worksStudent
  7022. )
  7023. "
  7024. >
  7025. 一键重置
  7026. </div>
  7027. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7028. <img
  7029. src="../../assets/icon/newIcons/rootImg.png"
  7030. alt=""
  7031. />
  7032. AI评分
  7033. </div>
  7034. <div
  7035. class="ScoreBtn"
  7036. v-else-if="!loopLoading[toolIndex].loading"
  7037. @click="
  7038. loopEva(
  7039. worksStudent[toolIndex],
  7040. chapInfoList[courseType].chapterInfo[0].taskJson[
  7041. taskCount
  7042. ].eList,
  7043. courseType,
  7044. taskCount,
  7045. toolIndex,
  7046. tool.toolDetail,
  7047. chapInfoList[courseType].chapterInfo[0].taskJson[
  7048. taskCount
  7049. ].taskDetail,
  7050. tool
  7051. )
  7052. "
  7053. >
  7054. <img
  7055. src="../../assets/icon/newIcons/rootImg.png"
  7056. alt=""
  7057. />
  7058. AI评分
  7059. </div>
  7060. <div class="ScoreBtn" v-else>
  7061. <img
  7062. src="../../assets/icon/newIcons/rootImg.png"
  7063. alt=""
  7064. />
  7065. 正在评分
  7066. </div>
  7067. </div>
  7068. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7069. </div>
  7070. <div
  7071. class="group_workBox"
  7072. v-for="(g, gindex) in courseGroup.group"
  7073. :key="gindex"
  7074. >
  7075. <div class="group_box">
  7076. <div class="group_title">
  7077. <el-tooltip
  7078. class="item"
  7079. effect="light"
  7080. :content="g.name"
  7081. placement="top"
  7082. >
  7083. <div class="group_name">{{ g.name }}</div>
  7084. </el-tooltip>
  7085. </div>
  7086. <div
  7087. class="group_work"
  7088. v-if="
  7089. g.works &&
  7090. g.works.length &&
  7091. g.works[toolIndex].length
  7092. "
  7093. >
  7094. <div
  7095. class="works"
  7096. style="
  7097. width: 200px;
  7098. height: 140px;
  7099. margin: 10px 10px 10px 0;
  7100. border-radius: 15px;
  7101. box-shadow: 0 0 6px 1px #dfdada;
  7102. "
  7103. v-for="(w, wIndex) in g.works[toolIndex]"
  7104. :key="wIndex"
  7105. :class="w.type == 1 ? 'isTypeOne' : ''"
  7106. >
  7107. <div class="workImg">
  7108. <img
  7109. :src="w.works"
  7110. @click="previewImg(w.works, w)"
  7111. alt
  7112. />
  7113. <div
  7114. class="answerScore"
  7115. v-if="w.score"
  7116. @click.stop="openScore(w)"
  7117. :class="{
  7118. rightW:
  7119. w.userid == userid ||
  7120. tType == 1 ||
  7121. tType == 4
  7122. }"
  7123. >
  7124. {{ JSON.parse(w.score).wScore }}分
  7125. </div>
  7126. <div
  7127. class="answerScore"
  7128. @click.stop="openScore(w)"
  7129. v-else-if="courseDetail.userid == userid"
  7130. :class="{
  7131. rightW:
  7132. w.userid == userid ||
  7133. tType == 1 ||
  7134. tType == 4
  7135. }"
  7136. >
  7137. 评分
  7138. </div>
  7139. <img
  7140. class="deleteImg"
  7141. src="../../assets/deleteworks.png"
  7142. v-if="
  7143. w.userid == userid || tType == 1 || tType == 4
  7144. "
  7145. @click.stop="deleteWorks(w.wid)"
  7146. alt
  7147. />
  7148. </div>
  7149. <div class="comment" style="min-width: 200px">
  7150. <div class="worksName">
  7151. <div>{{ w.sName }}</div>
  7152. </div>
  7153. <div class="commentList">
  7154. <div class="commentList">
  7155. <div
  7156. class="commentImg"
  7157. @click="
  7158. isLikes(
  7159. w.wid,
  7160. userid,
  7161. 1,
  7162. null,
  7163. w.isLikes,
  7164. w.sName
  7165. )
  7166. "
  7167. >
  7168. <img
  7169. :src="w.isLikes == true ? likes : noLikes"
  7170. alt=""
  7171. />
  7172. </div>
  7173. <div>{{ w.likesCount }}</div>
  7174. </div>
  7175. <div
  7176. class="commentList"
  7177. style="margin-right: 15px"
  7178. >
  7179. <div
  7180. class="commentImg"
  7181. @click="
  7182. commentOther(
  7183. w,
  7184. toolIndex,
  7185. wIndex,
  7186. null,
  7187. g.id
  7188. )
  7189. "
  7190. >
  7191. <img
  7192. src="../../assets/icon/comment/comment.png"
  7193. alt=""
  7194. />
  7195. </div>
  7196. <div>{{ w.commentCount }}</div>
  7197. </div>
  7198. </div>
  7199. </div>
  7200. </div>
  7201. </div>
  7202. <div class="group_work" v-else>暂无提交作业</div>
  7203. </div>
  7204. </div>
  7205. <div
  7206. :id="'tool-' + toolIndex"
  7207. :style="{
  7208. height:
  7209. isCloseList[toolIndex].isClose == 1
  7210. ? retrnToolHeight('tool-' + toolIndex)
  7211. : 'auto',
  7212. overflow:
  7213. isCloseList[toolIndex].isClose == 1
  7214. ? 'hidden'
  7215. : 'unset'
  7216. }"
  7217. class="worksDetailBox"
  7218. v-if="
  7219. worksStudent.length &&
  7220. worksStudent[toolIndex].length > 0
  7221. "
  7222. >
  7223. <div
  7224. class="works"
  7225. style="
  7226. width: 200px;
  7227. height: 140px;
  7228. margin: 10px 10px 10px 0;
  7229. border-radius: 15px;
  7230. box-shadow: 0 0 6px 1px #dfdada;
  7231. "
  7232. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7233. :key="wIndex"
  7234. >
  7235. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7236. <div class="workImg">
  7237. <img
  7238. :src="w.works"
  7239. @click="previewImg(w.works, w)"
  7240. alt
  7241. />
  7242. <div
  7243. class="answerScore"
  7244. v-if="w.score"
  7245. @click.stop="openScore(w)"
  7246. :class="{
  7247. rightW:
  7248. w.userid == userid || tType == 1 || tType == 4
  7249. }"
  7250. >
  7251. {{ JSON.parse(w.score).wScore }}分
  7252. </div>
  7253. <div
  7254. class="answerScore"
  7255. @click.stop="openScore(w)"
  7256. v-else-if="
  7257. courseDetail.userid == userid &&
  7258. courseDetail.state != 5 &&
  7259. chapInfoList[courseType].chapterInfo[0]
  7260. .taskJson[taskCount].eList &&
  7261. chapInfoList[courseType].chapterInfo[0]
  7262. .taskJson[taskCount].eList.length
  7263. "
  7264. :class="{
  7265. rightW:
  7266. w.userid == userid || tType == 1 || tType == 4
  7267. }"
  7268. >
  7269. 评分
  7270. </div>
  7271. <div
  7272. v-else-if="
  7273. (courseDetail.userid == userid ||
  7274. (courseDetail.course_teacher &&
  7275. courseDetail.course_teacher.indexOf(userid) !=
  7276. -1) ||
  7277. (courseDetail.course_teacher &&
  7278. courseDetail.course_teacher.indexOf(userid) !=
  7279. -1) ||
  7280. (courseDetail.course_teacher &&
  7281. courseDetail.course_teacher.indexOf(userid) !=
  7282. -1) ||
  7283. (w.userid == userid && sIsOpen)) &&
  7284. courseDetail.state == 5 &&
  7285. ((chapInfoList[courseType].chapterInfo[0]
  7286. .taskJson[taskCount].eList &&
  7287. chapInfoList[courseType].chapterInfo[0]
  7288. .taskJson[taskCount].eList.length) ||
  7289. (tool.eList && tool.eList.length))
  7290. "
  7291. >
  7292. <el-popover
  7293. placement="top"
  7294. width="318"
  7295. :disabled="AIloading[toolIndex][wIndex].loading"
  7296. trigger="hover"
  7297. >
  7298. <markScore
  7299. :loading="AIloading[toolIndex][wIndex].loading"
  7300. :markScoreVisible="markScoreVisible"
  7301. :ref="`markSco${toolIndex}${wIndex}`"
  7302. @updateLoading="updateLoading"
  7303. @updateDocSco="updateDocSco"
  7304. @refreshOther="refreshOther"
  7305. @markScoreDig="markScoreDig"
  7306. :tool="tool"
  7307. :wIndex="wIndex"
  7308. :scoCon="w"
  7309. :toolIndex="toolIndex"
  7310. :key="refreshKey"
  7311. :stage="courseType"
  7312. :task="taskCount"
  7313. :scoTit="
  7314. chapInfoList[courseType].chapterInfo[0]
  7315. .taskJson[taskCount].eList
  7316. "
  7317. >
  7318. </markScore>
  7319. <div
  7320. class="answerScore"
  7321. @click="
  7322. markScoreDig2(
  7323. w.sName,
  7324. worksStudent,
  7325. w.userid,
  7326. toolIndex,
  7327. chapInfoList[courseType].chapterInfo[0]
  7328. .taskJson[taskCount].eList,
  7329. AIloading[toolIndex][wIndex].loading,
  7330. tool
  7331. )
  7332. "
  7333. slot="reference"
  7334. :class="{
  7335. rightW:
  7336. w.userid == userid ||
  7337. tType == 1 ||
  7338. tType == 4 ||
  7339. w.ateacher == userid
  7340. }"
  7341. >
  7342. <span v-if="AIloading[toolIndex][wIndex].sco">
  7343. {{
  7344. AIloading[toolIndex][wIndex].loading
  7345. ? "评分中"
  7346. : AIloading[toolIndex][wIndex].sco + "分"
  7347. }}
  7348. </span>
  7349. <span v-else>
  7350. {{
  7351. AIloading[toolIndex][wIndex].loading
  7352. ? "评分中"
  7353. : "评分"
  7354. }}
  7355. </span>
  7356. </div>
  7357. </el-popover>
  7358. </div>
  7359. <img
  7360. class="deleteImg"
  7361. src="../../assets/deleteworks.png"
  7362. v-if="
  7363. w.userid == userid || tType == 1 || tType == 4
  7364. "
  7365. @click.stop="deleteWorks(w.wid)"
  7366. alt
  7367. />
  7368. </div>
  7369. <div class="comment" style="min-width: 200px">
  7370. <div class="worksName">
  7371. <div>{{ w.sName }}</div>
  7372. </div>
  7373. <div class="commentList">
  7374. <div class="commentList">
  7375. <div
  7376. class="commentImg"
  7377. @click="
  7378. isLikes(
  7379. w.wid,
  7380. userid,
  7381. 1,
  7382. null,
  7383. w.isLikes,
  7384. w.sName
  7385. )
  7386. "
  7387. >
  7388. <img
  7389. :src="w.isLikes == true ? likes : noLikes"
  7390. alt=""
  7391. />
  7392. </div>
  7393. <div>{{ w.likesCount }}</div>
  7394. </div>
  7395. <div class="commentList" style="margin-right: 15px">
  7396. <div
  7397. class="commentImg"
  7398. @click="commentOther(w, toolIndex, wIndex)"
  7399. >
  7400. <img
  7401. src="../../assets/icon/comment/comment.png"
  7402. alt=""
  7403. />
  7404. </div>
  7405. <div>{{ w.commentCount }}</div>
  7406. </div>
  7407. </div>
  7408. </div>
  7409. </div>
  7410. </div>
  7411. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7412. 未提交
  7413. </div>
  7414. <div
  7415. class="noWorksS"
  7416. v-if="noWorksS && noWorksS[toolIndex].length"
  7417. >
  7418. <div
  7419. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7420. :key="sIndex"
  7421. class="noWorksName"
  7422. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7423. >
  7424. <el-tooltip
  7425. effect="dark"
  7426. :content="s.student"
  7427. placement="top"
  7428. >
  7429. <span>{{ s.student }}</span>
  7430. </el-tooltip>
  7431. </div>
  7432. </div>
  7433. </div>
  7434. <div
  7435. v-if="
  7436. tType &&
  7437. ((tType == 2 && sIsOpen == true) ||
  7438. tType == 1 ||
  7439. tType == 4) &&
  7440. tool.tool.indexOf(3) != -1
  7441. "
  7442. class="worksBox"
  7443. >
  7444. <div
  7445. class="zuoyeYulan"
  7446. style="display: flex;justify-content: space-between;align-items: center;"
  7447. v-if="
  7448. (worksStudent.length &&
  7449. worksStudent[toolIndex].length > 0) ||
  7450. (courseGroup.group && courseGroup.group.length)
  7451. "
  7452. >
  7453. <div class="worksTop">
  7454. <div>作业预览</div>
  7455. <div
  7456. class="corOpen"
  7457. @click="contract(toolIndex)"
  7458. v-if="
  7459. isCloseList[toolIndex].isCloseBoolean &&
  7460. isCloseList[toolIndex].isClose == 0
  7461. "
  7462. >
  7463. 折叠
  7464. </div>
  7465. <div
  7466. class="corOpen"
  7467. @click="contract(toolIndex)"
  7468. v-if="isCloseList[toolIndex].isClose == 1"
  7469. >
  7470. 展开
  7471. </div>
  7472. </div>
  7473. <div
  7474. style="display: flex;"
  7475. v-if="
  7476. (courseDetail.userid == userid ||
  7477. (courseDetail.course_teacher &&
  7478. courseDetail.course_teacher.indexOf(userid) !=
  7479. -1)) &&
  7480. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7481. taskCount
  7482. ].eList &&
  7483. chapInfoList[courseType].chapterInfo[0].taskJson[
  7484. taskCount
  7485. ].eList.length) ||
  7486. (tool.eList && tool.eList.length)) &&
  7487. courseDetail.state == 5
  7488. "
  7489. >
  7490. <div
  7491. style="margin-right:10px"
  7492. class="ScoreBtn"
  7493. @click="
  7494. resetLoopEva(
  7495. worksStudent[toolIndex],
  7496. chapInfoList[courseType].chapterInfo[0].taskJson[
  7497. taskCount
  7498. ].eList,
  7499. courseType,
  7500. taskCount,
  7501. toolIndex,
  7502. tool.toolDetail,
  7503. worksStudent
  7504. )
  7505. "
  7506. >
  7507. 一键重置
  7508. </div>
  7509. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7510. <img
  7511. src="../../assets/icon/newIcons/rootImg.png"
  7512. alt=""
  7513. />
  7514. AI评分
  7515. </div>
  7516. <div
  7517. class="ScoreBtn"
  7518. v-else-if="!loopLoading[toolIndex].loading"
  7519. @click="
  7520. loopEva(
  7521. worksStudent[toolIndex],
  7522. chapInfoList[courseType].chapterInfo[0].taskJson[
  7523. taskCount
  7524. ].eList,
  7525. courseType,
  7526. taskCount,
  7527. toolIndex,
  7528. tool.toolDetail,
  7529. chapInfoList[courseType].chapterInfo[0].taskJson[
  7530. taskCount
  7531. ].taskDetail,
  7532. tool
  7533. )
  7534. "
  7535. >
  7536. <img
  7537. src="../../assets/icon/newIcons/rootImg.png"
  7538. alt=""
  7539. />
  7540. AI评分
  7541. </div>
  7542. <div class="ScoreBtn" v-else>
  7543. <img
  7544. src="../../assets/icon/newIcons/rootImg.png"
  7545. alt=""
  7546. />
  7547. 正在评分
  7548. </div>
  7549. </div>
  7550. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7551. </div>
  7552. <div
  7553. class="group_workBox"
  7554. v-for="(g, gindex) in courseGroup.group"
  7555. :key="gindex"
  7556. >
  7557. <div class="group_box">
  7558. <div class="group_title">
  7559. <el-tooltip
  7560. class="item"
  7561. effect="light"
  7562. :content="g.name"
  7563. placement="top"
  7564. >
  7565. <div class="group_name">{{ g.name }}</div>
  7566. </el-tooltip>
  7567. </div>
  7568. <div
  7569. class="group_work"
  7570. v-if="
  7571. g.works &&
  7572. g.works.length &&
  7573. g.works[toolIndex].length
  7574. "
  7575. >
  7576. <div
  7577. class="works"
  7578. style="
  7579. width: 200px;
  7580. height: 140px;
  7581. margin: 10px 10px 10px 0;
  7582. border-radius: 15px;
  7583. box-shadow: 0 0 6px 1px #dfdada;
  7584. "
  7585. v-for="(w, wIndex) in g.works[toolIndex]"
  7586. :key="wIndex"
  7587. :class="w.type == 1 ? 'isTypeOne' : ''"
  7588. >
  7589. <div class="workImg">
  7590. <img
  7591. :src="w.works"
  7592. @click="previewImg(w.works, w)"
  7593. alt
  7594. />
  7595. <div
  7596. class="answerScore"
  7597. v-if="w.score"
  7598. @click.stop="openScore(w)"
  7599. :class="{
  7600. rightW:
  7601. w.userid == userid ||
  7602. tType == 1 ||
  7603. tType == 4
  7604. }"
  7605. >
  7606. {{ JSON.parse(w.score).wScore }}分
  7607. </div>
  7608. <div
  7609. class="answerScore"
  7610. @click.stop="openScore(w)"
  7611. v-else-if="courseDetail.userid == userid"
  7612. :class="{
  7613. rightW:
  7614. w.userid == userid ||
  7615. tType == 1 ||
  7616. tType == 4
  7617. }"
  7618. >
  7619. 评分
  7620. </div>
  7621. <img
  7622. class="deleteImg"
  7623. src="../../assets/deleteworks.png"
  7624. v-if="
  7625. w.userid == userid || tType == 1 || tType == 4
  7626. "
  7627. @click.stop="deleteWorks(w.wid)"
  7628. alt
  7629. />
  7630. </div>
  7631. <div class="comment" style="min-width: 200px">
  7632. <div class="worksName">
  7633. <div>{{ w.sName }}</div>
  7634. </div>
  7635. <div class="commentList">
  7636. <div class="commentList">
  7637. <div
  7638. class="commentImg"
  7639. @click="
  7640. isLikes(
  7641. w.wid,
  7642. userid,
  7643. 1,
  7644. null,
  7645. w.isLikes,
  7646. w.sName
  7647. )
  7648. "
  7649. >
  7650. <img
  7651. :src="w.isLikes == true ? likes : noLikes"
  7652. alt=""
  7653. />
  7654. </div>
  7655. <div>{{ w.likesCount }}</div>
  7656. </div>
  7657. <div
  7658. class="commentList"
  7659. style="margin-right: 15px"
  7660. >
  7661. <div
  7662. class="commentImg"
  7663. @click="
  7664. commentOther(
  7665. w,
  7666. toolIndex,
  7667. wIndex,
  7668. null,
  7669. g.id
  7670. )
  7671. "
  7672. >
  7673. <img
  7674. src="../../assets/icon/comment/comment.png"
  7675. alt=""
  7676. />
  7677. </div>
  7678. <div>{{ w.commentCount }}</div>
  7679. </div>
  7680. </div>
  7681. </div>
  7682. </div>
  7683. </div>
  7684. <div class="group_work" v-else>暂无提交作业</div>
  7685. </div>
  7686. </div>
  7687. <div
  7688. :id="'tool-' + toolIndex"
  7689. :style="{
  7690. height:
  7691. isCloseList[toolIndex].isClose == 1
  7692. ? retrnToolHeight('tool-' + toolIndex)
  7693. : 'auto',
  7694. overflow:
  7695. isCloseList[toolIndex].isClose == 1
  7696. ? 'hidden'
  7697. : 'unset'
  7698. }"
  7699. class="worksDetailBox"
  7700. v-if="
  7701. worksStudent.length &&
  7702. worksStudent[toolIndex].length > 0
  7703. "
  7704. >
  7705. <div
  7706. class="works"
  7707. style="
  7708. width: 200px;
  7709. height: 140px;
  7710. margin: 10px 10px 10px 0;
  7711. border-radius: 15px;
  7712. box-shadow: 0 0 6px 1px #dfdada;
  7713. "
  7714. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7715. :key="wIndex"
  7716. >
  7717. <!-- @click="previewImg(w.works)" -->
  7718. <div class="workImg">
  7719. <img
  7720. :src="w.works"
  7721. @click="previewImg(w.works, w)"
  7722. alt
  7723. />
  7724. <div
  7725. class="answerScore"
  7726. v-if="w.score"
  7727. @click.stop="openScore(w)"
  7728. :class="{
  7729. rightW:
  7730. w.userid == userid || tType == 1 || tType == 4
  7731. }"
  7732. >
  7733. {{ JSON.parse(w.score).wScore }}分
  7734. </div>
  7735. <div
  7736. class="answerScore"
  7737. @click.stop="openScore(w)"
  7738. v-else-if="
  7739. courseDetail.userid == userid &&
  7740. courseDetail.state != 5 &&
  7741. chapInfoList[courseType].chapterInfo[0]
  7742. .taskJson[taskCount].eList &&
  7743. chapInfoList[courseType].chapterInfo[0]
  7744. .taskJson[taskCount].eList.length
  7745. "
  7746. :class="{
  7747. rightW:
  7748. w.userid == userid || tType == 1 || tType == 4
  7749. }"
  7750. >
  7751. 评分
  7752. </div>
  7753. <!-- <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"> -->
  7754. <div
  7755. v-else-if="
  7756. (courseDetail.userid == userid ||
  7757. (courseDetail.course_teacher &&
  7758. courseDetail.course_teacher.indexOf(userid) !=
  7759. -1) ||
  7760. (w.userid == userid && sIsOpen)) &&
  7761. courseDetail.state == 5 &&
  7762. ((chapInfoList[courseType].chapterInfo[0]
  7763. .taskJson[taskCount].eList &&
  7764. chapInfoList[courseType].chapterInfo[0]
  7765. .taskJson[taskCount].eList.length) ||
  7766. (tool.eList && tool.eList.length))
  7767. "
  7768. >
  7769. <el-popover
  7770. placement="top"
  7771. width="318"
  7772. :disabled="AIloading[toolIndex][wIndex].loading"
  7773. trigger="hover"
  7774. >
  7775. <markScore
  7776. :loading="AIloading[toolIndex][wIndex].loading"
  7777. :markScoreVisible="markScoreVisible"
  7778. :ref="`markSco${toolIndex}${wIndex}`"
  7779. @updateLoading="updateLoading"
  7780. @updateDocSco="updateDocSco"
  7781. @refreshOther="refreshOther"
  7782. @markScoreDig="markScoreDig"
  7783. :tool="tool"
  7784. :wIndex="wIndex"
  7785. :scoCon="w"
  7786. :toolIndex="toolIndex"
  7787. :key="refreshKey"
  7788. :stage="courseType"
  7789. :task="taskCount"
  7790. :scoTit="
  7791. chapInfoList[courseType].chapterInfo[0]
  7792. .taskJson[taskCount].eList
  7793. "
  7794. >
  7795. </markScore>
  7796. <div
  7797. class="answerScore"
  7798. @click="
  7799. markScoreDig2(
  7800. w.sName,
  7801. worksStudent,
  7802. w.userid,
  7803. toolIndex,
  7804. chapInfoList[courseType].chapterInfo[0]
  7805. .taskJson[taskCount].eList,
  7806. AIloading[toolIndex][wIndex].loading,
  7807. tool
  7808. )
  7809. "
  7810. slot="reference"
  7811. :class="{
  7812. rightW:
  7813. w.userid == userid ||
  7814. tType == 1 ||
  7815. tType == 4 ||
  7816. w.ateacher == userid
  7817. }"
  7818. >
  7819. <span v-if="AIloading[toolIndex][wIndex].sco">
  7820. {{
  7821. AIloading[toolIndex][wIndex].loading
  7822. ? "评分中"
  7823. : AIloading[toolIndex][wIndex].sco + "分"
  7824. }}
  7825. </span>
  7826. <span v-else>
  7827. {{
  7828. AIloading[toolIndex][wIndex].loading
  7829. ? "评分中"
  7830. : "评分"
  7831. }}
  7832. </span>
  7833. </div>
  7834. </el-popover>
  7835. </div>
  7836. <img
  7837. class="deleteImg"
  7838. src="../../assets/deleteworks.png"
  7839. v-if="
  7840. w.userid == userid || tType == 1 || tType == 4
  7841. "
  7842. @click.stop="deleteWorks(w.wid)"
  7843. alt
  7844. />
  7845. </div>
  7846. <div class="comment" style="min-width: 200px">
  7847. <div class="worksName">
  7848. <div>{{ w.sName }}</div>
  7849. </div>
  7850. <div class="commentList">
  7851. <div class="commentList">
  7852. <div
  7853. class="commentImg"
  7854. @click="
  7855. isLikes(
  7856. w.wid,
  7857. userid,
  7858. 1,
  7859. null,
  7860. w.isLikes,
  7861. w.sName
  7862. )
  7863. "
  7864. >
  7865. <img
  7866. :src="w.isLikes == true ? likes : noLikes"
  7867. alt=""
  7868. />
  7869. </div>
  7870. <div>{{ w.likesCount }}</div>
  7871. </div>
  7872. <div class="commentList" style="margin-right: 15px">
  7873. <div
  7874. class="commentImg"
  7875. @click="commentOther(w, toolIndex, wIndex)"
  7876. >
  7877. <img
  7878. src="../../assets/icon/comment/comment.png"
  7879. alt=""
  7880. />
  7881. </div>
  7882. <div>{{ w.commentCount }}</div>
  7883. </div>
  7884. </div>
  7885. </div>
  7886. </div>
  7887. </div>
  7888. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7889. 未提交
  7890. </div>
  7891. <div
  7892. class="noWorksS"
  7893. v-if="noWorksS && noWorksS[toolIndex].length"
  7894. >
  7895. <div
  7896. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7897. :key="sIndex"
  7898. class="noWorksName"
  7899. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7900. >
  7901. <el-tooltip
  7902. effect="dark"
  7903. :content="s.student"
  7904. placement="top"
  7905. >
  7906. <span>{{ s.student }}</span>
  7907. </el-tooltip>
  7908. </div>
  7909. </div>
  7910. </div>
  7911. <div
  7912. v-if="
  7913. tType &&
  7914. ((tType == 2 && sIsOpen == true) ||
  7915. tType == 1 ||
  7916. tType == 4) &&
  7917. tool.tool.indexOf(6) != -1
  7918. "
  7919. class="worksBox"
  7920. >
  7921. <div
  7922. class="zuoyeYulan"
  7923. v-if="
  7924. (worksStudent.length &&
  7925. worksStudent[toolIndex].length > 0) ||
  7926. (courseGroup.group && courseGroup.group.length)
  7927. "
  7928. >
  7929. <div class="worksTop">
  7930. <div>作业预览</div>
  7931. <div
  7932. class="corOpen"
  7933. @click="contract(toolIndex)"
  7934. v-if="
  7935. isCloseList[toolIndex].isCloseBoolean &&
  7936. isCloseList[toolIndex].isClose == 0
  7937. "
  7938. >
  7939. 折叠
  7940. </div>
  7941. <div
  7942. class="corOpen"
  7943. @click="contract(toolIndex)"
  7944. v-if="isCloseList[toolIndex].isClose == 1"
  7945. >
  7946. 展开
  7947. </div>
  7948. </div>
  7949. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7950. </div>
  7951. <div
  7952. class="group_workBox"
  7953. v-for="(g, gindex) in courseGroup.group"
  7954. :key="gindex"
  7955. >
  7956. <div class="group_box">
  7957. <div class="group_title">
  7958. <el-tooltip
  7959. class="item"
  7960. effect="light"
  7961. :content="g.name"
  7962. placement="top"
  7963. >
  7964. <div class="group_name">{{ g.name }}</div>
  7965. </el-tooltip>
  7966. </div>
  7967. <div
  7968. class="group_work"
  7969. v-if="
  7970. g.works &&
  7971. g.works.length &&
  7972. g.works[toolIndex].length
  7973. "
  7974. >
  7975. <div
  7976. class="works"
  7977. style="
  7978. width: 200px;
  7979. height: 140px;
  7980. margin: 10px 10px 10px 0;
  7981. border-radius: 15px;
  7982. box-shadow: 0 0 6px 1px #dfdada;
  7983. "
  7984. v-for="(w, wIndex) in g.works[toolIndex]"
  7985. :key="wIndex"
  7986. :class="w.type == 1 ? 'isTypeOne' : ''"
  7987. >
  7988. <div class="workImg">
  7989. <img
  7990. :src="w.works"
  7991. @click="previewImg(w.works, w)"
  7992. alt
  7993. />
  7994. <div
  7995. class="answerScore"
  7996. v-if="w.score"
  7997. @click.stop="openScore(w)"
  7998. :class="{
  7999. rightW:
  8000. w.userid == userid ||
  8001. tType == 1 ||
  8002. tType == 4
  8003. }"
  8004. >
  8005. {{ JSON.parse(w.score).wScore }}分
  8006. </div>
  8007. <div
  8008. class="answerScore"
  8009. @click.stop="openScore(w)"
  8010. v-else-if="courseDetail.userid == userid"
  8011. :class="{
  8012. rightW:
  8013. w.userid == userid ||
  8014. tType == 1 ||
  8015. tType == 4
  8016. }"
  8017. >
  8018. 评分
  8019. </div>
  8020. <img
  8021. class="deleteImg"
  8022. src="../../assets/deleteworks.png"
  8023. v-if="
  8024. w.userid == userid || tType == 1 || tType == 4
  8025. "
  8026. @click.stop="deleteWorks(w.wid)"
  8027. alt
  8028. />
  8029. </div>
  8030. <div class="comment" style="min-width: 200px">
  8031. <div class="worksName">
  8032. <div>{{ w.sName }}</div>
  8033. </div>
  8034. <div class="commentList">
  8035. <div class="commentList">
  8036. <div
  8037. class="commentImg"
  8038. @click="
  8039. isLikes(
  8040. w.wid,
  8041. userid,
  8042. 1,
  8043. null,
  8044. w.isLikes,
  8045. w.sName
  8046. )
  8047. "
  8048. >
  8049. <img
  8050. :src="w.isLikes == true ? likes : noLikes"
  8051. alt=""
  8052. />
  8053. </div>
  8054. <div>{{ w.likesCount }}</div>
  8055. </div>
  8056. <div
  8057. class="commentList"
  8058. style="margin-right: 15px"
  8059. >
  8060. <div
  8061. class="commentImg"
  8062. @click="
  8063. commentOther(
  8064. w,
  8065. toolIndex,
  8066. wIndex,
  8067. null,
  8068. g.id
  8069. )
  8070. "
  8071. >
  8072. <img
  8073. src="../../assets/icon/comment/comment.png"
  8074. alt=""
  8075. />
  8076. </div>
  8077. <div>{{ w.commentCount }}</div>
  8078. </div>
  8079. </div>
  8080. </div>
  8081. </div>
  8082. </div>
  8083. <div class="group_work" v-else>暂无提交作业</div>
  8084. </div>
  8085. </div>
  8086. <div
  8087. :id="'tool-' + toolIndex"
  8088. :style="{
  8089. height:
  8090. isCloseList[toolIndex].isClose == 1
  8091. ? retrnToolHeight('tool-' + toolIndex)
  8092. : 'auto',
  8093. overflow:
  8094. isCloseList[toolIndex].isClose == 1
  8095. ? 'hidden'
  8096. : 'unset'
  8097. }"
  8098. class="worksDetailBox"
  8099. v-if="
  8100. worksStudent.length &&
  8101. worksStudent[toolIndex].length > 0
  8102. "
  8103. >
  8104. <div
  8105. class="works"
  8106. style="
  8107. width: 200px;
  8108. height: 140px;
  8109. margin: 10px 10px 10px 0;
  8110. border-radius: 15px;
  8111. box-shadow: 0 0 6px 1px #dfdada;
  8112. "
  8113. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8114. :key="wIndex"
  8115. >
  8116. <!-- @click="previewImg(w.works)" -->
  8117. <div class="workImg">
  8118. <img
  8119. :src="w.works"
  8120. @click="previewImg(w.works, w)"
  8121. alt
  8122. />
  8123. <div
  8124. class="answerScore"
  8125. v-if="w.score"
  8126. @click.stop="openScore(w)"
  8127. :class="{
  8128. rightW:
  8129. w.userid == userid || tType == 1 || tType == 4
  8130. }"
  8131. >
  8132. {{ JSON.parse(w.score).wScore }}分
  8133. </div>
  8134. <div
  8135. class="answerScore"
  8136. @click.stop="openScore(w)"
  8137. v-else-if="courseDetail.userid == userid"
  8138. :class="{
  8139. rightW:
  8140. w.userid == userid || tType == 1 || tType == 4
  8141. }"
  8142. >
  8143. 评分
  8144. </div>
  8145. <img
  8146. class="deleteImg"
  8147. src="../../assets/deleteworks.png"
  8148. v-if="
  8149. w.userid == userid || tType == 1 || tType == 4
  8150. "
  8151. @click.stop="deleteWorks(w.wid)"
  8152. alt
  8153. />
  8154. </div>
  8155. <div class="comment" style="min-width: 200px">
  8156. <div class="worksName">
  8157. <div>{{ w.sName }}</div>
  8158. </div>
  8159. <div class="commentList">
  8160. <div class="commentList">
  8161. <div
  8162. class="commentImg"
  8163. @click="
  8164. isLikes(
  8165. w.wid,
  8166. userid,
  8167. 1,
  8168. null,
  8169. w.isLikes,
  8170. w.sName
  8171. )
  8172. "
  8173. >
  8174. <img
  8175. :src="w.isLikes == true ? likes : noLikes"
  8176. alt=""
  8177. />
  8178. </div>
  8179. <div>{{ w.likesCount }}</div>
  8180. </div>
  8181. <div class="commentList" style="margin-right: 15px">
  8182. <div
  8183. class="commentImg"
  8184. @click="commentOther(w, toolIndex, wIndex)"
  8185. >
  8186. <img
  8187. src="../../assets/icon/comment/comment.png"
  8188. alt=""
  8189. />
  8190. </div>
  8191. <div>{{ w.commentCount }}</div>
  8192. </div>
  8193. </div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8198. 未提交
  8199. </div>
  8200. <div
  8201. class="noWorksS"
  8202. v-if="noWorksS && noWorksS[toolIndex].length"
  8203. >
  8204. <div
  8205. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8206. :key="sIndex"
  8207. class="noWorksName"
  8208. >
  8209. <el-tooltip
  8210. effect="dark"
  8211. :content="s.student"
  8212. placement="top"
  8213. >
  8214. <span>{{ s.student }}</span>
  8215. </el-tooltip>
  8216. </div>
  8217. </div>
  8218. </div>
  8219. <div
  8220. v-if="
  8221. tType &&
  8222. ((tType == 2 && sIsOpen == true) ||
  8223. tType == 1 ||
  8224. tType == 4) &&
  8225. tool.tool.indexOf(7) != -1
  8226. "
  8227. class="worksBox"
  8228. >
  8229. <div
  8230. class="zuoyeYulan"
  8231. style="display: flex;justify-content: space-between;align-items: center;"
  8232. v-if="
  8233. (worksStudent.length &&
  8234. worksStudent[toolIndex].length > 0) ||
  8235. (courseGroup.group && courseGroup.group.length)
  8236. "
  8237. >
  8238. <div class="worksTop">
  8239. <div>作业预览</div>
  8240. <div
  8241. class="corOpen"
  8242. @click="contract(toolIndex)"
  8243. v-if="
  8244. isCloseList[toolIndex].isCloseBoolean &&
  8245. isCloseList[toolIndex].isClose == 0
  8246. "
  8247. >
  8248. 折叠
  8249. </div>
  8250. <div
  8251. class="corOpen"
  8252. @click="contract(toolIndex)"
  8253. v-if="isCloseList[toolIndex].isClose == 1"
  8254. >
  8255. 展开
  8256. </div>
  8257. </div>
  8258. <div
  8259. style="display: flex;"
  8260. v-if="
  8261. (courseDetail.userid == userid ||
  8262. (courseDetail.course_teacher &&
  8263. courseDetail.course_teacher.indexOf(userid) !=
  8264. -1)) &&
  8265. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8266. taskCount
  8267. ].eList &&
  8268. chapInfoList[courseType].chapterInfo[0].taskJson[
  8269. taskCount
  8270. ].eList.length) ||
  8271. (tool.eList && tool.eList.length)) &&
  8272. courseDetail.state == 5
  8273. "
  8274. >
  8275. <div
  8276. style="margin-right:10px"
  8277. class="ScoreBtn"
  8278. @click="
  8279. resetLoopEva(
  8280. worksStudent[toolIndex],
  8281. chapInfoList[courseType].chapterInfo[0].taskJson[
  8282. taskCount
  8283. ].eList,
  8284. courseType,
  8285. taskCount,
  8286. toolIndex,
  8287. tool.toolDetail,
  8288. worksStudent
  8289. )
  8290. "
  8291. >
  8292. 一键重置
  8293. </div>
  8294. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8295. <img
  8296. src="../../assets/icon/newIcons/rootImg.png"
  8297. alt=""
  8298. />
  8299. AI评分
  8300. </div>
  8301. <div
  8302. class="ScoreBtn"
  8303. v-else-if="!loopLoading[toolIndex].loading"
  8304. @click="
  8305. loopEva(
  8306. worksStudent[toolIndex],
  8307. chapInfoList[courseType].chapterInfo[0].taskJson[
  8308. taskCount
  8309. ].eList,
  8310. courseType,
  8311. taskCount,
  8312. toolIndex,
  8313. tool.toolDetail,
  8314. chapInfoList[courseType].chapterInfo[0].taskJson[
  8315. taskCount
  8316. ].taskDetail,
  8317. tool
  8318. )
  8319. "
  8320. >
  8321. <img
  8322. src="../../assets/icon/newIcons/rootImg.png"
  8323. alt=""
  8324. />
  8325. AI评分
  8326. </div>
  8327. <div class="ScoreBtn" v-else>
  8328. <img
  8329. src="../../assets/icon/newIcons/rootImg.png"
  8330. alt=""
  8331. />
  8332. 正在评分
  8333. </div>
  8334. </div>
  8335. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8336. </div>
  8337. <div
  8338. class="group_workBox"
  8339. v-for="(g, gindex) in courseGroup.group"
  8340. :key="gindex"
  8341. >
  8342. <div class="group_box">
  8343. <div class="group_title">
  8344. <el-tooltip
  8345. class="item"
  8346. effect="light"
  8347. :content="g.name"
  8348. placement="top"
  8349. >
  8350. <div class="group_name">{{ g.name }}</div>
  8351. </el-tooltip>
  8352. </div>
  8353. <div
  8354. class="group_work"
  8355. v-if="
  8356. g.works &&
  8357. g.works.length &&
  8358. g.works[toolIndex].length
  8359. "
  8360. >
  8361. <div
  8362. class="works"
  8363. style="
  8364. width: 200px;
  8365. height: 140px;
  8366. margin: 10px 10px 10px 0;
  8367. border-radius: 15px;
  8368. box-shadow: 0 0 6px 1px #dfdada;
  8369. "
  8370. v-for="(w, wIndex) in g.works[toolIndex]"
  8371. :key="wIndex"
  8372. :class="w.type == 1 ? 'isTypeOne' : ''"
  8373. >
  8374. <div class="workImg">
  8375. <img
  8376. :src="w.works"
  8377. @click="previewImg(w.works, w)"
  8378. alt
  8379. />
  8380. <div
  8381. class="answerScore"
  8382. v-if="w.score"
  8383. @click.stop="openScore(w)"
  8384. :class="{
  8385. rightW:
  8386. w.userid == userid ||
  8387. tType == 1 ||
  8388. tType == 4
  8389. }"
  8390. >
  8391. {{ JSON.parse(w.score).wScore }}分
  8392. </div>
  8393. <div
  8394. class="answerScore"
  8395. @click.stop="openScore(w)"
  8396. v-else-if="courseDetail.userid == userid"
  8397. :class="{
  8398. rightW:
  8399. w.userid == userid ||
  8400. tType == 1 ||
  8401. tType == 4
  8402. }"
  8403. >
  8404. 评分
  8405. </div>
  8406. <img
  8407. class="deleteImg"
  8408. src="../../assets/deleteworks.png"
  8409. v-if="
  8410. w.userid == userid || tType == 1 || tType == 4
  8411. "
  8412. @click.stop="deleteWorks(w.wid)"
  8413. alt
  8414. />
  8415. </div>
  8416. <div class="comment" style="min-width: 200px">
  8417. <div class="worksName">
  8418. <div>{{ w.sName }}</div>
  8419. </div>
  8420. <div class="commentList">
  8421. <div class="commentList">
  8422. <div
  8423. class="commentImg"
  8424. @click="
  8425. isLikes(
  8426. w.wid,
  8427. userid,
  8428. 1,
  8429. null,
  8430. w.isLikes,
  8431. w.sName
  8432. )
  8433. "
  8434. >
  8435. <img
  8436. :src="w.isLikes == true ? likes : noLikes"
  8437. alt=""
  8438. />
  8439. </div>
  8440. <div>{{ w.likesCount }}</div>
  8441. </div>
  8442. <div
  8443. class="commentList"
  8444. style="margin-right: 15px"
  8445. >
  8446. <div
  8447. class="commentImg"
  8448. @click="
  8449. commentOther(
  8450. w,
  8451. toolIndex,
  8452. wIndex,
  8453. null,
  8454. g.id
  8455. )
  8456. "
  8457. >
  8458. <img
  8459. src="../../assets/icon/comment/comment.png"
  8460. alt=""
  8461. />
  8462. </div>
  8463. <div>{{ w.commentCount }}</div>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <div class="group_work" v-else>暂无提交作业</div>
  8470. </div>
  8471. </div>
  8472. <div
  8473. :id="'tool-' + toolIndex"
  8474. :style="{
  8475. height:
  8476. isCloseList[toolIndex].isClose == 1
  8477. ? retrnToolHeight('tool-' + toolIndex)
  8478. : 'auto',
  8479. overflow:
  8480. isCloseList[toolIndex].isClose == 1
  8481. ? 'hidden'
  8482. : 'unset'
  8483. }"
  8484. class="worksDetailBox"
  8485. v-if="
  8486. worksStudent.length &&
  8487. worksStudent[toolIndex].length > 0
  8488. "
  8489. >
  8490. <div
  8491. class="works"
  8492. style="
  8493. width: 200px;
  8494. height: 140px;
  8495. margin: 10px 10px 10px 0;
  8496. border-radius: 15px;
  8497. box-shadow: 0 0 6px 1px #dfdada;
  8498. "
  8499. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8500. :key="wIndex"
  8501. >
  8502. <!-- @click="previewImg(w.works)" -->
  8503. <div class="workImg">
  8504. <img
  8505. :src="w.works"
  8506. @click="previewImg(w.works, w)"
  8507. alt
  8508. />
  8509. <div
  8510. class="answerScore"
  8511. v-if="w.score"
  8512. @click.stop="openScore(w)"
  8513. :class="{
  8514. rightW:
  8515. w.userid == userid || tType == 1 || tType == 4
  8516. }"
  8517. >
  8518. {{ JSON.parse(w.score).wScore }}分
  8519. </div>
  8520. <div
  8521. class="answerScore"
  8522. @click.stop="openScore(w)"
  8523. v-else-if="
  8524. courseDetail.userid == userid &&
  8525. courseDetail.state != 5 &&
  8526. chapInfoList[courseType].chapterInfo[0]
  8527. .taskJson[taskCount].eList &&
  8528. chapInfoList[courseType].chapterInfo[0]
  8529. .taskJson[taskCount].eList.length
  8530. "
  8531. :class="{
  8532. rightW:
  8533. w.userid == userid || tType == 1 || tType == 4
  8534. }"
  8535. >
  8536. 评分
  8537. </div>
  8538. <!-- <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"> -->
  8539. <div
  8540. v-else-if="
  8541. (courseDetail.userid == userid ||
  8542. (courseDetail.course_teacher &&
  8543. courseDetail.course_teacher.indexOf(userid) !=
  8544. -1) ||
  8545. (w.userid == userid && sIsOpen)) &&
  8546. courseDetail.state == 5 &&
  8547. ((chapInfoList[courseType].chapterInfo[0]
  8548. .taskJson[taskCount].eList &&
  8549. chapInfoList[courseType].chapterInfo[0]
  8550. .taskJson[taskCount].eList.length) ||
  8551. (tool.eList && tool.eList.length))
  8552. "
  8553. >
  8554. <el-popover
  8555. placement="top"
  8556. width="318"
  8557. :disabled="AIloading[toolIndex][wIndex].loading"
  8558. trigger="hover"
  8559. >
  8560. <markScore
  8561. :loading="AIloading[toolIndex][wIndex].loading"
  8562. :markScoreVisible="markScoreVisible"
  8563. :ref="`markSco${toolIndex}${wIndex}`"
  8564. @updateLoading="updateLoading"
  8565. @updateDocSco="updateDocSco"
  8566. @refreshOther="refreshOther"
  8567. @markScoreDig="markScoreDig"
  8568. :tool="tool"
  8569. :wIndex="wIndex"
  8570. :scoCon="w"
  8571. :toolIndex="toolIndex"
  8572. :key="refreshKey"
  8573. :stage="courseType"
  8574. :task="taskCount"
  8575. :scoTit="
  8576. chapInfoList[courseType].chapterInfo[0]
  8577. .taskJson[taskCount].eList
  8578. "
  8579. >
  8580. </markScore>
  8581. <div
  8582. class="answerScore"
  8583. @click="
  8584. markScoreDig2(
  8585. w.sName,
  8586. worksStudent,
  8587. w.userid,
  8588. toolIndex,
  8589. chapInfoList[courseType].chapterInfo[0]
  8590. .taskJson[taskCount].eList,
  8591. AIloading[toolIndex][wIndex].loading,
  8592. tool
  8593. )
  8594. "
  8595. slot="reference"
  8596. :class="{
  8597. rightW:
  8598. w.userid == userid ||
  8599. tType == 1 ||
  8600. tType == 4 ||
  8601. w.ateacher == userid
  8602. }"
  8603. >
  8604. <span v-if="AIloading[toolIndex][wIndex].sco">
  8605. {{
  8606. AIloading[toolIndex][wIndex].loading
  8607. ? "评分中"
  8608. : AIloading[toolIndex][wIndex].sco + "分"
  8609. }}
  8610. </span>
  8611. <span v-else>
  8612. {{
  8613. AIloading[toolIndex][wIndex].loading
  8614. ? "评分中"
  8615. : "评分"
  8616. }}
  8617. </span>
  8618. </div>
  8619. </el-popover>
  8620. </div>
  8621. <img
  8622. class="deleteImg"
  8623. src="../../assets/deleteworks.png"
  8624. v-if="
  8625. w.userid == userid || tType == 1 || tType == 4
  8626. "
  8627. @click.stop="deleteWorks(w.wid)"
  8628. alt
  8629. />
  8630. </div>
  8631. <div class="comment" style="min-width: 200px">
  8632. <div class="worksName">
  8633. <div>{{ w.sName }}</div>
  8634. </div>
  8635. <div class="commentList">
  8636. <div class="commentList">
  8637. <div
  8638. class="commentImg"
  8639. @click="
  8640. isLikes(
  8641. w.wid,
  8642. userid,
  8643. 1,
  8644. null,
  8645. w.isLikes,
  8646. w.sName
  8647. )
  8648. "
  8649. >
  8650. <img
  8651. :src="w.isLikes == true ? likes : noLikes"
  8652. alt=""
  8653. />
  8654. </div>
  8655. <div>{{ w.likesCount }}</div>
  8656. </div>
  8657. <div class="commentList" style="margin-right: 15px">
  8658. <div
  8659. class="commentImg"
  8660. @click="commentOther(w, toolIndex, wIndex)"
  8661. >
  8662. <img
  8663. src="../../assets/icon/comment/comment.png"
  8664. alt=""
  8665. />
  8666. </div>
  8667. <div>{{ w.commentCount }}</div>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. </div>
  8672. </div>
  8673. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8674. 未提交
  8675. </div>
  8676. <div
  8677. class="noWorksS"
  8678. v-if="noWorksS && noWorksS[toolIndex].length"
  8679. >
  8680. <div
  8681. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8682. :key="sIndex"
  8683. class="noWorksName"
  8684. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8685. >
  8686. <el-tooltip
  8687. effect="dark"
  8688. :content="s.student"
  8689. placement="top"
  8690. >
  8691. <span>{{ s.student }}</span>
  8692. </el-tooltip>
  8693. </div>
  8694. </div>
  8695. </div>
  8696. <div
  8697. v-if="
  8698. tType &&
  8699. ((tType == 2 && sIsOpen == true) ||
  8700. tType == 1 ||
  8701. tType == 4) &&
  8702. tool.tool.indexOf(26) != -1
  8703. "
  8704. class="worksBox"
  8705. >
  8706. <div
  8707. class="zuoyeYulan"
  8708. v-if="
  8709. worksStudent.length &&
  8710. worksStudent[toolIndex].length > 0
  8711. "
  8712. >
  8713. <div class="worksTop">
  8714. <div>作业预览</div>
  8715. <div
  8716. class="corOpen"
  8717. @click="contract(toolIndex)"
  8718. v-if="
  8719. isCloseList[toolIndex].isCloseBoolean &&
  8720. isCloseList[toolIndex].isClose == 0
  8721. "
  8722. >
  8723. 折叠
  8724. </div>
  8725. <div
  8726. class="corOpen"
  8727. @click="contract(toolIndex)"
  8728. v-if="isCloseList[toolIndex].isClose == 1"
  8729. >
  8730. 展开
  8731. </div>
  8732. </div>
  8733. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8734. </div>
  8735. <div
  8736. :id="'tool-' + toolIndex"
  8737. :style="{
  8738. height:
  8739. isCloseList[toolIndex].isClose == 1
  8740. ? retrnToolHeight('tool-' + toolIndex)
  8741. : 'auto',
  8742. overflow:
  8743. isCloseList[toolIndex].isClose == 1
  8744. ? 'hidden'
  8745. : 'unset'
  8746. }"
  8747. class="worksDetailBox"
  8748. v-if="
  8749. worksStudent.length &&
  8750. worksStudent[toolIndex].length > 0
  8751. "
  8752. >
  8753. <div
  8754. class="works"
  8755. style="width: 240px; height: 140px; overflow: hidden"
  8756. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8757. :key="wIndex"
  8758. :class="w.type == 1 ? 'isTypeOne' : ''"
  8759. >
  8760. <div class="workImg" v-if="w.type == 0">
  8761. <img
  8762. :src="w.works"
  8763. @click="previewImg(w.works, w)"
  8764. alt
  8765. />
  8766. <img
  8767. class="deleteImg"
  8768. src="../../assets/deleteworks.png"
  8769. v-if="
  8770. w.userid == userid || tType == 1 || tType == 4
  8771. "
  8772. @click.stop="deleteWorks(w.wid)"
  8773. alt
  8774. />
  8775. </div>
  8776. <div class="workImg" v-if="w.type == 1">
  8777. <img :src="word" @click="openFile(w.works)" alt />
  8778. <img
  8779. class="deleteImg"
  8780. src="../../assets/deleteworks.png"
  8781. v-if="
  8782. w.userid == userid || tType == 1 || tType == 4
  8783. "
  8784. @click.stop="deleteWorks(w.wid)"
  8785. alt
  8786. />
  8787. </div>
  8788. <div class="worksName">
  8789. <div>{{ w.sName }}</div>
  8790. </div>
  8791. </div>
  8792. </div>
  8793. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8794. 未提交
  8795. </div>
  8796. <div
  8797. class="noWorksS"
  8798. v-if="noWorksS && noWorksS[toolIndex].length"
  8799. >
  8800. <div
  8801. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8802. :key="sIndex"
  8803. class="noWorksName"
  8804. >
  8805. <el-tooltip
  8806. effect="dark"
  8807. :content="s.student"
  8808. placement="top"
  8809. >
  8810. <span>{{ s.student }}</span>
  8811. </el-tooltip>
  8812. </div>
  8813. </div>
  8814. </div>
  8815. <div
  8816. v-if="
  8817. tType &&
  8818. ((tType == 2 && sIsOpen == true) ||
  8819. tType == 1 ||
  8820. tType == 4) &&
  8821. tool.tool.indexOf(40) != -1
  8822. "
  8823. class="worksBox"
  8824. >
  8825. <div
  8826. class="zuoyeYulan"
  8827. v-if="
  8828. worksStudent.length &&
  8829. worksStudent[toolIndex].length > 0
  8830. "
  8831. >
  8832. <div class="worksTop">
  8833. <div>作业预览</div>
  8834. <div
  8835. class="corOpen"
  8836. @click="contract(toolIndex)"
  8837. v-if="
  8838. isCloseList[toolIndex].isCloseBoolean &&
  8839. isCloseList[toolIndex].isClose == 0
  8840. "
  8841. >
  8842. 折叠
  8843. </div>
  8844. <div
  8845. class="corOpen"
  8846. @click="contract(toolIndex)"
  8847. v-if="isCloseList[toolIndex].isClose == 1"
  8848. >
  8849. 展开
  8850. </div>
  8851. </div>
  8852. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8853. </div>
  8854. <div
  8855. :id="'tool-' + toolIndex"
  8856. :style="{
  8857. height:
  8858. isCloseList[toolIndex].isClose == 1
  8859. ? retrnToolHeight('tool-' + toolIndex)
  8860. : 'auto',
  8861. overflow:
  8862. isCloseList[toolIndex].isClose == 1
  8863. ? 'hidden'
  8864. : 'unset'
  8865. }"
  8866. class="worksDetailBox"
  8867. v-if="
  8868. worksStudent.length &&
  8869. worksStudent[toolIndex].length > 0
  8870. "
  8871. >
  8872. <div
  8873. class="works"
  8874. style="
  8875. width: 200px;
  8876. height: 140px;
  8877. margin: 10px 10px 10px 0;
  8878. border-radius: 15px;
  8879. box-shadow: 0 0 6px 1px #dfdada;
  8880. "
  8881. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8882. :key="wIndex"
  8883. :class="w.type == 1 ? 'isTypeOne' : ''"
  8884. >
  8885. <div class="workImg">
  8886. <img
  8887. src="../../assets/icon/works/noImg.png"
  8888. @click="openPj(w.works, toolIndex)"
  8889. alt
  8890. />
  8891. <img
  8892. class="deleteImg"
  8893. src="../../assets/deleteworks.png"
  8894. v-if="
  8895. w.userid == userid || tType == 1 || tType == 4
  8896. "
  8897. @click.stop="deleteWorks(w.wid)"
  8898. alt
  8899. />
  8900. </div>
  8901. <div class="comment" style="min-width: 200px">
  8902. <div class="worksName">
  8903. <div>{{ w.sName }}</div>
  8904. </div>
  8905. <div class="commentList">
  8906. <div class="commentList">
  8907. <div
  8908. class="commentImg"
  8909. @click="
  8910. isLikes(
  8911. w.wid,
  8912. userid,
  8913. 1,
  8914. null,
  8915. w.isLikes,
  8916. w.sName
  8917. )
  8918. "
  8919. >
  8920. <img
  8921. :src="w.isLikes == true ? likes : noLikes"
  8922. alt=""
  8923. />
  8924. </div>
  8925. <div>{{ w.likesCount }}</div>
  8926. </div>
  8927. <div class="commentList" style="margin-right: 15px">
  8928. <div
  8929. class="commentImg"
  8930. @click="commentOther(w, toolIndex, wIndex)"
  8931. >
  8932. <img
  8933. src="../../assets/icon/comment/comment.png"
  8934. alt=""
  8935. />
  8936. </div>
  8937. <div>{{ w.commentCount }}</div>
  8938. </div>
  8939. </div>
  8940. </div>
  8941. </div>
  8942. </div>
  8943. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8944. 未提交
  8945. </div>
  8946. <div
  8947. class="noWorksS"
  8948. v-if="noWorksS && noWorksS[toolIndex].length"
  8949. >
  8950. <div
  8951. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8952. :key="sIndex"
  8953. class="noWorksName"
  8954. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8955. >
  8956. <el-tooltip
  8957. effect="dark"
  8958. :content="s.student"
  8959. placement="top"
  8960. >
  8961. <span>{{ s.student }}</span>
  8962. </el-tooltip>
  8963. </div>
  8964. </div>
  8965. </div>
  8966. <div
  8967. v-if="
  8968. tType &&
  8969. tType == 2 &&
  8970. !sIsOpen &&
  8971. tool.tool.indexOf(40) != -1
  8972. "
  8973. class="worksBox"
  8974. >
  8975. <div
  8976. class="zuoyeYulan"
  8977. v-if="workStudent[toolIndex].length > 0"
  8978. >
  8979. <span class="worksTitle">作业预览</span>
  8980. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8981. </div>
  8982. <div
  8983. class="worksDetailBox"
  8984. v-if="workStudent[toolIndex].length > 0"
  8985. >
  8986. <div
  8987. class="works"
  8988. style="
  8989. width: 200px;
  8990. height: 140px;
  8991. margin: 10px 10px 10px 0;
  8992. "
  8993. v-for="(w, wIndex) in workStudent[toolIndex]"
  8994. :key="wIndex"
  8995. >
  8996. <div class="workImg">
  8997. <img
  8998. src="../../assets/icon/works/noImg.png"
  8999. @click="openPj(w.works, toolIndex)"
  9000. alt
  9001. />
  9002. <img
  9003. class="deleteImg"
  9004. src="../../assets/deleteworks.png"
  9005. v-if="
  9006. w.userid == userid || tType == 1 || tType == 4
  9007. "
  9008. @click.stop="deleteWorks(w.wid)"
  9009. alt
  9010. />
  9011. </div>
  9012. <div class="worksName">
  9013. <div>{{ w.sName }}</div>
  9014. </div>
  9015. </div>
  9016. </div>
  9017. </div>
  9018. <div
  9019. v-if="
  9020. tType &&
  9021. ((tType == 2 && sIsOpen == true) ||
  9022. tType == 1 ||
  9023. tType == 4) &&
  9024. tool.tool.indexOf(41) != -1
  9025. "
  9026. >
  9027. <AnswerData2
  9028. v-if="
  9029. worksStudent.length &&
  9030. worksStudent[toolIndex].length > 0
  9031. "
  9032. :problemJson="tool.selectJson.answer"
  9033. :people="worksStudent[toolIndex]"
  9034. ></AnswerData2>
  9035. </div>
  9036. <div
  9037. v-if="
  9038. tType &&
  9039. ((tType == 2 && sIsOpen == true) ||
  9040. tType == 1 ||
  9041. tType == 4) &&
  9042. tool.tool.indexOf(41) != -1
  9043. "
  9044. class="worksBox"
  9045. >
  9046. <div
  9047. class="zuoyeYulan"
  9048. v-if="
  9049. worksStudent.length &&
  9050. worksStudent[toolIndex].length > 0
  9051. "
  9052. >
  9053. <div class="worksTop">
  9054. <div>作业预览</div>
  9055. <div
  9056. class="corOpen"
  9057. @click="contract(toolIndex)"
  9058. v-if="
  9059. isCloseList[toolIndex].isCloseBoolean &&
  9060. isCloseList[toolIndex].isClose == 0
  9061. "
  9062. >
  9063. 折叠
  9064. </div>
  9065. <div
  9066. class="corOpen"
  9067. @click="contract(toolIndex)"
  9068. v-if="isCloseList[toolIndex].isClose == 1"
  9069. >
  9070. 展开
  9071. </div>
  9072. </div>
  9073. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9074. </div>
  9075. <div
  9076. :id="'tool-' + toolIndex"
  9077. :style="{
  9078. height:
  9079. isCloseList[toolIndex].isClose == 1
  9080. ? retrnToolHeight('tool-' + toolIndex)
  9081. : 'auto',
  9082. overflow:
  9083. isCloseList[toolIndex].isClose == 1
  9084. ? 'hidden'
  9085. : 'unset'
  9086. }"
  9087. class="worksDetailBox"
  9088. v-if="
  9089. worksStudent.length &&
  9090. worksStudent[toolIndex].length > 0
  9091. "
  9092. >
  9093. <div
  9094. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9095. :key="wIndex"
  9096. class="isWorksName2"
  9097. @click="openXz(w, toolIndex)"
  9098. >
  9099. {{ w.sName }}
  9100. <img
  9101. class="deleteImg deleteImg2"
  9102. src="../../assets/deleteworks.png"
  9103. v-if="w.userid == userid || tType == 1 || tType == 4"
  9104. @click.stop="deleteWorks(w.wid)"
  9105. alt
  9106. />
  9107. </div>
  9108. <!-- <div
  9109. class="works"
  9110. style="
  9111. width: 200px;
  9112. height: 140px;
  9113. margin: 10px 10px 10px 0;
  9114. border-radius: 15px;
  9115. box-shadow: 0 0 6px 1px #dfdada;
  9116. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9117. :class="w.type == 5 ? 'isTypeOne' : ''">
  9118. <div class="workImg">
  9119. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9120. </div>
  9121. <div class="worksName">
  9122. <div>{{ w.sName }}</div>
  9123. </div>
  9124. </div> -->
  9125. </div>
  9126. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9127. 未提交
  9128. </div>
  9129. <div
  9130. class="noWorksS"
  9131. v-if="noWorksS && noWorksS[toolIndex].length"
  9132. >
  9133. <div
  9134. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9135. :key="sIndex"
  9136. class="noWorksName"
  9137. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9138. >
  9139. <el-tooltip
  9140. effect="dark"
  9141. :content="s.student"
  9142. placement="top"
  9143. >
  9144. <span>{{ s.student }}</span>
  9145. </el-tooltip>
  9146. </div>
  9147. </div>
  9148. </div>
  9149. <div
  9150. v-if="
  9151. tType &&
  9152. tType == 2 &&
  9153. !sIsOpen &&
  9154. tool.tool.indexOf(41) != -1
  9155. "
  9156. class="worksBox"
  9157. >
  9158. <div
  9159. class="zuoyeYulan"
  9160. v-if="workStudent[toolIndex].length > 0"
  9161. >
  9162. <span class="worksTitle">作业预览</span>
  9163. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9164. </div>
  9165. <div
  9166. class="worksDetailBox"
  9167. v-if="workStudent[toolIndex].length > 0"
  9168. >
  9169. <div
  9170. class="works"
  9171. style="
  9172. width: 200px;
  9173. height: 140px;
  9174. margin: 10px 10px 10px 0;
  9175. "
  9176. v-for="(w, wIndex) in workStudent[toolIndex]"
  9177. :key="wIndex"
  9178. >
  9179. <div class="workImg">
  9180. <img
  9181. src="../../assets/icon/works/noImg.png"
  9182. @click="openXz(w, toolIndex)"
  9183. alt
  9184. />
  9185. <img
  9186. class="deleteImg"
  9187. src="../../assets/deleteworks.png"
  9188. v-if="
  9189. w.userid == userid || tType == 1 || tType == 4
  9190. "
  9191. @click.stop="deleteWorks(w.wid)"
  9192. alt
  9193. />
  9194. </div>
  9195. <div class="worksName">
  9196. <div>{{ w.sName }}</div>
  9197. </div>
  9198. </div>
  9199. </div>
  9200. </div>
  9201. <div v-if="false" class="xuan_right_box">
  9202. <div
  9203. class="tool_right_box"
  9204. v-for="(item, index) in tool.sentenceList"
  9205. :key="index"
  9206. >
  9207. <div>
  9208. <span
  9209. style="word-break: break-all; white-space: normal"
  9210. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9211. >
  9212. </div>
  9213. <div class="right_box_xuan">
  9214. <span>正确率</span>
  9215. <span>{{
  9216. (checkJson[toolIndex][index].right
  9217. ? checkJson[toolIndex][index].right
  9218. : 0) + "%"
  9219. }}</span>
  9220. </div>
  9221. <div class="right_box_xuan">
  9222. <span>答对人数</span>
  9223. <span>{{
  9224. checkJson[toolIndex][index].rightPerson.length
  9225. }}</span>
  9226. </div>
  9227. </div>
  9228. </div>
  9229. <div
  9230. v-if="
  9231. tType &&
  9232. ((tType == 2 && sIsOpen == true) ||
  9233. tType == 1 ||
  9234. tType == 4) &&
  9235. tool.tool.indexOf(47) != -1
  9236. "
  9237. >
  9238. <!-- <AnswerData
  9239. v-if="
  9240. checkJson[toolIndex].length &&
  9241. (tool.sentenceList || tool.sentenceList.length > 0)
  9242. "
  9243. :people="checkJson[toolIndex]"
  9244. ></AnswerData> -->
  9245. <sortToolWorkShow v-if="
  9246. worksStudent[toolIndex].length
  9247. "
  9248. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  9249. </div>
  9250. <div
  9251. v-if="
  9252. tType &&
  9253. tType == 2 &&
  9254. !sIsOpen &&
  9255. tool.tool.indexOf(47) != -1
  9256. "
  9257. class="worksBox"
  9258. >
  9259. <div
  9260. class="zuoyeYulan"
  9261. v-if="workStudent[toolIndex].length > 0"
  9262. >
  9263. <span class="worksTitle">作业预览</span>
  9264. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9265. </div>
  9266. <div
  9267. class="worksDetailBox"
  9268. v-if="workStudent[toolIndex].length > 0"
  9269. >
  9270. <div
  9271. class="works"
  9272. style="
  9273. width: 200px;
  9274. height: 140px;
  9275. margin: 10px 10px 10px 0;
  9276. "
  9277. v-for="(w, wIndex) in workStudent[toolIndex]"
  9278. :key="wIndex"
  9279. >
  9280. <!-- @click="openXz(w, toolIndex)" -->
  9281. <div class="workImg" @click="openSen(w, toolIndex)">
  9282. <img src="../../assets/icon/works/noImg.png" alt />
  9283. <img
  9284. class="deleteImg"
  9285. src="../../assets/deleteworks.png"
  9286. v-if="
  9287. w.userid == userid || tType == 1 || tType == 4
  9288. "
  9289. @click.stop="deleteWorks(w.wid)"
  9290. alt
  9291. />
  9292. </div>
  9293. <div class="worksName">
  9294. <div>
  9295. {{ w.sName }}
  9296. </div>
  9297. </div>
  9298. </div>
  9299. </div>
  9300. </div>
  9301. <div
  9302. v-if="
  9303. tType &&
  9304. ((tType == 2 && sIsOpen == true) ||
  9305. tType == 1 ||
  9306. tType == 4) &&
  9307. tool.tool.indexOf(47) != -1
  9308. "
  9309. class="worksBox"
  9310. >
  9311. <div
  9312. class="zuoyeYulan"
  9313. v-if="
  9314. worksStudent.length &&
  9315. worksStudent[toolIndex].length > 0
  9316. "
  9317. >
  9318. <div class="worksTop">
  9319. <div>作业预览</div>
  9320. <div
  9321. class="corOpen"
  9322. @click="contract(toolIndex)"
  9323. v-if="
  9324. isCloseList[toolIndex].isCloseBoolean &&
  9325. isCloseList[toolIndex].isClose == 0
  9326. "
  9327. >
  9328. 折叠
  9329. </div>
  9330. <div
  9331. class="corOpen"
  9332. @click="contract(toolIndex)"
  9333. v-if="isCloseList[toolIndex].isClose == 1"
  9334. >
  9335. 展开
  9336. </div>
  9337. </div>
  9338. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9339. </div>
  9340. <div
  9341. :id="'tool-' + toolIndex"
  9342. :style="{
  9343. height:
  9344. isCloseList[toolIndex].isClose == 1
  9345. ? retrnToolHeight('tool-' + toolIndex)
  9346. : 'auto',
  9347. overflow:
  9348. isCloseList[toolIndex].isClose == 1
  9349. ? 'hidden'
  9350. : 'unset'
  9351. }"
  9352. class="worksDetailBox"
  9353. v-if="
  9354. worksStudent.length &&
  9355. worksStudent[toolIndex].length > 0
  9356. "
  9357. >
  9358. <!-- @click="openXz(w, toolIndex)" -->
  9359. <div
  9360. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9361. :key="wIndex"
  9362. class="isWorksName2"
  9363. @click="openSen(w, toolIndex)"
  9364. >
  9365. {{ w.sName }}
  9366. <img
  9367. class="deleteImg deleteImg2"
  9368. src="../../assets/deleteworks.png"
  9369. v-if="w.userid == userid || tType == 1 || tType == 4"
  9370. @click.stop="deleteWorks(w.wid)"
  9371. alt
  9372. />
  9373. </div>
  9374. </div>
  9375. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9376. 未提交
  9377. </div>
  9378. <div
  9379. class="noWorksS"
  9380. v-if="noWorksS && noWorksS[toolIndex].length"
  9381. >
  9382. <div
  9383. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9384. :key="sIndex"
  9385. class="noWorksName"
  9386. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9387. >
  9388. <el-tooltip
  9389. effect="dark"
  9390. :content="s.student"
  9391. placement="top"
  9392. >
  9393. <span>{{ s.student }}</span>
  9394. </el-tooltip>
  9395. </div>
  9396. </div>
  9397. </div>
  9398. <div
  9399. v-if="
  9400. tType &&
  9401. ((tType == 2 && sIsOpen == true) ||
  9402. tType == 1 ||
  9403. tType == 4) &&
  9404. tool.tool.indexOf(48) != -1
  9405. "
  9406. class="worksBox"
  9407. >
  9408. <div
  9409. class="zuoyeYulan"
  9410. style="display: flex;justify-content: space-between;align-items: center;"
  9411. v-if="
  9412. worksStudent.length &&
  9413. worksStudent[toolIndex].length > 0
  9414. "
  9415. >
  9416. <div class="worksTop">
  9417. <div>作业预览</div>
  9418. <div
  9419. class="corOpen"
  9420. @click="contract(toolIndex)"
  9421. v-if="
  9422. isCloseList[toolIndex].isCloseBoolean &&
  9423. isCloseList[toolIndex].isClose == 0
  9424. "
  9425. >
  9426. 折叠
  9427. </div>
  9428. <div
  9429. class="corOpen"
  9430. @click="contract(toolIndex)"
  9431. v-if="isCloseList[toolIndex].isClose == 1"
  9432. >
  9433. 展开
  9434. </div>
  9435. </div>
  9436. <div
  9437. style="display: flex;"
  9438. v-if="
  9439. (courseDetail.userid == userid ||
  9440. (courseDetail.course_teacher &&
  9441. courseDetail.course_teacher.indexOf(userid) !=
  9442. -1)) &&
  9443. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9444. taskCount
  9445. ].eList &&
  9446. chapInfoList[courseType].chapterInfo[0].taskJson[
  9447. taskCount
  9448. ].eList.length) ||
  9449. (tool.eList && tool.eList.length)) &&
  9450. courseDetail.state == 5
  9451. "
  9452. >
  9453. <div
  9454. style="margin-right:10px"
  9455. class="ScoreBtn"
  9456. @click="
  9457. resetLoopEva(
  9458. worksStudent[toolIndex],
  9459. chapInfoList[courseType].chapterInfo[0].taskJson[
  9460. taskCount
  9461. ].eList,
  9462. courseType,
  9463. taskCount,
  9464. toolIndex,
  9465. tool.toolDetail,
  9466. worksStudent
  9467. )
  9468. "
  9469. >
  9470. 一键重置
  9471. </div>
  9472. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9473. <img
  9474. src="../../assets/icon/newIcons/rootImg.png"
  9475. alt=""
  9476. />
  9477. AI评分
  9478. </div>
  9479. <div
  9480. class="ScoreBtn"
  9481. v-else-if="!loopLoading[toolIndex].loading"
  9482. @click="
  9483. loopEva(
  9484. worksStudent[toolIndex],
  9485. chapInfoList[courseType].chapterInfo[0].taskJson[
  9486. taskCount
  9487. ].eList,
  9488. courseType,
  9489. taskCount,
  9490. toolIndex,
  9491. tool.toolDetail,
  9492. chapInfoList[courseType].chapterInfo[0].taskJson[
  9493. taskCount
  9494. ].taskDetail,
  9495. tool
  9496. )
  9497. "
  9498. >
  9499. <img
  9500. src="../../assets/icon/newIcons/rootImg.png"
  9501. alt=""
  9502. />
  9503. AI评分
  9504. </div>
  9505. <div class="ScoreBtn" v-else>
  9506. <img
  9507. src="../../assets/icon/newIcons/rootImg.png"
  9508. alt=""
  9509. />
  9510. 正在评分
  9511. </div>
  9512. </div>
  9513. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9514. </div>
  9515. <div
  9516. :id="'tool-' + toolIndex"
  9517. :style="{
  9518. height:
  9519. isCloseList[toolIndex].isClose == 1
  9520. ? retrnToolHeight('tool-' + toolIndex)
  9521. : 'auto',
  9522. overflow:
  9523. isCloseList[toolIndex].isClose == 1
  9524. ? 'hidden'
  9525. : 'unset'
  9526. }"
  9527. class="worksDetailBox"
  9528. v-if="
  9529. worksStudent.length &&
  9530. worksStudent[toolIndex].length > 0
  9531. "
  9532. >
  9533. <div
  9534. class="works"
  9535. style="
  9536. width: 200px;
  9537. height: 140px;
  9538. margin: 10px 10px 10px 0;
  9539. border-radius: 15px;
  9540. box-shadow: 0 0 6px 1px #dfdada;
  9541. "
  9542. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9543. :key="wIndex"
  9544. :class="w.type == 1 ? 'isTypeOne' : ''"
  9545. >
  9546. <div class="workImg">
  9547. <img :src="word" @click="openTable(w)" alt />
  9548. <!-- @click="openFile(w.works)" -->
  9549. <div
  9550. class="answerScore"
  9551. v-if="w.score"
  9552. @click.stop="openScore(w)"
  9553. :class="{
  9554. rightW:
  9555. w.userid == userid ||
  9556. tType == 1 ||
  9557. tType == 4 ||
  9558. w.ateacher == userid
  9559. }"
  9560. >
  9561. {{ JSON.parse(w.score).wScore }}分
  9562. </div>
  9563. <div
  9564. class="answerScore"
  9565. @click.stop="openScore(w)"
  9566. v-else-if="
  9567. courseDetail.userid == userid &&
  9568. courseDetail.state != 5 &&
  9569. chapInfoList[courseType].chapterInfo[0]
  9570. .taskJson[taskCount].eList &&
  9571. chapInfoList[courseType].chapterInfo[0]
  9572. .taskJson[taskCount].eList.length
  9573. "
  9574. :class="{
  9575. rightW:
  9576. w.userid == userid ||
  9577. tType == 1 ||
  9578. tType == 4 ||
  9579. w.ateacher == userid
  9580. }"
  9581. >
  9582. 评分
  9583. </div>
  9584. <!-- <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"> -->
  9585. <div
  9586. v-else-if="
  9587. (courseDetail.userid == userid ||
  9588. (courseDetail.course_teacher &&
  9589. courseDetail.course_teacher.indexOf(userid) !=
  9590. -1) ||
  9591. (w.userid == userid && sIsOpen)) &&
  9592. courseDetail.state == 5 &&
  9593. ((chapInfoList[courseType].chapterInfo[0]
  9594. .taskJson[taskCount].eList &&
  9595. chapInfoList[courseType].chapterInfo[0]
  9596. .taskJson[taskCount].eList.length) ||
  9597. (tool.eList && tool.eList.length))
  9598. "
  9599. >
  9600. <el-popover
  9601. placement="top"
  9602. width="318"
  9603. :disabled="AIloading[toolIndex][wIndex].loading"
  9604. trigger="hover"
  9605. >
  9606. <markScore
  9607. :loading="AIloading[toolIndex][wIndex].loading"
  9608. :markScoreVisible="markScoreVisible"
  9609. :ref="`markSco${toolIndex}${wIndex}`"
  9610. @updateLoading="updateLoading"
  9611. @updateDocSco="updateDocSco"
  9612. @refreshOther="refreshOther"
  9613. @markScoreDig="markScoreDig"
  9614. :tool="tool"
  9615. :wIndex="wIndex"
  9616. :scoCon="w"
  9617. :toolIndex="toolIndex"
  9618. :key="refreshKey"
  9619. :stage="courseType"
  9620. :task="taskCount"
  9621. :scoTit="
  9622. chapInfoList[courseType].chapterInfo[0]
  9623. .taskJson[taskCount].eList
  9624. "
  9625. >
  9626. </markScore>
  9627. <div
  9628. class="answerScore"
  9629. @click="
  9630. markScoreDig2(
  9631. w.sName,
  9632. worksStudent,
  9633. w.userid,
  9634. toolIndex,
  9635. chapInfoList[courseType].chapterInfo[0]
  9636. .taskJson[taskCount].eList,
  9637. AIloading[toolIndex][wIndex].loading,
  9638. tool
  9639. )
  9640. "
  9641. slot="reference"
  9642. :class="{
  9643. rightW:
  9644. w.userid == userid ||
  9645. tType == 1 ||
  9646. tType == 4 ||
  9647. w.ateacher == userid
  9648. }"
  9649. >
  9650. <span v-if="AIloading[toolIndex][wIndex].sco">
  9651. {{
  9652. AIloading[toolIndex][wIndex].loading
  9653. ? "评分中"
  9654. : AIloading[toolIndex][wIndex].sco + "分"
  9655. }}
  9656. </span>
  9657. <span v-else>
  9658. {{
  9659. AIloading[toolIndex][wIndex].loading
  9660. ? "评分中"
  9661. : "评分"
  9662. }}
  9663. </span>
  9664. </div>
  9665. </el-popover>
  9666. </div>
  9667. <img
  9668. class="deleteImg"
  9669. src="../../assets/deleteworks.png"
  9670. v-if="
  9671. w.userid == userid || tType == 1 || tType == 4
  9672. "
  9673. @click.stop="deleteWorks(w.wid)"
  9674. alt
  9675. />
  9676. </div>
  9677. <div class="comment" style="min-width: 200px">
  9678. <div class="worksName">
  9679. <div>{{ w.sName }}</div>
  9680. </div>
  9681. <div class="commentList">
  9682. <div class="commentList">
  9683. <div
  9684. class="commentImg"
  9685. @click="
  9686. isLikes(
  9687. w.wid,
  9688. userid,
  9689. 1,
  9690. null,
  9691. w.isLikes,
  9692. w.sName
  9693. )
  9694. "
  9695. >
  9696. <img
  9697. :src="w.isLikes == true ? likes : noLikes"
  9698. alt=""
  9699. />
  9700. </div>
  9701. <div>{{ w.likesCount }}</div>
  9702. </div>
  9703. <div class="commentList" style="margin-right: 15px">
  9704. <div
  9705. class="commentImg"
  9706. @click="commentOther(w, toolIndex, wIndex)"
  9707. >
  9708. <img
  9709. src="../../assets/icon/comment/comment.png"
  9710. alt=""
  9711. />
  9712. </div>
  9713. <div>{{ w.commentCount }}</div>
  9714. </div>
  9715. </div>
  9716. </div>
  9717. </div>
  9718. </div>
  9719. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9720. 未提交
  9721. </div>
  9722. <div
  9723. class="noWorksS"
  9724. v-if="noWorksS && noWorksS[toolIndex].length"
  9725. >
  9726. <div
  9727. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9728. :key="sIndex"
  9729. class="noWorksName"
  9730. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9731. >
  9732. <el-tooltip
  9733. effect="dark"
  9734. :content="s.student"
  9735. placement="top"
  9736. >
  9737. <span>{{ s.student }}</span>
  9738. </el-tooltip>
  9739. </div>
  9740. </div>
  9741. </div>
  9742. <div
  9743. v-if="
  9744. tType &&
  9745. tType == 2 &&
  9746. !sIsOpen &&
  9747. tool.tool.indexOf(48) != -1
  9748. "
  9749. class="worksBox"
  9750. >
  9751. <div
  9752. class="zuoyeYulan"
  9753. v-if="workStudent[toolIndex].length > 0"
  9754. >
  9755. <span class="worksTitle">作业预览</span>
  9756. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9757. </div>
  9758. <div
  9759. class="worksDetailBox"
  9760. v-if="workStudent[toolIndex].length > 0"
  9761. >
  9762. <div
  9763. class="works"
  9764. style="
  9765. width: 200px;
  9766. height: 140px;
  9767. margin: 10px 10px 10px 0;
  9768. box-shadow: 0 0 6px 1px #dfdada;
  9769. "
  9770. v-for="(w, wIndex) in workStudent[toolIndex]"
  9771. :key="wIndex"
  9772. >
  9773. <div class="workImg">
  9774. <img :src="word" @click="openTable(w)" alt />
  9775. <div
  9776. class="answerScore"
  9777. v-if="w.score"
  9778. @click.stop="openScore(w)"
  9779. :class="{
  9780. rightW:
  9781. w.userid == userid || tType == 1 || tType == 4
  9782. }"
  9783. >
  9784. {{ JSON.parse(w.score).wScore }}分
  9785. </div>
  9786. <div
  9787. class="answerScore"
  9788. @click.stop="openScore(w)"
  9789. v-else-if="courseDetail.userid == userid"
  9790. :class="{
  9791. rightW:
  9792. w.userid == userid || tType == 1 || tType == 4
  9793. }"
  9794. >
  9795. 评分
  9796. </div>
  9797. <div
  9798. class="stuLookScore"
  9799. v-if="
  9800. w.userid == userid ||
  9801. (tType == 1 &&
  9802. courseDetail.state == 5 &&
  9803. ((chapInfoList[courseType].chapterInfo[0]
  9804. .taskJson[taskCount].eList &&
  9805. chapInfoList[courseType].chapterInfo[0]
  9806. .taskJson[taskCount].eList.length) ||
  9807. (tool.eList && tool.eList.length)))
  9808. "
  9809. >
  9810. <el-popover
  9811. placement="top"
  9812. width="318"
  9813. trigger="hover"
  9814. >
  9815. <markScore
  9816. :loading="AIloading[toolIndex][wIndex].loading"
  9817. :markScoreVisible="markScoreVisible"
  9818. :ref="`markSco${toolIndex}${wIndex}`"
  9819. @updateLoading="updateLoading"
  9820. @updateDocSco="updateDocSco"
  9821. @refreshOther="refreshOther"
  9822. @markScoreDig="markScoreDig"
  9823. :tool="tool"
  9824. :wIndex="wIndex"
  9825. :scoCon="w"
  9826. :toolIndex="toolIndex"
  9827. :key="refreshKey"
  9828. :stage="courseType"
  9829. :task="taskCount"
  9830. :scoTit="
  9831. chapInfoList[courseType].chapterInfo[0]
  9832. .taskJson[taskCount].eList
  9833. "
  9834. >
  9835. </markScore>
  9836. <div
  9837. @click="
  9838. markScoreDig2(
  9839. w.sName,
  9840. worksStudent,
  9841. w.userid,
  9842. toolIndex,
  9843. chapInfoList[courseType].chapterInfo[0]
  9844. .taskJson[taskCount].eList,
  9845. AIloading[toolIndex][wIndex].loading,
  9846. tool
  9847. )
  9848. "
  9849. slot="reference"
  9850. >
  9851. <span v-if="AIloading[toolIndex][wIndex].sco">
  9852. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9853. </span>
  9854. <span v-else>
  9855. 评分
  9856. </span>
  9857. </div>
  9858. </el-popover>
  9859. </div>
  9860. <img
  9861. class="deleteImg"
  9862. src="../../assets/deleteworks.png"
  9863. v-if="
  9864. w.userid == userid || tType == 1 || tType == 4
  9865. "
  9866. @click.stop="deleteWorks(w.wid)"
  9867. alt
  9868. />
  9869. </div>
  9870. <div class="worksName">
  9871. <div>{{ w.sName }}</div>
  9872. </div>
  9873. </div>
  9874. </div>
  9875. </div>
  9876. <div
  9877. v-if="
  9878. tType &&
  9879. ((tType == 2 && sIsOpen == true) ||
  9880. tType == 1 ||
  9881. tType == 4) &&
  9882. tool.tool.indexOf(52) != -1
  9883. "
  9884. class="worksBox"
  9885. >
  9886. <div
  9887. class="zuoyeYulan"
  9888. style="display: flex;justify-content: space-between;align-items: center;"
  9889. v-if="
  9890. worksStudent.length &&
  9891. worksStudent[toolIndex].length > 0
  9892. "
  9893. >
  9894. <div class="worksTop">
  9895. <div>作业预览</div>
  9896. <div
  9897. class="corOpen"
  9898. @click="contract(toolIndex)"
  9899. v-if="
  9900. isCloseList[toolIndex].isCloseBoolean &&
  9901. isCloseList[toolIndex].isClose == 0
  9902. "
  9903. >
  9904. 折叠
  9905. </div>
  9906. <div
  9907. class="corOpen"
  9908. @click="contract(toolIndex)"
  9909. v-if="isCloseList[toolIndex].isClose == 1"
  9910. >
  9911. 展开
  9912. </div>
  9913. </div>
  9914. <div
  9915. style="display: flex;"
  9916. v-if="
  9917. (courseDetail.userid == userid ||
  9918. (courseDetail.course_teacher &&
  9919. courseDetail.course_teacher.indexOf(userid) !=
  9920. -1)) &&
  9921. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9922. taskCount
  9923. ].eList &&
  9924. chapInfoList[courseType].chapterInfo[0].taskJson[
  9925. taskCount
  9926. ].eList.length) ||
  9927. (tool.eList && tool.eList.length)) &&
  9928. courseDetail.state == 5
  9929. "
  9930. >
  9931. <!-- <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"> -->
  9932. <div
  9933. @click="
  9934. resetLoopEva(
  9935. worksStudent[toolIndex],
  9936. chapInfoList[courseType].chapterInfo[0].taskJson[
  9937. taskCount
  9938. ].eList,
  9939. courseType,
  9940. taskCount,
  9941. toolIndex,
  9942. tool.toolDetail,
  9943. tool
  9944. )
  9945. "
  9946. style="margin-right:10px"
  9947. class="ScoreBtn"
  9948. >
  9949. 一键重置
  9950. </div>
  9951. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9952. <img
  9953. src="../../assets/icon/newIcons/rootImg.png"
  9954. alt=""
  9955. />
  9956. AI评分
  9957. </div>
  9958. <div
  9959. class="ScoreBtn"
  9960. v-else-if="!loopLoading[toolIndex].loading"
  9961. @click="
  9962. loopEva(
  9963. worksStudent[toolIndex],
  9964. chapInfoList[courseType].chapterInfo[0].taskJson[
  9965. taskCount
  9966. ].eList,
  9967. courseType,
  9968. taskCount,
  9969. toolIndex,
  9970. tool.toolDetail,
  9971. chapInfoList[courseType].chapterInfo[0].taskJson[
  9972. taskCount
  9973. ].taskDetail,
  9974. tool
  9975. )
  9976. "
  9977. >
  9978. <img
  9979. src="../../assets/icon/newIcons/rootImg.png"
  9980. alt=""
  9981. />
  9982. AI评分
  9983. </div>
  9984. <div class="ScoreBtn" v-else>
  9985. <img
  9986. src="../../assets/icon/newIcons/rootImg.png"
  9987. alt=""
  9988. />
  9989. 正在评分
  9990. </div>
  9991. </div>
  9992. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9993. </div>
  9994. <div
  9995. :id="'tool-' + toolIndex"
  9996. :style="{
  9997. height:
  9998. isCloseList[toolIndex].isClose == 1
  9999. ? retrnToolHeight('tool-' + toolIndex)
  10000. : 'auto',
  10001. overflow:
  10002. isCloseList[toolIndex].isClose == 1
  10003. ? 'hidden'
  10004. : 'unset'
  10005. }"
  10006. class="worksDetailBox"
  10007. v-if="
  10008. worksStudent.length &&
  10009. worksStudent[toolIndex].length > 0
  10010. "
  10011. >
  10012. <div
  10013. class="works"
  10014. style="
  10015. width: 200px;
  10016. height: 140px;
  10017. margin: 10px 10px 10px 0;
  10018. border-radius: 15px;
  10019. box-shadow: 0 0 6px 1px #dfdada;
  10020. "
  10021. v-for="(w, wIndex) in worksStudent[toolIndex]"
  10022. :key="wIndex"
  10023. :class="w.type == 1 ? 'isTypeOne' : ''"
  10024. >
  10025. <div class="workImg">
  10026. <img :src="word" @click="openWord(w)" alt />
  10027. <!-- @click="openFile(w.works)" -->
  10028. <div
  10029. class="answerScore"
  10030. v-if="w.score"
  10031. @click.stop="openScore(w)"
  10032. :class="{
  10033. rightW:
  10034. w.userid == userid ||
  10035. tType == 1 ||
  10036. tType == 4 ||
  10037. w.ateacher == userid
  10038. }"
  10039. >
  10040. {{ JSON.parse(w.score).wScore }}分
  10041. </div>
  10042. <div
  10043. class="answerScore"
  10044. @click.stop="openScore(w)"
  10045. v-else-if="
  10046. courseDetail.userid == userid &&
  10047. courseDetail.state != 5 &&
  10048. chapInfoList[courseType].chapterInfo[0]
  10049. .taskJson[taskCount].eList &&
  10050. chapInfoList[courseType].chapterInfo[0]
  10051. .taskJson[taskCount].eList.length
  10052. "
  10053. :class="{
  10054. rightW:
  10055. w.userid == userid ||
  10056. tType == 1 ||
  10057. tType == 4 ||
  10058. w.ateacher == userid
  10059. }"
  10060. >
  10061. 评分
  10062. </div>
  10063. <!-- <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"> -->
  10064. <div
  10065. v-else-if="
  10066. (courseDetail.userid == userid ||
  10067. (courseDetail.course_teacher &&
  10068. courseDetail.course_teacher.indexOf(userid) !=
  10069. -1) ||
  10070. (w.userid == userid && sIsOpen)) &&
  10071. courseDetail.state == 5 &&
  10072. ((chapInfoList[courseType].chapterInfo[0]
  10073. .taskJson[taskCount].eList &&
  10074. chapInfoList[courseType].chapterInfo[0]
  10075. .taskJson[taskCount].eList.length) ||
  10076. (tool.eList && tool.eList.length))
  10077. "
  10078. >
  10079. <!-- <div
  10080. class="answerScore"
  10081. @click="markScoreDig(w.userid,toolIndex)"
  10082. :class="{
  10083. rightW:
  10084. w.userid == userid ||
  10085. tType == 1 ||
  10086. tType == 4 ||
  10087. w.ateacher == userid,
  10088. }"
  10089. >
  10090. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10091. </div> -->
  10092. <!-- @show="handleShow(toolIndex,wIndex)"
  10093. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10094. <el-popover
  10095. placement="top"
  10096. width="318"
  10097. :disabled="AIloading[toolIndex][wIndex].loading"
  10098. trigger="hover"
  10099. >
  10100. <markScore
  10101. :loading="AIloading[toolIndex][wIndex].loading"
  10102. :markScoreVisible="markScoreVisible"
  10103. :ref="`markSco${toolIndex}${wIndex}`"
  10104. @updateLoading="updateLoading"
  10105. @updateDocSco="updateDocSco"
  10106. @refreshOther="refreshOther"
  10107. @markScoreDig="markScoreDig"
  10108. :tool="tool"
  10109. :wIndex="wIndex"
  10110. :scoCon="w"
  10111. :toolIndex="toolIndex"
  10112. :key="refreshKey"
  10113. :stage="courseType"
  10114. :task="taskCount"
  10115. :scoTit="
  10116. chapInfoList[courseType].chapterInfo[0]
  10117. .taskJson[taskCount].eList
  10118. "
  10119. >
  10120. </markScore>
  10121. <div
  10122. class="answerScore"
  10123. @click="
  10124. markScoreDig2(
  10125. w.sName,
  10126. worksStudent,
  10127. w.userid,
  10128. toolIndex,
  10129. chapInfoList[courseType].chapterInfo[0]
  10130. .taskJson[taskCount].eList,
  10131. AIloading[toolIndex][wIndex].loading,
  10132. tool
  10133. )
  10134. "
  10135. slot="reference"
  10136. :class="{
  10137. rightW:
  10138. w.userid == userid ||
  10139. tType == 1 ||
  10140. tType == 4 ||
  10141. w.ateacher == userid
  10142. }"
  10143. >
  10144. <span v-if="AIloading[toolIndex][wIndex].sco">
  10145. {{
  10146. AIloading[toolIndex][wIndex].loading
  10147. ? "评分中"
  10148. : AIloading[toolIndex][wIndex].sco + "分"
  10149. }}
  10150. </span>
  10151. <span v-else>
  10152. {{
  10153. AIloading[toolIndex][wIndex].loading
  10154. ? "评分中"
  10155. : "评分"
  10156. }}
  10157. </span>
  10158. </div>
  10159. </el-popover>
  10160. </div>
  10161. <img
  10162. class="deleteImg"
  10163. src="../../assets/deleteworks.png"
  10164. v-if="
  10165. w.userid == userid || tType == 1 || tType == 4
  10166. "
  10167. @click.stop="deleteWorks(w.wid)"
  10168. alt
  10169. />
  10170. </div>
  10171. <div class="comment" style="min-width: 200px">
  10172. <div class="worksName">
  10173. <div>{{ w.sName }}</div>
  10174. </div>
  10175. <div class="commentList">
  10176. <div class="commentList">
  10177. <div
  10178. class="commentImg"
  10179. @click="
  10180. isLikes(
  10181. w.wid,
  10182. userid,
  10183. 1,
  10184. null,
  10185. w.isLikes,
  10186. w.sName
  10187. )
  10188. "
  10189. >
  10190. <img
  10191. :src="w.isLikes == true ? likes : noLikes"
  10192. alt=""
  10193. />
  10194. </div>
  10195. <div>{{ w.likesCount }}</div>
  10196. </div>
  10197. <div class="commentList" style="margin-right: 15px">
  10198. <div
  10199. class="commentImg"
  10200. @click="commentOther(w, toolIndex, wIndex)"
  10201. >
  10202. <img
  10203. src="../../assets/icon/comment/comment.png"
  10204. alt=""
  10205. />
  10206. </div>
  10207. <div>{{ w.commentCount }}</div>
  10208. </div>
  10209. </div>
  10210. </div>
  10211. </div>
  10212. </div>
  10213. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10214. 未提交
  10215. </div>
  10216. <div
  10217. class="noWorksS"
  10218. v-if="noWorksS && noWorksS[toolIndex].length"
  10219. >
  10220. <div
  10221. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10222. :key="sIndex"
  10223. class="noWorksName"
  10224. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10225. >
  10226. <el-tooltip
  10227. effect="dark"
  10228. :content="s.student"
  10229. placement="top"
  10230. >
  10231. <span>{{ s.student }}</span>
  10232. </el-tooltip>
  10233. </div>
  10234. </div>
  10235. </div>
  10236. <div
  10237. v-if="
  10238. tType &&
  10239. tType == 2 &&
  10240. !sIsOpen &&
  10241. tool.tool.indexOf(52) != -1
  10242. "
  10243. class="worksBox"
  10244. >
  10245. <div
  10246. class="zuoyeYulan"
  10247. v-if="workStudent[toolIndex].length > 0"
  10248. >
  10249. <span class="worksTitle">作业预览</span>
  10250. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10251. </div>
  10252. <div
  10253. class="worksDetailBox"
  10254. v-if="workStudent[toolIndex].length > 0"
  10255. >
  10256. <div
  10257. class="works"
  10258. style="
  10259. width: 200px;
  10260. height: 140px;
  10261. margin: 10px 10px 10px 0;
  10262. box-shadow: 0 0 6px 1px #dfdada;
  10263. "
  10264. v-for="(w, wIndex) in workStudent[toolIndex]"
  10265. :key="wIndex"
  10266. >
  10267. <div class="workImg">
  10268. <img :src="word" @click="openWord(w)" alt />
  10269. <div
  10270. class="answerScore"
  10271. v-if="w.score"
  10272. @click.stop="openScore(w)"
  10273. :class="{
  10274. rightW:
  10275. w.userid == userid || tType == 1 || tType == 4
  10276. }"
  10277. >
  10278. {{ JSON.parse(w.score).wScore }}分
  10279. </div>
  10280. <div
  10281. class="answerScore"
  10282. @click.stop="openScore(w)"
  10283. v-else-if="courseDetail.userid == userid"
  10284. :class="{
  10285. rightW:
  10286. w.userid == userid || tType == 1 || tType == 4
  10287. }"
  10288. >
  10289. 评分
  10290. </div>
  10291. <div
  10292. class="stuLookScore"
  10293. v-if="
  10294. w.userid == userid ||
  10295. (tType == 1 &&
  10296. courseDetail.state == 5 &&
  10297. ((chapInfoList[courseType].chapterInfo[0]
  10298. .taskJson[taskCount].eList &&
  10299. chapInfoList[courseType].chapterInfo[0]
  10300. .taskJson[taskCount].eList.length) ||
  10301. (tool.eList && tool.eList.length)))
  10302. "
  10303. >
  10304. <el-popover
  10305. placement="top"
  10306. width="318"
  10307. trigger="hover"
  10308. >
  10309. <markScore
  10310. :loading="AIloading[toolIndex][wIndex].loading"
  10311. :markScoreVisible="markScoreVisible"
  10312. :ref="`markSco${toolIndex}${wIndex}`"
  10313. @updateLoading="updateLoading"
  10314. @updateDocSco="updateDocSco"
  10315. @refreshOther="refreshOther"
  10316. @markScoreDig="markScoreDig"
  10317. :tool="tool"
  10318. :wIndex="wIndex"
  10319. :scoCon="w"
  10320. :toolIndex="toolIndex"
  10321. :key="refreshKey"
  10322. :stage="courseType"
  10323. :task="taskCount"
  10324. :scoTit="
  10325. chapInfoList[courseType].chapterInfo[0]
  10326. .taskJson[taskCount].eList
  10327. "
  10328. >
  10329. </markScore>
  10330. <div
  10331. @click="
  10332. markScoreDig2(
  10333. w.sName,
  10334. worksStudent,
  10335. w.userid,
  10336. toolIndex,
  10337. chapInfoList[courseType].chapterInfo[0]
  10338. .taskJson[taskCount].eList,
  10339. AIloading[toolIndex][wIndex].loading,
  10340. tool
  10341. )
  10342. "
  10343. slot="reference"
  10344. >
  10345. <span v-if="AIloading[toolIndex][wIndex].sco">
  10346. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10347. </span>
  10348. <span v-else>
  10349. 评分
  10350. </span>
  10351. </div>
  10352. </el-popover>
  10353. </div>
  10354. <img
  10355. class="deleteImg"
  10356. src="../../assets/deleteworks.png"
  10357. v-if="
  10358. w.userid == userid || tType == 1 || tType == 4
  10359. "
  10360. @click.stop="deleteWorks(w.wid)"
  10361. alt
  10362. />
  10363. </div>
  10364. <div class="worksName">
  10365. <div>{{ w.sName }}</div>
  10366. </div>
  10367. </div>
  10368. </div>
  10369. </div>
  10370. <div
  10371. v-if="tool.tool.indexOf(49) != -1"
  10372. class="xuan_right_box"
  10373. style="margin: 0 15px 0 25px; width: 93%"
  10374. >
  10375. <div
  10376. v-if="courseDetail.userid == userid"
  10377. style="
  10378. display: flex;
  10379. justify-content: flex-end;
  10380. margin-right: 10px;
  10381. "
  10382. >
  10383. <el-button
  10384. type="primary"
  10385. size="small"
  10386. @click="addTools(49, toolIndex, taskCount)"
  10387. >分组设置</el-button
  10388. >
  10389. </div>
  10390. <div
  10391. v-if="groupStudentUid[toolIndex]"
  10392. class="group_staic_box"
  10393. >
  10394. <div
  10395. v-for="(gp, gd) in tool.groupJson.group"
  10396. :key="gd"
  10397. class="group_staic"
  10398. >
  10399. <span> {{ gp.name }}</span>
  10400. <span>
  10401. 目前人数{{
  10402. groupStudentUid[toolIndex][gd].length
  10403. }}人</span
  10404. >
  10405. </div>
  10406. </div>
  10407. </div>
  10408. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10409. <div
  10410. class="zuoyeYulan"
  10411. v-if="
  10412. worksStudent.length &&
  10413. worksStudent[toolIndex].length > 0
  10414. "
  10415. >
  10416. <span class="worksTitle">作业预览</span>
  10417. </div>
  10418. <div>
  10419. <div
  10420. class="group_workBox"
  10421. v-for="(g, gindex) in tool.groupJson.group"
  10422. :key="gindex"
  10423. >
  10424. <div
  10425. class="group_box"
  10426. v-if="
  10427. groupStudentUid[toolIndex] &&
  10428. worksStudent[toolIndex] &&
  10429. (worksStudent[toolIndex][gindex].length ||
  10430. groupStudentUid[toolIndex][gindex].indexOf(
  10431. userid
  10432. ) != -1)
  10433. "
  10434. >
  10435. <div class="group_title">
  10436. <el-tooltip
  10437. class="item"
  10438. effect="light"
  10439. :content="g.name"
  10440. placement="top"
  10441. >
  10442. <div class="group_name">{{ g.name }}</div>
  10443. </el-tooltip>
  10444. <el-button
  10445. type="primary"
  10446. v-if="
  10447. groupStudentUid[toolIndex][gindex].indexOf(
  10448. userid
  10449. ) != -1
  10450. "
  10451. @click="groupUpload(toolIndex, taskCount, gindex)"
  10452. >上传作业</el-button
  10453. >
  10454. </div>
  10455. <div class="group_work">
  10456. <div
  10457. class="works"
  10458. style="
  10459. width: 200px;
  10460. height: 140px;
  10461. margin: 10px 10px 10px 0;
  10462. border-radius: 15px;
  10463. box-shadow: 0 0 6px 1px #dfdada;
  10464. "
  10465. v-for="(w, wIndex) in worksStudent[toolIndex][
  10466. gindex
  10467. ]"
  10468. :key="wIndex"
  10469. :class="w.type == 1 ? 'isTypeOne' : ''"
  10470. >
  10471. <div class="workImg" v-if="w.type == 0">
  10472. <img
  10473. :src="w.works"
  10474. @click="previewImg(w.works, w)"
  10475. alt
  10476. />
  10477. <div
  10478. class="answerScore"
  10479. v-if="w.score"
  10480. @click.stop="openScore(w)"
  10481. :class="{
  10482. rightW:
  10483. w.userid == userid ||
  10484. tType == 1 ||
  10485. tType == 4 ||
  10486. w.ateacher == userid
  10487. }"
  10488. >
  10489. {{ JSON.parse(w.score).wScore }}分
  10490. </div>
  10491. <div
  10492. class="answerScore"
  10493. @click.stop="openScore(w)"
  10494. v-else-if="courseDetail.userid == userid"
  10495. :class="{
  10496. rightW:
  10497. w.userid == userid ||
  10498. tType == 1 ||
  10499. tType == 4 ||
  10500. w.ateacher == userid
  10501. }"
  10502. >
  10503. 评分
  10504. </div>
  10505. <img
  10506. class="deleteImg"
  10507. src="../../assets/deleteworks.png"
  10508. v-if="
  10509. w.userid == userid ||
  10510. tType == 1 ||
  10511. tType == 4
  10512. "
  10513. @click.stop="deleteWorks(w.wid)"
  10514. alt
  10515. />
  10516. </div>
  10517. <div class="workImg" v-if="w.type == 1">
  10518. <img
  10519. :src="word"
  10520. @click="openFile(w.works)"
  10521. alt
  10522. />
  10523. <!-- @click="openFile(w.works)" -->
  10524. <div
  10525. class="answerScore"
  10526. v-if="w.score"
  10527. @click.stop="openScore(w)"
  10528. :class="{
  10529. rightW:
  10530. w.userid == userid ||
  10531. tType == 1 ||
  10532. tType == 4 ||
  10533. w.ateacher == userid
  10534. }"
  10535. >
  10536. {{ JSON.parse(w.score).wScore }}分
  10537. </div>
  10538. <div
  10539. class="answerScore"
  10540. @click.stop="openScore(w)"
  10541. v-else-if="courseDetail.userid == userid"
  10542. :class="{
  10543. rightW:
  10544. w.userid == userid ||
  10545. tType == 1 ||
  10546. tType == 4 ||
  10547. w.ateacher == userid
  10548. }"
  10549. >
  10550. 评分
  10551. </div>
  10552. <img
  10553. class="deleteImg"
  10554. src="../../assets/deleteworks.png"
  10555. v-if="
  10556. w.userid == userid ||
  10557. tType == 1 ||
  10558. tType == 4
  10559. "
  10560. @click.stop="deleteWorks(w.wid)"
  10561. alt
  10562. />
  10563. </div>
  10564. <div class="workImg" v-if="w.type == 3">
  10565. <img
  10566. style="cursor: pointer"
  10567. :src="video"
  10568. @click="openVideo(w)"
  10569. alt
  10570. />
  10571. <!-- @click="openVideo(w.works)" -->
  10572. <div
  10573. class="answerScore"
  10574. v-if="w.score"
  10575. @click.stop="openScore(w)"
  10576. :class="{
  10577. rightW:
  10578. w.userid == userid ||
  10579. tType == 1 ||
  10580. tType == 4 ||
  10581. w.ateacher == userid
  10582. }"
  10583. >
  10584. {{ JSON.parse(w.score).wScore }}分
  10585. </div>
  10586. <div
  10587. class="answerScore"
  10588. @click.stop="openScore(w)"
  10589. v-else-if="courseDetail.userid == userid"
  10590. :class="{
  10591. rightW:
  10592. w.userid == userid ||
  10593. tType == 1 ||
  10594. tType == 4 ||
  10595. w.ateacher == userid
  10596. }"
  10597. >
  10598. 评分
  10599. </div>
  10600. <img
  10601. class="deleteImg"
  10602. src="../../assets/deleteworks.png"
  10603. v-if="
  10604. w.userid == userid ||
  10605. tType == 1 ||
  10606. tType == 4
  10607. "
  10608. @click.stop="deleteWorks(w.wid)"
  10609. alt
  10610. />
  10611. </div>
  10612. <div class="workImg" v-if="w.type == 12">
  10613. <img
  10614. style="cursor: pointer"
  10615. :src="word2"
  10616. @click="downloadFile(w.works,w.userid)"
  10617. alt
  10618. />
  10619. <!-- @click="openVideo(w.works)" -->
  10620. <div
  10621. class="answerScore"
  10622. v-if="w.score"
  10623. @click.stop="openScore(w)"
  10624. :class="{
  10625. rightW:
  10626. w.userid == userid ||
  10627. tType == 1 ||
  10628. tType == 4 ||
  10629. w.ateacher == userid
  10630. }"
  10631. >
  10632. {{ JSON.parse(w.score).wScore }}分
  10633. </div>
  10634. <div
  10635. class="answerScore"
  10636. @click.stop="openScore(w)"
  10637. v-else-if="courseDetail.userid == userid"
  10638. :class="{
  10639. rightW:
  10640. w.userid == userid ||
  10641. tType == 1 ||
  10642. tType == 4 ||
  10643. w.ateacher == userid
  10644. }"
  10645. >
  10646. 评分
  10647. </div>
  10648. <img
  10649. class="deleteImg"
  10650. src="../../assets/deleteworks.png"
  10651. v-if="
  10652. w.userid == userid ||
  10653. tType == 1 ||
  10654. tType == 4
  10655. "
  10656. @click.stop="deleteWorks(w.wid)"
  10657. alt
  10658. />
  10659. </div>
  10660. <div class="comment" style="min-width: 200px">
  10661. <div class="worksName">
  10662. <div>{{ w.sName }}</div>
  10663. </div>
  10664. <div class="commentList">
  10665. <div class="commentList">
  10666. <div
  10667. class="commentImg"
  10668. @click="
  10669. isLikes(
  10670. w.wid,
  10671. userid,
  10672. 1,
  10673. null,
  10674. w.isLikes,
  10675. w.sName
  10676. )
  10677. "
  10678. >
  10679. <img
  10680. :src="
  10681. w.isLikes == true ? likes : noLikes
  10682. "
  10683. alt=""
  10684. />
  10685. </div>
  10686. <div>{{ w.likesCount }}</div>
  10687. </div>
  10688. <div
  10689. class="commentList"
  10690. style="margin-right: 15px"
  10691. >
  10692. <div
  10693. class="commentImg"
  10694. @click="
  10695. commentOther(
  10696. w,
  10697. toolIndex,
  10698. wIndex,
  10699. gindex
  10700. )
  10701. "
  10702. >
  10703. <img
  10704. src="../../assets/icon/comment/comment.png"
  10705. alt=""
  10706. />
  10707. </div>
  10708. <div>{{ w.commentCount }}</div>
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. </div>
  10715. </div>
  10716. </div>
  10717. </div>
  10718. <div
  10719. style="width:92%;margin: 0 0 0 40px;"
  10720. v-if="
  10721. courseDetail.state == 5 && tool.eList && tool.eList.length
  10722. "
  10723. >
  10724. <evaTable :eList="tool.eList"></evaTable>
  10725. </div>
  10726. </div>
  10727. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10728. 上传文件
  10729. <input
  10730. type="file"
  10731. accept="image/png, image/gif, image/jpeg"
  10732. style="display: none"
  10733. @change="beforeUpload1($event, 2, index)"
  10734. />
  10735. </div>-->
  10736. </div>
  10737. </div>
  10738. <!-- <div
  10739. class="vedioBox"
  10740. style="margin-top: 10px"
  10741. v-if="
  10742. courseDetail.userid == userid ||
  10743. (courseDetail.course_teacher &&
  10744. courseDetail.course_teacher.indexOf(userid) != -1)
  10745. "
  10746. :style="{
  10747. borderRadius:
  10748. !(
  10749. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10750. .toolChoose[0].tool &&
  10751. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10752. .toolChoose[0].tool.length > 0
  10753. ) &&
  10754. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10755. .taskDetail == '' &&
  10756. vChapterData[taskCount].length == 0 &&
  10757. fileC[taskCount].length == 0
  10758. ? '0 0 20px 20px'
  10759. : '20px',
  10760. }"
  10761. >
  10762. <div
  10763. class="queTop"
  10764. @click="isClose = !isClose"
  10765. style="
  10766. padding: 15px 0 15px 37px;
  10767. justify-content: space-between;
  10768. "
  10769. >
  10770. <div class="queTopTitle">新增工具</div>
  10771. <div class="queTopRight">
  10772. <div class="queTopClose" v-if="isClose == 0">
  10773. 展开
  10774. <div class="closeImg">
  10775. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10776. </div>
  10777. </div>
  10778. <div class="queTopClose" v-if="isClose == 1">
  10779. 折叠
  10780. <div class="openImg">
  10781. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10782. </div>
  10783. </div>
  10784. <el-button
  10785. style="margin: 0 30px 0 auto"
  10786. type="primary"
  10787. size="small"
  10788. v-if="isClose == 1 && checktoolArray.length > 0"
  10789. @click.stop="addToolChoose"
  10790. >确定</el-button
  10791. >
  10792. </div>
  10793. </div>
  10794. <div
  10795. class="tool_work_box"
  10796. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10797. >
  10798. <div class="tool_box">
  10799. <div class="tool_type_box">
  10800. <div class="chooseWho">
  10801. <div
  10802. :class="toolType == 0 ? 'isChooseActive' : ''"
  10803. @click="(toolType = 0), $forceUpdate()"
  10804. >
  10805. 互动类
  10806. </div>
  10807. <div
  10808. :class="toolType == 1 ? 'isChooseActive' : ''"
  10809. @click="(toolType = 1), $forceUpdate()"
  10810. >
  10811. 思维类
  10812. </div>
  10813. <div
  10814. :class="toolType == 2 ? 'isChooseActive' : ''"
  10815. @click="(toolType = 2), $forceUpdate()"
  10816. >
  10817. 测评类
  10818. </div>
  10819. <div
  10820. :class="toolType == 3 ? 'isChooseActive' : ''"
  10821. @click="(toolType = 3), $forceUpdate()"
  10822. >
  10823. 编程类
  10824. </div>
  10825. <div
  10826. :class="toolType == 5 ? 'isChooseActive' : ''"
  10827. @click="(toolType = 5), $forceUpdate()"
  10828. >
  10829. 学科类
  10830. </div>
  10831. </div>
  10832. </div>
  10833. <div>
  10834. <div class="toolSort" v-if="toolType == 0">
  10835. <div class="tool">
  10836. <div class="whiteBIcon" @click="addTools2(10)">
  10837. <img
  10838. src="../../assets/icon/thirdToolList/time.png"
  10839. alt
  10840. />
  10841. <div style="margin: 5px 0">倒计时</div>
  10842. </div>
  10843. <div class="check" @click="addTools2(10)">
  10844. <img
  10845. src="../../assets/icon/checkNo.png"
  10846. alt
  10847. v-if="checktoolArray.indexOf(10) == -1"
  10848. />
  10849. <div class="checkDiv" v-else>
  10850. <img src="../../assets/icon/checkedIs.png" alt /><span
  10851. >已选择</span
  10852. >
  10853. </div>
  10854. </div>
  10855. </div>
  10856. <div class="tool">
  10857. <div class="whiteBIcon" @click="addTools2(65)">
  10858. <img
  10859. src="../../assets/icon/firstToolList/pickPeople.png"
  10860. alt
  10861. />
  10862. <div style="margin: 5px 0">挑人</div>
  10863. </div>
  10864. <div class="check" @click="addTools2(65)">
  10865. <img
  10866. src="../../assets/icon/checkNo.png"
  10867. alt
  10868. v-if="checktoolArray.indexOf(65) == -1"
  10869. />
  10870. <div class="checkDiv" v-else>
  10871. <img src="../../assets/icon/checkedIs.png" alt /><span
  10872. >已选择</span
  10873. >
  10874. </div>
  10875. </div>
  10876. </div>
  10877. </div>
  10878. <div class="toolSort" v-if="toolType == 1">
  10879. <div class="tool">
  10880. <div class="whiteBIcon" @click="addTools2(7)">
  10881. <img
  10882. src="../../assets/icon/secondToolList/mindNetwork.png"
  10883. alt
  10884. />
  10885. <div style="margin: 5px 0">思维网格</div>
  10886. </div>
  10887. <div class="check" @click="addTools2(7)">
  10888. <img
  10889. src="../../assets/icon/checkNo.png"
  10890. alt
  10891. v-if="checktoolArray.indexOf(7) == -1"
  10892. />
  10893. <div class="checkDiv" v-else>
  10894. <img src="../../assets/icon/checkedIs.png" alt /><span
  10895. >已选择</span
  10896. >
  10897. </div>
  10898. </div>
  10899. </div>
  10900. <div class="tool">
  10901. <div class="whiteBIcon" @click="addTools2(1)">
  10902. <img
  10903. src="../../assets/icon/secondToolList/whiteBoard.png"
  10904. alt
  10905. />
  10906. <div style="margin: 5px 0">电子白板</div>
  10907. </div>
  10908. <div class="check" @click="addTools2(1)">
  10909. <img
  10910. src="../../assets/icon/checkNo.png"
  10911. alt
  10912. v-if="checktoolArray.indexOf(1) == -1"
  10913. />
  10914. <div class="checkDiv" v-else>
  10915. <img src="../../assets/icon/checkedIs.png" alt /><span
  10916. >已选择</span
  10917. >
  10918. </div>
  10919. </div>
  10920. </div>
  10921. <div class="tool">
  10922. <div class="whiteBIcon" @click="addTools2(52)">
  10923. <img
  10924. src="../../assets/icon/fourthToolList/text.png"
  10925. alt
  10926. />
  10927. <div style="margin: 5px 0">文档</div>
  10928. </div>
  10929. <div class="check" @click="addTools2(52)">
  10930. <img
  10931. src="../../assets/icon/checkNo.png"
  10932. alt
  10933. v-if="checktoolArray.indexOf(52) == -1"
  10934. />
  10935. <div class="checkDiv" v-else>
  10936. <img src="../../assets/icon/checkedIs.png" alt /><span
  10937. >已选择</span
  10938. >
  10939. </div>
  10940. </div>
  10941. </div>
  10942. <div class="tool">
  10943. <div class="whiteBIcon" @click="addTools2(3)">
  10944. <img
  10945. src="../../assets/icon/secondToolList/mindMapping.png"
  10946. alt
  10947. />
  10948. <div style="margin: 5px 0">思维导图</div>
  10949. </div>
  10950. <div class="check" @click="addTools2(3)">
  10951. <img
  10952. src="../../assets/icon/checkNo.png"
  10953. alt
  10954. v-if="checktoolArray.indexOf(3) == -1"
  10955. />
  10956. <div class="checkDiv" v-else>
  10957. <img src="../../assets/icon/checkedIs.png" alt /><span
  10958. >已选择</span
  10959. >
  10960. </div>
  10961. </div>
  10962. </div>
  10963. <div class="tool">
  10964. <div class="whiteBIcon" @click="addTools2(48)">
  10965. <img
  10966. src="../../assets/icon/fourthToolList/table.png"
  10967. alt
  10968. />
  10969. <div style="margin: 5px 0">表格</div>
  10970. </div>
  10971. <div class="check" @click="addTools2(48)">
  10972. <img
  10973. src="../../assets/icon/checkNo.png"
  10974. alt
  10975. v-if="checktoolArray.indexOf(48) == -1"
  10976. />
  10977. <div class="checkDiv" v-else>
  10978. <img src="../../assets/icon/checkedIs.png" alt /><span
  10979. >已选择</span
  10980. >
  10981. </div>
  10982. </div>
  10983. </div>
  10984. </div>
  10985. <div class="toolSort" v-if="toolType == 6">
  10986. <div v-show="tooC == 49">
  10987. <img
  10988. @click="addTools(tooC, toolIndex, taskCount)"
  10989. src="../../assets/icon/fourthToolList/group.png"
  10990. alt
  10991. />
  10992. <div style="margin: 5px 0">学生分组</div>
  10993. </div>
  10994. </div>
  10995. <div class="toolSort" v-if="toolType == 2">
  10996. <div class="tool">
  10997. <div class="whiteBIcon" @click="addTools2(16)">
  10998. <img
  10999. src="../../assets/icon/thirdToolList/work.png"
  11000. alt
  11001. />
  11002. <div style="margin: 5px 0">作业提交</div>
  11003. </div>
  11004. <div class="check" @click="addTools2(16)">
  11005. <img
  11006. src="../../assets/icon/checkNo.png"
  11007. alt
  11008. v-if="checktoolArray.indexOf(16) == -1"
  11009. />
  11010. <div class="checkDiv" v-else>
  11011. <img src="../../assets/icon/checkedIs.png" alt /><span
  11012. >已选择</span
  11013. >
  11014. </div>
  11015. </div>
  11016. </div>
  11017. <div class="tool">
  11018. <div class="whiteBIcon" @click="addTools2(50)">
  11019. <img
  11020. src="../../assets/icon/thirdToolList/plwork.png"
  11021. alt
  11022. />
  11023. <div style="margin: 5px 0">批量上传</div>
  11024. </div>
  11025. <div class="check" @click="addTools2(50)">
  11026. <img
  11027. src="../../assets/icon/checkNo.png"
  11028. alt
  11029. v-if="checktoolArray.indexOf(50) == -1"
  11030. />
  11031. <div class="checkDiv" v-else>
  11032. <img src="../../assets/icon/checkedIs.png" alt /><span
  11033. >已选择</span
  11034. >
  11035. </div>
  11036. </div>
  11037. </div>
  11038. </div>
  11039. <div class="toolSort" v-if="toolType == 3">
  11040. <div class="tool">
  11041. <div class="whiteBIcon" @click="addTools2(18)">
  11042. <img
  11043. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11044. alt
  11045. />
  11046. <div style="margin: 5px 0">训练平台</div>
  11047. </div>
  11048. <div class="check" @click="addTools2(18)">
  11049. <img
  11050. src="../../assets/icon/checkNo.png"
  11051. alt
  11052. v-if="checktoolArray.indexOf(18) == -1"
  11053. />
  11054. <div class="checkDiv" v-else>
  11055. <img src="../../assets/icon/checkedIs.png" alt /><span
  11056. >已选择</span
  11057. >
  11058. </div>
  11059. </div>
  11060. </div>
  11061. <div class="tool">
  11062. <div class="whiteBIcon" @click="addTools2(21)">
  11063. <img
  11064. src="../../assets/icon/fourthToolList/program.png"
  11065. alt
  11066. />
  11067. <div style="margin: 5px 0">AIoT Blockly</div>
  11068. </div>
  11069. <div class="check" @click="addTools2(21)">
  11070. <img
  11071. src="../../assets/icon/checkNo.png"
  11072. alt
  11073. v-if="checktoolArray.indexOf(21) == -1"
  11074. />
  11075. <div class="checkDiv" v-else>
  11076. <img src="../../assets/icon/checkedIs.png" alt /><span
  11077. >已选择</span
  11078. >
  11079. </div>
  11080. </div>
  11081. </div>
  11082. <div class="tool">
  11083. <div class="whiteBIcon" @click="addTools2(23)">
  11084. <img
  11085. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11086. alt
  11087. />
  11088. <div style="margin: 5px 0">AI Python</div>
  11089. </div>
  11090. <div class="check" @click="addTools2(23)">
  11091. <img
  11092. src="../../assets/icon/checkNo.png"
  11093. alt
  11094. v-if="checktoolArray.indexOf(23) == -1"
  11095. />
  11096. <div class="checkDiv" v-else>
  11097. <img src="../../assets/icon/checkedIs.png" alt /><span
  11098. >已选择</span
  11099. >
  11100. </div>
  11101. </div>
  11102. </div>
  11103. <div class="tool">
  11104. <div class="whiteBIcon" @click="addTools2(24)">
  11105. <img
  11106. src="../../assets/icon/fourthToolList/AIprogram.png"
  11107. alt
  11108. />
  11109. <div style="margin: 5px 0">AI Blockly</div>
  11110. </div>
  11111. <div class="check" @click="addTools2(24)">
  11112. <img
  11113. src="../../assets/icon/checkNo.png"
  11114. alt
  11115. v-if="checktoolArray.indexOf(24) == -1"
  11116. />
  11117. <div class="checkDiv" v-else>
  11118. <img src="../../assets/icon/checkedIs.png" alt /><span
  11119. >已选择</span
  11120. >
  11121. </div>
  11122. </div>
  11123. </div>
  11124. <div class="tool">
  11125. <div class="whiteBIcon" @click="addTools2(32)">
  11126. <img
  11127. src="../../assets/icon/thirdToolList/code.png"
  11128. alt
  11129. />
  11130. <div style="margin: 5px 0">源码编辑</div>
  11131. </div>
  11132. <div class="check" @click="addTools2(32)">
  11133. <img
  11134. src="../../assets/icon/checkNo.png"
  11135. alt
  11136. v-if="checktoolArray.indexOf(32) == -1"
  11137. />
  11138. <div class="checkDiv" v-else>
  11139. <img src="../../assets/icon/checkedIs.png" alt /><span
  11140. >已选择</span
  11141. >
  11142. </div>
  11143. </div>
  11144. </div>
  11145. <div class="tool">
  11146. <div class="whiteBIcon" @click="addTools2(57)">
  11147. <img
  11148. src="../../assets/icon/fourthToolList/cocopi.png"
  11149. alt
  11150. />
  11151. <div style="margin: 5px 0">CocoPi</div>
  11152. </div>
  11153. <div class="check" @click="addTools2(57)">
  11154. <img
  11155. src="../../assets/icon/checkNo.png"
  11156. alt
  11157. v-if="checktoolArray.indexOf(57) == -1"
  11158. />
  11159. <div class="checkDiv" v-else>
  11160. <img src="../../assets/icon/checkedIs.png" alt /><span
  11161. >已选择</span
  11162. >
  11163. </div>
  11164. </div>
  11165. </div>
  11166. <div class="tool">
  11167. <div class="whiteBIcon" @click="addTools2(63)">
  11168. <img
  11169. src="../../assets/icon/fourthToolList/Wood.png"
  11170. alt
  11171. />
  11172. <div style="margin: 5px 0">海龟编程</div>
  11173. </div>
  11174. <div class="check" @click="addTools2(63)">
  11175. <img
  11176. src="../../assets/icon/checkNo.png"
  11177. alt
  11178. v-if="checktoolArray.indexOf(63) == -1"
  11179. />
  11180. <div class="checkDiv" v-else>
  11181. <img src="../../assets/icon/checkedIs.png" alt /><span
  11182. >已选择</span
  11183. >
  11184. </div>
  11185. </div>
  11186. </div>
  11187. </div>
  11188. <div class="toolSort" v-if="toolType == 5">
  11189. <div class="tool">
  11190. <div class="whiteBIcon" @click="addTools2(28)">
  11191. <img
  11192. src="../../assets/icon/secondToolList/translation.png"
  11193. alt
  11194. />
  11195. <div style="margin: 5px 0">翻译</div>
  11196. </div>
  11197. <div class="check" @click="addTools2(28)">
  11198. <img
  11199. src="../../assets/icon/checkNo.png"
  11200. alt
  11201. v-if="checktoolArray.indexOf(28) == -1"
  11202. />
  11203. <div class="checkDiv" v-else>
  11204. <img src="../../assets/icon/checkedIs.png" alt /><span
  11205. >已选择</span
  11206. >
  11207. </div>
  11208. </div>
  11209. </div>
  11210. <div class="tool">
  11211. <div class="whiteBIcon" @click="addTools2(31)">
  11212. <img
  11213. src="../../assets/icon/secondToolList/networkPanel.png"
  11214. alt
  11215. />
  11216. <div style="margin: 5px 0">数字画板</div>
  11217. </div>
  11218. <div class="check" @click="addTools2(31)">
  11219. <img
  11220. src="../../assets/icon/checkNo.png"
  11221. alt
  11222. v-if="checktoolArray.indexOf(31) == -1"
  11223. />
  11224. <div class="checkDiv" v-else>
  11225. <img src="../../assets/icon/checkedIs.png" alt /><span
  11226. >已选择</span
  11227. >
  11228. </div>
  11229. </div>
  11230. </div>
  11231. <div class="tool">
  11232. <div class="whiteBIcon" @click="addTools2(39)">
  11233. <img
  11234. src="../../assets/icon/secondToolList/GeoGebra.png"
  11235. alt
  11236. />
  11237. <div style="margin: 5px 0">GeoGebra</div>
  11238. </div>
  11239. <div class="check" @click="addTools2(39)">
  11240. <img
  11241. src="../../assets/icon/checkNo.png"
  11242. alt
  11243. v-if="checktoolArray.indexOf(39) == -1"
  11244. />
  11245. <div class="checkDiv" v-else>
  11246. <img src="../../assets/icon/checkedIs.png" alt /><span
  11247. >已选择</span
  11248. >
  11249. </div>
  11250. </div>
  11251. </div>
  11252. <div class="tool">
  11253. <div class="whiteBIcon" @click="addTools2(66)">
  11254. <img
  11255. src="../../assets/icon/secondToolList/formulaEdi.png"
  11256. alt
  11257. />
  11258. <div style="margin: 5px 0">公式编辑</div>
  11259. </div>
  11260. <div class="check" @click="addTools2(66)">
  11261. <img
  11262. src="../../assets/icon/checkNo.png"
  11263. alt
  11264. v-if="checktoolArray.indexOf(66) == -1"
  11265. />
  11266. <div class="checkDiv" v-else>
  11267. <img src="../../assets/icon/checkedIs.png" alt /><span
  11268. >已选择</span
  11269. >
  11270. </div>
  11271. </div>
  11272. </div>
  11273. <div class="tool">
  11274. <div class="whiteBIcon" @click="addTools2(67)">
  11275. <img
  11276. src="../../assets/icon/secondToolList/molStr.png"
  11277. alt
  11278. />
  11279. <div style="margin: 5px 0">分子结构</div>
  11280. </div>
  11281. <div class="check" @click="addTools2(67)">
  11282. <img
  11283. src="../../assets/icon/checkNo.png"
  11284. alt
  11285. v-if="checktoolArray.indexOf(67) == -1"
  11286. />
  11287. <div class="checkDiv" v-else>
  11288. <img src="../../assets/icon/checkedIs.png" alt /><span
  11289. >已选择</span
  11290. >
  11291. </div>
  11292. </div>
  11293. </div>
  11294. <div class="tool">
  11295. <div class="whiteBIcon" @click="addTools2(68)">
  11296. <img
  11297. src="../../assets/icon/secondToolList/timeAxis.png"
  11298. alt
  11299. />
  11300. <div style="margin: 5px 0">时间轴</div>
  11301. </div>
  11302. <div class="check" @click="addTools2(68)">
  11303. <img
  11304. src="../../assets/icon/checkNo.png"
  11305. alt
  11306. v-if="checktoolArray.indexOf(68) == -1"
  11307. />
  11308. <div class="checkDiv" v-else>
  11309. <img src="../../assets/icon/checkedIs.png" alt /><span
  11310. >已选择</span
  11311. >
  11312. </div>
  11313. </div>
  11314. </div>
  11315. </div>
  11316. <div class="toolSort" v-if="toolType == 7">
  11317. <div class="tool">
  11318. <div class="whiteBIcon" @click="addTools2(40)">
  11319. <img
  11320. src="../../assets/icon/secondToolList/eval.png"
  11321. alt
  11322. />
  11323. <div style="margin: 5px 0">个人评价</div>
  11324. </div>
  11325. <div class="check" @click="addTools2(40)">
  11326. <img
  11327. src="../../assets/icon/checkNo.png"
  11328. alt
  11329. v-if="checktoolArray.indexOf(40) == -1"
  11330. />
  11331. <div class="checkDiv" v-else>
  11332. <img src="../../assets/icon/checkedIs.png" alt /><span
  11333. >已选择</span
  11334. >
  11335. </div>
  11336. </div>
  11337. </div>
  11338. </div>
  11339. <div class="toolSort" v-if="toolType == 4">
  11340. <div class="tool">
  11341. <div class="whiteBIcon" @click="addTools2(26)">
  11342. <img
  11343. src="../../assets/icon/thirdToolList/courseDesign.png"
  11344. alt
  11345. />
  11346. <div style="margin: 5px 0">课程设计</div>
  11347. </div>
  11348. <div class="check" @click="addTools2(26)">
  11349. <img
  11350. src="../../assets/icon/checkNo.png"
  11351. alt
  11352. v-if="checktoolArray.indexOf(26) == -1"
  11353. />
  11354. <div class="checkDiv" v-else>
  11355. <img src="../../assets/icon/checkedIs.png" alt /><span
  11356. >已选择</span
  11357. >
  11358. </div>
  11359. </div>
  11360. </div>
  11361. <div class="tool">
  11362. <div class="whiteBIcon" @click="addTools2(25)">
  11363. <img
  11364. src="../../assets/icon/thirdToolList/evalua.png"
  11365. alt
  11366. />
  11367. <div style="margin: 5px 0">目标管理</div>
  11368. </div>
  11369. <div class="check" @click="addTools2(25)">
  11370. <img
  11371. src="../../assets/icon/checkNo.png"
  11372. alt
  11373. v-if="checktoolArray.indexOf(25) == -1"
  11374. />
  11375. <div class="checkDiv" v-else>
  11376. <img src="../../assets/icon/checkedIs.png" alt /><span
  11377. >已选择</span
  11378. >
  11379. </div>
  11380. </div>
  11381. </div>
  11382. </div>
  11383. </div>
  11384. </div>
  11385. </div>
  11386. </div> -->
  11387. <div
  11388. class="vedioBox"
  11389. style="margin-top: 10px; border-radius: 20px"
  11390. v-if="
  11391. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11392. .eList &&
  11393. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11394. .eList.length &&
  11395. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11396. .eList.length > 0 &&
  11397. tType != 2
  11398. "
  11399. >
  11400. <div
  11401. class="queTop"
  11402. style="
  11403. font-size: 20px;
  11404. padding: 15px 0 15px 37px;
  11405. font-weight: bold;
  11406. "
  11407. >
  11408. <!-- <div class="question" style="width: 30px">
  11409. <img src="../assets/icon/toolIcon.png" alt />
  11410. </div>
  11411. <div class="queTitle">
  11412. <div>工具</div>
  11413. </div>-->
  11414. 评一评
  11415. </div>
  11416. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11417. <div
  11418. class="elist_input"
  11419. :style="{
  11420. marginLeft: '20px',
  11421. width: evalua
  11422. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  11423. taskCount
  11424. ].isEvaFold2
  11425. ? '45%'
  11426. : 'calc(100% - 180px)'
  11427. : 'calc(100% - 20px)'
  11428. }"
  11429. >
  11430. <el-table
  11431. :data="
  11432. chapInfoList[courseType].chapterInfo[0].taskJson[
  11433. taskCount
  11434. ].eList
  11435. "
  11436. :header-cell-style="{ background: '#F0F4FA' }"
  11437. :row-class-name="tableRowClassName"
  11438. border
  11439. stripe
  11440. style="width: 100%"
  11441. >
  11442. <el-table-column
  11443. :width="courseDetail.state == 5 ? '230' : '150'"
  11444. label="目标"
  11445. align="center"
  11446. >
  11447. <template slot-scope="scope">
  11448. <div
  11449. style="display:flex;justify-content: center;align-items: center;"
  11450. >
  11451. <img
  11452. class="blueRootCss"
  11453. v-if="
  11454. scope.row.isai == 1 ||
  11455. (!scope.row.isai && courseDetail.state == 5)
  11456. "
  11457. src="../../assets/icon/newIcons/blueRoot.png"
  11458. alt=""
  11459. />
  11460. <div v-if="courseDetail.state == 5">
  11461. {{ scope.row.target ? scope.row.target : "-" }}
  11462. </div>
  11463. <div v-else>
  11464. {{
  11465. scope.row.target
  11466. ? scope.row.target[scope.row.target.length - 1]
  11467. : "-"
  11468. }}
  11469. </div>
  11470. </div>
  11471. </template></el-table-column
  11472. >
  11473. <el-table-column
  11474. label="评价维度"
  11475. align="center"
  11476. v-if="courseDetail.state != 5"
  11477. >
  11478. <template slot-scope="scope"
  11479. ><div>{{ scope.row.value }}</div></template
  11480. >
  11481. </el-table-column>
  11482. <el-table-column
  11483. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  11484. align="center"
  11485. >
  11486. <template slot-scope="scope"
  11487. ><div>
  11488. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11489. </div></template
  11490. >
  11491. </el-table-column>
  11492. <el-table-column
  11493. label="细则"
  11494. align="center"
  11495. v-if="courseDetail.state == 5"
  11496. >
  11497. <template slot-scope="scope"
  11498. ><div
  11499. style="display:flex;justify-content: space-around;margin:auto"
  11500. v-if="scope.row.rule"
  11501. >
  11502. <el-popover
  11503. placement="top"
  11504. width="350"
  11505. trigger="hover"
  11506. >
  11507. <div
  11508. v-html="scope.row.rule"
  11509. style="white-space:pre-wrap"
  11510. ></div>
  11511. <div
  11512. slot="reference"
  11513. style="color:#4383FF;cursor: pointer;"
  11514. >
  11515. 查看
  11516. </div>
  11517. </el-popover>
  11518. </div>
  11519. <div v-else>-</div>
  11520. </template>
  11521. </el-table-column>
  11522. </el-table>
  11523. <!-- <div
  11524. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11525. .chapterInfo[0].taskJson[taskCount].eList"
  11526. :key="eIndex"
  11527. class="elist_input_box"
  11528. >
  11529. <div style="width: 95%">
  11530. <div
  11531. style="
  11532. display: flex;
  11533. flex-direction: row;
  11534. flex-wrap: nowrap;
  11535. align-items: center;
  11536. "
  11537. >
  11538. <div style="max-width: calc(100% - 285px)">
  11539. <span>{{ eItem.value }}</span>
  11540. </div>
  11541. <div
  11542. style="
  11543. padding-left: 25px;
  11544. display: flex;
  11545. flex-direction: row;
  11546. align-items: center;
  11547. "
  11548. >
  11549. <el-rate
  11550. v-model="eItem.score"
  11551. :colors="colors"
  11552. disabled
  11553. ></el-rate>
  11554. </div>
  11555. </div>
  11556. <div class="elist_inptu_text" style="padding-left: 10px">
  11557. <span v-if="eItem.detail != ''">{{
  11558. eItem.detail
  11559. }}</span>
  11560. <span v-else style="color: #b2b1b3; font-size: 14px"
  11561. >暂无描述...</span
  11562. >
  11563. </div>
  11564. </div>
  11565. </div> -->
  11566. </div>
  11567. <div
  11568. v-if="evalua"
  11569. style="
  11570. border: 1px solid #e5e5e5;
  11571. max-width: 650px;
  11572. width: 100%;
  11573. margin-top: 20px;
  11574. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11575. "
  11576. :style="{
  11577. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  11578. taskCount
  11579. ].isEvaFold2
  11580. ? '100%'
  11581. : '116px'
  11582. }"
  11583. >
  11584. <div class="e_add_top">
  11585. <div class="e_add_title" style="width: 100%">
  11586. <!-- <span>目标管理名称</span> -->
  11587. <span
  11588. v-if="
  11589. chapInfoList[courseType].chapterInfo[0].taskJson[
  11590. taskCount
  11591. ].isEvaFold2
  11592. "
  11593. >{{ eTitle }}</span
  11594. >
  11595. <img
  11596. v-if="
  11597. chapInfoList[courseType].chapterInfo[0].taskJson[
  11598. taskCount
  11599. ].isEvaFold2
  11600. "
  11601. src="../../assets/line.png"
  11602. class="cru_line"
  11603. style="
  11604. width: 125px;
  11605. height: 20px;
  11606. bottom: -10px;
  11607. left: 5px;
  11608. "
  11609. />
  11610. <!-- <el-input
  11611. v-model="eTitle"
  11612. placeholder="请输入名称"
  11613. @change="setMindData"
  11614. ></el-input>-->
  11615. <div
  11616. v-show="
  11617. chapInfoList[courseType].chapterInfo[0].taskJson[
  11618. taskCount
  11619. ].isEvaFold2
  11620. "
  11621. class="show_taskD show"
  11622. style="margin:0 0 0 auto"
  11623. @click="foldEva()"
  11624. >
  11625. <img
  11626. src="../../assets/icon/newIcon/icon-slide.png"
  11627. />收起目标
  11628. </div>
  11629. <div
  11630. v-show="
  11631. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11632. taskCount
  11633. ].isEvaFold2
  11634. "
  11635. style="margin:0 0 0 auto"
  11636. class="show_taskD"
  11637. @click="foldEva()"
  11638. >
  11639. <img
  11640. src="../../assets/icon/newIcon/icon-slide.png"
  11641. />展开目标
  11642. </div>
  11643. </div>
  11644. </div>
  11645. <div
  11646. class="e_add_content"
  11647. v-if="
  11648. chapInfoList[courseType].chapterInfo[0].taskJson[
  11649. taskCount
  11650. ].isEvaFold2
  11651. "
  11652. >
  11653. <div class="e_add_list_pbox">
  11654. <div class="e_add_list_pbox_title">
  11655. <!-- <span class="type_title">切换模式</span> -->
  11656. <div class="type_content">
  11657. <span
  11658. :class="{ active: typeMode == 1 }"
  11659. @click="typeMode = 1"
  11660. >目标树</span
  11661. >
  11662. <span
  11663. :class="{ active: typeMode == 2 }"
  11664. @click="typeMode = 2"
  11665. >目标罗盘</span
  11666. >
  11667. <!-- <span
  11668. :class="{ active: typeMode == 3 }"
  11669. @click="typeMode = 3"
  11670. >目标看板</span
  11671. > -->
  11672. </div>
  11673. </div>
  11674. <div
  11675. class="e_add_list_pbox_content"
  11676. style="min-height: 200px;"
  11677. >
  11678. <Mind
  11679. :showBar="false"
  11680. :mindData="data"
  11681. style="width: 100%"
  11682. v-show="typeMode == 1"
  11683. ></Mind>
  11684. <Sunburst
  11685. :Josn="eJson"
  11686. :num="eJSONNum"
  11687. style="width: 100%"
  11688. v-if="typeMode == 2"
  11689. ></Sunburst>
  11690. <SeeBoard
  11691. :Josn="eJson"
  11692. :num="eJSONNum"
  11693. :ename="eTitle"
  11694. style="width: 100%"
  11695. v-if="typeMode == 3"
  11696. >
  11697. </SeeBoard>
  11698. </div>
  11699. </div>
  11700. </div>
  11701. </div>
  11702. </div>
  11703. </div>
  11704. <!-- <div
  11705. class="project_box"
  11706. style="margin-top: 15px; padding-bottom: 30px"
  11707. >
  11708. <div
  11709. style="
  11710. display: flex;
  11711. flex-wrap: nowrap;
  11712. flex-direction: column;
  11713. position: relative;
  11714. "
  11715. >
  11716. <div class="queTop">
  11717. <div class="question">
  11718. <img src="../../assets/icon/homeWork.png" alt="" />
  11719. </div>
  11720. <div class="queTitle">
  11721. <div>作业提交<span>(提交图文视频等)</span></div>
  11722. <div>:任务:{{ task.task }}</div>
  11723. </div>
  11724. </div>
  11725. <div class="ediBottom">
  11726. <div
  11727. class="addEditor"
  11728. style="margin-top: 23px"
  11729. @click="openAddWork"
  11730. v-if="!isNoHomeWork"
  11731. >
  11732. 选择文件
  11733. </div>
  11734. <div
  11735. class="addEditor"
  11736. style="margin-top: 23px"
  11737. @click="openAddWork"
  11738. v-else
  11739. >
  11740. 已提交
  11741. </div>
  11742. </div>
  11743. </div>
  11744. </div>-->
  11745. </div>
  11746. </div>
  11747. <el-dialog
  11748. title="作业提交"
  11749. :visible.sync="dialogVisible"
  11750. :append-to-body="true"
  11751. width="500px"
  11752. :before-close="handleClose"
  11753. class="dialog_change"
  11754. >
  11755. <div class="marginT">
  11756. <div>上传文件</div>
  11757. <div style="display: flex; gap: 10px">
  11758. <div
  11759. class="chapter_add"
  11760. @click="addImg($event)"
  11761. v-if="studyJuri[0].cover.length == 0"
  11762. >
  11763. <div class="up_photo">
  11764. <img src="../../assets/icon/uploadImg.png" alt />
  11765. </div>
  11766. <!-- <input
  11767. type="file"
  11768. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11769. style="display: none"
  11770. @change="beforeUpload1($event, 1)"
  11771. /> -->
  11772. <input
  11773. type="file"
  11774. accept="*"
  11775. style="display: none"
  11776. @change="beforeUpload1($event, 1)"
  11777. />
  11778. <!-- <input
  11779. type="file"
  11780. accept="image/*"
  11781. capture="camera"
  11782. style="display: none"
  11783. @change="beforeUpload1($event, 1)"
  11784. /> -->
  11785. </div>
  11786. <div
  11787. class="chapter_add"
  11788. @click="addImg($event)"
  11789. v-if="studyJuri[0].cover.length == 0"
  11790. >
  11791. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11792. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11793. </div>
  11794. <input
  11795. type="file"
  11796. accept="image/*"
  11797. capture="camera"
  11798. style="display: none"
  11799. @change="beforeUpload1($event, 1)"
  11800. />
  11801. </div>
  11802. </div>
  11803. <div
  11804. class="chapter_add"
  11805. style="
  11806. display: flex;
  11807. width: 100%;
  11808. flex-direction: row;
  11809. flex-wrap: wrap;
  11810. justify-content: flex-start;
  11811. padding: 15px 0;
  11812. "
  11813. v-if="studyJuri[0].cover.length > 0"
  11814. >
  11815. <div class="upCover">
  11816. <img
  11817. :src="studyJuri[0].cover[0].url"
  11818. alt
  11819. v-if="fileType == 0"
  11820. />
  11821. <img :src="word" alt v-else-if="fileType == 1" />
  11822. <img :src="video" alt v-else-if="fileType == 2" />
  11823. <img :src="word2" alt v-else-if="fileType == 3" />
  11824. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11825. <div class="deleteWord" @click="clean(1)">
  11826. <img src="../../assets/icon/deleteWorks.png" alt />
  11827. </div>
  11828. </div>
  11829. </div>
  11830. </div>
  11831. <div
  11832. class="upload_send"
  11833. @click="addCourseWorksCopy(taskCount)"
  11834. v-if="!proVisible"
  11835. >
  11836. 提交
  11837. </div>
  11838. </el-dialog>
  11839. </div>
  11840. </div>
  11841. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11842. <classRoomHelper
  11843. v-if="!['2'].includes(tType)"
  11844. @studentFreePreview="studentFreePreview"
  11845. @OpenJobPreview="OpenJobPreview"
  11846. :videoStart="videoStart"
  11847. :IsFollow="IsFollow"
  11848. :sIsOpen="sIsOpen"
  11849. :IsLookOpen="IsLookOpen"
  11850. :splitScreenData="splitScreenData"
  11851. @splitScreenBehavior="splitScreenBehavior"
  11852. @startRecording="startRecording"
  11853. @stopRecording="stopRecording"
  11854. :fileList="vChapterData[taskCount]"
  11855. :worksStudent="worksStudent"
  11856. :courseType="parseInt(courseType)"
  11857. :taskCount="taskCount"
  11858. :tcid="tcid"
  11859. :navList="navList"
  11860. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11861. ref="classRoomHelperRef"
  11862. :courseDetail="courseDetail"
  11863. :tType="tType"
  11864. @setWidth="setClassRoomHelperWidth"
  11865. @refresh="refreshCourse"
  11866. @goStep="nextOrpreSteps"
  11867. @authority="juriVisible = true"
  11868. @review="setPz"
  11869. @backPage="
  11870. goTo(
  11871. '/courseDetail?userid=' +
  11872. userid +
  11873. '&oid=' +
  11874. oid +
  11875. '&org=' +
  11876. org +
  11877. '&cid=' +
  11878. classId +
  11879. '&courseId=' +
  11880. id +
  11881. '&tType=' +
  11882. tType +
  11883. '&screenType=' +
  11884. screenType+
  11885. '&role=' +
  11886. role
  11887. )
  11888. "
  11889. ></classRoomHelper>
  11890. <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(
  11891. '/courseDetail?userid=' +
  11892. userid +
  11893. '&oid=' +
  11894. oid +
  11895. '&org=' +
  11896. org +
  11897. '&cid=' +
  11898. classId +
  11899. '&courseId=' +
  11900. id +
  11901. '&tType=' +
  11902. tType +
  11903. '&screenType=' +
  11904. screenType+
  11905. '&role=' +
  11906. role
  11907. )"></studentClassRoomHelper>
  11908. <div
  11909. class="pButton"
  11910. @click="(pzDialog = true), selectPz()"
  11911. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11912. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11913. >
  11914. <!-- 批 -->
  11915. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11916. </div>
  11917. <div
  11918. v-if="pzDialog == true"
  11919. class="newDialogCss"
  11920. :style="`right:${commentRight}`"
  11921. >
  11922. <div class="pzTop2">
  11923. <!-- <div>评论</div>
  11924. <div @click="pzDialog = false">
  11925. <img src="../../assets/close1.png" alt="" />
  11926. </div> -->
  11927. <div class="checkbox">
  11928. <!-- <div class="check" style="font-size: 25px; position: unset">
  11929. 评论
  11930. </div> -->
  11931. <div class="cb-tabList">
  11932. <div
  11933. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11934. @click="commentTagShow = 0"
  11935. >
  11936. 评论
  11937. </div>
  11938. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11939. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11940. <div
  11941. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11942. @click="commentTagShow = 2"
  11943. >
  11944. 总评
  11945. </div>
  11946. </div>
  11947. <el-select
  11948. v-model="pzStype"
  11949. @change="selectPz"
  11950. class="selectBox"
  11951. v-show="commentTagShow == 0"
  11952. >
  11953. <el-option label="时间降序" :value="1"></el-option>
  11954. <el-option label="时间升序" :value="2"></el-option>
  11955. <el-option label="我的评课" :value="3"></el-option>
  11956. </el-select>
  11957. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11958. </div>
  11959. </div>
  11960. <div
  11961. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11962. v-if="commentTagShow == 0"
  11963. >
  11964. <div class="pzListBox" v-if="pzList && pzList.length">
  11965. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11966. <div class="pzNavTop">
  11967. <div>评</div>
  11968. <div>
  11969. {{
  11970. pz.username && pz.username.length > 5
  11971. ? pz.username.substring(0, 5) + "..."
  11972. : pz.username
  11973. }}的评论
  11974. </div>
  11975. <div
  11976. class="pzDelete"
  11977. v-if="pz.userid == userid"
  11978. @click="deletePz(pz.id)"
  11979. >
  11980. 删除
  11981. </div>
  11982. </div>
  11983. <div
  11984. @click="checkImg(getImgList(pz.content))"
  11985. class="pzContent cont"
  11986. v-html="pz.content"
  11987. v-if="pz.type == '1'"
  11988. ></div>
  11989. <div class="pzContent" v-if="pz.type == '2'">
  11990. <audio :src="pz.content" controls="controls" ref="audio">
  11991. Your browser does not support the audio element.
  11992. </audio>
  11993. </div>
  11994. <div class="pzContent" v-if="pz.type == '3'">
  11995. <img
  11996. :src="pz.content"
  11997. style="width: 90%; margin: 0 auto; display: block"
  11998. @click="previewImg(pz.content)"
  11999. />
  12000. </div>
  12001. <div class="timeAndReply">
  12002. <div class="time">
  12003. {{ pz.time }}
  12004. </div>
  12005. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  12006. </div>
  12007. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  12008. <div
  12009. v-for="(h, hIndex) in pz.hfList"
  12010. :key="hIndex"
  12011. class="hfItem"
  12012. >
  12013. <div class="whoReplyWho">
  12014. <div class="hfName">{{ h.username }}</div>
  12015. <div class="hfImg">
  12016. <img src="../../assets/icon/newIcons/right.png" alt="" />
  12017. </div>
  12018. <div class="hfName">{{ pz.username }}</div>
  12019. </div>
  12020. <div class="hfContent" v-html="h.content"></div>
  12021. <div class="hfBottom">
  12022. <div class="hfTime">{{ h.time }}</div>
  12023. <div
  12024. class="deleteHfItem"
  12025. @click="deleteReply(h.id)"
  12026. v-if="userid == h.userid"
  12027. >
  12028. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  12029. </div>
  12030. </div>
  12031. </div>
  12032. </div>
  12033. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  12034. <div class="replyInput">
  12035. <el-input v-model="reply[pzIndex]"></el-input>
  12036. </div>
  12037. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  12038. </div> -->
  12039. </div>
  12040. </div>
  12041. <div class="noPz" v-else>
  12042. <img src="../../assets/icon/noPz.png" alt="" />
  12043. </div>
  12044. <div class="addPzButton">
  12045. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  12046. 添加评论
  12047. </div>
  12048. <!-- <div class="img1">
  12049. <div @click="(addPzDialog = true), (pzType = 2)">
  12050. <img src="../../assets/audio.png" /><span>音频</span>
  12051. </div>
  12052. </div> -->
  12053. </div>
  12054. </div>
  12055. <div class="scoreList" v-if="commentTagShow == 1">
  12056. <scoreItem
  12057. v-for="item in scoreList.datalist"
  12058. @refresh="getScoreList"
  12059. :data="item"
  12060. :isScore="
  12061. scoreList.isScoreList.filter(
  12062. i => i.userid == item.userid && i.courseid == item.courseId
  12063. )
  12064. "
  12065. :key="item.courseId"
  12066. />
  12067. </div>
  12068. <div
  12069. class="scoreList"
  12070. v-if="commentTagShow == 2"
  12071. style="position: relative"
  12072. >
  12073. <scoreZong
  12074. :courseid="id"
  12075. :userid="userid"
  12076. @insertMemorandum="insertMemorandum"
  12077. ></scoreZong>
  12078. </div>
  12079. </div>
  12080. <div
  12081. v-if="toolDialogVisible == true"
  12082. class="toolMask"
  12083. @click="toolDialogVisible = false"
  12084. ></div>
  12085. <div v-if="toolDialogVisible == true" class="addToolCss">
  12086. <div class="toolTop">
  12087. <div style="font-weight: bold">新增工具</div>
  12088. <div @click="toolDialogVisible = false">
  12089. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  12090. </div>
  12091. </div>
  12092. <div class="tool_box">
  12093. <div class="tool_type_box">
  12094. <div class="chooseWho">
  12095. <div
  12096. :class="toolType == 0 ? 'isChooseActive' : ''"
  12097. @click="(toolType = 0), $forceUpdate()"
  12098. >
  12099. 互动类
  12100. </div>
  12101. <div
  12102. :class="toolType == 1 ? 'isChooseActive' : ''"
  12103. @click="(toolType = 1), $forceUpdate()"
  12104. >
  12105. 思维类
  12106. </div>
  12107. <div
  12108. :class="toolType == 2 ? 'isChooseActive' : ''"
  12109. @click="(toolType = 2), $forceUpdate()"
  12110. >
  12111. 测评类
  12112. </div>
  12113. <div
  12114. :class="toolType == 3 ? 'isChooseActive' : ''"
  12115. @click="(toolType = 3), $forceUpdate()"
  12116. >
  12117. 编程类
  12118. </div>
  12119. <div
  12120. :class="toolType == 5 ? 'isChooseActive' : ''"
  12121. @click="(toolType = 5), $forceUpdate()"
  12122. >
  12123. 学科类
  12124. </div>
  12125. </div>
  12126. </div>
  12127. <div>
  12128. <div class="toolSort" v-if="toolType == 0">
  12129. <div
  12130. class="tool"
  12131. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  12132. @click="addTools2(10)"
  12133. >
  12134. <div class="whiteBIcon">
  12135. <img src="../../assets/icon/thirdToolList/time.png" alt />
  12136. <div style="margin: 5px 0">倒计时</div>
  12137. </div>
  12138. <div class="check">
  12139. <div
  12140. v-if="checktoolArray.indexOf(10) == -1"
  12141. class="noChoose"
  12142. ></div>
  12143. <div v-else class="isChoose"></div>
  12144. </div>
  12145. </div>
  12146. <div
  12147. class="tool"
  12148. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  12149. @click="addTools2(65)"
  12150. >
  12151. <div class="whiteBIcon">
  12152. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  12153. <div style="margin: 5px 0">挑人</div>
  12154. </div>
  12155. <div class="check">
  12156. <div
  12157. v-if="checktoolArray.indexOf(65) == -1"
  12158. class="noChoose"
  12159. ></div>
  12160. <div v-else class="isChoose"></div>
  12161. </div>
  12162. </div>
  12163. </div>
  12164. <div class="toolSort" v-if="toolType == 1">
  12165. <div
  12166. class="tool"
  12167. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  12168. @click="addTools2(7)"
  12169. >
  12170. <div class="whiteBIcon">
  12171. <img
  12172. src="../../assets/icon/secondToolList/mindNetwork.png"
  12173. alt
  12174. />
  12175. <div style="margin: 5px 0">思维网格</div>
  12176. </div>
  12177. <div class="check">
  12178. <div
  12179. v-if="checktoolArray.indexOf(7) == -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(1) != -1 }"
  12188. @click="addTools2(1)"
  12189. >
  12190. <div class="whiteBIcon">
  12191. <img
  12192. src="../../assets/icon/secondToolList/whiteBoard.png"
  12193. alt
  12194. />
  12195. <div style="margin: 5px 0">电子白板</div>
  12196. </div>
  12197. <div class="check">
  12198. <div
  12199. v-if="checktoolArray.indexOf(1) == -1"
  12200. class="noChoose"
  12201. ></div>
  12202. <div v-else class="isChoose"></div>
  12203. </div>
  12204. </div>
  12205. <div
  12206. class="tool"
  12207. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  12208. @click="addTools2(52)"
  12209. >
  12210. <div class="whiteBIcon">
  12211. <img src="../../assets/icon/fourthToolList/text.png" alt />
  12212. <div style="margin: 5px 0">文档</div>
  12213. </div>
  12214. <div class="check">
  12215. <div
  12216. v-if="checktoolArray.indexOf(52) == -1"
  12217. class="noChoose"
  12218. ></div>
  12219. <div v-else class="isChoose"></div>
  12220. </div>
  12221. </div>
  12222. <div
  12223. class="tool"
  12224. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12225. @click="addTools2(3)"
  12226. >
  12227. <div class="whiteBIcon">
  12228. <img
  12229. src="../../assets/icon/secondToolList/mindMapping.png"
  12230. alt
  12231. />
  12232. <div style="margin: 5px 0">思维导图</div>
  12233. </div>
  12234. <div class="check">
  12235. <div
  12236. v-if="checktoolArray.indexOf(3) == -1"
  12237. class="noChoose"
  12238. ></div>
  12239. <div v-else class="isChoose"></div>
  12240. </div>
  12241. </div>
  12242. <div
  12243. class="tool"
  12244. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  12245. @click="addTools2(48)"
  12246. >
  12247. <div class="whiteBIcon">
  12248. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12249. <div style="margin: 5px 0">表格</div>
  12250. </div>
  12251. <div class="check">
  12252. <div
  12253. v-if="checktoolArray.indexOf(48) == -1"
  12254. class="noChoose"
  12255. ></div>
  12256. <div v-else class="isChoose"></div>
  12257. </div>
  12258. </div>
  12259. </div>
  12260. <div class="toolSort" v-if="toolType == 6">
  12261. <div v-show="tooC == 49">
  12262. <img
  12263. @click="addTools(tooC, toolIndex, taskCount)"
  12264. src="../../assets/icon/fourthToolList/group.png"
  12265. alt
  12266. />
  12267. <div style="margin: 5px 0">学生分组</div>
  12268. </div>
  12269. </div>
  12270. <div class="toolSort" v-if="toolType == 2">
  12271. <div
  12272. class="tool"
  12273. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12274. @click="addTools2(16)"
  12275. >
  12276. <div class="whiteBIcon">
  12277. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12278. <div style="margin: 5px 0">作业提交</div>
  12279. </div>
  12280. <div class="check">
  12281. <div
  12282. v-if="checktoolArray.indexOf(16) == -1"
  12283. class="noChoose"
  12284. ></div>
  12285. <div v-else class="isChoose"></div>
  12286. </div>
  12287. </div>
  12288. <div
  12289. class="tool"
  12290. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12291. @click="addTools2(50)"
  12292. >
  12293. <div class="whiteBIcon">
  12294. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12295. <div style="margin: 5px 0">批量上传</div>
  12296. </div>
  12297. <div class="check">
  12298. <div
  12299. v-if="checktoolArray.indexOf(50) == -1"
  12300. class="noChoose"
  12301. ></div>
  12302. <div v-else class="isChoose"></div>
  12303. </div>
  12304. </div>
  12305. </div>
  12306. <div class="toolSort" v-if="toolType == 3">
  12307. <div
  12308. class="tool"
  12309. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12310. @click="addTools2(18)"
  12311. >
  12312. <div class="whiteBIcon">
  12313. <img
  12314. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12315. alt
  12316. />
  12317. <div style="margin: 5px 0">训练平台</div>
  12318. </div>
  12319. <div class="check">
  12320. <div
  12321. v-if="checktoolArray.indexOf(18) == -1"
  12322. class="noChoose"
  12323. ></div>
  12324. <div v-else class="isChoose"></div>
  12325. </div>
  12326. </div>
  12327. <div
  12328. class="tool"
  12329. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12330. @click="addTools2(21)"
  12331. >
  12332. <div class="whiteBIcon">
  12333. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12334. <div style="margin: 5px 0">AIoT Blockly</div>
  12335. </div>
  12336. <div class="check">
  12337. <div
  12338. v-if="checktoolArray.indexOf(21) == -1"
  12339. class="noChoose"
  12340. ></div>
  12341. <div v-else class="isChoose"></div>
  12342. </div>
  12343. </div>
  12344. <div
  12345. class="tool"
  12346. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12347. @click="addTools2(23)"
  12348. >
  12349. <div class="whiteBIcon">
  12350. <img
  12351. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12352. alt
  12353. />
  12354. <div style="margin: 5px 0">AI Python</div>
  12355. </div>
  12356. <div class="check">
  12357. <div
  12358. v-if="checktoolArray.indexOf(23) == -1"
  12359. class="noChoose"
  12360. ></div>
  12361. <div v-else class="isChoose"></div>
  12362. </div>
  12363. </div>
  12364. <div
  12365. class="tool"
  12366. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  12367. @click="addTools2(24)"
  12368. >
  12369. <div class="whiteBIcon">
  12370. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12371. <div style="margin: 5px 0">AI Blockly</div>
  12372. </div>
  12373. <div class="check">
  12374. <div
  12375. v-if="checktoolArray.indexOf(24) == -1"
  12376. class="noChoose"
  12377. ></div>
  12378. <div v-else class="isChoose"></div>
  12379. </div>
  12380. </div>
  12381. <div
  12382. class="tool"
  12383. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12384. @click="addTools2(32)"
  12385. >
  12386. <div class="whiteBIcon">
  12387. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12388. <div style="margin: 5px 0">源码编辑</div>
  12389. </div>
  12390. <div class="check">
  12391. <div
  12392. v-if="checktoolArray.indexOf(32) == -1"
  12393. class="noChoose"
  12394. ></div>
  12395. <div v-else class="isChoose"></div>
  12396. </div>
  12397. </div>
  12398. <div
  12399. class="tool"
  12400. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12401. @click="addTools2(57)"
  12402. >
  12403. <div class="whiteBIcon">
  12404. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12405. <div style="margin: 5px 0">CocoPi</div>
  12406. </div>
  12407. <div class="check">
  12408. <div
  12409. v-if="checktoolArray.indexOf(57) == -1"
  12410. class="noChoose"
  12411. ></div>
  12412. <div v-else class="isChoose"></div>
  12413. </div>
  12414. </div>
  12415. <div
  12416. class="tool"
  12417. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12418. @click="addTools2(63)"
  12419. >
  12420. <div class="whiteBIcon">
  12421. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12422. <div style="margin: 5px 0">海龟编程</div>
  12423. </div>
  12424. <div class="check">
  12425. <div
  12426. v-if="checktoolArray.indexOf(63) == -1"
  12427. class="noChoose"
  12428. ></div>
  12429. <div v-else class="isChoose"></div>
  12430. </div>
  12431. </div>
  12432. <div
  12433. class="tool"
  12434. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12435. @click="addTools2(71)"
  12436. >
  12437. <div class="whiteBIcon">
  12438. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12439. <div style="margin: 5px 0">AI智能体</div>
  12440. </div>
  12441. <div class="check">
  12442. <div
  12443. v-if="checktoolArray.indexOf(71) == -1"
  12444. class="noChoose"
  12445. ></div>
  12446. <div v-else class="isChoose"></div>
  12447. </div>
  12448. </div>
  12449. </div>
  12450. <div class="toolSort" v-if="toolType == 7">
  12451. <div
  12452. class="tool"
  12453. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12454. @click="addTools2(40)"
  12455. >
  12456. <div class="whiteBIcon">
  12457. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12458. <div style="margin: 5px 0">个人评价</div>
  12459. </div>
  12460. <div class="check">
  12461. <div
  12462. v-if="checktoolArray.indexOf(40) == -1"
  12463. class="noChoose"
  12464. ></div>
  12465. <div v-else class="isChoose"></div>
  12466. </div>
  12467. </div>
  12468. </div>
  12469. <div class="toolSort" v-if="toolType == 5">
  12470. <div
  12471. class="tool"
  12472. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12473. @click="addTools2(28)"
  12474. >
  12475. <div class="whiteBIcon">
  12476. <img
  12477. src="../../assets/icon/secondToolList/translation.png"
  12478. alt
  12479. />
  12480. <div style="margin: 5px 0">翻译</div>
  12481. </div>
  12482. <div class="check">
  12483. <div
  12484. v-if="checktoolArray.indexOf(28) == -1"
  12485. class="noChoose"
  12486. ></div>
  12487. <div v-else class="isChoose"></div>
  12488. </div>
  12489. </div>
  12490. <div
  12491. class="tool"
  12492. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12493. @click="addTools2(31)"
  12494. >
  12495. <div class="whiteBIcon">
  12496. <img
  12497. src="../../assets/icon/secondToolList/networkPanel.png"
  12498. alt
  12499. />
  12500. <div style="margin: 5px 0">数字画板</div>
  12501. </div>
  12502. <div class="check">
  12503. <div
  12504. v-if="checktoolArray.indexOf(31) == -1"
  12505. class="noChoose"
  12506. ></div>
  12507. <div v-else class="isChoose"></div>
  12508. </div>
  12509. </div>
  12510. <div
  12511. class="tool"
  12512. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  12513. @click="addTools2(39)"
  12514. >
  12515. <div class="whiteBIcon">
  12516. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12517. <div style="margin: 5px 0">GeoGebra</div>
  12518. </div>
  12519. <div class="check">
  12520. <div
  12521. v-if="checktoolArray.indexOf(39) == -1"
  12522. class="noChoose"
  12523. ></div>
  12524. <div v-else class="isChoose"></div>
  12525. </div>
  12526. </div>
  12527. <div
  12528. class="tool"
  12529. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12530. @click="addTools2(66)"
  12531. >
  12532. <div class="whiteBIcon">
  12533. <img
  12534. src="../../assets/icon/secondToolList/formulaEdi.png"
  12535. alt
  12536. />
  12537. <div style="margin: 5px 0">公式编辑</div>
  12538. </div>
  12539. <div class="check">
  12540. <div
  12541. v-if="checktoolArray.indexOf(66) == -1"
  12542. class="noChoose"
  12543. ></div>
  12544. <div v-else class="isChoose"></div>
  12545. </div>
  12546. </div>
  12547. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12548. <div class="whiteBIcon" @click="addTools2(67)">
  12549. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12550. <div style="margin: 5px 0">分子结构</div>
  12551. </div>
  12552. <div class="check" @click="addTools2(67)">
  12553. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12554. <div v-else class="isChoose"></div>
  12555. </div>
  12556. </div> -->
  12557. <div
  12558. class="tool"
  12559. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12560. @click="addTools2(68)"
  12561. >
  12562. <div class="whiteBIcon">
  12563. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12564. <div style="margin: 5px 0">时间轴</div>
  12565. </div>
  12566. <div class="check">
  12567. <div
  12568. v-if="checktoolArray.indexOf(68) == -1"
  12569. class="noChoose"
  12570. ></div>
  12571. <div v-else class="isChoose"></div>
  12572. </div>
  12573. </div>
  12574. <!-- <div
  12575. class="tool"
  12576. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12577. @click="addTools2(69)"
  12578. >
  12579. <div class="whiteBIcon">
  12580. <img src="../../assets/icon/secondToolList/english.png" alt />
  12581. <div style="margin: 5px 0">英语写作</div>
  12582. </div>
  12583. <div class="check">
  12584. <div
  12585. v-if="checktoolArray.indexOf(69) == -1"
  12586. class="noChoose"
  12587. ></div>
  12588. <div v-else class="isChoose"></div>
  12589. </div>
  12590. </div> -->
  12591. </div>
  12592. <div class="toolSort" v-if="toolType == 4">
  12593. <div
  12594. class="tool"
  12595. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12596. @click="addTools2(26)"
  12597. >
  12598. <div class="whiteBIcon">
  12599. <img
  12600. src="../../assets/icon/thirdToolList/courseDesign.png"
  12601. alt
  12602. />
  12603. <div style="margin: 5px 0">课程设计</div>
  12604. </div>
  12605. <div class="check">
  12606. <div
  12607. v-if="checktoolArray.indexOf(26) == -1"
  12608. class="noChoose"
  12609. ></div>
  12610. <div v-else class="isChoose"></div>
  12611. </div>
  12612. </div>
  12613. <div
  12614. class="tool"
  12615. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12616. @click="addTools2(25)"
  12617. >
  12618. <div class="whiteBIcon">
  12619. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12620. <div style="margin: 5px 0">目标管理</div>
  12621. </div>
  12622. <div class="check">
  12623. <div
  12624. v-if="checktoolArray.indexOf(25) == -1"
  12625. class="noChoose"
  12626. ></div>
  12627. <div v-else class="isChoose"></div>
  12628. </div>
  12629. </div>
  12630. </div>
  12631. </div>
  12632. </div>
  12633. <span
  12634. slot="footer"
  12635. class="dialog-footer"
  12636. style="display: block; text-align: center; padding: 0 0 10px 0"
  12637. >
  12638. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12639. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12640. </span>
  12641. </div>
  12642. <div
  12643. v-if="replyDialogVisible == true"
  12644. class="addDialogCss"
  12645. v-el-drag-dialog
  12646. >
  12647. <div class="pzTop">
  12648. <div class="teacherPz">
  12649. <div class="teacherPzImg">
  12650. <img src="../../assets/icon/teacherPz.png" alt="" />
  12651. </div>
  12652. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12653. </div>
  12654. <div @click="replyDialogVisible = false">
  12655. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12656. </div>
  12657. </div>
  12658. <div class="addPzBox">
  12659. <!-- <div class="addPzCheck">
  12660. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12661. >文本</span
  12662. >
  12663. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12664. >音频</span
  12665. >
  12666. </div> -->
  12667. <div style="height: calc(100% - 50px)">
  12668. <editor-bar
  12669. class="binfo_input pzConText"
  12670. style="width: 100% !important; margin: 0 auto"
  12671. placeholder="请输入回复描述"
  12672. v-model="reply"
  12673. @change="change"
  12674. ></editor-bar>
  12675. </div>
  12676. <div class="addTextCss" @click="addHf">确定</div>
  12677. </div>
  12678. </div>
  12679. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12680. <div class="pzTop">
  12681. <div class="teacherPz">
  12682. <div class="teacherPzImg">
  12683. <img src="../../assets/icon/teacherPz.png" alt="" />
  12684. </div>
  12685. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12686. </div>
  12687. <div @click="addPzDialog = false">
  12688. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12689. </div>
  12690. </div>
  12691. <div class="addPzBox">
  12692. <div class="addPzCheck">
  12693. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12694. >文本</span
  12695. >
  12696. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12697. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12698. >音频</span
  12699. >
  12700. </div>
  12701. <div style="height: calc(100% - 95px)">
  12702. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12703. v-if="pzType == 1"></textarea> -->
  12704. <editor-bar
  12705. class="binfo_input pzConText"
  12706. style="width: 100% !important"
  12707. placeholder="请输入任务描述"
  12708. v-model="pzConText"
  12709. @change="change"
  12710. v-if="pzType == 1"
  12711. ></editor-bar>
  12712. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12713. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12714. <div @click="addImg($event)">
  12715. <el-button type="primary">上传图片</el-button>
  12716. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12717. @change="beforeUpload1($event, 4)" />
  12718. </div>
  12719. </div> -->
  12720. </div>
  12721. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12722. 确定
  12723. </div>
  12724. </div>
  12725. </div>
  12726. <div v-if="proVisible" class="mask">
  12727. <div class="progressBox">
  12728. <!-- <div id="closePro" class="closeCss">
  12729. <img src="../../assets/icon/close.png" alt />
  12730. </div> -->
  12731. <div class="lbox">
  12732. <img src="../../assets/loading.gif" />上传中,请稍后
  12733. </div>
  12734. <div style="margin-bottom: 10px">
  12735. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12736. </div>
  12737. <el-progress
  12738. :text-inside="true"
  12739. :stroke-width="20"
  12740. :percentage="progress"
  12741. style="width: 80%"
  12742. ></el-progress>
  12743. </div>
  12744. </div>
  12745. <div v-if="proVisible2" class="mask">
  12746. <div class="progressBox">
  12747. <div class="lbox">
  12748. <img src="../../assets/loading.gif" />上传中,请稍后
  12749. </div>
  12750. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12751. </div>
  12752. </div>
  12753. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12754. <img width="100%" :src="dialogImageUrl" alt />
  12755. </el-dialog>
  12756. <el-dialog
  12757. :title="noteName != '' ? noteName : '查看问卷'"
  12758. :visible.sync="dialogVisible5"
  12759. :append-to-body="true"
  12760. width="1000px"
  12761. :before-close="handleClose"
  12762. class="dialog_diy dialog_diy3"
  12763. >
  12764. <div>
  12765. <div
  12766. class="a_add_title"
  12767. style="
  12768. display: flex;
  12769. flex-direction: row;
  12770. align-items: center;
  12771. justify-content: center;
  12772. "
  12773. >
  12774. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12775. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12776. </div>
  12777. <div class="a_addBox">
  12778. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12779. 题目内容
  12780. </div>
  12781. <div
  12782. class="a_add_box"
  12783. v-for="(item1, index1) in askJson.askCount"
  12784. :key="index1"
  12785. >
  12786. <div class="a_add_head">
  12787. <div style="display: flex">
  12788. <span class="askIndex"> {{ index1 + 1 }}</span>
  12789. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12790. </div>
  12791. <img
  12792. v-if="askJson.askJson[index1].img"
  12793. :src="askJson.askJson[index1].img"
  12794. style="height: 300px; margin-top: 10px; max-width: 100%"
  12795. />
  12796. </div>
  12797. <div class="a_add_body">
  12798. <div class="a_add_input">
  12799. <el-radio-group
  12800. v-model="radio[index1]"
  12801. v-if="
  12802. askJson.askJson[index1].type == '1' ||
  12803. !askJson.askJson[index1].type
  12804. "
  12805. >
  12806. <el-radio
  12807. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12808. .checkList"
  12809. :key="checkIndex"
  12810. :label="checkIndex"
  12811. :disabled="isAnswer"
  12812. class="redioStyle"
  12813. ><span v-html="item2"></span
  12814. ></el-radio>
  12815. </el-radio-group>
  12816. <el-checkbox-group
  12817. v-model="radio[index1]"
  12818. v-if="askJson.askJson[index1].type == '2'"
  12819. >
  12820. <el-checkbox
  12821. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12822. .checkList"
  12823. :key="checkIndex1"
  12824. :label="checkIndex1"
  12825. :disabled="isAnswer"
  12826. class="redioStyle"
  12827. ><span v-html="item2"></span>
  12828. </el-checkbox>
  12829. </el-checkbox-group>
  12830. </div>
  12831. </div>
  12832. </div>
  12833. </div>
  12834. </div>
  12835. <span slot="footer" class="dialog-footer">
  12836. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12837. >取 消</el-button
  12838. >
  12839. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12840. >确 定</el-button
  12841. >
  12842. </span>
  12843. </el-dialog>
  12844. <el-dialog
  12845. :title="noteName != '' ? noteName : '查看问卷'"
  12846. :visible.sync="dialogVisible5Teacher"
  12847. :append-to-body="true"
  12848. width="1000px"
  12849. :before-close="handleClose"
  12850. class="dialog_diy dialog_diy3"
  12851. >
  12852. <div>
  12853. <div class="w_name">
  12854. 学生姓名:<span>{{ sStudent.student }}</span>
  12855. </div>
  12856. <div
  12857. class="a_add_title"
  12858. style="
  12859. display: flex;
  12860. flex-direction: row;
  12861. align-items: center;
  12862. justify-content: center;
  12863. "
  12864. >
  12865. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12866. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12867. </div>
  12868. <div class="a_addBox">
  12869. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12870. 题目内容
  12871. </div>
  12872. <div
  12873. class="a_add_box"
  12874. v-for="(item1, index1) in askJson.askCount"
  12875. :key="index1"
  12876. >
  12877. <div class="a_add_head">
  12878. <div style="display: flex">
  12879. <span class="askIndex">{{ index1 + 1 }}</span>
  12880. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12881. </div>
  12882. <img
  12883. v-if="askJson.askJson[index1].img"
  12884. :src="askJson.askJson[index1].img"
  12885. style="height: 300px; margin-top: 10px; max-width: 100%"
  12886. />
  12887. </div>
  12888. <div class="a_add_body">
  12889. <div class="a_add_input">
  12890. <el-radio-group
  12891. v-model="radio[index1]"
  12892. v-if="
  12893. askJson.askJson[index1].type == '1' ||
  12894. !askJson.askJson[index1].type
  12895. "
  12896. >
  12897. <el-radio
  12898. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12899. .checkList"
  12900. :key="checkIndex"
  12901. :label="checkIndex"
  12902. :disabled="isAnswer"
  12903. class="redioStyle"
  12904. ><span v-html="item2"></span
  12905. ></el-radio>
  12906. </el-radio-group>
  12907. <el-checkbox-group
  12908. v-model="radio[index1]"
  12909. v-if="askJson.askJson[index1].type == '2'"
  12910. >
  12911. <el-checkbox
  12912. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12913. .checkList"
  12914. :key="checkIndex1"
  12915. :label="checkIndex1"
  12916. :disabled="isAnswer"
  12917. class="redioStyle"
  12918. ><span v-html="item2"></span>
  12919. </el-checkbox>
  12920. </el-checkbox-group>
  12921. </div>
  12922. </div>
  12923. </div>
  12924. </div>
  12925. </div>
  12926. <span slot="footer" class="dialog-footer">
  12927. <el-button
  12928. @click="dialogVisible5Teacher = false"
  12929. v-show="noteName == ''"
  12930. >取 消</el-button
  12931. >
  12932. <el-button
  12933. type="primary"
  12934. @click="addStudentAskTeacher"
  12935. v-show="noteName == ''"
  12936. >确 定</el-button
  12937. >
  12938. </span>
  12939. </el-dialog>
  12940. <el-dialog
  12941. :title="noteName != '' ? noteName : '查看选择题'"
  12942. :visible.sync="dialogVisibleChoice"
  12943. :append-to-body="true"
  12944. width="1000px"
  12945. :before-close="handleClose"
  12946. class="dialog_diy dialog_diy3"
  12947. >
  12948. <div>
  12949. <!-- <div class="a_add_title" style="
  12950. display: flex;
  12951. flex-direction: row;
  12952. align-items: center;
  12953. justify-content: center;
  12954. ">
  12955. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12956. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12957. </div> -->
  12958. <div class="a_addBox">
  12959. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12960. 题目内容
  12961. </div>
  12962. <div
  12963. class="a_add_box"
  12964. v-for="(item1, index1) in testJson.testCount"
  12965. :key="index1"
  12966. >
  12967. <div class="a_add_head">
  12968. <div style="display: flex;">
  12969. <span class="askIndex">{{ index1 + 1 }}</span>
  12970. <div
  12971. v-if="testJson.testJson[index1].type == '1'"
  12972. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12973. >
  12974. (单选题)
  12975. </div>
  12976. <div
  12977. v-if="testJson.testJson[index1].type == '2'"
  12978. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12979. >
  12980. (多选题)
  12981. </div>
  12982. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  12983. </div>
  12984. <img
  12985. v-if="testJson.testJson[index1].img"
  12986. :src="testJson.testJson[index1].img"
  12987. style="height: 300px; margin-top: 10px; max-width: 100%"
  12988. />
  12989. </div>
  12990. <div
  12991. class="timuImgBox"
  12992. v-if="
  12993. testJson.testJson[index1].timuList &&
  12994. testJson.testJson[index1].timuList.length
  12995. "
  12996. >
  12997. <div
  12998. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12999. :key="tIndex"
  13000. class="timuImg"
  13001. @click.stop="previewImg(timg.src)"
  13002. >
  13003. <img :src="timg.src" alt="" />
  13004. </div>
  13005. </div>
  13006. <div class="a_add_body">
  13007. <div class="a_add_input">
  13008. <el-radio-group
  13009. v-model="radio[index1]"
  13010. v-if="testJson.testJson[index1].type == '1'"
  13011. >
  13012. <div class="radioBox">
  13013. <el-radio
  13014. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13015. .checkList"
  13016. :key="checkIndex"
  13017. :label="checkIndex"
  13018. :disabled="isAnswer"
  13019. class="redioStyle"
  13020. >
  13021. <div
  13022. style="margin-right: 10px"
  13023. v-if="item2 && item2.imgType && item2.imgType == 1"
  13024. >
  13025. <div class="inImg" @click.stop="previewImg(item2.src)">
  13026. <img :src="item2.src" alt="" />
  13027. </div>
  13028. </div>
  13029. <span v-else v-html="item2"></span>
  13030. </el-radio>
  13031. </div>
  13032. </el-radio-group>
  13033. <el-checkbox-group
  13034. v-model="radio[index1]"
  13035. v-if="testJson.testJson[index1].type == '2'"
  13036. >
  13037. <div class="radioBox">
  13038. <el-checkbox
  13039. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13040. .checkList"
  13041. :key="checkIndex"
  13042. :label="checkIndex"
  13043. :disabled="isAnswer"
  13044. class="redioStyle"
  13045. >
  13046. <div
  13047. style="margin-right: 10px"
  13048. v-if="item2 && item2.imgType && item2.imgType == 1"
  13049. >
  13050. <div class="inImg" @click.stop="previewImg(item2.src)">
  13051. <img :src="item2.src" alt="" />
  13052. </div>
  13053. </div>
  13054. <span v-else v-html="item2"></span>
  13055. </el-checkbox>
  13056. </div>
  13057. </el-checkbox-group>
  13058. </div>
  13059. </div>
  13060. </div>
  13061. </div>
  13062. </div>
  13063. <span slot="footer" class="dialog-footer">
  13064. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  13065. >取 消</el-button
  13066. >
  13067. <el-button
  13068. type="primary"
  13069. @click="addStudentTest"
  13070. v-show="noteName == ''"
  13071. >确 定</el-button
  13072. >
  13073. </span>
  13074. </el-dialog>
  13075. <el-dialog
  13076. :title="noteName != '' ? noteName : '查看选择题'"
  13077. :visible.sync="dialogVisibleChoiceTeacher"
  13078. :append-to-body="true"
  13079. width="1000px"
  13080. :before-close="handleClose"
  13081. class="dialog_diy dialog_diy3"
  13082. >
  13083. <div>
  13084. <div class="w_name">
  13085. 学生姓名:<span>{{ sStudent.student }}</span>
  13086. </div>
  13087. <div class="a_addBox">
  13088. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  13089. 题目内容
  13090. </div>
  13091. <div
  13092. class="a_add_box"
  13093. v-for="(item1, index1) in testJson.testCount"
  13094. :key="index1"
  13095. >
  13096. <div class="a_add_head">
  13097. <div style="display: flex">
  13098. <span class="askIndex">{{ index1 + 1 }}</span>
  13099. <div
  13100. v-if="testJson.testJson[index1].type == '1'"
  13101. style="margin-right: 5px; min-width: 70px"
  13102. >
  13103. (单选题)
  13104. </div>
  13105. <div
  13106. v-if="testJson.testJson[index1].type == '2'"
  13107. style="margin-right: 5px; min-width: 70px"
  13108. >
  13109. (多选题)
  13110. </div>
  13111. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  13112. </div>
  13113. <img
  13114. v-if="testJson.testJson[index1].img"
  13115. :src="testJson.testJson[index1].img"
  13116. style="height: 300px; margin-top: 10px; max-width: 100%"
  13117. />
  13118. </div>
  13119. <div
  13120. class="timuImgBox"
  13121. v-if="
  13122. testJson.testJson[index1].timuList &&
  13123. testJson.testJson[index1].timuList.length
  13124. "
  13125. >
  13126. <div
  13127. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  13128. :key="tIndex"
  13129. class="timuImg"
  13130. @click.stop="previewImg(timg.src)"
  13131. >
  13132. <img :src="timg.src" alt="" />
  13133. </div>
  13134. </div>
  13135. <div class="a_add_body">
  13136. <div class="a_add_input">
  13137. <el-radio-group
  13138. v-model="radio[index1]"
  13139. v-if="testJson.testJson[index1].type == '1'"
  13140. >
  13141. <div class="radioBox">
  13142. <el-radio
  13143. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13144. .checkList"
  13145. :key="checkIndex"
  13146. :label="checkIndex"
  13147. :disabled="isAnswer"
  13148. class="redioStyle"
  13149. >
  13150. <div
  13151. style="margin-right: 10px"
  13152. v-if="item2 && item2.imgType && item2.imgType == 1"
  13153. >
  13154. <div class="inImg" @click.stop="previewImg(item2.src)">
  13155. <img :src="item2.src" alt="" />
  13156. </div>
  13157. </div>
  13158. <span v-else v-html="item2"></span>
  13159. </el-radio>
  13160. </div>
  13161. </el-radio-group>
  13162. <el-checkbox-group
  13163. v-model="radio[index1]"
  13164. v-if="testJson.testJson[index1].type == '2'"
  13165. >
  13166. <div class="radioBox">
  13167. <el-checkbox
  13168. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13169. .checkList"
  13170. :key="checkIndex"
  13171. :label="checkIndex"
  13172. :disabled="isAnswer"
  13173. class="redioStyle"
  13174. >
  13175. <div
  13176. style="margin-right: 10px"
  13177. v-if="item2 && item2.imgType && item2.imgType == 1"
  13178. >
  13179. <div class="inImg" @click.stop="previewImg(item2.src)">
  13180. <img :src="item2.src" alt="" />
  13181. </div>
  13182. </div>
  13183. <span v-else v-html="item2"></span>
  13184. </el-checkbox>
  13185. </div>
  13186. </el-checkbox-group>
  13187. </div>
  13188. </div>
  13189. </div>
  13190. </div>
  13191. </div>
  13192. <span slot="footer" class="dialog-footer">
  13193. <el-button
  13194. @click="dialogVisibleChoiceTeacher = false"
  13195. v-show="noteName == ''"
  13196. >取 消</el-button
  13197. >
  13198. <el-button
  13199. type="primary"
  13200. @click="addStudentTestTeacher"
  13201. v-show="noteName == ''"
  13202. >确 定</el-button
  13203. >
  13204. </span>
  13205. </el-dialog>
  13206. <el-dialog
  13207. title="查看富文本"
  13208. :visible.sync="dialogVisible1"
  13209. :append-to-body="true"
  13210. width="500px"
  13211. :before-close="handleClose"
  13212. class="dialog_diy textCss"
  13213. >
  13214. <el-form style="font-size: 20px">
  13215. <el-form-item label="文本标题" class="textTitle">
  13216. <div style="font-size: 20px">{{ text.name }}</div>
  13217. </el-form-item>
  13218. <div>富文本内容</div>
  13219. <div
  13220. v-html="text.url"
  13221. style="font-size: 18px; padding: 40px 0 0 0"
  13222. ></div>
  13223. </el-form>
  13224. <span slot="footer" class="dialog-footer">
  13225. <el-button type="primary" @click="dialogVisible1 = false"
  13226. >确定</el-button
  13227. >
  13228. </span>
  13229. </el-dialog>
  13230. <el-dialog
  13231. title="文件预览"
  13232. :visible.sync="dialogVisible3"
  13233. width="50%"
  13234. :before-close="handleClose"
  13235. class="dialog_diy"
  13236. :class="{ fullStyle: full }"
  13237. >
  13238. <div slot="title" class="header-title">
  13239. <div style="color: #fff">文件预览</div>
  13240. <div style="position: absolute; top: 19px; right: 50px">
  13241. <img
  13242. src="../../assets/full.png"
  13243. style="height: 16px; cursor: pointer"
  13244. alt=""
  13245. @click="fullTools"
  13246. />
  13247. </div>
  13248. </div>
  13249. <pdf
  13250. v-if="showPDF"
  13251. :pdfUrl="pptImgUrl"
  13252. style="width: 100%; height: 520px; overflow: auto"
  13253. :class="{ fullStyle: full }"
  13254. ></pdf>
  13255. <iframe
  13256. v-else
  13257. :src="pptImgUrl"
  13258. frameborder="0"
  13259. width="100%"
  13260. height="600"
  13261. :class="{ fullStyle: full }"
  13262. ></iframe>
  13263. </el-dialog>
  13264. <el-dialog
  13265. title="文件预览"
  13266. :visible.sync="dialogVisible6"
  13267. width="50%"
  13268. :before-close="handleClose"
  13269. class="dialog_diy"
  13270. >
  13271. <iframe
  13272. :src="pptImgUrl1"
  13273. frameborder="0"
  13274. width="100%"
  13275. height="600"
  13276. ></iframe>
  13277. </el-dialog>
  13278. <el-dialog
  13279. title="提示"
  13280. :visible.sync="dialogVisible4"
  13281. :append-to-body="true"
  13282. width="800px"
  13283. :before-close="handleClose"
  13284. class="dialog_diy notice"
  13285. >
  13286. <div>此功能暂未开放!</div>
  13287. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13288. </el-dialog>
  13289. <el-dialog
  13290. title="问答"
  13291. :visible.sync="answerDialogVisible"
  13292. :append-to-body="true"
  13293. width="800px"
  13294. :before-close="handleClose"
  13295. class="dialog_diy"
  13296. >
  13297. <div>
  13298. <div
  13299. style="
  13300. display: flex;
  13301. flex-wrap: nowrap;
  13302. flex-direction: column;
  13303. position: relative;
  13304. "
  13305. >
  13306. <div class="queTop" style="padding: 20px 0 20px 0">
  13307. <div class="question">
  13308. <img src="../../assets/icon/question.png" alt />
  13309. </div>
  13310. <div class="queTitle">
  13311. <div style="width: 90px; min-width: 90px">提问:</div>
  13312. <div>{{ answerQ }}</div>
  13313. </div>
  13314. </div>
  13315. <div class="ediBottom">
  13316. <textarea
  13317. rows="6"
  13318. class="binfo_input"
  13319. cols
  13320. style="width: 95%; height: 120px"
  13321. v-model="questionAnswer"
  13322. ></textarea>
  13323. </div>
  13324. </div>
  13325. </div>
  13326. <div slot="footer">
  13327. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13328. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13329. </div>
  13330. </el-dialog>
  13331. <el-dialog
  13332. title="问答"
  13333. :visible.sync="answerDialogVisibleTeacher"
  13334. :append-to-body="true"
  13335. width="800px"
  13336. :before-close="handleClose"
  13337. class="dialog_diy"
  13338. >
  13339. <div>
  13340. <div class="w_name">
  13341. 学生姓名:<span>{{ sStudent.student }}</span>
  13342. </div>
  13343. <div
  13344. style="
  13345. display: flex;
  13346. flex-wrap: nowrap;
  13347. flex-direction: column;
  13348. position: relative;
  13349. "
  13350. >
  13351. <div class="queTop" style="padding: 20px 0 20px 0">
  13352. <div class="question">
  13353. <img src="../../assets/icon/question.png" alt />
  13354. </div>
  13355. <div class="queTitle">
  13356. <div style="width: 90px; min-width: 90px">提问:</div>
  13357. <div>{{ answerQ }}</div>
  13358. </div>
  13359. </div>
  13360. <div class="ediBottom">
  13361. <textarea
  13362. rows="6"
  13363. class="binfo_input"
  13364. cols
  13365. style="width: 95%; height: 120px"
  13366. v-model="questionAnswer"
  13367. ></textarea>
  13368. </div>
  13369. </div>
  13370. </div>
  13371. <div slot="footer">
  13372. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13373. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13374. </div>
  13375. </el-dialog>
  13376. <el-dialog
  13377. title="倒计时"
  13378. :visible.sync="timeDialogVisible"
  13379. :append-to-body="true"
  13380. width="800px"
  13381. :before-close="handleClose"
  13382. class="dialog_diy"
  13383. >
  13384. <div>
  13385. <div style="margin-bottom: 20px; color: #999">
  13386. 提示:点击“+”或“-”修改倒计时时长。
  13387. </div>
  13388. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13389. </div>
  13390. <div slot="footer">
  13391. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13392. </div>
  13393. </el-dialog>
  13394. <el-dialog
  13395. title="权限设置"
  13396. :visible.sync="juriVisible"
  13397. :append-to-body="true"
  13398. width="400px"
  13399. :before-close="handleClose"
  13400. class="dialog_diy"
  13401. >
  13402. <div>
  13403. <div class="open_box">
  13404. <div class="switch_box">
  13405. <span>允许学生查看所有作业</span>
  13406. <el-switch
  13407. v-model="sIsOpen"
  13408. active-text=""
  13409. class="switchCss"
  13410. @change="updateSLook"
  13411. ></el-switch>
  13412. </div>
  13413. <div
  13414. class="switch_box"
  13415. v-if="
  13416. (courseDetail.userid == userid ||
  13417. (courseDetail.course_teacher &&
  13418. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13419. "
  13420. >
  13421. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13422. <span>禁止学生查看阶段</span>
  13423. <el-switch
  13424. v-model="IsLookOpen"
  13425. active-text=""
  13426. class="switchCss"
  13427. @change="updateLookOpen"
  13428. ></el-switch>
  13429. </div>
  13430. <div class="switch_box" v-if="courseDetail.userid == userid">
  13431. <span>开启跟随模式</span>
  13432. <el-switch
  13433. v-model="IsFollow"
  13434. active-text=""
  13435. class="switchCss"
  13436. @change="updateFollow"
  13437. ></el-switch>
  13438. </div>
  13439. <div class="switch_box" v-if="courseDetail.userid == userid">
  13440. <span>允许学生查看内容资料</span>
  13441. <el-switch
  13442. v-model="IsStulook"
  13443. active-text=""
  13444. class="switchCss"
  13445. @change="updateIsStulook"
  13446. ></el-switch>
  13447. </div>
  13448. </div>
  13449. </div>
  13450. <div slot="footer">
  13451. <el-button
  13452. style="background: #409efe; color: #fff"
  13453. @click="juriVisible = false"
  13454. >关 闭</el-button
  13455. >
  13456. </div>
  13457. </el-dialog>
  13458. <el-dialog
  13459. title="查看视频"
  13460. :visible.sync="videoVisible"
  13461. :append-to-body="true"
  13462. width="1000px"
  13463. :before-close="handleClose"
  13464. class="dialog_diy1"
  13465. >
  13466. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13467. <video-player
  13468. class="video-player vjs-custom-skin"
  13469. :playsinline="true"
  13470. :options="videoDetail"
  13471. @play="onPlayerPlay($event)"
  13472. style="width: 100%; height: 100%"
  13473. ></video-player>
  13474. </div>
  13475. <div slot="footer">
  13476. <el-button
  13477. style="background: #409efe; color: #fff"
  13478. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13479. >
  13480. 关 闭</el-button
  13481. >
  13482. </div>
  13483. </el-dialog>
  13484. <el-dialog
  13485. title="查看详情"
  13486. :visible.sync="commentDialogVisible"
  13487. :append-to-body="true"
  13488. width="800px"
  13489. :before-close="handleClose"
  13490. class="dialog_diy"
  13491. >
  13492. <div class="commentTop">
  13493. <div class="studentDetail">
  13494. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13495. <div class="nameAndTime">
  13496. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13497. <div>{{ commentDetail.time }}</div>
  13498. </div>
  13499. <div
  13500. class="returnBtn"
  13501. style="margin-left: auto; width: 80px"
  13502. v-if="
  13503. commentDetail.works &&
  13504. commentDetail.type == 0 &&
  13505. (tType == 1 || tType == 4)
  13506. "
  13507. @click="
  13508. showPicturePaint(
  13509. commentDetail.img ? commentDetail.img : commentDetail.works
  13510. )
  13511. "
  13512. >
  13513. 教师批注
  13514. </div>
  13515. </div>
  13516. <div
  13517. class="worksAnswer"
  13518. v-if="commentDetail.works && commentDetail.type == 2"
  13519. >
  13520. {{ JSON.parse(commentDetail.works)[0].answer }}
  13521. </div>
  13522. <div
  13523. class="worksAnswer"
  13524. v-if="commentDetail.works && commentDetail.type == 1"
  13525. >
  13526. <img
  13527. src="../../assets/teacherWork.png"
  13528. v-if="commentDetail.ateacher"
  13529. class="w_teachert"
  13530. />
  13531. <pdf
  13532. v-if="showPDF"
  13533. :pdfUrl="pptImgUrl"
  13534. style="width: 100%; height: 520px; overflow: auto"
  13535. :class="{ fullStyle: full }"
  13536. ></pdf>
  13537. <iframe
  13538. v-else
  13539. :src="pptImgUrl"
  13540. frameborder="0"
  13541. width="100%"
  13542. height="600"
  13543. :class="{ fullStyle: full }"
  13544. ></iframe>
  13545. </div>
  13546. <div
  13547. class="worksAnswer"
  13548. v-if="commentDetail.works && commentDetail.type == 0"
  13549. >
  13550. <img
  13551. src="../../assets/teacherWork.png"
  13552. v-if="commentDetail.ateacher"
  13553. class="w_teachert"
  13554. style="right: 105px"
  13555. />
  13556. <img
  13557. :src="commentDetail.works"
  13558. alt=""
  13559. @click="previewImg(commentDetail.works)"
  13560. />
  13561. </div>
  13562. <div
  13563. class="worksAnswer"
  13564. v-if="commentDetail.works && commentDetail.type == 3"
  13565. >
  13566. <img
  13567. src="../../assets/teacherWork.png"
  13568. v-if="commentDetail.ateacher"
  13569. class="w_teachert"
  13570. />
  13571. <video-player
  13572. class="video-player vjs-custom-skin"
  13573. :playsinline="true"
  13574. :options="videoDetail"
  13575. @play="onPlayerPlay($event)"
  13576. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13577. ></video-player>
  13578. </div>
  13579. <div
  13580. class="worksAnswer"
  13581. v-if="commentDetail.works && commentDetail.type == 10"
  13582. >
  13583. <div class="cont" v-html="commentDetail.works.text"></div>
  13584. </div>
  13585. <div v-if="commentDetail.works && commentDetail.type == 12">
  13586. <!-- class="worksAnswer codeFileBox" -->
  13587. <!-- @click="downloadFile(commentDetail.works)" -->
  13588. <!-- <img src="../../assets/icon/codeFile.png" />
  13589. <div>点击下载文件</div> -->
  13590. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  13591. </div>
  13592. <div
  13593. class="worksAnswer codeFileBox"
  13594. v-if="commentDetail.works && commentDetail.type == 15"
  13595. @click="
  13596. openCocoPi(
  13597. 57,
  13598. commentIndexJson.toolIndex,
  13599. commentDetail.userid,
  13600. commentDetail.sName
  13601. )
  13602. "
  13603. >
  13604. <img src="../../assets/icon/codeFile.png" />
  13605. <div>点击打开CocoPi</div>
  13606. </div>
  13607. <div
  13608. class="worksAnswer"
  13609. v-if="commentDetail.works && commentDetail.type == 13"
  13610. >
  13611. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13612. </div>
  13613. <div
  13614. class="worksAnswer"
  13615. v-if="commentDetail.works && commentDetail.type == 4"
  13616. >
  13617. <div class="evalCss">
  13618. <div class="nav">请选择星星进行评分</div>
  13619. <div class="middleBox" v-if="eScore.eStar">
  13620. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13621. <div class="nameAndrate">
  13622. <div>{{ e.value }}</div>
  13623. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13624. </div>
  13625. <div v-if="e.detail">{{ e.detail }}</div>
  13626. </div>
  13627. <div class="bz">
  13628. <textarea
  13629. disabled
  13630. rows="4"
  13631. class="pj"
  13632. style="
  13633. padding: 10px 5px;
  13634. width: 70%;
  13635. background: #f7f6f9;
  13636. font-size: 14px;
  13637. text-indent: 10px;
  13638. color: #000;
  13639. "
  13640. cols
  13641. v-model="eScore.eBzText"
  13642. placeholder="请输入评价内容..."
  13643. ></textarea>
  13644. </div>
  13645. </div>
  13646. </div>
  13647. </div>
  13648. <div class="comment">
  13649. <div class="commentList">
  13650. <div class="commentImg">
  13651. <img
  13652. @click="
  13653. isLikes(
  13654. commentDetail.wid,
  13655. userid,
  13656. 1,
  13657. null,
  13658. commentDetail.isLikes,
  13659. commentDetail.sName
  13660. )
  13661. "
  13662. :src="commentDetail.isLikes == true ? likes : noLikes"
  13663. alt=""
  13664. />
  13665. </div>
  13666. <div>{{ commentDetail.likesCount }}</div>
  13667. </div>
  13668. <div class="commentList">
  13669. <div class="commentImg">
  13670. <img src="../../assets/icon/comment/comment.png" alt="" />
  13671. </div>
  13672. <div>{{ commentDetail.commentCount }}</div>
  13673. </div>
  13674. </div>
  13675. <div class="drawPBox" v-if="commentDetail.img">
  13676. <span>教师批注</span>
  13677. <img
  13678. :src="commentDetail.img"
  13679. alt=""
  13680. @click="previewImg(commentDetail.img)"
  13681. />
  13682. <span
  13683. class="deleteImg"
  13684. v-if="tType == 1 || tType == 4"
  13685. @click.stop="deletePicturePaint(commentDetail.wid)"
  13686. style="
  13687. font-size: 14px;
  13688. width: auto !important;
  13689. color: #b4b4b4;
  13690. top: unset;
  13691. bottom: 0;
  13692. border: none;
  13693. padding: 0;
  13694. height: auto !important;
  13695. margin: 0;
  13696. "
  13697. >删除</span
  13698. >
  13699. </div>
  13700. </div>
  13701. <div class="commentBox">
  13702. <div class="pl">评论:</div>
  13703. <div style="max-height: 200px; overflow: auto">
  13704. <div
  13705. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13706. style="padding: 10px 0 0 0"
  13707. >
  13708. <div
  13709. class="studentDetail"
  13710. style="padding-top: 10px"
  13711. v-for="(co, coIndex) in commentDetail.commentJson"
  13712. :key="coIndex"
  13713. >
  13714. <div class="tx" style="min-width: 50px">
  13715. <img src="../../assets/avatar.png" alt="" />
  13716. </div>
  13717. <div class="plPerson">
  13718. <div class="plName">
  13719. <div>{{ co.commentPeople }}</div>
  13720. <div style="margin-left: 5px">
  13721. {{ co.commentTime }}
  13722. </div>
  13723. <div
  13724. class="deleteComment"
  13725. v-if="userid == co.userid"
  13726. @click="deleteComment(co.wid)"
  13727. >
  13728. 删除
  13729. </div>
  13730. </div>
  13731. <div class="plContent">{{ co.commentText }}</div>
  13732. </div>
  13733. </div>
  13734. </div>
  13735. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13736. </div>
  13737. </div>
  13738. <div style="margin-top: 10px">
  13739. <div class="displayBox">
  13740. <div
  13741. style="
  13742. color: #556db4;
  13743. font-size: 14px;
  13744. font-weight: bold;
  13745. padding-bottom: 10px;
  13746. "
  13747. >
  13748. 评价
  13749. </div>
  13750. <div class="easy_comment" v-if="false">
  13751. <div
  13752. v-for="(p, pIndex) in PlTextList"
  13753. :key="pIndex"
  13754. @click="fastText(p, 1)"
  13755. >
  13756. {{ p }}
  13757. </div>
  13758. </div>
  13759. </div>
  13760. <div>
  13761. <textarea
  13762. rows="3"
  13763. class="pj"
  13764. style="padding: 10px 5px"
  13765. cols
  13766. v-model="commentText"
  13767. placeholder="请输入评论"
  13768. ></textarea>
  13769. </div>
  13770. </div>
  13771. <div slot="footer">
  13772. <el-button
  13773. @click="
  13774. (commentDialogVisible = false),
  13775. (commentIndexJson = {}),
  13776. videoDetail.sources && videoDetail.sources[0]
  13777. ? (videoDetail.sources[0].src = '')
  13778. : ''
  13779. "
  13780. >取 消</el-button
  13781. >
  13782. <el-button
  13783. type="primary"
  13784. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13785. >确 定</el-button
  13786. >
  13787. </div>
  13788. </el-dialog>
  13789. <el-dialog
  13790. :visible.sync="fullDialogVisible"
  13791. :append-to-body="true"
  13792. width="100%"
  13793. :before-close="handleClose"
  13794. :show-close="false"
  13795. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13796. >
  13797. <div slot="title" class="header-title">
  13798. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13799. <div v-else style="color: #fff">查看文档</div>
  13800. <div
  13801. @click="
  13802. () => {
  13803. (fullDialogVisible = false),
  13804. changeSplitScreenBehavior({ code: 99 });
  13805. }
  13806. "
  13807. style="
  13808. cursor: pointer;
  13809. position: absolute;
  13810. top: 20px;
  13811. right: 20px;
  13812. color: #fff;
  13813. "
  13814. >
  13815. 退出全屏
  13816. </div>
  13817. </div>
  13818. <div style="height: 100%;position: relative;">
  13819. <el-button
  13820. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13821. size="medium"
  13822. type="primary"
  13823. @click="
  13824. () => {
  13825. (fullDialogVisible = false),
  13826. changeSplitScreenBehavior({ code: 99 });
  13827. }
  13828. "
  13829. style="
  13830. cursor: pointer;
  13831. position: absolute;
  13832. top: 10px;
  13833. right: 20px;
  13834. color: #fff;
  13835. "
  13836. >
  13837. 退出全屏
  13838. </el-button>
  13839. <div
  13840. class="wheel"
  13841. v-if="fulltype == 1"
  13842. style="
  13843. box-shadow: 0 0 6px 1px #f2f2f2;
  13844. height:100%;
  13845. width: 100%;
  13846. background: #f1f1f1;
  13847. "
  13848. >
  13849. <div class="title" style="width: 100%; box-sizing: border-box">
  13850. 查看文档
  13851. </div>
  13852. <el-form class="textBox" style="height: 90%">
  13853. <el-form-item class="textTitle">
  13854. <div style="font-size: 22px">
  13855. {{ fullUrl.name }}
  13856. </div>
  13857. </el-form-item>
  13858. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13859. <div
  13860. v-html="fullUrl.url"
  13861. class="textContent"
  13862. style="height: auto"
  13863. ></div>
  13864. </el-form>
  13865. </div>
  13866. <div
  13867. class="wheel"
  13868. v-else-if="
  13869. (fulltype == 2 || fulltype == 4) &&
  13870. fullUrl.indexOf(
  13871. 'https://view.officeapps.live.com/op/view.aspx?src='
  13872. ) != -1
  13873. "
  13874. style="width: 100%;height:100%; margin: 0 auto"
  13875. >
  13876. <iframe
  13877. style="width: 100%; height: 100%; border: none"
  13878. :src="fullUrl"
  13879. ></iframe>
  13880. </div>
  13881. <iframe
  13882. style="width: 100%; height: 100%; border: none"
  13883. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13884. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  13885. :src="fullUrl"
  13886. ></iframe>
  13887. <iframe
  13888. style="width: 100%; height: 100%; border: none"
  13889. security="restricted"
  13890. v-else-if="(fulltype == 2 || fulltype == 4)"
  13891. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13892. :src="fullUrl"
  13893. ></iframe>
  13894. <pdf
  13895. v-else-if="fulltype == 3"
  13896. :pdfUrl="fullUrl"
  13897. style="width: 100%; height: 100%; overflow: auto"
  13898. ></pdf>
  13899. <iframe
  13900. style="width: 100%; height: 100%; border: none"
  13901. security="restricted"
  13902. v-if="(fulltype == 16)"
  13903. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13904. :src="fullUrl"
  13905. ></iframe>
  13906. </div>
  13907. <!-- <div slot="footer">
  13908. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13909. </div> -->
  13910. </el-dialog>
  13911. <el-dialog
  13912. title="个人评价"
  13913. :visible.sync="studentEvalDialogVisible"
  13914. :append-to-body="true"
  13915. width="800px"
  13916. :before-close="handleClose"
  13917. class="dialog_diy"
  13918. >
  13919. <div class="evalCss">
  13920. <div class="nav">请选择星星进行评分</div>
  13921. <div class="middleBox" v-if="eScore.eStar">
  13922. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13923. <div class="nameAndrate">
  13924. <div>{{ e.value }}</div>
  13925. <el-rate
  13926. v-model="eScore.eStar[eIndex]"
  13927. :disabled="isStar"
  13928. ></el-rate>
  13929. </div>
  13930. <div v-if="e.detail">{{ e.detail }}</div>
  13931. </div>
  13932. <div class="easy_comment" v-if="false">
  13933. <div
  13934. v-for="(p, pIndex) in PlTextList"
  13935. :key="pIndex"
  13936. @click="fastText(p, 2)"
  13937. >
  13938. {{ p }}
  13939. </div>
  13940. </div>
  13941. <div class="bz">
  13942. <textarea
  13943. :disabled="isStar"
  13944. rows="4"
  13945. class="pj"
  13946. style="
  13947. padding: 10px 5px;
  13948. width: 70%;
  13949. background: #f7f6f9;
  13950. font-size: 14px;
  13951. text-indent: 10px;
  13952. "
  13953. cols
  13954. v-model="eScore.eBzText"
  13955. placeholder="请输入评价内容..."
  13956. ></textarea>
  13957. </div>
  13958. </div>
  13959. </div>
  13960. <div slot="footer">
  13961. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13962. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13963. >确 定</el-button
  13964. >
  13965. </div>
  13966. </el-dialog>
  13967. <el-dialog
  13968. title="个人评价"
  13969. :visible.sync="studentEvalDialogVisibleTeacher"
  13970. :append-to-body="true"
  13971. width="800px"
  13972. :before-close="handleClose"
  13973. class="dialog_diy"
  13974. >
  13975. <div class="w_name">
  13976. 学生姓名:<span>{{ sStudent.student }}</span>
  13977. </div>
  13978. <div class="evalCss">
  13979. <div class="nav">请选择星星进行评分</div>
  13980. <div class="middleBox" v-if="eScore.eStar">
  13981. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13982. <div class="nameAndrate">
  13983. <div>{{ e.value }}</div>
  13984. <el-rate
  13985. v-model="eScore.eStar[eIndex]"
  13986. :disabled="isStar"
  13987. ></el-rate>
  13988. </div>
  13989. <div v-if="e.detail">{{ e.detail }}</div>
  13990. </div>
  13991. <div class="easy_comment" v-if="false">
  13992. <div
  13993. v-for="(p, pIndex) in PlTextList"
  13994. :key="pIndex"
  13995. @click="fastText(p, 2)"
  13996. >
  13997. {{ p }}
  13998. </div>
  13999. </div>
  14000. <div class="bz">
  14001. <textarea
  14002. :disabled="isStar"
  14003. rows="4"
  14004. class="pj"
  14005. style="
  14006. padding: 10px 5px;
  14007. width: 70%;
  14008. background: #f7f6f9;
  14009. font-size: 14px;
  14010. text-indent: 10px;
  14011. "
  14012. cols
  14013. v-model="eScore.eBzText"
  14014. placeholder="请输入评价内容..."
  14015. ></textarea>
  14016. </div>
  14017. </div>
  14018. </div>
  14019. <div slot="footer">
  14020. <el-button @click="studentEvalDialogVisibleTeacher = false"
  14021. >取 消</el-button
  14022. >
  14023. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  14024. >确 定</el-button
  14025. >
  14026. </div>
  14027. </el-dialog>
  14028. <el-dialog
  14029. title="选择匹配"
  14030. :visible.sync="dialogVisibleSelect"
  14031. :append-to-body="true"
  14032. width="90%"
  14033. :before-close="handleClose"
  14034. class="dialog_diy dialog_diy3"
  14035. >
  14036. <div v-if="selectJson">
  14037. <div class="select_box2">
  14038. <div class="select_box2_title">
  14039. <div>选择匹配</div>
  14040. <div>请选择对应的答案进行答题!</div>
  14041. </div>
  14042. <div class="select_box2_box">
  14043. <div class="select_box2_img">
  14044. <img
  14045. :src="selectJson.url"
  14046. @click="previewImg(selectJson.url)"
  14047. alt=""
  14048. />
  14049. </div>
  14050. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  14051. <div style="padding-top: 15px">
  14052. <div class="select_answer_title" v-if="isSelect">
  14053. {{ selectAnswer.stu }}
  14054. </div>
  14055. <div class="select_answer_title" v-else>
  14056. 根据题目选择对应答案
  14057. </div>
  14058. <div
  14059. class="select_box2_answer_box"
  14060. v-for="(item2, checkIndex) in selectJson.select"
  14061. :key="checkIndex"
  14062. >
  14063. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  14064. <el-select
  14065. :disabled="isSelect"
  14066. v-model="selectAnswer.answer[checkIndex]"
  14067. placeholder="请选择正确答案"
  14068. >
  14069. <el-option
  14070. v-for="(e, eIndex) in selectJson.select"
  14071. :key="eIndex"
  14072. :label="e"
  14073. :value="eIndex"
  14074. >
  14075. </el-option>
  14076. </el-select>
  14077. </div>
  14078. </div>
  14079. <div
  14080. class="rightAnswerCss"
  14081. v-if="isSelect && (tType == 1 || tType == 4)"
  14082. >
  14083. <div
  14084. v-for="(a, aIndex) in selectJson.answer"
  14085. :key="aIndex"
  14086. class="rightAnswer"
  14087. >
  14088. <div
  14089. v-if="selectAnswer.answer[aIndex] === a"
  14090. style="color: #767de1"
  14091. >
  14092. 回答正确
  14093. </div>
  14094. <div v-else>回答错误</div>
  14095. <div
  14096. style="margin-left: 10px"
  14097. v-if="selectAnswer.answer[aIndex] !== a"
  14098. >
  14099. 正确答案:
  14100. </div>
  14101. <div
  14102. :class="
  14103. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14104. "
  14105. >
  14106. {{ selectJson.select[a] }}
  14107. </div>
  14108. </div>
  14109. </div>
  14110. </div>
  14111. <div class="upAnswerCss">
  14112. <el-button
  14113. type="primary"
  14114. @click="addSelectAnswer"
  14115. v-if="!isSelect"
  14116. >提交答案</el-button
  14117. >
  14118. </div>
  14119. </div>
  14120. </div>
  14121. </div>
  14122. </el-dialog>
  14123. <el-dialog
  14124. title="选择匹配"
  14125. :visible.sync="dialogVisibleSelectTeacher"
  14126. :append-to-body="true"
  14127. width="90%"
  14128. :before-close="handleClose"
  14129. class="dialog_diy dialog_diy3"
  14130. >
  14131. <div v-if="selectJson">
  14132. <div class="w_name">
  14133. 学生姓名:<span>{{ sStudent.student }}</span>
  14134. </div>
  14135. <div class="select_box2">
  14136. <div class="select_box2_title">
  14137. <div>选择匹配</div>
  14138. <div>请选择对应的答案进行答题!</div>
  14139. </div>
  14140. <div class="select_box2_box">
  14141. <div class="select_box2_img">
  14142. <img
  14143. :src="selectJson.url"
  14144. @click="previewImg(selectJson.url)"
  14145. alt=""
  14146. />
  14147. </div>
  14148. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  14149. <div style="padding-top: 15px">
  14150. <div class="select_answer_title" v-if="isSelect">
  14151. {{ selectAnswer.stu }}
  14152. </div>
  14153. <div class="select_answer_title" v-else>
  14154. 根据题目选择对应答案
  14155. </div>
  14156. <div
  14157. class="select_box2_answer_box"
  14158. v-for="(item2, checkIndex) in selectJson.select"
  14159. :key="checkIndex"
  14160. >
  14161. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  14162. <el-select
  14163. :disabled="isSelect"
  14164. v-model="selectAnswer.answer[checkIndex]"
  14165. placeholder="请选择正确答案"
  14166. >
  14167. <el-option
  14168. v-for="(e, eIndex) in selectJson.select"
  14169. :key="eIndex"
  14170. :label="e"
  14171. :value="eIndex"
  14172. >
  14173. </el-option>
  14174. </el-select>
  14175. </div>
  14176. </div>
  14177. <div
  14178. class="rightAnswerCss"
  14179. v-if="isSelect && (tType == 1 || tType == 4)"
  14180. >
  14181. <div
  14182. v-for="(a, aIndex) in selectJson.answer"
  14183. :key="aIndex"
  14184. class="rightAnswer"
  14185. >
  14186. <div
  14187. v-if="selectAnswer.answer[aIndex] === a"
  14188. style="color: #767de1"
  14189. >
  14190. 回答正确
  14191. </div>
  14192. <div v-else>回答错误</div>
  14193. <div
  14194. style="margin-left: 10px"
  14195. v-if="selectAnswer.answer[aIndex] !== a"
  14196. >
  14197. 正确答案:
  14198. </div>
  14199. <div
  14200. :class="
  14201. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14202. "
  14203. >
  14204. {{ selectJson.select[a] }}
  14205. </div>
  14206. </div>
  14207. </div>
  14208. </div>
  14209. <div class="upAnswerCss">
  14210. <el-button
  14211. type="primary"
  14212. @click="addSelectAnswerTeacher"
  14213. v-if="!isSelect"
  14214. >提交答案</el-button
  14215. >
  14216. </div>
  14217. </div>
  14218. </div>
  14219. </div>
  14220. </el-dialog>
  14221. <el-dialog
  14222. title="教师评分"
  14223. :visible.sync="dialogVisibleScore"
  14224. :append-to-body="true"
  14225. width="800px"
  14226. :before-close="handleClose"
  14227. class="dialog_diy"
  14228. >
  14229. <div>
  14230. <div class="studentDetail">
  14231. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14232. <div class="nameAndTime">
  14233. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14234. <div>{{ commentDetail.time }}</div>
  14235. </div>
  14236. </div>
  14237. <div
  14238. class="worksAnswer"
  14239. v-if="commentDetail.works && commentDetail.type == 2"
  14240. >
  14241. {{ JSON.parse(commentDetail.works)[0].answer }}
  14242. </div>
  14243. <div
  14244. class="worksAnswer"
  14245. v-if="commentDetail.works && commentDetail.type == 1"
  14246. >
  14247. <pdf
  14248. v-if="showPDF"
  14249. :pdfUrl="pptImgUrl"
  14250. style="width: 100%; height: 520px; overflow: auto"
  14251. :class="{ fullStyle: full }"
  14252. ></pdf>
  14253. <iframe
  14254. v-else
  14255. :src="pptImgUrl"
  14256. frameborder="0"
  14257. width="100%"
  14258. height="600"
  14259. :class="{ fullStyle: full }"
  14260. ></iframe>
  14261. </div>
  14262. <div
  14263. class="worksAnswer"
  14264. v-if="commentDetail.works && commentDetail.type == 0"
  14265. >
  14266. <img
  14267. :src="commentDetail.works"
  14268. alt=""
  14269. @click="previewImg(commentDetail.works)"
  14270. />
  14271. </div>
  14272. <div
  14273. class="worksAnswer"
  14274. v-if="commentDetail.works && commentDetail.type == 3"
  14275. >
  14276. <video-player
  14277. class="video-player vjs-custom-skin"
  14278. :playsinline="true"
  14279. :options="videoDetail"
  14280. @play="onPlayerPlay($event)"
  14281. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14282. ></video-player>
  14283. </div>
  14284. <div
  14285. class="worksAnswer codeFileBox"
  14286. v-if="commentDetail.works && commentDetail.type == 12"
  14287. @click="downloadFile(commentDetail.works,w.userid)"
  14288. >
  14289. <img src="../../assets/icon/codeFile.png" />
  14290. <div>点击下载文件</div>
  14291. </div>
  14292. <div
  14293. class="worksAnswer codeFileBox"
  14294. v-if="commentDetail.works && commentDetail.type == 15"
  14295. @click="
  14296. openCocoPi(
  14297. 57,
  14298. commentIndexJson.toolIndex,
  14299. commentDetail.userid,
  14300. commentDetail.sName
  14301. )
  14302. "
  14303. >
  14304. <img src="../../assets/icon/codeFile.png" />
  14305. <div>点击打开CocoPi</div>
  14306. </div>
  14307. <div
  14308. class="worksAnswer"
  14309. v-if="commentDetail.works && commentDetail.type == 13"
  14310. >
  14311. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14312. </div>
  14313. <div class="scoreBox">
  14314. <span class="t">请输入分数</span>
  14315. <el-input-number
  14316. :disabled="courseDetail.userid != userid"
  14317. v-model="wScore"
  14318. :controls="false"
  14319. :min="0"
  14320. :max="100"
  14321. ></el-input-number>
  14322. </div>
  14323. <div class="scoreDetailBox">
  14324. <span class="t">评分评论</span>
  14325. <el-input
  14326. type="textarea"
  14327. :rows="5"
  14328. :disabled="courseDetail.userid != userid"
  14329. resize="none"
  14330. v-model="scoreDetail"
  14331. placeholder="请输入对学生的评价"
  14332. >
  14333. </el-input>
  14334. </div>
  14335. </div>
  14336. <span slot="footer" class="dialog-footer">
  14337. <el-button
  14338. @click="
  14339. (dialogVisibleScore = false),
  14340. (commentIndexJson = {}),
  14341. videoDetail.sources && videoDetail.sources[0]
  14342. ? (videoDetail.sources[0].src = '')
  14343. : ''
  14344. "
  14345. >取 消</el-button
  14346. >
  14347. <el-button
  14348. type="primary"
  14349. v-if="courseDetail.userid == userid"
  14350. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  14351. >确 定
  14352. </el-button>
  14353. </span>
  14354. </el-dialog>
  14355. <el-dialog
  14356. title="排序"
  14357. :visible.sync="dialogVisibleSentence"
  14358. :append-to-body="true"
  14359. width="1000px"
  14360. :before-close="handleClose"
  14361. class="dialog_diy dialog_diy3"
  14362. >
  14363. <div>
  14364. <div class="sentenBox">
  14365. <div
  14366. v-for="(st, stIndex) in sentenceList"
  14367. :key="stIndex"
  14368. style="padding-bottom: 20px"
  14369. >
  14370. <div
  14371. style="padding: 15px 0 10px 20px"
  14372. class="sentenceTitle"
  14373. :index="stIndex + 1"
  14374. >
  14375. 题目{{ stIndex + 1 }}:请选择正确顺序
  14376. </div>
  14377. <div class="cardList" v-if="st.chooseSenList">
  14378. <div class="cardBox">
  14379. <div
  14380. v-for="(r, rIndex) in st.chooseSenList"
  14381. :key="rIndex"
  14382. @click="returnCard(r, stIndex, rIndex)"
  14383. >
  14384. <el-tooltip
  14385. class="item"
  14386. effect="light"
  14387. :content="r"
  14388. placement="top"
  14389. v-if="r != '' && r != undefined"
  14390. >
  14391. <div
  14392. :class="{
  14393. isCard: r,
  14394. isChooseCard: r == '' || r == undefined
  14395. }"
  14396. >
  14397. <div>{{ r }}</div>
  14398. </div>
  14399. </el-tooltip>
  14400. <div
  14401. :class="{
  14402. isCard: r,
  14403. isChooseCard: r == '' || r == undefined
  14404. }"
  14405. v-else
  14406. >
  14407. <div>{{ r }}</div>
  14408. </div>
  14409. </div>
  14410. </div>
  14411. </div>
  14412. <div class="cardList" v-if="st.addChangeSen">
  14413. <div class="cardBox">
  14414. <div
  14415. v-for="(s, sIndex) in st.addChangeSen"
  14416. :key="sIndex"
  14417. @click="setRightAnswer(s, stIndex, sIndex)"
  14418. >
  14419. <el-tooltip
  14420. class="item"
  14421. effect="light"
  14422. :content="s"
  14423. placement="top"
  14424. v-if="s != '' && s != undefined"
  14425. >
  14426. <div
  14427. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14428. >
  14429. <div>{{ s }}</div>
  14430. </div>
  14431. </el-tooltip>
  14432. <div
  14433. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14434. v-else
  14435. >
  14436. <div>{{ s }}</div>
  14437. </div>
  14438. </div>
  14439. </div>
  14440. </div>
  14441. </div>
  14442. </div>
  14443. </div>
  14444. <span slot="footer" class="dialog-footer">
  14445. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14446. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14447. </span>
  14448. </el-dialog>
  14449. <el-dialog
  14450. title="排序"
  14451. :visible.sync="dialogVisibleSentenceTeacher"
  14452. :append-to-body="true"
  14453. width="1000px"
  14454. :before-close="handleClose"
  14455. class="dialog_diy dialog_diy3"
  14456. >
  14457. <div>
  14458. <div class="w_name">
  14459. 学生姓名:<span>{{ sStudent.student }}</span>
  14460. </div>
  14461. <div class="sentenBox">
  14462. <div
  14463. v-for="(st, stIndex) in sentenceList"
  14464. :key="stIndex"
  14465. style="padding-bottom: 20px"
  14466. >
  14467. <div
  14468. style="padding: 15px 0 10px 20px"
  14469. class="sentenceTitle"
  14470. :index="stIndex + 1"
  14471. >
  14472. 题目{{ stIndex + 1 }}:请选择正确顺序
  14473. </div>
  14474. <div class="cardList" v-if="st.chooseSenList">
  14475. <div class="cardBox">
  14476. <div
  14477. v-for="(r, rIndex) in st.chooseSenList"
  14478. :key="rIndex"
  14479. @click="returnCard(r, stIndex, rIndex)"
  14480. >
  14481. <el-tooltip
  14482. class="item"
  14483. effect="light"
  14484. :content="r"
  14485. placement="top"
  14486. v-if="r != '' && r != undefined"
  14487. >
  14488. <div
  14489. :class="{
  14490. isCard: r,
  14491. isChooseCard: r == '' || r == undefined
  14492. }"
  14493. >
  14494. <div>{{ r }}</div>
  14495. </div>
  14496. </el-tooltip>
  14497. <div
  14498. :class="{
  14499. isCard: r,
  14500. isChooseCard: r == '' || r == undefined
  14501. }"
  14502. v-else
  14503. >
  14504. <div>{{ r }}</div>
  14505. </div>
  14506. </div>
  14507. </div>
  14508. </div>
  14509. <div class="cardList" v-if="st.addChangeSen">
  14510. <div class="cardBox">
  14511. <div
  14512. v-for="(s, sIndex) in st.addChangeSen"
  14513. :key="sIndex"
  14514. @click="setRightAnswer(s, stIndex, sIndex)"
  14515. >
  14516. <el-tooltip
  14517. class="item"
  14518. effect="light"
  14519. :content="s"
  14520. placement="top"
  14521. v-if="s != '' && s != undefined"
  14522. >
  14523. <div
  14524. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14525. >
  14526. <div>{{ s }}</div>
  14527. </div>
  14528. </el-tooltip>
  14529. <div
  14530. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14531. v-else
  14532. >
  14533. <div>{{ s }}</div>
  14534. </div>
  14535. </div>
  14536. </div>
  14537. </div>
  14538. </div>
  14539. </div>
  14540. </div>
  14541. <span slot="footer" class="dialog-footer">
  14542. <el-button @click="dialogVisibleSentenceTeacher = false"
  14543. >取 消</el-button
  14544. >
  14545. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14546. </span>
  14547. </el-dialog>
  14548. <el-dialog
  14549. title="排序"
  14550. :visible.sync="dialogVisibleSentence1"
  14551. :append-to-body="true"
  14552. width="1000px"
  14553. :before-close="handleClose"
  14554. class="dialog_diy dialog_diy3"
  14555. >
  14556. <div>
  14557. <div class="sentenBox">
  14558. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14559. {{ sentenceList1.stuName }}的作业
  14560. </div>
  14561. <div
  14562. v-for="(st, stIndex) in sentenceList1"
  14563. :key="stIndex"
  14564. style="padding-bottom: 20px"
  14565. >
  14566. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14567. 第{{ stIndex + 1 }}题
  14568. </div>
  14569. <div class="isWrong">
  14570. <div class="cardList1" v-if="st.chooseSenList">
  14571. <div class="cardBox">
  14572. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14573. <el-tooltip
  14574. class="item"
  14575. effect="light"
  14576. :content="s"
  14577. placement="top"
  14578. >
  14579. <div class="isCard">
  14580. <div>{{ s }}</div>
  14581. </div>
  14582. </el-tooltip>
  14583. </div>
  14584. </div>
  14585. <div class="cardAnswerBox">
  14586. 组成句子:{{ st.chooseSenList.join(" ") }}
  14587. </div>
  14588. </div>
  14589. <div v-if="tType == 2" class="isTj">
  14590. <div class="isTjImg">
  14591. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14592. </div>
  14593. <div>已提交</div>
  14594. </div>
  14595. <div
  14596. class="answerRight isTj"
  14597. v-if="
  14598. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14599. (tType == 1 || tType == 4)
  14600. "
  14601. >
  14602. <div class="isTjImg">
  14603. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14604. </div>
  14605. <div>回答正确</div>
  14606. </div>
  14607. <div
  14608. class="answerRight isTj"
  14609. v-if="
  14610. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14611. (tType == 1 || tType == 4)
  14612. "
  14613. >
  14614. <div class="isTjImg">
  14615. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14616. </div>
  14617. <div>回答错误</div>
  14618. </div>
  14619. </div>
  14620. <div
  14621. v-if="
  14622. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14623. (tType == 1 || tType == 4)
  14624. "
  14625. >
  14626. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14627. <div
  14628. class="cardList"
  14629. v-if="st.rightAnswer"
  14630. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14631. >
  14632. <div class="cardBox">
  14633. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14634. <el-tooltip
  14635. class="item"
  14636. effect="light"
  14637. :content="r"
  14638. placement="top"
  14639. >
  14640. <div class="isCard1">
  14641. <div>{{ r }}</div>
  14642. </div>
  14643. </el-tooltip>
  14644. </div>
  14645. </div>
  14646. <div class="cardAnswerBox">
  14647. 组成句子:{{ st.rightAnswer.join(" ") }}
  14648. </div>
  14649. </div>
  14650. </div>
  14651. </div>
  14652. </div>
  14653. </div>
  14654. <span slot="footer" class="dialog-footer">
  14655. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14656. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14657. >确 定</el-button
  14658. >
  14659. </span>
  14660. </el-dialog>
  14661. <el-dialog
  14662. title="教师提交作业"
  14663. :visible.sync="dialogVisibleWorks"
  14664. :append-to-body="true"
  14665. width="500px"
  14666. :before-close="handleClose"
  14667. class="dialog_change"
  14668. >
  14669. <div class="marginT">
  14670. <div class="w_name">
  14671. 学生姓名:<span>{{ sStudent.student }}</span>
  14672. </div>
  14673. <div>上传文件</div>
  14674. <div style="display: flex; gap: 10px">
  14675. <div
  14676. class="chapter_add"
  14677. @click="addImg($event)"
  14678. v-if="studyJuri[0].cover.length == 0"
  14679. >
  14680. <div class="up_photo">
  14681. <img src="../../assets/icon/uploadImg.png" alt />
  14682. </div>
  14683. <!-- <input
  14684. type="file"
  14685. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14686. style="display: none"
  14687. @change="beforeUpload1($event, 1)"
  14688. /> -->
  14689. <input
  14690. type="file"
  14691. accept="*"
  14692. style="display: none"
  14693. @change="beforeUpload1($event, 1)"
  14694. />
  14695. <!-- <input
  14696. type="file"
  14697. accept="image/*"
  14698. capture="camera"
  14699. style="display: none"
  14700. @change="beforeUpload1($event, 1)"
  14701. /> -->
  14702. </div>
  14703. <div
  14704. class="chapter_add"
  14705. @click="addImg($event)"
  14706. v-if="studyJuri[0].cover.length == 0"
  14707. >
  14708. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14709. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14710. </div>
  14711. <input
  14712. type="file"
  14713. accept="image/*"
  14714. capture="camera"
  14715. style="display: none"
  14716. @change="beforeUpload1($event, 1)"
  14717. />
  14718. </div>
  14719. </div>
  14720. <!-- capture="camera" -->
  14721. <div
  14722. class="chapter_add"
  14723. style="
  14724. display: flex;
  14725. width: 100%;
  14726. flex-direction: row;
  14727. flex-wrap: wrap;
  14728. justify-content: flex-start;
  14729. padding: 15px 0;
  14730. "
  14731. v-if="studyJuri[0].cover.length > 0"
  14732. >
  14733. <div class="upCover">
  14734. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14735. <img :src="word" alt v-else-if="fileType == 1" />
  14736. <img :src="video" alt v-else-if="fileType == 2" />
  14737. <img :src="word2" alt v-else-if="fileType == 3" />
  14738. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14739. <div class="deleteWord" @click="clean(1)">
  14740. <img src="../../assets/icon/deleteWorks.png" alt />
  14741. </div>
  14742. </div>
  14743. </div>
  14744. </div>
  14745. <div
  14746. class="upload_send"
  14747. @click="addCourseWorksTeacher(taskCount)"
  14748. v-if="!proVisible"
  14749. >
  14750. 提交
  14751. </div>
  14752. </el-dialog>
  14753. <ImgDraw
  14754. :drawShow="drawShow"
  14755. @closeDraw="closeDraw"
  14756. @addImgDraw="addImgDraw"
  14757. :bg="bg"
  14758. ></ImgDraw>
  14759. <el-dialog
  14760. title="表格"
  14761. :visible.sync="dialogVisibleTable"
  14762. :append-to-body="true"
  14763. width="95%"
  14764. :before-close="handleClose"
  14765. class="dialog_diy"
  14766. >
  14767. <el-form>
  14768. <div
  14769. style="
  14770. display: flex;
  14771. align-items: center;
  14772. justify-content: space-between;
  14773. "
  14774. >
  14775. <span>表格内容</span>
  14776. <el-button type="primary" size="small" @click="returnTableText"
  14777. >还原模板</el-button
  14778. >
  14779. </div>
  14780. <Table
  14781. v-model="tableJson.text"
  14782. @change="change"
  14783. v-if="dialogVisibleTable"
  14784. ></Table>
  14785. </el-form>
  14786. <span slot="footer" class="dialog-footer">
  14787. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14788. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14789. </span>
  14790. </el-dialog>
  14791. <el-dialog
  14792. title="表格"
  14793. :visible.sync="dialogVisibleTableTeacher"
  14794. :append-to-body="true"
  14795. width="95%"
  14796. :before-close="handleClose"
  14797. class="dialog_diy"
  14798. >
  14799. <el-form>
  14800. <div class="w_name">
  14801. 学生姓名:<span>{{ sStudent.student }}</span>
  14802. </div>
  14803. <div>表格内容</div>
  14804. <Table
  14805. v-model="tableJson.text"
  14806. @change="change"
  14807. v-if="dialogVisibleTableTeacher"
  14808. ></Table>
  14809. </el-form>
  14810. <span slot="footer" class="dialog-footer">
  14811. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14812. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14813. </span>
  14814. </el-dialog>
  14815. <el-dialog
  14816. title="文档"
  14817. :visible.sync="dialogVisibleWord"
  14818. :append-to-body="true"
  14819. width="95%"
  14820. :before-close="handleClose"
  14821. class="dialog_diy"
  14822. >
  14823. <el-form>
  14824. <div
  14825. style="
  14826. display: flex;
  14827. align-items: center;
  14828. justify-content: space-between;
  14829. "
  14830. >
  14831. <span>文档内容</span>
  14832. <el-button type="primary" size="small" @click="returnWordText"
  14833. >还原模板</el-button
  14834. >
  14835. </div>
  14836. <editor-bar
  14837. v-model="wordJson.text"
  14838. v-if="dialogVisibleWord"
  14839. ></editor-bar>
  14840. </el-form>
  14841. <span slot="footer" class="dialog-footer">
  14842. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14843. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14844. </span>
  14845. </el-dialog>
  14846. <el-dialog
  14847. title="文档"
  14848. :visible.sync="dialogVisibleWordTeacher"
  14849. :append-to-body="true"
  14850. width="95%"
  14851. :before-close="handleClose"
  14852. class="dialog_diy"
  14853. >
  14854. <el-form>
  14855. <div class="w_name">
  14856. 学生姓名:<span>{{ sStudent.student }}</span>
  14857. </div>
  14858. <div>文档内容</div>
  14859. <editor-bar
  14860. v-model="wordJson.text"
  14861. v-if="dialogVisibleWordTeacher"
  14862. ></editor-bar>
  14863. </el-form>
  14864. <span slot="footer" class="dialog-footer">
  14865. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14866. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14867. </span>
  14868. </el-dialog>
  14869. <el-dialog
  14870. title="表格"
  14871. :visible.sync="dialogVisibleTable2"
  14872. :append-to-body="true"
  14873. width="95%"
  14874. :before-close="handleClose"
  14875. class="dialog_diy"
  14876. >
  14877. <el-form>
  14878. <div class="cont" v-html="tableJson.text"></div>
  14879. </el-form>
  14880. <span slot="footer" class="dialog-footer">
  14881. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14882. </span>
  14883. </el-dialog>
  14884. <el-dialog
  14885. title="文档"
  14886. :visible.sync="dialogVisibleTable3"
  14887. :append-to-body="true"
  14888. width="95%"
  14889. :before-close="handleClose"
  14890. class="dialog_diy"
  14891. >
  14892. <el-form>
  14893. <div class="cont" v-html="tableJson.text"></div>
  14894. </el-form>
  14895. <span slot="footer" class="dialog-footer">
  14896. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14897. </span>
  14898. </el-dialog>
  14899. <el-dialog
  14900. title="分组设置"
  14901. :visible.sync="dialogVisibleGroup"
  14902. :append-to-body="true"
  14903. width="95%"
  14904. :before-close="handleClose"
  14905. class="dialog_diy"
  14906. >
  14907. <div v-if="dialogVisibleGroup">
  14908. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14909. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14910. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14911. </div>
  14912. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14913. @click="lockChair">
  14914. 锁定位置
  14915. </div>
  14916. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14917. 解锁位置
  14918. </div> -->
  14919. <div class="group_switch">
  14920. <span>开放选座</span>
  14921. <el-switch
  14922. v-model="islock"
  14923. active-text=""
  14924. class="switchCss"
  14925. @change="lockChair"
  14926. ></el-switch>
  14927. </div>
  14928. <div
  14929. type="primary"
  14930. @click="updateGroup"
  14931. class="returnBtn"
  14932. style="background-color: #225bc7"
  14933. >
  14934. 分组设置
  14935. </div>
  14936. </div>
  14937. <div>
  14938. <div
  14939. class="g_d_box"
  14940. v-if="groupJson.group && groupStudent[toolindex]"
  14941. >
  14942. <div
  14943. class="g_d_group"
  14944. v-for="(g, gindex) in groupJson.group"
  14945. :key="gindex"
  14946. >
  14947. <div class="g_d_group_chair">
  14948. <div v-if="groupJson.number > 1">
  14949. <span
  14950. :class="{
  14951. isChair:
  14952. groupStudent[toolindex][gindex] &&
  14953. groupStudent[toolindex][gindex][0],
  14954. updateChair:
  14955. courseDetail.userid == userid &&
  14956. groupStudent[toolindex][gindex] &&
  14957. groupStudent[toolindex][gindex][0] &&
  14958. groupJson.islock == 2
  14959. }"
  14960. ><span
  14961. class="updateChairBtn"
  14962. @click="
  14963. updateGroupChair(
  14964. groupStudent[toolindex][gindex] &&
  14965. groupStudent[toolindex][gindex][0]
  14966. )
  14967. "
  14968. >修改</span
  14969. ></span
  14970. ><span>{{
  14971. groupStudent[toolindex][gindex] &&
  14972. groupStudent[toolindex][gindex][0]
  14973. ? groupStudent[toolindex][gindex] &&
  14974. groupStudent[toolindex][gindex][0].name
  14975. : "空位置"
  14976. }}</span>
  14977. </div>
  14978. <div v-if="groupJson.number > 4">
  14979. <span
  14980. :class="{
  14981. isChair:
  14982. groupStudent[toolindex][gindex] &&
  14983. groupStudent[toolindex][gindex][4],
  14984. updateChair:
  14985. courseDetail.userid == userid &&
  14986. groupStudent[toolindex][gindex] &&
  14987. groupStudent[toolindex][gindex][4] &&
  14988. groupJson.islock == 2
  14989. }"
  14990. ><span
  14991. class="updateChairBtn"
  14992. @click="
  14993. updateGroupChair(
  14994. groupStudent[toolindex][gindex] &&
  14995. groupStudent[toolindex][gindex][4]
  14996. )
  14997. "
  14998. >修改</span
  14999. ></span
  15000. ><span>{{
  15001. groupStudent[toolindex][gindex] &&
  15002. groupStudent[toolindex][gindex][4]
  15003. ? groupStudent[toolindex][gindex] &&
  15004. groupStudent[toolindex][gindex][4].name
  15005. : "空位置"
  15006. }}</span>
  15007. </div>
  15008. <div v-if="groupJson.number > 8">
  15009. <span
  15010. :class="{
  15011. isChair:
  15012. groupStudent[toolindex][gindex] &&
  15013. groupStudent[toolindex][gindex][8],
  15014. updateChair:
  15015. courseDetail.userid == userid &&
  15016. groupStudent[toolindex][gindex] &&
  15017. groupStudent[toolindex][gindex][8] &&
  15018. groupJson.islock == 2
  15019. }"
  15020. ><span
  15021. class="updateChairBtn"
  15022. @click="
  15023. updateGroupChair(
  15024. groupStudent[toolindex][gindex] &&
  15025. groupStudent[toolindex][gindex][8]
  15026. )
  15027. "
  15028. >修改</span
  15029. ></span
  15030. ><span>{{
  15031. groupStudent[toolindex][gindex] &&
  15032. groupStudent[toolindex][gindex][8]
  15033. ? groupStudent[toolindex][gindex] &&
  15034. groupStudent[toolindex][gindex][8].name
  15035. : "空位置"
  15036. }}</span>
  15037. </div>
  15038. </div>
  15039. <div class="g_d_group_tableBox">
  15040. <div class="g_d_group_chair2">
  15041. <div v-if="groupJson.number > 2">
  15042. <span
  15043. :class="{
  15044. isChair:
  15045. groupStudent[toolindex][gindex] &&
  15046. groupStudent[toolindex][gindex][2],
  15047. updateChair:
  15048. courseDetail.userid == userid &&
  15049. groupStudent[toolindex][gindex] &&
  15050. groupStudent[toolindex][gindex][2] &&
  15051. groupJson.islock == 2
  15052. }"
  15053. ><span
  15054. class="updateChairBtn"
  15055. @click="
  15056. updateGroupChair(
  15057. groupStudent[toolindex][gindex] &&
  15058. groupStudent[toolindex][gindex][2]
  15059. )
  15060. "
  15061. >修改</span
  15062. ></span
  15063. ><span>{{
  15064. groupStudent[toolindex][gindex] &&
  15065. groupStudent[toolindex][gindex][2]
  15066. ? groupStudent[toolindex][gindex] &&
  15067. groupStudent[toolindex][gindex][2].name
  15068. : "空位置"
  15069. }}</span>
  15070. </div>
  15071. <div v-if="groupJson.number > 6">
  15072. <span
  15073. :class="{
  15074. isChair:
  15075. groupStudent[toolindex][gindex] &&
  15076. groupStudent[toolindex][gindex][6],
  15077. updateChair:
  15078. courseDetail.userid == userid &&
  15079. groupStudent[toolindex][gindex] &&
  15080. groupStudent[toolindex][gindex][6] &&
  15081. groupJson.islock == 2
  15082. }"
  15083. ><span
  15084. class="updateChairBtn"
  15085. @click="
  15086. updateGroupChair(
  15087. groupStudent[toolindex][gindex] &&
  15088. groupStudent[toolindex][gindex][6]
  15089. )
  15090. "
  15091. >修改</span
  15092. ></span
  15093. ><span>{{
  15094. groupStudent[toolindex][gindex] &&
  15095. groupStudent[toolindex][gindex][6]
  15096. ? groupStudent[toolindex][gindex] &&
  15097. groupStudent[toolindex][gindex][6].name
  15098. : "空位置"
  15099. }}</span>
  15100. </div>
  15101. </div>
  15102. <div class="g_d_group_table">
  15103. <div>
  15104. {{ g.name }}
  15105. </div>
  15106. <div>
  15107. <div
  15108. v-if="
  15109. courseDetail.userid == userid && groupJson.islock == 2
  15110. "
  15111. @click="deleteGroupChair(gindex)"
  15112. >
  15113. 移除组员
  15114. </div>
  15115. <div
  15116. @click="selectGroup(gindex)"
  15117. v-else-if="
  15118. groupStudentUid[toolindex] &&
  15119. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  15120. -1
  15121. "
  15122. >
  15123. 加入分组
  15124. </div>
  15125. <div
  15126. @click="
  15127. exitGroup(
  15128. groupStudent[toolindex][gindex] &&
  15129. groupStudent[toolindex][gindex][
  15130. groupStudentUid[toolindex][gindex].indexOf(userid)
  15131. ].id
  15132. )
  15133. "
  15134. v-else-if="
  15135. groupStudentUid[toolindex] &&
  15136. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  15137. -1
  15138. "
  15139. >
  15140. 退出分组
  15141. </div>
  15142. </div>
  15143. </div>
  15144. <div class="g_d_group_chair2">
  15145. <div v-if="groupJson.number > 3">
  15146. <span
  15147. :class="{
  15148. isChair:
  15149. groupStudent[toolindex][gindex] &&
  15150. groupStudent[toolindex][gindex][3],
  15151. updateChair:
  15152. courseDetail.userid == userid &&
  15153. groupStudent[toolindex][gindex] &&
  15154. groupStudent[toolindex][gindex][3] &&
  15155. groupJson.islock == 2
  15156. }"
  15157. ><span
  15158. class="updateChairBtn"
  15159. @click="
  15160. updateGroupChair(
  15161. groupStudent[toolindex][gindex] &&
  15162. groupStudent[toolindex][gindex][3]
  15163. )
  15164. "
  15165. >修改</span
  15166. ></span
  15167. ><span>{{
  15168. groupStudent[toolindex][gindex] &&
  15169. groupStudent[toolindex][gindex][3]
  15170. ? groupStudent[toolindex][gindex] &&
  15171. groupStudent[toolindex][gindex][3].name
  15172. : "空位置"
  15173. }}</span>
  15174. </div>
  15175. <div v-if="groupJson.number > 7">
  15176. <span
  15177. :class="{
  15178. isChair:
  15179. groupStudent[toolindex][gindex] &&
  15180. groupStudent[toolindex][gindex][7],
  15181. updateChair:
  15182. courseDetail.userid == userid &&
  15183. groupStudent[toolindex][gindex] &&
  15184. groupStudent[toolindex][gindex][7] &&
  15185. groupJson.islock == 2
  15186. }"
  15187. ><span
  15188. class="updateChairBtn"
  15189. @click="
  15190. updateGroupChair(
  15191. groupStudent[toolindex][gindex] &&
  15192. groupStudent[toolindex][gindex][7]
  15193. )
  15194. "
  15195. >修改</span
  15196. ></span
  15197. ><span>{{
  15198. groupStudent[toolindex][gindex] &&
  15199. groupStudent[toolindex][gindex][7]
  15200. ? groupStudent[toolindex][gindex] &&
  15201. groupStudent[toolindex][gindex][7].name
  15202. : "空位置"
  15203. }}</span>
  15204. </div>
  15205. </div>
  15206. </div>
  15207. <div class="g_d_group_chair">
  15208. <div v-if="groupJson.number > 1">
  15209. <span
  15210. :class="{
  15211. isChair:
  15212. groupStudent[toolindex][gindex] &&
  15213. groupStudent[toolindex][gindex][1],
  15214. updateChair:
  15215. courseDetail.userid == userid &&
  15216. groupStudent[toolindex][gindex] &&
  15217. groupStudent[toolindex][gindex][1] &&
  15218. groupJson.islock == 2
  15219. }"
  15220. ><span
  15221. class="updateChairBtn"
  15222. @click="
  15223. updateGroupChair(
  15224. groupStudent[toolindex][gindex] &&
  15225. groupStudent[toolindex][gindex][1]
  15226. )
  15227. "
  15228. >修改</span
  15229. ></span
  15230. ><span>{{
  15231. groupStudent[toolindex][gindex] &&
  15232. groupStudent[toolindex][gindex][1]
  15233. ? groupStudent[toolindex][gindex] &&
  15234. groupStudent[toolindex][gindex][1].name
  15235. : "空位置"
  15236. }}</span>
  15237. </div>
  15238. <div v-if="groupJson.number > 5">
  15239. <span
  15240. :class="{
  15241. isChair:
  15242. groupStudent[toolindex][gindex] &&
  15243. groupStudent[toolindex][gindex][5],
  15244. updateChair:
  15245. courseDetail.userid == userid &&
  15246. groupStudent[toolindex][gindex] &&
  15247. groupStudent[toolindex][gindex][5] &&
  15248. groupJson.islock == 2
  15249. }"
  15250. ><span
  15251. class="updateChairBtn"
  15252. @click="
  15253. updateGroupChair(
  15254. groupStudent[toolindex][gindex] &&
  15255. groupStudent[toolindex][gindex][5]
  15256. )
  15257. "
  15258. >修改</span
  15259. ></span
  15260. ><span>{{
  15261. groupStudent[toolindex][gindex] &&
  15262. groupStudent[toolindex][gindex][5]
  15263. ? groupStudent[toolindex][gindex] &&
  15264. groupStudent[toolindex][gindex][5].name
  15265. : "空位置"
  15266. }}</span>
  15267. </div>
  15268. <div v-if="groupJson.number > 9">
  15269. <span
  15270. :class="{
  15271. isChair:
  15272. groupStudent[toolindex][gindex] &&
  15273. groupStudent[toolindex][gindex][9],
  15274. updateChair:
  15275. courseDetail.userid == userid &&
  15276. groupStudent[toolindex][gindex] &&
  15277. groupStudent[toolindex][gindex][9] &&
  15278. groupJson.islock == 2
  15279. }"
  15280. ><span
  15281. class="updateChairBtn"
  15282. @click="
  15283. updateGroupChair(
  15284. groupStudent[toolindex][gindex] &&
  15285. groupStudent[toolindex][gindex][9]
  15286. )
  15287. "
  15288. >修改</span
  15289. ></span
  15290. ><span>{{
  15291. groupStudent[toolindex][gindex] &&
  15292. groupStudent[toolindex][gindex][9]
  15293. ? groupStudent[toolindex][gindex] &&
  15294. groupStudent[toolindex][gindex][9].name
  15295. : "空位置"
  15296. }}</span>
  15297. </div>
  15298. </div>
  15299. </div>
  15300. </div>
  15301. </div>
  15302. </div>
  15303. <span slot="footer" class="dialog-footer">
  15304. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15305. </span>
  15306. </el-dialog>
  15307. <el-dialog
  15308. title="分组设置"
  15309. :visible.sync="dialogVisibleGroup2"
  15310. :append-to-body="true"
  15311. width="650px"
  15312. :before-close="handleClose"
  15313. class="dialog_diy"
  15314. >
  15315. <div class="groupBox">
  15316. <div v-if="groupJson2.group" class="groupContent">
  15317. <div class="groupTitle">请设置小组数量及名称</div>
  15318. <div
  15319. v-for="(item, index) in groupJson2.group"
  15320. :key="index"
  15321. class="groupName"
  15322. >
  15323. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15324. <el-input
  15325. v-model="item.name"
  15326. placeholder="请输入名称..."
  15327. style="width: 250px"
  15328. ></el-input>
  15329. <!-- <div class="groupBtn">
  15330. <el-button type="primary" size="small" @click="addGroup(index)">
  15331. 添加</el-button>
  15332. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15333. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15334. </div> -->
  15335. </div>
  15336. </div>
  15337. <div class="groupContent">
  15338. <div class="groupTitle">请设置每组人数</div>
  15339. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15340. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15341. <el-input
  15342. v-model="groupJson2.number"
  15343. style="width: 150px"
  15344. placeholder="请输入2-10的数字"
  15345. @change="numberPan"
  15346. ></el-input>
  15347. </div>
  15348. </div>
  15349. <span slot="footer" class="dialog-footer">
  15350. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15351. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15352. </span>
  15353. </el-dialog>
  15354. <el-dialog
  15355. title="作业提交"
  15356. :visible.sync="dialogVisibleGroupWork"
  15357. :append-to-body="true"
  15358. width="500px"
  15359. :before-close="handleClose"
  15360. class="dialog_change"
  15361. >
  15362. <div class="marginT">
  15363. <div>上传文件</div>
  15364. <div
  15365. class="chapter_add"
  15366. @click="addImg($event)"
  15367. v-if="studyJuri[0].cover.length == 0"
  15368. >
  15369. <div class="up_photo">
  15370. <img src="../../assets/icon/uploadImg.png" alt />
  15371. </div>
  15372. <!-- <input
  15373. type="file"
  15374. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15375. style="display: none"
  15376. @change="beforeUpload1($event, 1)"
  15377. /> -->
  15378. <input
  15379. type="file"
  15380. accept="*"
  15381. style="display: none"
  15382. @change="beforeUpload1($event, 1)"
  15383. />
  15384. </div>
  15385. <!-- capture="camera" -->
  15386. <div
  15387. class="chapter_add"
  15388. style="
  15389. display: flex;
  15390. width: 100%;
  15391. flex-direction: row;
  15392. flex-wrap: wrap;
  15393. justify-content: flex-start;
  15394. padding: 15px 0;
  15395. "
  15396. v-if="studyJuri[0].cover.length > 0"
  15397. >
  15398. <div class="upCover">
  15399. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15400. <img :src="word" alt v-else-if="fileType == 1" />
  15401. <img :src="video" alt v-else-if="fileType == 2" />
  15402. <img :src="word2" alt v-else-if="fileType == 3" />
  15403. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15404. <div class="deleteWord" @click="clean(1)">
  15405. <img src="../../assets/icon/deleteWorks.png" alt />
  15406. </div>
  15407. </div>
  15408. </div>
  15409. </div>
  15410. <div
  15411. class="upload_send"
  15412. @click="addCourseWorks2(taskCount)"
  15413. v-if="!proVisible"
  15414. >
  15415. 提交
  15416. </div>
  15417. </el-dialog>
  15418. <el-dialog
  15419. title="修改分组"
  15420. :visible.sync="dialogVisibleUpdateGroup"
  15421. :append-to-body="true"
  15422. width="350px"
  15423. :before-close="handleClose"
  15424. class="dialog_diy"
  15425. >
  15426. <div>
  15427. <h2>
  15428. {{ this.updateGroupUser.name }}
  15429. </h2>
  15430. <div style="color: rgb(171 171 171); margin-top: 10px">
  15431. 请选择要进入的分组
  15432. </div>
  15433. <el-radio-group v-model="checkChair">
  15434. <el-radio
  15435. style="display: block; margin-top: 20px"
  15436. v-for="(item, index) in updateGroupArray"
  15437. :label="item.label"
  15438. :key="index"
  15439. >{{ item.name }}</el-radio
  15440. >
  15441. </el-radio-group>
  15442. </div>
  15443. <span slot="footer" class="dialog-footer">
  15444. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15445. <el-button type="primary" @click="updateChair">确定</el-button>
  15446. </span>
  15447. </el-dialog>
  15448. <el-dialog
  15449. title="移除组员"
  15450. :visible.sync="dialogVisibleDeleteGroup"
  15451. :append-to-body="true"
  15452. width="350px"
  15453. :before-close="handleClose"
  15454. class="dialog_diy"
  15455. >
  15456. <div>
  15457. <h2>
  15458. {{ this.deleteGroupArray.name }}
  15459. </h2>
  15460. <div style="color: rgb(171 171 171); margin-top: 10px">
  15461. 请选择要删除的组员
  15462. </div>
  15463. <el-checkbox-group v-model="checkDeleteGroup">
  15464. <el-checkbox
  15465. style="display: flex; margin-top: 20px"
  15466. v-for="(item, index) in deleteGroupUser"
  15467. :label="item.userid"
  15468. :key="index"
  15469. >{{ item.name }}</el-checkbox
  15470. >
  15471. </el-checkbox-group>
  15472. </div>
  15473. <span slot="footer" class="dialog-footer">
  15474. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15475. <el-button type="primary" @click="deleteChair">确定</el-button>
  15476. </span>
  15477. </el-dialog>
  15478. <el-dialog
  15479. title="批量上传"
  15480. :visible.sync="dialogVisiblePl"
  15481. :append-to-body="true"
  15482. width="700px"
  15483. :before-close="handleClose"
  15484. class="dialog_change"
  15485. >
  15486. <div class="marginT">
  15487. <div class="plworkBox">
  15488. <div
  15489. class="chapter_add"
  15490. style="
  15491. display: flex;
  15492. width: 150px;
  15493. flex-direction: row;
  15494. flex-wrap: wrap;
  15495. justify-content: flex-start;
  15496. margin: 0 10px 10px 0;
  15497. "
  15498. v-for="(item, index) in plworkFile"
  15499. :key="index"
  15500. >
  15501. <div class="upCover2">
  15502. <img
  15503. :src="item.url"
  15504. alt
  15505. v-if="item.fileType == 1"
  15506. @click="previewImg(item.url)"
  15507. />
  15508. <img :src="word" alt v-else-if="item.fileType == 4" />
  15509. <img :src="video" alt v-else />
  15510. <!-- <span class="picName">{{ item.name }}</span> -->
  15511. <!-- <el-input
  15512. v-model="item.username"
  15513. placeholder="请输入学生名字"
  15514. style="margin-top: 10px"
  15515. ></el-input> -->
  15516. <div
  15517. class="pl_select_box"
  15518. @click="
  15519. getUpdateMore(true, checkUpload(), item.username, index)
  15520. "
  15521. >
  15522. {{ getSName(item.username) }}
  15523. </div>
  15524. <!-- <el-select
  15525. style="margin-top: 10px"
  15526. v-model="item.username"
  15527. filterable
  15528. allow-create
  15529. placeholder="请选择学生"
  15530. >
  15531. <el-option
  15532. v-for="item1 in checkUpload()"
  15533. :key="item1.userid"
  15534. :label="item1.name ? item1.name : item1.username"
  15535. :value="item1.userid"
  15536. >
  15537. </el-option>
  15538. </el-select> -->
  15539. <div class="deleteWord" @click="clean2(index)">
  15540. <img src="../../assets/icon/deleteWorks.png" alt />
  15541. </div>
  15542. </div>
  15543. </div>
  15544. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15545. <div class="up_photo2">
  15546. <img src="../../assets/icon/plwork.png" alt />
  15547. <span>点击上传文件</span>
  15548. </div>
  15549. <input
  15550. type="file"
  15551. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15552. multiple="multiple"
  15553. style="display: none"
  15554. @change="beforeUpload3($event, 6)"
  15555. />
  15556. </div>
  15557. </div>
  15558. </div>
  15559. <!-- capture="camera" -->
  15560. <div
  15561. class="upload_send"
  15562. @click="addCourseWorksPl(taskCount)"
  15563. v-if="!proVisible2"
  15564. >
  15565. 提交
  15566. </div>
  15567. </el-dialog>
  15568. <el-dialog
  15569. title="修改名称"
  15570. :visible.sync="dialogVisibleSname"
  15571. width="500px"
  15572. :before-close="handleClose"
  15573. class="dialog_diy"
  15574. center
  15575. >
  15576. <div
  15577. style="
  15578. text-align: center;
  15579. display: flex;
  15580. align-items: center;
  15581. justify-content: center;
  15582. "
  15583. >
  15584. <span class="tian1">名称</span>
  15585. <div
  15586. class="pl_select_box"
  15587. style="margin-left: 10px; width: 200px"
  15588. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15589. >
  15590. {{ getSName(worksSName) }}
  15591. </div>
  15592. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15593. placeholder="请选择学生">
  15594. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15595. :value="item.userid">
  15596. </el-option>
  15597. </el-select> -->
  15598. <!-- <el-input
  15599. v-model="worksSName"
  15600. style="width: 250px; margin: 15px 0px"
  15601. ></el-input> -->
  15602. </div>
  15603. <span slot="footer" class="dialog-footer">
  15604. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15605. <el-button type="primary" @click="updateName">确 定</el-button>
  15606. </span>
  15607. </el-dialog>
  15608. <el-dialog
  15609. title="英语写作"
  15610. :visible.sync="engDialogVisible"
  15611. :append-to-body="true"
  15612. width="800px"
  15613. :before-close="handleClose"
  15614. class="dialog_diy"
  15615. >
  15616. <onlineWrite
  15617. v-if="engDialogVisible"
  15618. :englishList="englishList"
  15619. :myAnswerList1="myAnswerList1"
  15620. ref="engJson"
  15621. ></onlineWrite>
  15622. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15623. <el-button @click="engDialogVisible = false">取 消</el-button>
  15624. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15625. </span>
  15626. </el-dialog>
  15627. <el-dialog
  15628. title="英语写作"
  15629. :visible.sync="engUpdateDialogVisible"
  15630. :append-to-body="true"
  15631. width="800px"
  15632. :before-close="handleClose"
  15633. class="dialog_diy fullStyle"
  15634. >
  15635. <div class="engUpBox">
  15636. <div class="engUpTop">
  15637. <div class="engTitle">
  15638. <div>作文题目:</div>
  15639. <div>{{ englishList1.engTitle }}</div>
  15640. </div>
  15641. <div class="engText">
  15642. <div>作文内容:</div>
  15643. <div
  15644. class="cont"
  15645. v-html="englishList1.englishText"
  15646. style="white-space: pre-line;"
  15647. @click="checkImg(getImgList(englishList1.englishText))"
  15648. ></div>
  15649. </div>
  15650. </div>
  15651. <div
  15652. class="correctBox"
  15653. :style="{ height: `calc(100% - ${topHeight}px)` }"
  15654. >
  15655. <div class="oldBox">
  15656. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15657. <div class="oldText">
  15658. <div class="detailBox">
  15659. <div class="oldDetail">
  15660. <div>标题:</div>
  15661. <div>{{ oldEnglishJson.engTitle }}</div>
  15662. </div>
  15663. <div class="oldDetail1">
  15664. <div>正文:</div>
  15665. <div
  15666. v-html="oldEnglishJson.engText"
  15667. style="white-space: pre-line;"
  15668. ></div>
  15669. </div>
  15670. <div
  15671. class="oldDetail"
  15672. v-if="
  15673. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  15674. "
  15675. >
  15676. <div>图片:</div>
  15677. <div class="oldImg">
  15678. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  15679. </div>
  15680. </div>
  15681. </div>
  15682. </div>
  15683. </div>
  15684. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15685. <div class="oldMes" style="background: #aacaff;">
  15686. {{ userMes[0].username }}
  15687. </div>
  15688. <div class="oldText">
  15689. <div class="detailBox" style="position: relative;">
  15690. <div class="oldDetail">
  15691. <div>标题:</div>
  15692. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15693. <div v-else v-html="newEnglishList.engTitle"></div>
  15694. </div>
  15695. <div class="oldDetail">
  15696. <div>正文:</div>
  15697. <el-input
  15698. v-if="greyType"
  15699. type="textarea"
  15700. :rows="10"
  15701. resize="none"
  15702. v-model="newEnglishList.engText"
  15703. @input="gx"
  15704. />
  15705. <correctText
  15706. :newText="newEnglishList.engText"
  15707. :oldData="oldEnglishJson.engText"
  15708. />
  15709. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15710. </div>
  15711. <div style="position: absolute;bottom: -25px;">
  15712. 注:红色划线字为删除,绿色背景白色字为新添加.
  15713. </div>
  15714. <el-button
  15715. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15716. class="correctCss"
  15717. :style="{ right: greyType == false ? '0' : '80px' }"
  15718. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15719. >
  15720. <el-button
  15721. @click="aiCorrect(newEnglishList.engText, 1)"
  15722. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15723. v-if="!greyType"
  15724. >AI批注</el-button
  15725. >
  15726. <el-button
  15727. @click="addCorrect"
  15728. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15729. v-if="greyType"
  15730. >确定</el-button
  15731. >
  15732. </div>
  15733. </div>
  15734. </div>
  15735. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15736. <div
  15737. class="oldMes"
  15738. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15739. v-if="newEnglishList1.length > 0"
  15740. >
  15741. <div
  15742. v-if="isNoUserid"
  15743. class="allName"
  15744. :style="{
  15745. minWidth: `calc(100% / ${engListLength})`,
  15746. background: newEngIndex == -1 ? '#aacaff' : ''
  15747. }"
  15748. @click="setEngText(-1)"
  15749. style="background: #aacaff;"
  15750. >
  15751. {{ userMes[0].username }}
  15752. </div>
  15753. <div
  15754. v-for="(item, index) in newEnglishList1"
  15755. :key="index"
  15756. class="allName"
  15757. :style="{
  15758. minWidth: `calc(100% / ${engListLength})`,
  15759. background: index == newEngIndex ? '#aacaff' : ''
  15760. }"
  15761. @click="setEngText(index)"
  15762. >
  15763. {{ item.username }}
  15764. </div>
  15765. </div>
  15766. <div class="oldMes" style="background: #aacaff;" v-else>
  15767. {{ userMes[0].username }}
  15768. </div>
  15769. <div
  15770. class="oldText"
  15771. v-if="
  15772. newEngIndex == -1 &&
  15773. isNoUserid == true &&
  15774. newEnglishList1.length
  15775. "
  15776. >
  15777. <div class="detailBox" style="position: relative;">
  15778. <div class="oldDetail">
  15779. <div>标题:</div>
  15780. <el-input
  15781. v-if="greyType"
  15782. v-model="oldEnglishJson1.engTitle"
  15783. />
  15784. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15785. </div>
  15786. <div class="oldDetail">
  15787. <div>正文:</div>
  15788. <el-input
  15789. v-if="greyType"
  15790. type="textarea"
  15791. :rows="10"
  15792. resize="none"
  15793. v-model="oldEnglishJson1.engText"
  15794. @input="gx"
  15795. />
  15796. <correctText
  15797. v-else
  15798. :newText="oldEnglishJson1.engText"
  15799. :oldData="oldEnglishJson.engText"
  15800. />
  15801. </div>
  15802. <div style="position: absolute;bottom: -25px;">
  15803. 注:红色划线字为删除,绿色背景白色字为新添加.
  15804. </div>
  15805. <el-button
  15806. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15807. class="correctCss"
  15808. :style="{ right: greyType == false ? '0' : '80px' }"
  15809. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15810. >
  15811. <el-button
  15812. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15813. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15814. v-if="!greyType"
  15815. >AI批注</el-button
  15816. >
  15817. <el-button
  15818. @click="addCorrect"
  15819. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15820. v-if="greyType"
  15821. >确定</el-button
  15822. >
  15823. </div>
  15824. </div>
  15825. <div class="oldText" v-else-if="newEngIndex == -1">
  15826. <div class="detailBox" style="position: relative;">
  15827. <div class="oldDetail">
  15828. <div>标题:</div>
  15829. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15830. <div v-else v-html="newEnglishList.engTitle"></div>
  15831. </div>
  15832. <div class="oldDetail">
  15833. <div>正文:</div>
  15834. <el-input
  15835. v-if="greyType"
  15836. type="textarea"
  15837. :rows="10"
  15838. resize="none"
  15839. v-model="newEnglishList.engText"
  15840. @input="gx"
  15841. />
  15842. <correctText
  15843. v-else
  15844. :newText="newEnglishList.engText"
  15845. :oldData="oldEnglishJson.engText"
  15846. />
  15847. </div>
  15848. <div style="position: absolute;bottom: -25px;">
  15849. 注:红色划线字为删除,绿色背景白色字为新添加.
  15850. </div>
  15851. <el-button
  15852. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15853. class="correctCss"
  15854. :style="{ right: greyType == false ? '0' : '80px' }"
  15855. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15856. >
  15857. <el-button
  15858. @click="aiCorrect(newEnglishList.engText, 3)"
  15859. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15860. v-if="!greyType"
  15861. >AI批注</el-button
  15862. >
  15863. <el-button
  15864. @click="addCorrect"
  15865. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15866. v-if="greyType"
  15867. >确定</el-button
  15868. >
  15869. </div>
  15870. </div>
  15871. <div
  15872. class="oldText"
  15873. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15874. >
  15875. <div class="detailBox" style="position: relative;">
  15876. <div class="oldDetail">
  15877. <div>标题:</div>
  15878. <div
  15879. v-if="
  15880. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15881. "
  15882. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15883. ></div>
  15884. <div v-else>
  15885. <el-input
  15886. v-if="greyType"
  15887. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15888. />
  15889. <div
  15890. v-else
  15891. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15892. ></div>
  15893. </div>
  15894. </div>
  15895. <div class="oldDetail">
  15896. <div>正文:</div>
  15897. <correctText
  15898. v-if="
  15899. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15900. "
  15901. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15902. :oldData="oldEnglishJson.engText"
  15903. />
  15904. <div v-else>
  15905. <el-input
  15906. v-if="greyType"
  15907. type="textarea"
  15908. :rows="10"
  15909. resize="none"
  15910. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15911. @input="gx"
  15912. />
  15913. <correctText
  15914. v-else
  15915. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15916. :oldData="oldEnglishJson.engText"
  15917. />
  15918. </div>
  15919. </div>
  15920. <div style="position: absolute;bottom: -25px;">
  15921. 注:红色划线字为删除,绿色背景白色字为新添加.
  15922. </div>
  15923. <el-button
  15924. @click="
  15925. isUpdateCorrect(
  15926. newEnglishList1[newEngIndex].cWork.engText,
  15927. 4
  15928. )
  15929. "
  15930. class="correctCss"
  15931. :style="{ right: greyType == false ? '0' : '80px' }"
  15932. v-if="
  15933. !greyType &&
  15934. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15935. "
  15936. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15937. >
  15938. <el-button
  15939. @click="
  15940. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15941. "
  15942. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15943. v-if="
  15944. !greyType &&
  15945. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15946. "
  15947. >AI批注</el-button
  15948. >
  15949. <el-button
  15950. @click="addCorrect"
  15951. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15952. v-if="greyType"
  15953. >确定</el-button
  15954. >
  15955. </div>
  15956. </div>
  15957. </div>
  15958. </div>
  15959. </div>
  15960. <span slot="footer" class="dialog-footer">
  15961. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15962. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15963. </span>
  15964. </el-dialog>
  15965. <englishEva
  15966. :evaEngJson="evaEngJson"
  15967. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15968. :uid="userid"
  15969. :tType="tType"
  15970. :courseDetail="courseDetail"
  15971. ></englishEva>
  15972. <interVideo
  15973. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15974. :videoJson="videoJson"
  15975. :userid="userid"
  15976. :id="id"
  15977. :courseType="courseType"
  15978. :taskCount="taskCount"
  15979. :toolindex="toolindex"
  15980. :videoType="videoType"
  15981. ></interVideo>
  15982. <UpdateMore
  15983. :dialogVisibleMember.sync="dialogVisibleMember"
  15984. :cList="uploadStudentJuri"
  15985. :userid="userid"
  15986. :searchTN="worksSName2"
  15987. @setPlname="setPlname"
  15988. ></UpdateMore>
  15989. <!-- <wordCloud
  15990. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15991. :data="wordCloudData"
  15992. ></wordCloud> -->
  15993. <el-dialog
  15994. title="词云"
  15995. :visible.sync="dialogVisibleWordCloud"
  15996. width="30%"
  15997. class="dialog_diy"
  15998. :before-close="handleClose">
  15999. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  16000. </el-dialog>
  16001. <el-dialog
  16002. title="挑人"
  16003. :visible.sync="dialogVisiblePickPeople"
  16004. width="650px"
  16005. :before-close="handleClose"
  16006. class="dialog_diy"
  16007. center
  16008. >
  16009. <div class="pick_box">
  16010. <div
  16011. class="noWorksName"
  16012. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  16013. v-for="(item, index) in uploadStudentJuri"
  16014. :key="index"
  16015. @click="pickStudent(item)"
  16016. >
  16017. {{ item.name }}
  16018. </div>
  16019. </div>
  16020. </el-dialog>
  16021. <EnglishVoice
  16022. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  16023. :englishVoiceJson="englishVoiceJson"
  16024. :userid="userid"
  16025. :id="id"
  16026. :courseType="courseType"
  16027. :taskCount="taskCount"
  16028. :toolindex="toolindex"
  16029. @selectSWorks="selectSWorks"
  16030. @selectStudent="selectStudent"
  16031. :englishVoiceJsonWork="englishVoiceJsonWork"
  16032. ></EnglishVoice>
  16033. <checkEnglishVoice
  16034. :englishVoiceJson="englishVoiceJson"
  16035. :userid="userid"
  16036. :dialogVisibleENScore.sync="dialogVisibleENScore"
  16037. :commentDetail="commentDetail"
  16038. :courseDetail="courseDetail"
  16039. :wScore="wScore"
  16040. :scoreDetail="scoreDetail"
  16041. @selectSWorks="selectSWorks"
  16042. @selectStudent="selectStudent"
  16043. ></checkEnglishVoice>
  16044. <el-dialog
  16045. title="教师评分"
  16046. :visible.sync="markScoreVisible"
  16047. :append-to-body="true"
  16048. width="1000px"
  16049. :fullscreen="markfullscreen"
  16050. :before-close="markScorehandleClose"
  16051. class="markScore_diy"
  16052. >
  16053. <div slot="title">
  16054. <div class="markScore_diyTit">
  16055. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  16056. <div @click="markFullScreenBtn" style="cursor: pointer;">
  16057. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  16058. </div>
  16059. </div>
  16060. </div>
  16061. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  16062. <!-- @updateDocSco="updateDocSco" -->
  16063. <markDialog
  16064. :key="markScoreVisible.toString()"
  16065. :uid="markScoreUid"
  16066. :toolIndex="markScoretoolIndex"
  16067. :stage="courseType"
  16068. :task="taskCount"
  16069. :taskDetail="
  16070. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  16071. "
  16072. :tool="toolListS"
  16073. :languageSetting="languageSetting"
  16074. :scoTit="markScoreTit"
  16075. :tType="tType"
  16076. :sIsOpen="sIsOpen"
  16077. :markScoreworksStudent="markScoreworksStudent"
  16078. :markScoreVisible="markScoreVisible"
  16079. ></markDialog>
  16080. </el-dialog>
  16081. <!-- 查看Txt,md等文件 -->
  16082. <el-dialog
  16083. title="文件预览"
  16084. :visible.sync="dialogVisibleTxt"
  16085. width="50%"
  16086. :before-close="handleCloseTxt"
  16087. class="dialog_diy"
  16088. :class="{ fullStyle: full }"
  16089. >
  16090. <div slot="title" class="header-title">
  16091. <div style="color: #fff">文件预览</div>
  16092. <div style="position: absolute; top: 19px; right: 50px">
  16093. <img
  16094. src="../../assets/full.png"
  16095. style="height: 16px; cursor: pointer"
  16096. alt=""
  16097. @click="fullTools"
  16098. />
  16099. </div>
  16100. </div>
  16101. <div>{{ TxtMd }}</div>
  16102. </el-dialog>
  16103. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  16104. <choseWorksDetailDialog
  16105. ref="choseWorksDetailDialogRef"
  16106. :worksStudentData="worksStudent"
  16107. :noWorksSData="noWorksS"
  16108. :chapInfoListData="chapInfoList"
  16109. :courseType="courseType"
  16110. :taskCount="taskCount"
  16111. :tType="tType"
  16112. :sIsOpen="sIsOpen"
  16113. :courseDetail="courseDetail"
  16114. :groupStudent2="groupStudent"
  16115. :groupStudentUid2="groupStudentUid"
  16116. :oid="oid"
  16117. :org="org"
  16118. @getCourseDetail="getCourseDetail"
  16119. @selectSLook="selectSLook"
  16120. @selectSWorks="selectSWorks"
  16121. @selectStudent="selectStudent"
  16122. @deleteWorks="deleteWorks"
  16123. @openTools="openTools"
  16124. @openWord="openWord"
  16125. @openScore="openScore"
  16126. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  16127. />
  16128. <el-dialog
  16129. :visible.sync="confirmOpenDig"
  16130. width="500px"
  16131. :modal="false"
  16132. class="confirmOpenDigCss dialog_diyCopy"
  16133. :before-close="handleClose">
  16134. <div style="display: flex;align-items: center;">
  16135. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  16136. <span>“{{ courseDetail.title }}”开课啦</span>
  16137. </div>
  16138. <div style="margin: 20px 0 35px;">
  16139. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  16140. <div>要认真听讲哦~</div>
  16141. </div>
  16142. <div style="text-align: center;">
  16143. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  16144. </div>
  16145. </el-dialog>
  16146. <appStoreC ref="appStoreC"
  16147. :sStudent="sStudent"
  16148. :courseType="courseType"
  16149. :taskCount="taskCount"
  16150. :toolindex="toolindex"
  16151. @selectSWorks="selectSWorks"
  16152. @selectStudent="selectStudent"
  16153. ></appStoreC>
  16154. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  16155. </div>
  16156. </template>
  16157. <script>
  16158. import "../../common/aws-sdk-2.235.1.min.js";
  16159. // import pdf from "../components/pdf3";
  16160. import pdf from "../components/vpdf";
  16161. import AskStatic from "../components/askStatic";
  16162. import AskStatic2 from "../components/askStatic2";
  16163. import AnswerData2 from "../components/answerData2";
  16164. import AnswerData from "../components/answerData";
  16165. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  16166. import EditorBar from "../tools/wangEnduit.vue";
  16167. import Table from "../tools/table.vue";
  16168. import Time from "../tools/time.vue";
  16169. import Mind from "../tools/jsmind.vue";
  16170. import Sunburst from "../tools/sunburst";
  16171. import SeeBoard from "../tools/seeBoard";
  16172. import * as imageConversion from "image-conversion";
  16173. import Audio from "../components/audio.vue";
  16174. import ImgDraw from "../tools/imgDraw/imgDraw";
  16175. import { Empty } from "element-ui";
  16176. import RecordRTC from "recordrtc";
  16177. import interVideo from "../interVideo/index.vue";
  16178. import UpdateMore from "../updateMore/updateMore.vue";
  16179. import wordCloud from "../wordCloud/index.vue";
  16180. import axios from "axios";
  16181. import JSZip from "jszip";
  16182. import FileSaver from "file-saver";
  16183. import onlineWrite from "./commpont/onlineWrite";
  16184. import englishEva from "../components/englishEva";
  16185. import * as Diff from "diff";
  16186. import EnglishVoice from "../EnglishVoice2/index.vue";
  16187. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  16188. import correctText from "../components/correctText.vue";
  16189. import scoreItem from "../scoreList/scoreItem.vue";
  16190. import scoreZong from "../scoreZong/index.vue";
  16191. import classRoomHelper from "../classRoomHelper/index.vue";
  16192. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  16193. import markScore from "./commpont/markScore";
  16194. import markDialog from "./commpont/markDialog";
  16195. import evaTable from "./commpont/evaTable";
  16196. import { v4 as uuidv4 } from "uuid";
  16197. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  16198. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  16199. import appStoreC from "../components/appStoreC.vue";
  16200. import cocoFlowDia from "../components/cocoFlowDia.vue";
  16201. import katex from 'katex'
  16202. import 'katex/dist/katex.min.css'
  16203. import choseWordCloud from '../components/choseWordCloud.vue'
  16204. import { myMixin } from "@/mixins/mixin.js"
  16205. import { tools as toolsList } from "@/common/tools2.js";
  16206. var OpenCC = require("opencc-js");
  16207. let converter = OpenCC.Converter({
  16208. from: "hk",
  16209. to: "cn"
  16210. });
  16211. const getFile = url => {
  16212. return new Promise((resolve, reject) => {
  16213. var credentials = {
  16214. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16215. secretAccessKey: "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"
  16216. }; //秘钥形式的登录上传
  16217. window.AWS.config.update(credentials);
  16218. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16219. let url2 = url;
  16220. let _url2 = "";
  16221. if (
  16222. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16223. ) {
  16224. _url2 = url2.split(
  16225. "https://view.officeapps.live.com/op/view.aspx?src="
  16226. )[1];
  16227. } else {
  16228. _url2 = url2;
  16229. }
  16230. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  16231. let name = decodeURIComponent(
  16232. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16233. );
  16234. var params = {
  16235. Bucket: "ccrb",
  16236. Key: name
  16237. };
  16238. s3.getObject(params, function(err, data) {
  16239. if (err) {
  16240. console.log(err, err.stack);
  16241. resolve({ data: 1 });
  16242. } else {
  16243. resolve({ data: data.Body });
  16244. console.log(data);
  16245. } // sxuccessful response
  16246. });
  16247. // axios({
  16248. // method: "get",
  16249. // url,
  16250. // responseType: "blob",
  16251. // })
  16252. // .then((data) => {
  16253. // resolve({ data: data.data });
  16254. // })
  16255. // .catch((error) => {
  16256. // resolve({ data: 1 });
  16257. // // reject(error.toString());
  16258. // });
  16259. });
  16260. };
  16261. export default {
  16262. mixins: [ myMixin ],
  16263. components: {
  16264. choseWordCloud,
  16265. EditorBar,
  16266. Time,
  16267. pdf,
  16268. AskStatic,
  16269. AskStatic2,
  16270. Mind,
  16271. Sunburst,
  16272. SeeBoard,
  16273. AnswerData2,
  16274. AnswerData,
  16275. sortToolWorkShow,
  16276. Audio,
  16277. ImgDraw,
  16278. Table,
  16279. interVideo,
  16280. UpdateMore,
  16281. wordCloud,
  16282. onlineWrite,
  16283. englishEva,
  16284. EnglishVoice,
  16285. checkEnglishVoice,
  16286. correctText,
  16287. scoreItem,
  16288. classRoomHelper,
  16289. scoreZong,
  16290. markScore,
  16291. markDialog,
  16292. evaTable,
  16293. statisticalAnalysis,
  16294. choseWorksDetailDialog,
  16295. appStoreC,
  16296. cocoFlowDia,
  16297. studentClassRoomHelper
  16298. },
  16299. data() {
  16300. return {
  16301. startTime: "",
  16302. // 是否允许学生查看内容资料 2不可以 1可以
  16303. IsStulook:false,
  16304. homeWorkLoading:false,
  16305. wordCloudKey: 0,
  16306. bg: null,
  16307. drawShow: false,
  16308. dialogVisible: false,
  16309. dialogVisiblePl: false,
  16310. commentDialogVisible: false,
  16311. dialogVisibleMember: false,
  16312. dialogVisibleWordCloud: false,
  16313. videoVisible: false,
  16314. isStar: false,
  16315. studentEvalDialogVisible: false,
  16316. studentEvalDialogVisibleTeacher: false,
  16317. dialogVisibleSelect: false,
  16318. dialogVisibleSelectTeacher: false,
  16319. dialogVisibleScore: false,
  16320. dialogVisibleENScore: false,
  16321. dialogVisibleSentence: false,
  16322. dialogVisibleSentenceTeacher: false,
  16323. dialogVisibleSentence1: false,
  16324. dialogVisibleWorks: false,
  16325. dialogVisibleTable: false,
  16326. dialogVisibleTableTeacher: false,
  16327. dialogVisibleWord: false,
  16328. dialogVisibleWordTeacher: false,
  16329. dialogVisibleTable2: false,
  16330. dialogVisibleTable3: false,
  16331. dialogVisibleGroupWork: false,
  16332. dialogVisibleUpdateGroup: false,
  16333. dialogVisibleDeleteGroup: false,
  16334. dialogVisibleSname: false,
  16335. dialogVisibleVideo: false,
  16336. dialogVisiblePickPeople: false,
  16337. engDialogVisible: false,
  16338. engUpdateDialogVisible: false,
  16339. engEvaDialogVisible: false,
  16340. evaEngJson: {
  16341. teacherJson: {},
  16342. studentJson: {},
  16343. message: {}
  16344. },
  16345. isNoUserid: false,
  16346. engListLength: 0,
  16347. engWid: "",
  16348. newEnglishList: {
  16349. engTitle: "",
  16350. engText: ""
  16351. },
  16352. toolsList: toolsList,
  16353. newEnglishList1: [],
  16354. oldEnglishJson: {},
  16355. oldEnglishJson1: {},
  16356. englishList1: {},
  16357. englishList: {},
  16358. myAnswerList1: {},
  16359. topHeight: 0,
  16360. newEngIndex: -1,
  16361. englishToolIndex: 0,
  16362. userMes: {},
  16363. englishToolIndex: 0,
  16364. worksSName: "",
  16365. classJuri: [],
  16366. uploadStudentJuri: [],
  16367. uploadCid: "",
  16368. snameWid: "",
  16369. sStudent: {},
  16370. sTool: "",
  16371. bzText: "",
  16372. commentDetail: [],
  16373. selectAnswer: [],
  16374. videoDetail: {},
  16375. selectJson: {},
  16376. englishList: {},
  16377. topHeight: 0,
  16378. eScore: { eBzText: "", eStar: [] },
  16379. id: this.$route.query.courseId,
  16380. userid: this.$route.query.userid,
  16381. classId: this.$route.query.cid,
  16382. role: this.$route.query.role,
  16383. // courseTypeLine: this.$route.query.type,
  16384. oid: this.$route.query.oid,
  16385. org: this.$route.query.org,
  16386. tType: this.$route.query.tType,
  16387. courseType: this.$route.query.type,
  16388. screenType: this.$route.query.screenType,
  16389. tcid2: this.$route.query.tcid,
  16390. tcid: "",
  16391. pptImgUrl: "",
  16392. pptImgUrl1: "",
  16393. commentText: "",
  16394. full: false,
  16395. sIsOpen: false, //允许学生查看所有作业
  16396. IsLookOpen: false, //禁止学生查看所有阶段
  16397. IsFollow: false, //开启跟随模式
  16398. pzDialog: false,
  16399. contentDialog: false,
  16400. mlDialog: false,
  16401. type: 1,
  16402. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  16403. sentenceList1: [],
  16404. tableJson: [],
  16405. tableJsonO: [],
  16406. wordJson: [],
  16407. wordJsonO: [],
  16408. vedio: [],
  16409. text: [],
  16410. textList: [],
  16411. line: [],
  16412. lineList: [],
  16413. chapTools: [],
  16414. chapToolList: [],
  16415. file: [],
  16416. fileC: [],
  16417. vedioTime: [],
  16418. upToolImg: "",
  16419. preTime: 0,
  16420. rateList: {
  16421. ca: 0
  16422. },
  16423. rateParams: [],
  16424. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  16425. studyJuri: [
  16426. {
  16427. content: "",
  16428. cover: [],
  16429. upVedio: [],
  16430. upFile: []
  16431. }
  16432. ],
  16433. isClose: 0,
  16434. plworkFile: [],
  16435. mr: require("../../assets/vedioPic.png"),
  16436. word: require("../../assets/icon/isWord.png"),
  16437. word2: require("../../assets/icon/word2.png"),
  16438. video: require("../../assets/icon/isVideo.png"),
  16439. noLikes: require("../../assets/icon/comment/noLikes.png"),
  16440. likes: require("../../assets/icon/comment/likes.png"),
  16441. scoreImg: require("../../assets/score.png"),
  16442. courseDetail: {},
  16443. reply: "",
  16444. isSelect: false,
  16445. chapInfo: [],
  16446. chapInfoList: [],
  16447. taskCount: 0,
  16448. imgList: [],
  16449. noImgList: [],
  16450. pzList: [],
  16451. timeWorkList: [],
  16452. PlTextList: [
  16453. "Excellent!",
  16454. "nice!",
  16455. "很有创意!",
  16456. "还不错哦~",
  16457. "继续努力哦~"
  16458. ],
  16459. isClickNav: "",
  16460. navId: "",
  16461. playerOptions: {
  16462. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16463. autoplay: false, //如果true,浏览器准备好时开始回放。
  16464. muted: false, // 默认情况下将会消除任何音频。
  16465. loop: false, // 导致视频一结束就重新开始。
  16466. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16467. language: "zh-CN",
  16468. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16469. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16470. sources: [
  16471. {
  16472. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16473. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16474. }
  16475. ],
  16476. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16477. // poster: dataRes.imgUrl, //你的封面地址
  16478. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16479. controlBar: {
  16480. timeDivider: true, //当前时间和持续时间的分隔符
  16481. durationDisplay: true, //显示持续时间
  16482. remainingTimeDisplay: false, //是否显示剩余时间功能
  16483. fullscreenToggle: true //全屏按钮
  16484. }
  16485. },
  16486. playerOptions1: {
  16487. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16488. autoplay: false, //如果true,浏览器准备好时开始回放。
  16489. muted: false, // 默认情况下将会消除任何音频。
  16490. loop: false, // 导致视频一结束就重新开始。
  16491. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16492. language: "zh-CN",
  16493. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16494. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16495. sources: [
  16496. {
  16497. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16498. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16499. }
  16500. ],
  16501. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16502. // poster: dataRes.imgUrl, //你的封面地址
  16503. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16504. controlBar: {
  16505. timeDivider: true, //当前时间和持续时间的分隔符
  16506. durationDisplay: true, //显示持续时间
  16507. remainingTimeDisplay: false, //是否显示剩余时间功能
  16508. fullscreenToggle: true //全屏按钮
  16509. }
  16510. },
  16511. playerO: {},
  16512. noneBtnImg: false,
  16513. proVisible: false,
  16514. proVisible2: false,
  16515. progress: 0,
  16516. isFinishSize: 0,
  16517. isAllSize: 0,
  16518. questionAnswer: "",
  16519. answerQ: "", //问答标题
  16520. rateJson: [],
  16521. wbCount: 0,
  16522. wordCount: 0,
  16523. mindCount: 0,
  16524. askCount: 0,
  16525. noteCount: 0,
  16526. mindNetWorkCount: 0,
  16527. libraryCount: 0,
  16528. workCount: 0,
  16529. timeCount: 0,
  16530. answerCount: 0,
  16531. trainCount: 0,
  16532. evalCount: 0,
  16533. dialogImageUrl: "",
  16534. pictureDialog: false,
  16535. toolTypeList: [],
  16536. dialogVisible1: false,
  16537. dialogVisible2: false,
  16538. dialogVisible3: false,
  16539. dialogVisible6: false,
  16540. dialogVisible4: false,
  16541. isNoHomeWork: false,
  16542. dialogVisible5: false,
  16543. dialogVisible5Teacher: false,
  16544. dialogVisibleChoice: false,
  16545. dialogVisibleChoiceTeacher: false,
  16546. answerDialogVisible: false,
  16547. answerDialogVisibleTeacher: false,
  16548. juriVisible: false,
  16549. timeDialogVisible: false,
  16550. replyDialogVisible: false,
  16551. toolDialogVisible: false,
  16552. replyIndex: 0,
  16553. replyPid: "",
  16554. radio: [],
  16555. isAsk: false,
  16556. askJson: {
  16557. askCount: 1,
  16558. askTitle: "",
  16559. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16560. },
  16561. testJson: {},
  16562. videoType: 0,
  16563. checkJson: [],
  16564. askList: [],
  16565. answerList: [],
  16566. navList: [],
  16567. addPzDialog: false,
  16568. pzConText: "",
  16569. worksStudent: [],
  16570. isCloseList: [],
  16571. workStudent: [],
  16572. groupStudent: [],
  16573. groupStudentUid: [],
  16574. noWorksS: [],
  16575. isWorksS: [],
  16576. noWorksStudent: [],
  16577. toolindex: 0,
  16578. toolDetailIndex: null,
  16579. groupIndex: 0,
  16580. workTypeB: false,
  16581. workTypeC: false,
  16582. isAnswer: false,
  16583. isHovered: false,
  16584. isHovered1: false,
  16585. isHovered2: false,
  16586. commentTagShow: 0,
  16587. timer: null,
  16588. timer2: null,
  16589. opertimer: null,
  16590. showType: '',
  16591. fileType: 0,
  16592. showPDF: false,
  16593. noteName: "",
  16594. evaJuri: [],
  16595. evalua: "",
  16596. eTitle: "",
  16597. eName: "",
  16598. eJson: {},
  16599. fid: "", //一级
  16600. sid: "", //二级
  16601. tid: "", //二级
  16602. typeMode: 1,
  16603. eJSONNum: 0,
  16604. Etype: 1,
  16605. data: {
  16606. meta: {
  16607. name: "example",
  16608. author: "dd@163.com",
  16609. version: "0.2"
  16610. },
  16611. format: "node_array",
  16612. data: [{ id: "root", isroot: true, topic: "" }]
  16613. },
  16614. fullDialogVisible: false,
  16615. fulltype: "",
  16616. fullUrl: "",
  16617. commentIndexJson: {},
  16618. Stbodywidth: 0,
  16619. ispzType: 0,
  16620. pzType: 1,
  16621. wScore: 0,
  16622. scoreDetail: "",
  16623. videoStart: false,
  16624. recorder: null,
  16625. groupJson: {},
  16626. islock: false,
  16627. groupJson2: {},
  16628. dialogVisibleGroup: false,
  16629. dialogVisibleGroup2: false,
  16630. updateGroupArray: [],
  16631. updateGroupUser: {},
  16632. deleteGroupUser: [],
  16633. deleteGroupArray: {},
  16634. checkChair: "",
  16635. checkDeleteGroup: [],
  16636. inviteCode: "",
  16637. courseGroupStudent: [],
  16638. courseGroupStudentUid: [],
  16639. courseGroup: {},
  16640. isGroup: false,
  16641. toolIndex: null,
  16642. tool: {},
  16643. isWorkTool: [
  16644. 16,
  16645. 32,
  16646. 57,
  16647. 4,
  16648. 45,
  16649. 15,
  16650. 1,
  16651. 3,
  16652. 6,
  16653. 7,
  16654. 26,
  16655. 41,
  16656. 47,
  16657. 48,
  16658. 52,
  16659. 50,
  16660. 40
  16661. ], //, 40
  16662. videoJson: {},
  16663. toolType: 0,
  16664. checktoolArray: [],
  16665. vChapterData: [],
  16666. isUpdateToolDetail: false,
  16667. isUpdateToolDetail1: false,
  16668. updateToolDetailInner: "",
  16669. checkboxList: [],
  16670. plIndex: "",
  16671. worksSName2: "",
  16672. worksSid: "",
  16673. wordCloudData: [],
  16674. isPickStudent: [],
  16675. pzStype: 1,
  16676. downLoading: false,
  16677. greyType: false,
  16678. correctWord: [],
  16679. EnglishVoiceDialog: false,
  16680. englishVoiceJson: {},
  16681. englishVoiceJsonWork: [],
  16682. scoreList: {
  16683. listdata: [],
  16684. isScoreList: []
  16685. },
  16686. classRoomHelperWidth: "85px",
  16687. orgArray: [],
  16688. oidArray: [],
  16689. refreshKey: 0,
  16690. AIloading: [],
  16691. // 为了刷新ai评分loading的时候用的
  16692. worksStudentCopy: [],
  16693. loopLoading: [],
  16694. markScoreVisible: false,
  16695. markScoretoolIndex: 0,
  16696. markScoreUid: "",
  16697. markScoreTit: {},
  16698. markfullscreen: false,
  16699. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16700. markScoreworksStudent: [],
  16701. finalMarkList: -1,
  16702. isaiNum: 0,
  16703. dialogVisibleTxt: false,
  16704. TxtMd: "",
  16705. languageSetting: 0, //0中文 1繁体 2英文
  16706. toolListS: [],
  16707. commentDetailCopy: "",
  16708. splitScreenData: {
  16709. isOpen: false,
  16710. userId: "",
  16711. uid: "",
  16712. myUid: "",
  16713. loading: false,
  16714. behavior: null
  16715. },
  16716. confirmOpenDig:false,
  16717. confirmOpenDigData:'',
  16718. diffKey:"1",
  16719. getCourseGroupLoading: false,
  16720. selectSWorksLoading:false,
  16721. selectStudentLoading:false,
  16722. selectSLookLoading:false,
  16723. getPickLoading:false,
  16724. selectPzLoading:false,
  16725. getSplitScreenDataLoading:false,
  16726. };
  16727. },
  16728. watch:{
  16729. taskCount(newVal) {
  16730. console.log('newVal',newVal);
  16731. this.AIloading = [];
  16732. this.loopLoading = [];
  16733. this.worksStudent.forEach((e, index) => {
  16734. this.loopLoading.push({ loading: false });
  16735. this.AIloading.push([]);
  16736. e.forEach(k => {
  16737. this.AIloading[index].push({ loading: false, sco: 0 });
  16738. });
  16739. });
  16740. if(this.tType == 1){
  16741. this.refreshAssembly();
  16742. }
  16743. },
  16744. worksStudent: {
  16745. handler(newVal, oldVal) {
  16746. // const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  16747. // const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  16748. // console.log('worksStudent',sum1,sum2);
  16749. if(JSON.stringify(newVal) != JSON.stringify(oldVal)){
  16750. this.AIloading = [];
  16751. this.loopLoading = [];
  16752. this.worksStudent.forEach((e, index) => {
  16753. this.loopLoading.push({ loading: false });
  16754. this.AIloading.push([]);
  16755. e.forEach(k => {
  16756. this.AIloading[index].push({ loading: false, sco: 0 });
  16757. });
  16758. });
  16759. if(this.tType == 1){
  16760. this.refreshAssembly();
  16761. }
  16762. }
  16763. },
  16764. deep:true,
  16765. }
  16766. },
  16767. methods: {
  16768. getAIJ() {
  16769. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16770. let oid = res.data[0];
  16771. let org = res.data[1];
  16772. let oidArray = [];
  16773. let orgArray = [];
  16774. oid.forEach(i => oidArray.push(i.oid));
  16775. org.forEach(i => orgArray.push(i.oid));
  16776. this.orgArray = orgArray;
  16777. this.oidArray = oidArray;
  16778. });
  16779. },
  16780. //查看应用中心作业
  16781. openCocoFlow(w){
  16782. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16783. },
  16784. // 评分弹框全屏
  16785. markFullScreenBtn() {
  16786. this.markfullscreen = !this.markfullscreen;
  16787. },
  16788. insertMemorandum(_html) {
  16789. //保存行为操作
  16790. //variable
  16791. //btn
  16792. let params = [
  16793. {
  16794. uid: this.userid,
  16795. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16796. content: _html
  16797. }
  16798. ];
  16799. console.log(params);
  16800. this.ajax
  16801. .post(
  16802. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16803. params
  16804. )
  16805. .then(res => {
  16806. if (res.data == 1) {
  16807. console.log("保存操作成功");
  16808. } else {
  16809. console.log("保存操作失败");
  16810. }
  16811. })
  16812. .catch(e => {
  16813. console.log("保存操作失败");
  16814. console.log(e);
  16815. });
  16816. },
  16817. // 获取文档id
  16818. createFileid(url) {
  16819. let _this = this;
  16820. return new Promise((resolve, reject) => {
  16821. try {
  16822. _this.ajax
  16823. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16824. url: url
  16825. })
  16826. .then(res => {
  16827. let _data = res.data.FunctionResponse;
  16828. if (_data.result && _data.result.id) {
  16829. resolve(_data.result.id);
  16830. } else {
  16831. resolve(1);
  16832. }
  16833. })
  16834. .catch(function(error) {
  16835. resolve(1);
  16836. });
  16837. } catch (e) {
  16838. resolve(1);
  16839. }
  16840. });
  16841. },
  16842. // 一键重置
  16843. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16844. let jude = false;
  16845. this.AIloading.forEach((e, index) => {
  16846. if (index == toolIndex) {
  16847. e.forEach(k => {
  16848. if (k.loading == true) jude = true;
  16849. });
  16850. }
  16851. });
  16852. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16853. this.$confirm("确认一键重置?")
  16854. .then(_ => {
  16855. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16856. })
  16857. .catch(_ => {});
  16858. },
  16859. // 一键重置
  16860. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16861. for (let index = 0; index < con.length; index++) {
  16862. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16863. }
  16864. this.$message.success("重置完成");
  16865. this.worksStudent.forEach((e, index) => {
  16866. if (toolIndex == index) {
  16867. console.log("6666");
  16868. e.forEach((i, inx) => {
  16869. let mk = `markSco${index}${inx}`;
  16870. this.$refs[mk][0].getData();
  16871. });
  16872. }
  16873. });
  16874. },
  16875. // 一键重置
  16876. allEmptySco(uid, stage, task, toolIndex) {
  16877. let params = [
  16878. {
  16879. cid: this.id,
  16880. uid: uid,
  16881. s: stage,
  16882. t: task,
  16883. tool: toolIndex ? toolIndex : ""
  16884. }
  16885. ];
  16886. return new Promise(resolve => {
  16887. this.ajax
  16888. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16889. .then(res => {
  16890. resolve(1);
  16891. })
  16892. .catch(err => {
  16893. console.error(err);
  16894. });
  16895. }).catch(error => {
  16896. console.log(error);
  16897. });
  16898. },
  16899. // AI评分循环打分
  16900. async loopEva(
  16901. con,
  16902. tit,
  16903. stage,
  16904. task,
  16905. toolIndex,
  16906. toolDetail,
  16907. taskDetail,
  16908. toolList
  16909. ) {
  16910. let jude = false;
  16911. this.AIloading.forEach((e, index) => {
  16912. if (index == toolIndex) {
  16913. e.forEach(k => {
  16914. if (k.loading == true) jude = true;
  16915. });
  16916. }
  16917. });
  16918. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16919. this.AIloading.forEach((e, index) => {
  16920. if (index == toolIndex) {
  16921. e.forEach(k => {
  16922. k.loading = true;
  16923. });
  16924. }
  16925. });
  16926. this.loopLoading[toolIndex].loading = true;
  16927. let laws = "";
  16928. let std = "";
  16929. let text = "";
  16930. if (toolList && toolList.eList && toolList.eList.length) {
  16931. for (let i = 0; i < toolList.eList.length; i++) {
  16932. if (toolList.eList[i].isai == 1) {
  16933. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16934. }
  16935. }
  16936. for (let i = 0; i < toolList.eList.length; i++) {
  16937. if (toolList.eList[i].isai == 1) {
  16938. let a = toolList.eList[i].detail;
  16939. if (isNaN(parseFloat(a)) && a) {
  16940. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16941. } else {
  16942. var result = a;
  16943. }
  16944. std += `纬度${i}:“${result}”, \n`;
  16945. }
  16946. }
  16947. for (let i = 0; i < toolList.eList.length; i++) {
  16948. if (toolList.eList[i].isai == 1) {
  16949. let a = toolList.eList[i].detail;
  16950. if (isNaN(parseFloat(a)) && a) {
  16951. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16952. } else {
  16953. var result = a;
  16954. }
  16955. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16956. }
  16957. }
  16958. } else {
  16959. let titRule = 0;
  16960. let titRule2 = 0;
  16961. tit.forEach((e, index) => {
  16962. if (!e.isai) {
  16963. e.isai = 1;
  16964. }
  16965. });
  16966. tit.forEach((e, index) => {
  16967. if (e.isai == 1) {
  16968. titRule2++;
  16969. if (e.rule) {
  16970. titRule++;
  16971. }
  16972. }
  16973. });
  16974. if (titRule != titRule2) {
  16975. this.AIloading.forEach((e, index) => {
  16976. if (index == toolIndex) {
  16977. e.forEach(k => {
  16978. k.loading = false;
  16979. });
  16980. }
  16981. });
  16982. this.loopLoading[toolIndex].loading = false;
  16983. this.$message.info("细则努力生成中,请稍候……");
  16984. return;
  16985. }
  16986. for (let i = 0; i < tit.length; i++) {
  16987. if (tit[i].isai == 1) {
  16988. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16989. }
  16990. }
  16991. for (let i = 0; i < tit.length; i++) {
  16992. if (tit[i].isai == 1) {
  16993. let a = tit[i].detail;
  16994. if (isNaN(parseFloat(a)) && a) {
  16995. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16996. } else {
  16997. var result = a;
  16998. }
  16999. std += `纬度${i}:“${result}”, \n`;
  17000. }
  17001. }
  17002. for (let i = 0; i < tit.length; i++) {
  17003. if (tit[i].isai == 1) {
  17004. let a = tit[i].detail;
  17005. if (isNaN(parseFloat(a)) && a) {
  17006. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  17007. } else {
  17008. var result = a;
  17009. }
  17010. text += `{'${result}' : '评价等级0-5(数字)'},`;
  17011. }
  17012. }
  17013. }
  17014. let forAllList = [];
  17015. // console.log('con',con)
  17016. for (let i = 0; i < con.length; i++) {
  17017. let _fileid = "";
  17018. let wok = con[i].works;
  17019. // console.log('con[i].type',con[i].type);
  17020. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  17021. let a = wok.slice(wok.lastIndexOf(".") + 1);
  17022. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  17023. _fileid = await this.createFileid(con[i].works);
  17024. } else {
  17025. this.AIloading[toolIndex][i].loading = false;
  17026. continue;
  17027. }
  17028. }
  17029. // console.log('con[i].type',con[i])
  17030. console.log('con[i].type',con[i].type)
  17031. if (_fileid == 1 || con[i].type == 3) {
  17032. this.AIloading[toolIndex][i].loading = false;
  17033. continue;
  17034. }
  17035. let msg = ''
  17036. if(con[i].type == 20){
  17037. msg = `#NOTICE#
  17038. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  17039. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  17040. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  17041. - 拥有客观公正的态度,确保评分结果公平合理。
  17042. - 能够清晰准确地表达评语,使学生和教师易于理解。
  17043. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  17044. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  17045. Language: ${this.getLang()}
  17046. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  17047. Instruction: Based on the context, follow "Format example", write content.
  17048. #目标#
  17049. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  17050. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  17051. #评分资料#
  17052. 评价标准:${std}
  17053. 评价细则:${laws}
  17054. 等级:${text}
  17055. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  17056. 具体你步骤如下:
  17057. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  17058. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  17059. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  17060. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  17061. ### 理论框架
  17062. ### 教育目标分类理论
  17063. 1. 基本原理:
  17064. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  17065. - 有助于明确教学活动期望达成的目标类型。
  17066. - 为评价教学成果提供了分类框架。
  17067. 2. 具体应用:
  17068. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  17069. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  17070. - 对比不同对话内容在目标达成度上的差异进行评分。
  17071. ### 教学评价理论
  17072. 1. 基本原理:
  17073. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  17074. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  17075. - 强调评价的客观性、全面性和发展性。
  17076. 2. 具体应用:
  17077. - 从对话中提取与教学内容、方法相关的信息进行评价。
  17078. - 考量对话对学生学习效果的影响来给出评分。
  17079. - 根据评价结果提出改进和发展的建议。
  17080. ### 对话分析理论
  17081. 1. 基本原理:
  17082. - 着重对对话结构、话语功能、交互模式等进行分析。
  17083. - 揭示对话中的信息流动、话语权分配等情况。
  17084. - 有助于理解对话参与者之间的关系和互动效果。
  17085. 2. 具体应用:
  17086. - 剖析“小可ai助手”与学生对话的结构合理性。
  17087. - 分析话语功能是否有助于学习和评价目的。
  17088. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  17089. #输出格式#
  17090. [${text}{'comment':'评语(150个汉字左右)'}]
  17091. 注意检查输出评语不超过50字`
  17092. }else{
  17093. msg = `NOTICE
  17094. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  17095. Language: ${this.getLang()}
  17096. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  17097. Instruction: Based on the context, follow "Format example", write content.
  17098. #目标#
  17099. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  17100. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  17101. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  17102. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  17103. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  17104. #评分资料#
  17105. 评价标准:${std}
  17106. 评价细则:${laws}
  17107. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  17108. 任务描述:${taskDetail}
  17109. 工具描述:${toolDetail}
  17110. #输出要求#
  17111. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  17112. “评语”控制在150字左右。
  17113. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  17114. #输出格式#
  17115. [${text}{'comment':'评语(150个汉字左右)'}]
  17116. `;
  17117. }
  17118. let mk = `markSco${toolIndex}${i}`;
  17119. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  17120. msg,
  17121. con[i].userid,
  17122. stage,
  17123. task,
  17124. _fileid,
  17125. con[i].type
  17126. );
  17127. forAllList.push(mkAwit);
  17128. }
  17129. Promise.all(forAllList)
  17130. .then(values => {
  17131. console.log("values", values);
  17132. this.$message({
  17133. message: "评价成功",
  17134. type: "success"
  17135. });
  17136. // this.refreshKey++
  17137. // this.worksStudent.forEach((e,index)=>{
  17138. // if(toolIndex == index){
  17139. // e.forEach((i,inx)=>{
  17140. // let mk = `markSco${index}${inx}`
  17141. // this.$refs[mk][0].getData()
  17142. // })
  17143. // }
  17144. // })
  17145. this.AIloading[toolIndex].forEach(e => {
  17146. e.loading = false;
  17147. });
  17148. this.loopLoading[toolIndex].loading = false;
  17149. })
  17150. .catch(reason => {
  17151. console.error("reasonreasonreasonreasonreason", reason);
  17152. // 输出“失败原因”
  17153. });
  17154. },
  17155. // 获取评价细则
  17156. againEva(i, k) {
  17157. let msg = `NOTICE
  17158. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  17159. Language: ${this.getLang()}
  17160. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  17161. Instruction: Based on the context, follow "Format example", write content.
  17162. #Context
  17163. ##要求
  17164. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  17165. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  17166. ##制定标准资料
  17167. 评价维度:${
  17168. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  17169. }
  17170. 维度描述:${
  17171. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  17172. }
  17173. # Format example
  17174. ==
  17175. 0 星,作业内容与作业要求无关;
  17176. 1 星,没有识别问题和需求;
  17177. 2 星,问题或需求没有被清晰理解或准确识别;
  17178. 3 星,问题或需求的一部分被识别;
  17179. 4 星,问题或需求的大部分被识别;
  17180. 5 星,问题或需求都被识别。
  17181. ==
  17182. `;
  17183. let params = {
  17184. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  17185. message: [
  17186. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  17187. ],
  17188. session_name: uuidv4(),
  17189. userId: this.userid,
  17190. file_ids: [],
  17191. model: "gpt-4o-2024-11-20"
  17192. };
  17193. // console.log('params',params);
  17194. this.ajax
  17195. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  17196. .then(response => {
  17197. let data = response.data.FunctionResponse;
  17198. // console.log("data", data);
  17199. if (data.message) {
  17200. let content = data.message;
  17201. var regex = new RegExp("==([^=]+)==");
  17202. let match = content.match(regex);
  17203. if (match) {
  17204. content = match[1].trim().replaceAll(" ", "");
  17205. // 获取匹配到的内容并去除两端空格
  17206. // console.log('contentInsideDoubleEquals', content);
  17207. if (
  17208. content.indexOf("0星") == -1 ||
  17209. content.indexOf("2星") == -1 ||
  17210. content.indexOf("3星") == -1 ||
  17211. content.indexOf("4星") == -1 ||
  17212. content.indexOf("5星") == -1
  17213. ) {
  17214. console.log("未有星级。");
  17215. this.againEva(i, k);
  17216. return;
  17217. }
  17218. // return
  17219. } else {
  17220. console.log("未找到匹配的内容。");
  17221. this.againEva(i, k);
  17222. return;
  17223. }
  17224. let elist = JSON.parse(
  17225. JSON.stringify(
  17226. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  17227. )
  17228. );
  17229. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  17230. elist.rule = JSON.parse(
  17231. JSON.stringify(content.replaceAll("#", ""))
  17232. );
  17233. this.$set(
  17234. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  17235. k,
  17236. elist
  17237. );
  17238. this.$forceUpdate();
  17239. let params2 = [
  17240. {
  17241. cid: this.id,
  17242. chapters: JSON.stringify(this.chapInfoList),
  17243. uid: this.userid,
  17244. unitIndex: this.courseType
  17245. }
  17246. ];
  17247. this.ajax
  17248. .post(this.$store.state.api + "updateWorkNew4", params2)
  17249. .then(res => {
  17250. this.getCourseDetail(2);
  17251. this.$forceUpdate();
  17252. })
  17253. .catch(err => {
  17254. this.$message.error("网络不佳");
  17255. console.error(err);
  17256. });
  17257. // 进行进一步处理或解析outputContent
  17258. // } else {
  17259. // console.log("No match found for # Output section.");
  17260. // }
  17261. }
  17262. })
  17263. .catch(error => {
  17264. console.log(error);
  17265. });
  17266. },
  17267. // 关闭评分弹框
  17268. markScorehandleClose(done) {
  17269. // this.refreshKey++
  17270. this.worksStudent.forEach((e, index) => {
  17271. if (this.markScoretoolIndex == index) {
  17272. e.forEach((i, inx) => {
  17273. let mk = `markSco${index}${inx}`;
  17274. if (this.$refs[mk] && this.$refs[mk][0]) {
  17275. this.$refs[mk][0].getData();
  17276. }
  17277. });
  17278. }
  17279. });
  17280. done();
  17281. },
  17282. // 关闭txtMd预览弹框
  17283. handleCloseTxt(done) {
  17284. this.TxtMd = "";
  17285. done();
  17286. },
  17287. // Txt,Md作业查看
  17288. lookTxt(val) {
  17289. this.dialogVisibleTxt = true;
  17290. this.TxtMd = "";
  17291. getFile(val).then(res => {
  17292. this.TxtMd = res.data;
  17293. });
  17294. },
  17295. // 组件刷新
  17296. refreshAssembly() {
  17297. this.refreshKey++;
  17298. },
  17299. updateLoading(payload) {
  17300. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  17301. },
  17302. handleShow(toolIndex, val) {
  17303. let mk = `markSco${toolIndex}${val}`;
  17304. // console.log(mk);
  17305. this.$refs[mk][0].getData();
  17306. },
  17307. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  17308. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  17309. // console.log('this.AIloading',this.AIloading)
  17310. let jude = false;
  17311. this.AIloading.forEach((e, index) => {
  17312. if (index == tidx) {
  17313. e.forEach(k => {
  17314. if (k.loading == true) jude = true;
  17315. });
  17316. }
  17317. });
  17318. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17319. if (val) return;
  17320. // console.log(uname,worksStudent,uid,tidx,titlist)
  17321. this.markScoreTit = titlist;
  17322. this.markScoreUid = uid;
  17323. this.toolListS = toolList;
  17324. this.markScoretoolIndex = tidx;
  17325. this.markScoreworksStudent = worksStudent;
  17326. this.markfullscreen = false;
  17327. this.markScoreVisible = true;
  17328. if (this.tType == 1) {
  17329. this.insertMemorandum(
  17330. `查看<span class="variable">${uname}</span>的作业`
  17331. );
  17332. }
  17333. },
  17334. // 点击markScore显示评分框
  17335. markScoreDig(data) {
  17336. // console.log('data',data)
  17337. let jude = false;
  17338. this.AIloading.forEach((e, index) => {
  17339. if (index == data.val2) {
  17340. e.forEach(k => {
  17341. if (k.loading == true) jude = true;
  17342. });
  17343. }
  17344. });
  17345. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17346. this.markScoreTit = data.tit;
  17347. this.markScoreUid = data.val;
  17348. this.markScoretoolIndex = data.val2;
  17349. this.markfullscreen = false;
  17350. this.markScoreVisible = true;
  17351. this.insertMemorandum(
  17352. `查看<span class="variable">${data.uname}</span>的作业`
  17353. );
  17354. },
  17355. // 刷新其他组件分数
  17356. refreshOther(v) {
  17357. // console.log('v',v)
  17358. this.AIloading[v.tid].forEach((e, i) => {
  17359. if (i == v.wid) {
  17360. e.loading = false;
  17361. }
  17362. });
  17363. // this.worksStudent.forEach((e,index)=>{
  17364. // if(toolIndex != index){
  17365. // e.forEach((i,inx)=>{
  17366. // let mk = `markSco${index}${inx}`
  17367. // this.$refs[mk][0].getData()
  17368. // })
  17369. // }
  17370. // })
  17371. },
  17372. updateDocSco(payload) {
  17373. // console.log('payload',payload)
  17374. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  17375. },
  17376. gx() {
  17377. this.$forceUpdate();
  17378. },
  17379. isUpdateCorrect(t, p) {
  17380. if (this.greyType == false) {
  17381. this.isUpdateText = t;
  17382. this.greyType = true;
  17383. } else {
  17384. if (p == 1) {
  17385. this.newEnglishList.engText = this.isUpdateText;
  17386. } else if (p == 2) {
  17387. this.oldEnglishJson1.engText = this.isUpdateText;
  17388. } else if (p == 3) {
  17389. this.newEnglishList.engText = this.isUpdateText;
  17390. } else {
  17391. this.newEnglishList1[
  17392. this.newEngIndex
  17393. ].cWork.engText = this.isUpdateText;
  17394. }
  17395. this.greyType = false;
  17396. }
  17397. },
  17398. aiCorrect(t, p) {
  17399. let aiText = "";
  17400. const loading = this.$loading.service({
  17401. background: "rgba(255, 255, 255)",
  17402. target: document.querySelectorAll(".loadingText")[0]
  17403. });
  17404. let param = {
  17405. model: "gpt-3.5-turbo",
  17406. temperature: 0,
  17407. max_tokens: 2048,
  17408. top_p: 1,
  17409. frequency_penalty: 0,
  17410. presence_penalty: 0,
  17411. messages: [
  17412. {
  17413. role: "user",
  17414. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  17415. }
  17416. ],
  17417. uid: this.userid,
  17418. stream: false
  17419. };
  17420. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  17421. res => {
  17422. if (
  17423. res.data.FunctionResponse &&
  17424. res.data.FunctionResponse.result &&
  17425. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  17426. ) {
  17427. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  17428. return;
  17429. }
  17430. aiText = res.data.FunctionResponse.choices[0].message.content;
  17431. aiText = aiText.replace(/%/g, "%25");
  17432. // let w = "";
  17433. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  17434. // for(var k = 0;k<a.length;k++){
  17435. // //diffWordsWithSpace
  17436. // if(a.length > 1){
  17437. // if(a[k].added == true){
  17438. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  17439. // }else if(a[k].removed == true){
  17440. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  17441. // }else{
  17442. // w += '<span>' + a[k].value + '</span>';
  17443. // }
  17444. // }else{
  17445. // if(p == 1){
  17446. // w = this.newEnglishList.engText;
  17447. // }else if(p == 2){
  17448. // w = this.oldEnglishJson1.engText;
  17449. // }else if(p == 3){
  17450. // w = this.newEnglishList.engText;
  17451. // }else{
  17452. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  17453. // }
  17454. // }
  17455. // }
  17456. if (p == 1) {
  17457. this.newEnglishList.engText = aiText;
  17458. } else if (p == 2) {
  17459. this.oldEnglishJson1.engText = aiText;
  17460. } else if (p == 3) {
  17461. this.newEnglishList.engText = aiText;
  17462. } else {
  17463. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  17464. }
  17465. loading.close();
  17466. },
  17467. err => {
  17468. console.log(err);
  17469. loading.close();
  17470. }
  17471. );
  17472. },
  17473. addToolChoose() {
  17474. if (!this.checktoolArray.length) {
  17475. this.$message.error("请选择要添加的任务");
  17476. return;
  17477. }
  17478. if (
  17479. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17480. this.taskCount
  17481. ].toolChoose[0].tool.length
  17482. ) {
  17483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17484. this.taskCount
  17485. ].toolChoose[0].tool = this.checktoolArray;
  17486. } else {
  17487. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17488. this.taskCount
  17489. ].toolChoose.push({
  17490. tool: this.checktoolArray,
  17491. toolDetail: "",
  17492. toolType: 0,
  17493. askCount: 1,
  17494. askTitle: "",
  17495. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  17496. });
  17497. }
  17498. let params = [
  17499. {
  17500. cid: this.id,
  17501. chapters: JSON.stringify(this.chapInfoList),
  17502. uid: this.userid,
  17503. unitIndex: this.courseType
  17504. }
  17505. ];
  17506. this.ajax
  17507. .post(this.$store.state.api + "updateWorkNew4", params)
  17508. .then(res => {
  17509. this.$message({
  17510. message: "添加成功",
  17511. type: "success"
  17512. });
  17513. this.checktoolArray = [];
  17514. this.getCourseDetail(2);
  17515. this.checkBz(
  17516. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17517. this.taskCount
  17518. ].toolChoose.length - 1
  17519. );
  17520. this.toolDialogVisible = false;
  17521. this.refreshCourse();
  17522. this.$forceUpdate();
  17523. })
  17524. .catch(err => {
  17525. console.error(err);
  17526. });
  17527. },
  17528. checkBz(index) {
  17529. this.isUpdateToolDetail = false;
  17530. this.$forceUpdate();
  17531. setTimeout(() => {
  17532. document.scrollingElement.scrollTop =
  17533. document.querySelectorAll(".filebox")[index].offsetTop +
  17534. document.querySelector(".student_body").offsetTop;
  17535. }, 500);
  17536. },
  17537. updateToolDetail(i, type) {
  17538. if (
  17539. !this.isUpdateToolDetail1 &&
  17540. type == 2 &&
  17541. (this.courseDetail.userid == this.userid ||
  17542. (this.courseDetail.course_teacher &&
  17543. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  17544. ) {
  17545. this.toolDetailIndex = i;
  17546. this.isUpdateToolDetail1 = true;
  17547. setTimeout(() => {
  17548. this.updateToolDetailInner = JSON.parse(
  17549. JSON.stringify(
  17550. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17551. this.taskCount
  17552. ].toolChoose[i].toolDetail
  17553. )
  17554. );
  17555. document.querySelector(".checkTextArea").focus();
  17556. }, 0);
  17557. } else if (this.isUpdateToolDetail1 && type != 2) {
  17558. // this.toolDetailIndex = i;
  17559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17560. this.taskCount
  17561. ].toolChoose[i].toolDetail = JSON.parse(
  17562. JSON.stringify(this.updateToolDetailInner)
  17563. );
  17564. let params = [
  17565. {
  17566. cid: this.id,
  17567. chapters: JSON.stringify(this.chapInfoList),
  17568. uid: this.userid,
  17569. unitIndex: this.courseType
  17570. }
  17571. ];
  17572. this.ajax
  17573. .post(this.$store.state.api + "updateWorkNew4", params)
  17574. .then(res => {
  17575. this.isUpdateToolDetail1 = false;
  17576. this.$message({
  17577. message: "修改成功",
  17578. type: "success"
  17579. });
  17580. this.toolDetailIndex = null;
  17581. this.updateToolDetailInner = "";
  17582. this.getCourseDetail(2);
  17583. this.$forceUpdate();
  17584. })
  17585. .catch(err => {
  17586. console.error(err);
  17587. });
  17588. } else if (this.isUpdateToolDetail1 && type == 2) {
  17589. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17590. this.taskCount
  17591. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17592. JSON.stringify(this.updateToolDetailInner)
  17593. );
  17594. let params = [
  17595. {
  17596. cid: this.id,
  17597. chapters: JSON.stringify(this.chapInfoList),
  17598. uid: this.userid,
  17599. unitIndex: this.courseType
  17600. }
  17601. ];
  17602. this.ajax
  17603. .post(this.$store.state.api + "updateWorkNew4", params)
  17604. .then(res => {
  17605. this.$message({
  17606. message: "修改成功",
  17607. type: "success"
  17608. });
  17609. this.toolDetailIndex = i;
  17610. this.isUpdateToolDetail1 = true;
  17611. setTimeout(() => {
  17612. this.updateToolDetailInner = JSON.parse(
  17613. JSON.stringify(
  17614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17615. this.taskCount
  17616. ].toolChoose[i].toolDetail
  17617. )
  17618. );
  17619. document.querySelector(".checkTextArea").focus();
  17620. }, 0);
  17621. this.getCourseDetail(2);
  17622. this.$forceUpdate();
  17623. })
  17624. .catch(err => {
  17625. console.error(err);
  17626. });
  17627. }
  17628. },
  17629. jumpGj(i, j, k, l) {
  17630. // this.refreshAssembly();
  17631. for (var z = 0; z < this.navList.length; z++) {
  17632. for (var q = 0; q < this.navList[z].task.length; q++) {
  17633. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17634. this.navList[z].task[q].tool[w].isTool = false;
  17635. }
  17636. }
  17637. }
  17638. console.log('6666');
  17639. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  17640. .isTool;
  17641. var a = document.scrollingElement;
  17642. let target = document.querySelector(`#gj${k}`);
  17643. if (target) {
  17644. // target.scrollIntoView(true);
  17645. // setTimeout(() => {
  17646. // a.scrollTop = a.scrollTop - 150;
  17647. // }, 0);
  17648. target.scrollIntoView();
  17649. setTimeout(()=>{
  17650. let scrollBody = document.querySelector('.body_student').parentElement
  17651. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17652. }, 0);
  17653. }
  17654. this.navId = "";
  17655. let flag = this.courseType == i;
  17656. let flag2 = this.taskCount == j;
  17657. if (l) {
  17658. this.courseType = i;
  17659. // this.navId = l;
  17660. this.taskCount = j;
  17661. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17662. this.selectPz();
  17663. this.getHomeWork();
  17664. this.getCourseDetail(2);
  17665. if (flag) {
  17666. if (flag2) {
  17667. this.insertMemorandum(
  17668. `选择<span class="variable">工具${k + 1}:${
  17669. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17670. }</span>`
  17671. );
  17672. } else {
  17673. this.insertMemorandum(
  17674. `选择<span class="variable">任务${j + 1}${
  17675. this.navList[i].task[j].taskName
  17676. ? ":" + this.navList[i].task[j].taskName
  17677. : ""
  17678. }</span>→<span class="variable">工具${k + 1}:${
  17679. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17680. }</span>`
  17681. );
  17682. }
  17683. } else {
  17684. this.insertMemorandum(
  17685. `选择<span class="variable">阶段${i + 1}${
  17686. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  17687. }</span>→<span class="variable">任务${j + 1}${
  17688. this.navList[i].task[j].taskName
  17689. ? ":" + this.navList[i].task[j].taskName
  17690. : ""
  17691. }</span>→<span class="variable">工具${k + 1}:${
  17692. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17693. }</span>`
  17694. );
  17695. }
  17696. }
  17697. },
  17698. addTools2(i) {
  17699. if (i == 4) {
  17700. // this.openTools2(4);
  17701. this.$message.error("暂未开放");
  17702. return;
  17703. }
  17704. if (i == 45) {
  17705. // this.openTools2(45);
  17706. this.$message.error("暂未开放");
  17707. return;
  17708. }
  17709. if (i == 47) {
  17710. // this.openTools2(47);
  17711. this.$message.error("暂未开放");
  17712. return;
  17713. }
  17714. if (i == 49) {
  17715. // this.openTools2(49);
  17716. this.$message.error("暂未开放");
  17717. return;
  17718. }
  17719. if (i == 62) {
  17720. // this.openTools(itemTaskIndex, 62, toolIndex);
  17721. this.$message.error("暂未开放");
  17722. return;
  17723. }
  17724. if (i == 15) {
  17725. // this.openTools(itemTaskIndex, 15, toolIndex);
  17726. this.$message.error("暂未开放");
  17727. return;
  17728. }
  17729. if (i == 40) {
  17730. // this.openTools(itemTaskIndex, 40, toolIndex);
  17731. this.$message.error("暂未开放");
  17732. return;
  17733. }
  17734. if (i == 41) {
  17735. // this.openTools(itemTaskIndex, 41, toolIndex);
  17736. this.$message.error("暂未开放");
  17737. return;
  17738. }
  17739. if (i == 42) {
  17740. // this.openTools(itemTaskIndex, 42, toolIndex);
  17741. this.$message.error("暂未开放");
  17742. return;
  17743. }
  17744. if (this.checktoolArray.length > 0) {
  17745. if (this.checktoolArray.indexOf(i) != -1) {
  17746. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17747. } else {
  17748. this.checktoolArray = [];
  17749. this.checktoolArray.push(i);
  17750. }
  17751. } else {
  17752. this.checktoolArray.push(i);
  17753. }
  17754. this.$forceUpdate();
  17755. },
  17756. jump() {
  17757. window.topU.postMessage({ tools: "43" }, "*");
  17758. },
  17759. getUpdateMore(f, checkboxList, searchTN, index) {
  17760. this.dialogVisibleMember = f;
  17761. this.checkboxList = checkboxList;
  17762. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17763. this.plIndex = index;
  17764. },
  17765. setPlname(a) {
  17766. if (this.plworkFile.length) {
  17767. this.plworkFile[this.plIndex].username = a;
  17768. } else {
  17769. this.worksSName = a;
  17770. }
  17771. this.dialogVisibleMember = false;
  17772. },
  17773. previewImg(url, w) {
  17774. this.$hevueImgPreview(url);
  17775. if (w) {
  17776. this.insertMemorandum(
  17777. `查看<span class="variable">${w.sName}</span>的作业`
  17778. );
  17779. }
  17780. },
  17781. checkImg(list) {
  17782. if (!list.length) {
  17783. return;
  17784. }
  17785. this.$hevueImgPreview({
  17786. multiple: true, // 开启多图预览模式
  17787. imgList: list // 需要预览的多图数组
  17788. });
  17789. },
  17790. change(val) {
  17791. console.log(val);
  17792. },
  17793. goTo(path) {
  17794. this.$router.push(path);
  17795. },
  17796. handlePictureCardPreview(url) {
  17797. this.dialogImageUrl = url;
  17798. this.pictureDialog = true;
  17799. },
  17800. clean(type) {
  17801. if (type == 1) {
  17802. this.studyJuri[0].cover.splice(0, 1);
  17803. } else if (type == 2) {
  17804. this.studyJuri[0].upVedio.splice(0, 1);
  17805. } else {
  17806. this.studyJuri[0].upFile.splice(0, 1);
  17807. }
  17808. },
  17809. clean2(index) {
  17810. this.plworkFile.splice(index, 1);
  17811. },
  17812. handleClose(done) {
  17813. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17814. this.videoDetail.sources[0].src = "";
  17815. }
  17816. this.commentIndexJson = {};
  17817. done();
  17818. },
  17819. fullTools() {
  17820. this.full = !this.full;
  17821. },
  17822. imgChange(file, fileList, type) {
  17823. if (type == 1) {
  17824. var _tmp = this.studyJuri[0].cover;
  17825. } else if (type == 2) {
  17826. var _tmp = this.studyJuri[0].upVedio;
  17827. } else {
  17828. var _tmp = this.studyJuri[0].upFile;
  17829. }
  17830. this.noneBtnImg = _tmp.length >= 1;
  17831. },
  17832. setContent(bool) {
  17833. this.contentDialog = bool;
  17834. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17835. document.querySelector(".workd_media").style.height = "650px";
  17836. } else if (document.querySelector(".workd_media")) {
  17837. document.querySelector(".workd_media").style.height = "auto";
  17838. }
  17839. },
  17840. setContent2(bool) {
  17841. this.mlDialog = bool;
  17842. if (
  17843. bool &&
  17844. this.contentDialog &&
  17845. document.querySelector(".workd_media")
  17846. ) {
  17847. document.querySelector(".workd_media").style.height = "650px";
  17848. } else if (document.querySelector(".workd_media")) {
  17849. document.querySelector(".workd_media").style.height = "auto";
  17850. }
  17851. },
  17852. openToolAll() {
  17853. this.toolDialogVisible = true;
  17854. },
  17855. addImg(e) {
  17856. var el = e.currentTarget;
  17857. // this.$message.success('触发上传')
  17858. el.getElementsByTagName("input")[0].click();
  17859. e.target.value = "";
  17860. },
  17861. addSelectAnswer() {
  17862. let params = [
  17863. {
  17864. uid: this.userid,
  17865. cid: this.id,
  17866. stage: this.courseType,
  17867. task: this.taskCount,
  17868. tool: this.toolindex,
  17869. content: this.selectAnswer.answer,
  17870. type: 7
  17871. }
  17872. ];
  17873. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17874. this.homeWorkLoading = true
  17875. this.ajax
  17876. .post(this.$store.state.api + "addCourseWorks", params)
  17877. .then(res => {
  17878. this.$message({
  17879. message: "提交成功",
  17880. type: "success"
  17881. });
  17882. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17883. setTimeout(() => {
  17884. this.homeWorkLoading = false
  17885. }, 500);
  17886. this.dialogVisibleSelect = false;
  17887. // this.selectAnswer = {};
  17888. this.selectSWorks();
  17889. this.selectStudent();
  17890. })
  17891. .catch(err => {
  17892. this.$message.error("提交失败");
  17893. console.error(err);
  17894. setTimeout(() => {
  17895. this.homeWorkLoading = false
  17896. }, 500);
  17897. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17898. });
  17899. },
  17900. addSelectAnswerTeacher() {
  17901. let params = [
  17902. {
  17903. uid: this.sStudent.userid,
  17904. cid: this.id,
  17905. stage: this.courseType,
  17906. task: this.taskCount,
  17907. tool: this.toolindex,
  17908. content: this.selectAnswer.answer,
  17909. type: 7
  17910. }
  17911. ];
  17912. this.ajax
  17913. .post(this.$store.state.api + "addCourseWorks", params)
  17914. .then(res => {
  17915. this.$message({
  17916. message: "提交成功",
  17917. type: "success"
  17918. });
  17919. this.dialogVisibleSelectTeacher = false;
  17920. // this.selectAnswer = {};
  17921. this.selectSWorks();
  17922. this.selectStudent();
  17923. })
  17924. .catch(err => {
  17925. this.$message.error("提交失败");
  17926. console.error(err);
  17927. });
  17928. },
  17929. addSenWorks() {
  17930. for (var i = 0; i < this.sentenceList.length; i++) {
  17931. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17932. if (
  17933. this.sentenceList[i].chooseSenList[j] == undefined ||
  17934. this.sentenceList[i].chooseSenList[j] == ""
  17935. ) {
  17936. this.$message.error("请将答案填写完整!");
  17937. return;
  17938. }
  17939. }
  17940. }
  17941. let params = [
  17942. {
  17943. uid: this.userid,
  17944. cid: this.id,
  17945. stage: this.courseType,
  17946. task: this.taskCount,
  17947. tool: this.toolindex,
  17948. content: JSON.stringify(this.sentenceList),
  17949. type: 9
  17950. }
  17951. ];
  17952. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17953. this.homeWorkLoading = true
  17954. this.ajax
  17955. .post(this.$store.state.api + "addCourseWorks", params)
  17956. .then(res => {
  17957. this.$message({
  17958. message: "提交成功",
  17959. type: "success"
  17960. });
  17961. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17962. setTimeout(() => {
  17963. this.homeWorkLoading = false
  17964. }, 500);
  17965. this.dialogVisibleSentence = false;
  17966. // this.selectAnswer = {};
  17967. this.selectSWorks();
  17968. this.selectStudent();
  17969. })
  17970. .catch(err => {
  17971. this.$message.error("提交失败");
  17972. console.error(err);
  17973. setTimeout(() => {
  17974. this.homeWorkLoading = false
  17975. }, 500);
  17976. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17977. });
  17978. },
  17979. addSenWorksTeacher() {
  17980. for (var i = 0; i < this.sentenceList.length; i++) {
  17981. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17982. if (
  17983. this.sentenceList[i].chooseSenList[j] == undefined ||
  17984. this.sentenceList[i].chooseSenList[j] == ""
  17985. ) {
  17986. this.$message.error("请将答案填写完整!");
  17987. return;
  17988. }
  17989. }
  17990. }
  17991. let params = [
  17992. {
  17993. uid: this.sStudent.userid,
  17994. cid: this.id,
  17995. stage: this.courseType,
  17996. task: this.taskCount,
  17997. tool: this.toolindex,
  17998. content: JSON.stringify(this.sentenceList),
  17999. type: 9
  18000. }
  18001. ];
  18002. this.ajax
  18003. .post(this.$store.state.api + "addCourseWorks", params)
  18004. .then(res => {
  18005. this.$message({
  18006. message: "提交成功",
  18007. type: "success"
  18008. });
  18009. this.dialogVisibleSentenceTeacher = false;
  18010. // this.selectAnswer = {};
  18011. this.selectSWorks();
  18012. this.selectStudent();
  18013. })
  18014. .catch(err => {
  18015. this.$message.error("提交失败");
  18016. console.error(err);
  18017. });
  18018. },
  18019. returnTableText() {
  18020. this.$confirm("确定还原此模板吗?", "提示", {
  18021. confirmButtonText: "确定",
  18022. cancelButtonText: "取消",
  18023. type: "warning"
  18024. })
  18025. .then(() => {
  18026. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  18027. })
  18028. .catch(() => {});
  18029. },
  18030. addTableWorks() {
  18031. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18032. this.homeWorkLoading = true
  18033. let params = [
  18034. {
  18035. uid: this.userid,
  18036. cid: this.id,
  18037. stage: this.courseType,
  18038. task: this.taskCount,
  18039. tool: this.toolindex,
  18040. content: JSON.stringify(this.tableJson),
  18041. type: 10
  18042. }
  18043. ];
  18044. this.ajax
  18045. .post(this.$store.state.api + "addCourseWorks", params)
  18046. .then(res => {
  18047. this.$message({
  18048. message: "提交成功",
  18049. type: "success"
  18050. });
  18051. setTimeout(() => {
  18052. this.homeWorkLoading = false
  18053. }, 500);
  18054. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  18055. this.dialogVisibleTable = false;
  18056. // this.selectAnswer = {};
  18057. this.selectSWorks();
  18058. this.selectStudent();
  18059. })
  18060. .catch(err => {
  18061. this.$message.error("提交失败");
  18062. console.error(err);
  18063. setTimeout(() => {
  18064. this.homeWorkLoading = false
  18065. }, 500);
  18066. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  18067. });
  18068. },
  18069. tableRowClassName({ row, rowIndex }) {
  18070. if ((rowIndex + 1) % 2 === 0) {
  18071. return "even_row";
  18072. } else {
  18073. return "";
  18074. }
  18075. },
  18076. addTableWorksTeacher() {
  18077. let params = [
  18078. {
  18079. uid: this.sStudent.userid,
  18080. cid: this.id,
  18081. stage: this.courseType,
  18082. task: this.taskCount,
  18083. tool: this.toolindex,
  18084. content: JSON.stringify(this.tableJson),
  18085. type: 10
  18086. }
  18087. ];
  18088. this.ajax
  18089. .post(this.$store.state.api + "addCourseWorks", params)
  18090. .then(res => {
  18091. this.$message({
  18092. message: "提交成功",
  18093. type: "success"
  18094. });
  18095. this.dialogVisibleTableTeacher = false;
  18096. // this.selectAnswer = {};
  18097. this.selectSWorks();
  18098. this.selectStudent();
  18099. })
  18100. .catch(err => {
  18101. this.$message.error("提交失败");
  18102. console.error(err);
  18103. });
  18104. },
  18105. returnWordText() {
  18106. this.$confirm("确定还原此模板吗?", "提示", {
  18107. confirmButtonText: "确定",
  18108. cancelButtonText: "取消",
  18109. type: "warning"
  18110. })
  18111. .then(() => {
  18112. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  18113. })
  18114. .catch(() => {});
  18115. },
  18116. addWordWorks() {
  18117. let params = [
  18118. {
  18119. uid: this.userid,
  18120. cid: this.id,
  18121. stage: this.courseType,
  18122. task: this.taskCount,
  18123. tool: this.toolindex,
  18124. content: JSON.stringify(this.wordJson),
  18125. type: 13,
  18126. atool: 52
  18127. }
  18128. ];
  18129. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18130. this.homeWorkLoading = true
  18131. this.ajax
  18132. .post(this.$store.state.api + "addCourseWorks3-2", params)
  18133. .then(res => {
  18134. this.$message({
  18135. message: "提交成功",
  18136. type: "success"
  18137. });
  18138. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  18139. setTimeout(() => {
  18140. this.homeWorkLoading = false
  18141. }, 500);
  18142. this.dialogVisibleWord = false;
  18143. // this.selectAnswer = {};
  18144. this.selectSWorks();
  18145. this.selectStudent();
  18146. })
  18147. .catch(err => {
  18148. this.$message.error("提交失败");
  18149. console.error(err);
  18150. setTimeout(() => {
  18151. this.homeWorkLoading = false
  18152. }, 500);
  18153. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  18154. });
  18155. },
  18156. addWordWorksTeacher() {
  18157. let params = [
  18158. {
  18159. uid: this.sStudent.userid,
  18160. cid: this.id,
  18161. stage: this.courseType,
  18162. task: this.taskCount,
  18163. tool: this.toolindex,
  18164. content: JSON.stringify(this.wordJson),
  18165. type: 13,
  18166. atool: 52
  18167. }
  18168. ];
  18169. this.ajax
  18170. .post(this.$store.state.api + "addCourseWorks3-2", params)
  18171. .then(res => {
  18172. this.$message({
  18173. message: "提交成功",
  18174. type: "success"
  18175. });
  18176. this.dialogVisibleWordTeacher = false;
  18177. // this.selectAnswer = {};
  18178. this.selectSWorks();
  18179. this.selectStudent();
  18180. })
  18181. .catch(err => {
  18182. this.$message.error("提交失败");
  18183. console.error(err);
  18184. });
  18185. },
  18186. addCourseWorksCopy(i) {
  18187. let arr = this.workStudent[this.toolindex].filter(e => {
  18188. return (e.userid = this.userid);
  18189. });
  18190. if (arr.length > 0) {
  18191. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  18192. confirmButtonText: "确定",
  18193. cancelButtonText: "取消",
  18194. type: "warning"
  18195. })
  18196. .then(() => {
  18197. this.addCourseWorks(i);
  18198. })
  18199. .catch(() => {});
  18200. } else {
  18201. this.addCourseWorks(i);
  18202. }
  18203. },
  18204. addCourseWorks(i) {
  18205. var typesql;
  18206. if (this.fileType === 0) {
  18207. typesql = 1;
  18208. } else if (this.fileType === 1) {
  18209. typesql = 4;
  18210. } else if (this.fileType === 2) {
  18211. typesql = 5;
  18212. } else if (this.fileType === 3) {
  18213. typesql = 12;
  18214. }
  18215. if (!this.studyJuri[0].cover[0].url) {
  18216. this.$message.error("请上传文件");
  18217. return;
  18218. }
  18219. let params = [
  18220. {
  18221. uid: this.userid,
  18222. cid: this.id,
  18223. stage: this.courseType,
  18224. task: i,
  18225. tool: this.toolindex,
  18226. content: this.studyJuri[0].cover[0].url,
  18227. type: typesql
  18228. }
  18229. ];
  18230. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18231. this.homeWorkLoading = true
  18232. this.ajax
  18233. .post(this.$store.state.api + "addCourseWorksR1", params)
  18234. .then(res => {
  18235. this.$message({
  18236. message: "提交成功",
  18237. type: "success"
  18238. });
  18239. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  18240. setTimeout(() => {
  18241. this.homeWorkLoading = false
  18242. }, 500);
  18243. this.studyJuri[0].cover = [];
  18244. this.dialogVisible = false;
  18245. this.getCourseDetail(2);
  18246. })
  18247. .catch(err => {
  18248. this.$message.error("提交失败");
  18249. console.error(err);
  18250. setTimeout(() => {
  18251. this.homeWorkLoading = false
  18252. }, 500);
  18253. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  18254. });
  18255. },
  18256. addCourseWorksPl(i) {
  18257. let _files = this.plworkFile;
  18258. var c = 1;
  18259. for (var k = 0; k < _files.length; k++) {
  18260. if (!_files[k].username) {
  18261. c = 2;
  18262. }
  18263. }
  18264. if (c == 2) {
  18265. this.$message.error("请填写学生姓名");
  18266. return;
  18267. }
  18268. let params = [
  18269. {
  18270. ateacher: this.userid,
  18271. cid: this.id,
  18272. stage: this.courseType,
  18273. task: i,
  18274. tool: this.toolindex,
  18275. content: JSON.stringify(_files)
  18276. }
  18277. ];
  18278. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18279. this.homeWorkLoading = true
  18280. this.ajax
  18281. .post(this.$store.state.api + "addCourseWorksPl", params)
  18282. .then(res => {
  18283. this.$message({
  18284. message: "提交成功",
  18285. type: "success"
  18286. });
  18287. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  18288. setTimeout(() => {
  18289. this.homeWorkLoading = false
  18290. }, 500);
  18291. this.plworkFile = [];
  18292. this.dialogVisiblePl = false;
  18293. this.getCourseDetail(2);
  18294. })
  18295. .catch(err => {
  18296. this.$message.error("提交失败");
  18297. console.error(err);
  18298. setTimeout(() => {
  18299. this.homeWorkLoading = false
  18300. }, 500);
  18301. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  18302. });
  18303. },
  18304. addCourseWorks2(i) {
  18305. var typesql;
  18306. if (this.fileType === 0) {
  18307. typesql = 0;
  18308. } else if (this.fileType === 1) {
  18309. typesql = 1;
  18310. } else if (this.fileType === 2) {
  18311. typesql = 3;
  18312. } else if (this.fileType === 3) {
  18313. typesql = 12;
  18314. }
  18315. if (!this.studyJuri[0].cover[0].url) {
  18316. this.$message.error("请上传文件");
  18317. return;
  18318. }
  18319. let params = [
  18320. {
  18321. uid: this.userid,
  18322. cid: this.id,
  18323. stage: this.courseType,
  18324. task: i,
  18325. tool: this.toolindex,
  18326. content: JSON.stringify({
  18327. type: typesql,
  18328. groupIndex: this.groupIndex,
  18329. url: this.studyJuri[0].cover[0].url
  18330. }),
  18331. type: 11,
  18332. atool: 49,
  18333. text: ""
  18334. }
  18335. ];
  18336. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18337. this.homeWorkLoading = true
  18338. this.ajax
  18339. .post(this.$store.state.api + "addCourseWorks5", params)
  18340. .then(res => {
  18341. this.$message({
  18342. message: "提交成功",
  18343. type: "success"
  18344. });
  18345. setTimeout(() => {
  18346. this.homeWorkLoading = false
  18347. }, 500);
  18348. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18349. type: typesql,
  18350. groupIndex: this.groupIndex,
  18351. url: this.studyJuri[0].cover[0].url,
  18352. }),type: "course_tool_sub" }, "success")
  18353. this.studyJuri[0].cover = [];
  18354. this.dialogVisibleGroupWork = false;
  18355. this.getCourseDetail(2);
  18356. })
  18357. .catch(err => {
  18358. this.$message.error("提交失败");
  18359. console.error(err);
  18360. setTimeout(() => {
  18361. this.homeWorkLoading = false
  18362. }, 500);
  18363. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18364. type: typesql,
  18365. groupIndex: this.groupIndex,
  18366. url: this.studyJuri[0].cover[0].url,
  18367. }),type: "course_tool_sub" }, err)
  18368. });
  18369. },
  18370. addEnglishWork() {
  18371. this.myAnList = this.$refs["engJson"].myAnswerList;
  18372. if (
  18373. !this.myAnList.engTitle ||
  18374. !this.myAnList.engText ||
  18375. this.myAnList.engTitle == "" ||
  18376. this.myAnList.engText == ""
  18377. ) {
  18378. this.$message.error("请输入作文标题和正文!");
  18379. return;
  18380. }
  18381. let params = [
  18382. {
  18383. uid: this.userid,
  18384. cid: this.id,
  18385. stage: this.courseType,
  18386. task: this.taskCount,
  18387. tool: this.englishToolIndex,
  18388. content: JSON.stringify(this.myAnList),
  18389. type: 16,
  18390. atool: 69,
  18391. text: ""
  18392. }
  18393. ];
  18394. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18395. this.homeWorkLoading = true
  18396. this.ajax
  18397. .post(this.$store.state.api + "addCourseWorks5", params)
  18398. .then(res => {
  18399. this.$message({
  18400. message: "提交成功",
  18401. type: "success"
  18402. });
  18403. setTimeout(() => {
  18404. this.homeWorkLoading = false
  18405. }, 500);
  18406. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18407. data: JSON.stringify(this.myAnList),
  18408. type: "course_tool_sub" }, "success")
  18409. this.myAnList = {};
  18410. this.englishList = {};
  18411. this.englishToolIndex = 0;
  18412. this.engDialogVisible = false;
  18413. this.selectSWorks();
  18414. this.selectStudent();
  18415. })
  18416. .catch(err => {
  18417. this.$message.error("提交失败");
  18418. setTimeout(() => {
  18419. this.homeWorkLoading = false
  18420. }, 500);
  18421. console.error(err);
  18422. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18423. data: JSON.stringify(this.myAnList),
  18424. type: "course_tool_sub" }, err)
  18425. });
  18426. },
  18427. addCourseWorksGong(i, data, tool) {
  18428. let params = [
  18429. {
  18430. uid: this.userid,
  18431. cid: this.id,
  18432. stage: this.courseType,
  18433. task: this.taskCount,
  18434. tool: i,
  18435. content: data,
  18436. type: 12,
  18437. atool: tool,
  18438. text: ""
  18439. }
  18440. ];
  18441. this.ajax
  18442. .post(this.$store.state.api + "addCourseWorks5", params)
  18443. .then(res => {
  18444. this.$message({
  18445. message: "提交成功",
  18446. type: "success"
  18447. });
  18448. this.studyJuri[0].cover = [];
  18449. this.selectSWorks();
  18450. this.selectStudent();
  18451. })
  18452. .catch(err => {
  18453. this.$message.error("提交失败");
  18454. console.error(err);
  18455. });
  18456. },
  18457. addCourseWorksGongTeacher(i, data, tool) {
  18458. let params = [
  18459. {
  18460. uid: this.sStudent.userid,
  18461. cid: this.id,
  18462. stage: this.courseType,
  18463. task: this.taskCount,
  18464. tool: i,
  18465. content: data,
  18466. type: 12,
  18467. atool: tool,
  18468. text: ""
  18469. }
  18470. ];
  18471. this.ajax
  18472. .post(this.$store.state.api + "addCourseWorks5", params)
  18473. .then(res => {
  18474. this.$message({
  18475. message: "提交成功",
  18476. type: "success"
  18477. });
  18478. this.studyJuri[0].cover = [];
  18479. this.dialogVisibleWorks = false;
  18480. this.selectSWorks();
  18481. this.selectStudent();
  18482. })
  18483. .catch(err => {
  18484. this.$message.error("提交失败");
  18485. console.error(err);
  18486. });
  18487. },
  18488. addCourseWorksGongPl(i, data, tool, type) {
  18489. let params = [
  18490. {
  18491. uid: this.sStudent.userid,
  18492. cid: this.id,
  18493. stage: this.courseType,
  18494. task: this.taskCount,
  18495. tool: i,
  18496. content: data,
  18497. type: type,
  18498. atool: tool,
  18499. text: ""
  18500. }
  18501. ];
  18502. this.ajax
  18503. .post(this.$store.state.api + "addCourseWorks5", params)
  18504. .then(res => {
  18505. this.$message({
  18506. message: "提交成功",
  18507. type: "success"
  18508. });
  18509. this.studyJuri[0].cover = [];
  18510. this.dialogVisibleWorks = false;
  18511. this.selectSWorks();
  18512. this.selectStudent();
  18513. })
  18514. .catch(err => {
  18515. this.$message.error("提交失败");
  18516. console.error(err);
  18517. });
  18518. },
  18519. addCourseWorksTeacher(i) {
  18520. var typesql;
  18521. if (this.sTool == 32) {
  18522. this.addCourseWorksGongTeacher(
  18523. this.toolindex,
  18524. this.studyJuri[0].cover[0].url,
  18525. this.sTool
  18526. );
  18527. return;
  18528. }
  18529. if (this.fileType === 0) {
  18530. typesql = 1;
  18531. } else if (this.fileType === 1) {
  18532. typesql = 4;
  18533. } else if (this.fileType === 2) {
  18534. typesql = 5;
  18535. } else if (this.fileType === 3) {
  18536. typesql = 12;
  18537. }
  18538. if (this.sTool == 50) {
  18539. this.addCourseWorksGongPl(
  18540. this.toolindex,
  18541. this.studyJuri[0].cover[0].url,
  18542. this.sTool,
  18543. typesql
  18544. );
  18545. return;
  18546. }
  18547. if (!this.studyJuri[0].cover[0].url) {
  18548. this.$message.error("请上传文件");
  18549. return;
  18550. }
  18551. let params = [
  18552. {
  18553. uid: this.sStudent.userid,
  18554. cid: this.id,
  18555. stage: this.courseType,
  18556. task: i,
  18557. tool: this.toolindex,
  18558. content: this.studyJuri[0].cover[0].url,
  18559. type: typesql,
  18560. ateacher: this.userid
  18561. }
  18562. ];
  18563. this.ajax
  18564. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18565. .then(res => {
  18566. this.$message({
  18567. message: "提交成功",
  18568. type: "success"
  18569. });
  18570. this.studyJuri[0].cover = [];
  18571. this.dialogVisibleWorks = false;
  18572. this.getCourseDetail(2);
  18573. })
  18574. .catch(err => {
  18575. this.$message.error("提交失败");
  18576. console.error(err);
  18577. });
  18578. },
  18579. selectUploadStudent(type) {
  18580. const loading = this.$loading.service({
  18581. background: "rgba(255, 255, 255, 0.7)",
  18582. target: document.body
  18583. });
  18584. let params = {
  18585. cid: this.uploadCid,
  18586. oid: this.oid,
  18587. cn: ""
  18588. };
  18589. this.ajax
  18590. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18591. .then(res => {
  18592. loading.close();
  18593. var studentK = [];
  18594. if (this.isWorksS[this.toolindex].length > 0) {
  18595. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18596. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18597. }
  18598. studentK = studentK.join(",");
  18599. }
  18600. this.uploadStudentJuri = res.data[0].filter(el => {
  18601. return studentK.indexOf(el.userid) == -1;
  18602. });
  18603. if (this.worksSName && this.worksSid) {
  18604. this.uploadStudentJuri.push({
  18605. userid: this.worksSid,
  18606. name: this.worksSName
  18607. });
  18608. }
  18609. if (type == 1) {
  18610. this.plworkFile = [];
  18611. this.dialogVisibleSname = true;
  18612. } else if (type == 2) {
  18613. this.dialogVisiblePl = true;
  18614. }
  18615. })
  18616. .catch(err => {
  18617. loading.close();
  18618. console.error(err);
  18619. });
  18620. },
  18621. selectPickStudent() {
  18622. const loading = this.$loading.service({
  18623. background: "rgba(255, 255, 255, 0.7)",
  18624. target: document.body
  18625. });
  18626. let params = {
  18627. cid: this.uploadCid,
  18628. oid: this.oid,
  18629. cn: ""
  18630. };
  18631. this.ajax
  18632. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18633. .then(res => {
  18634. loading.close();
  18635. this.uploadStudentJuri = res.data[0];
  18636. this.dialogVisiblePickPeople = true;
  18637. })
  18638. .catch(err => {
  18639. loading.close();
  18640. console.error(err);
  18641. });
  18642. },
  18643. arrayToArray(arrayo, arrayt) {
  18644. let array1 = arrayo;
  18645. let array2 = arrayt;
  18646. let commonElements = [];
  18647. for (let i = 0; i < array1.length; i++) {
  18648. for (let j = 0; j < array2.length; j++) {
  18649. if (array1[i] === array2[j]) {
  18650. commonElements.push(array1[i]);
  18651. }
  18652. }
  18653. }
  18654. return commonElements;
  18655. },
  18656. selectWorksStudent() {
  18657. let params = {
  18658. oid: this.oid,
  18659. cid: this.courseDetail.juri
  18660. };
  18661. this.ajax
  18662. .get(this.$store.state.api + "selectWorksStudent", params)
  18663. .then(res => {
  18664. var a = res.data[0];
  18665. for (var i = 0; i < this.isWorksS.length; i++) {
  18666. this.noWorksS[i] = [];
  18667. var studentK = [];
  18668. if (this.isWorksS[i].length > 0) {
  18669. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18670. studentK.push(this.isWorksS[i][z].uid);
  18671. }
  18672. studentK = studentK.join(",");
  18673. for (var j = 0; j < a.length; j++) {
  18674. if (studentK.indexOf(a[j].userid) == -1) {
  18675. if (this.tcid) {
  18676. // a[j].classid.indexOf(this.tcid) != -1
  18677. if (
  18678. this.arrayToArray(
  18679. a[j].classid.split(","),
  18680. this.tcid.split(",")
  18681. ).length
  18682. ) {
  18683. this.noWorksS[i].push({
  18684. student: a[j].name,
  18685. userid: a[j].userid
  18686. });
  18687. }
  18688. } else {
  18689. this.noWorksS[i].push({
  18690. student: a[j].name,
  18691. userid: a[j].userid
  18692. });
  18693. }
  18694. }
  18695. }
  18696. } else {
  18697. for (var k = 0; k < a.length; k++) {
  18698. if (this.tcid) {
  18699. if (
  18700. this.arrayToArray(
  18701. a[k].classid.split(","),
  18702. this.tcid.split(",")
  18703. ).length
  18704. ) {
  18705. this.noWorksS[i].push({
  18706. student: a[k].name,
  18707. userid: a[k].userid
  18708. });
  18709. }
  18710. } else {
  18711. this.noWorksS[i].push({
  18712. student: a[k].name,
  18713. userid: a[k].userid
  18714. });
  18715. }
  18716. }
  18717. }
  18718. }
  18719. this.$forceUpdate();
  18720. if (
  18721. Object.keys(this.commentDetail).length &&
  18722. Object.keys(this.commentIndexJson).length &&
  18723. !this.dialogVisibleScore &&
  18724. !this.dialogVisibleENScore
  18725. ) {
  18726. let a = 1;
  18727. let c = this.commentIndexJson;
  18728. if (
  18729. this.commentIndexJson.gindex ||
  18730. this.commentIndexJson.gindex === 0
  18731. ) {
  18732. for (
  18733. var i = 0;
  18734. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18735. i++
  18736. ) {
  18737. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18738. groupA: for (var k = 0; k < _el.length; k++) {
  18739. let el = _el[k];
  18740. if (el.wid == this.commentDetail.wid) {
  18741. a = 2;
  18742. this.commentOther(
  18743. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18744. this.commentIndexJson.toolIndex,
  18745. k,
  18746. this.commentIndexJson.gindex
  18747. );
  18748. break groupA;
  18749. }
  18750. }
  18751. }
  18752. if (a === 1) {
  18753. this.commentDetail = [];
  18754. this.commentIndexJson = {};
  18755. this.commentDialogVisible = false;
  18756. this.$message("此作业已被删除");
  18757. }
  18758. } else {
  18759. if (this.isGroup && this.commentIndexJson.gid) {
  18760. groupA: for (
  18761. var i = 0;
  18762. i < this.courseGroup.group.length;
  18763. i++
  18764. ) {
  18765. let _group = this.courseGroup.group[i];
  18766. if (_group.id == this.commentIndexJson.gid) {
  18767. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18768. for (var k = 0; k < _el2.length; k++) {
  18769. let el2 = _el2[k];
  18770. if (el2.wid == this.commentDetail.wid) {
  18771. a = 2;
  18772. this.commentOther(
  18773. _el2[k],
  18774. this.commentIndexJson.toolIndex,
  18775. k,
  18776. null,
  18777. this.commentIndexJson.gid
  18778. );
  18779. break groupA;
  18780. }
  18781. }
  18782. }
  18783. }
  18784. }
  18785. if (a == 1) {
  18786. for (
  18787. var i = 0;
  18788. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18789. i++
  18790. ) {
  18791. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  18792. i
  18793. ];
  18794. if (el.wid == this.commentDetail.wid) {
  18795. a = 2;
  18796. this.commentOther(
  18797. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18798. this.commentIndexJson.toolIndex,
  18799. i
  18800. );
  18801. break;
  18802. }
  18803. }
  18804. }
  18805. if (a === 1) {
  18806. this.commentDetail = [];
  18807. this.commentIndexJson = {};
  18808. this.commentDialogVisible = false;
  18809. this.$message("此作业已被删除");
  18810. }
  18811. }
  18812. }
  18813. })
  18814. .catch(err => {
  18815. console.error(err);
  18816. });
  18817. },
  18818. selectStudent() {
  18819. if (this.selectStudentLoading) return
  18820. this.selectStudentLoading = true
  18821. //学生查看自己作业
  18822. let params = {
  18823. uid: this.userid,
  18824. cid: this.id,
  18825. s: this.courseType,
  18826. t: this.taskCount
  18827. };
  18828. this.ajax
  18829. .get(this.$store.state.api + "selectStudentWorks", params)
  18830. .then(res => {
  18831. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18832. this.taskCount
  18833. ].toolChoose;
  18834. var b = res.data[0];
  18835. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18836. var y = [
  18837. "AVI",
  18838. "NAVI",
  18839. "MPEG",
  18840. "ASF",
  18841. "MOV",
  18842. "WMV",
  18843. "3GP",
  18844. "RM",
  18845. "RMVB",
  18846. "FLV",
  18847. "F4V",
  18848. "H.264",
  18849. "H.265",
  18850. "REAL VIDEO",
  18851. "MKV",
  18852. "WebM",
  18853. "HDDVD",
  18854. "MP4",
  18855. "MPG",
  18856. "M4V",
  18857. "MGV",
  18858. "OGV",
  18859. "QTM",
  18860. "STR",
  18861. "AMC",
  18862. "DVX",
  18863. "EVO",
  18864. "DAT",
  18865. "OGG",
  18866. "OGM"
  18867. ];
  18868. for (var i = 0; i < a.length; i++) {
  18869. this.workStudent[i] = [];
  18870. for (var j = 0; j < b.length; j++) {
  18871. if (i == b[j].tool) {
  18872. if (
  18873. (b[j].type == 1 ||
  18874. b[j].type == 4 ||
  18875. b[j].type == 5 ||
  18876. b[j].type == 6 ||
  18877. b[j].type == 12 ||
  18878. b[j].type == 7) &&
  18879. a[i].tool[0] != 15 &&
  18880. a[i].tool[0] != 4 &&
  18881. a[i].tool[0] != 45 &&
  18882. a[i].tool[0] != 50 &&
  18883. a[i].tool[0] != 32 &&
  18884. a[i].tool[0] != 57 &&
  18885. a[i].tool[0] != 52 &&
  18886. a[i].tool[0] != 69
  18887. ) {
  18888. if (
  18889. c.indexOf(
  18890. b[j].content
  18891. .split(".")
  18892. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18893. ) != -1 &&
  18894. a[i].tool[0] == 16 &&
  18895. b[j].atool != 50
  18896. ) {
  18897. this.workStudent[i].push({
  18898. works: b[j].content,
  18899. sName: b[j].name,
  18900. score: b[j].score,
  18901. img: b[j].img,
  18902. type: 1,
  18903. time: b[j].time,
  18904. userid: b[j].userid,
  18905. wid: b[j].id
  18906. });
  18907. } else if (
  18908. y.indexOf(
  18909. b[j].content
  18910. .split(".")
  18911. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18912. ) != -1 &&
  18913. a[i].tool[0] == 16 &&
  18914. b[j].atool != 50
  18915. ) {
  18916. this.workStudent[i].push({
  18917. userid: b[j].userid,
  18918. wid: b[j].id,
  18919. works: b[j].content,
  18920. sName: b[j].name,
  18921. score: b[j].score,
  18922. img: b[j].img,
  18923. type: 3,
  18924. time: b[j].time
  18925. });
  18926. } else if (b[j].type == 6 && b[j].atool != 50) {
  18927. this.workStudent[i].push({
  18928. userid: b[j].userid,
  18929. wid: b[j].id,
  18930. works: b[j].content,
  18931. sName: b[j].name,
  18932. score: b[j].score,
  18933. img: b[j].img,
  18934. type: 4,
  18935. time: b[j].time
  18936. });
  18937. } else if (b[j].type == 7 && b[j].atool != 50) {
  18938. this.workStudent[i].push({
  18939. userid: b[j].userid,
  18940. wid: b[j].id,
  18941. works: b[j].content,
  18942. sName: b[j].name,
  18943. score: b[j].score,
  18944. img: b[j].img,
  18945. type: 5,
  18946. time: b[j].time
  18947. });
  18948. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18949. this.workStudent[i].push({
  18950. works: b[j].content,
  18951. sName: b[j].name,
  18952. score: b[j].score,
  18953. img: b[j].img,
  18954. type: 12,
  18955. time: b[j].time,
  18956. userid: b[j].userid,
  18957. wid: b[j].id
  18958. });
  18959. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18960. this.workStudent[i].push({
  18961. works: b[j].content,
  18962. sName: b[j].name,
  18963. score: b[j].score,
  18964. img: b[j].img,
  18965. type: 0,
  18966. time: b[j].time,
  18967. userid: b[j].userid,
  18968. wid: b[j].id
  18969. });
  18970. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18971. this.workStudent[i].push({
  18972. works: b[j].content,
  18973. sName: b[j].name,
  18974. score: b[j].score,
  18975. img: b[j].img,
  18976. type: 0,
  18977. time: b[j].time,
  18978. userid: b[j].userid,
  18979. wid: b[j].id
  18980. });
  18981. }
  18982. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18983. this.workStudent[i].push({
  18984. works: b[j].content,
  18985. sName: b[j].name,
  18986. score: b[j].score,
  18987. img: b[j].img,
  18988. type: 2,
  18989. time: b[j].time,
  18990. userid: b[j].userid,
  18991. wid: b[j].id
  18992. });
  18993. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18994. this.workStudent[i].push({
  18995. works: b[j].content,
  18996. sName: b[j].name,
  18997. score: b[j].score,
  18998. img: b[j].img,
  18999. type: 20,
  19000. time: b[j].time,
  19001. userid: b[j].userid,
  19002. wid: b[j].id
  19003. });
  19004. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19005. //问卷
  19006. this.workStudent[i].push({
  19007. works: b[j].content,
  19008. sName: b[j].name,
  19009. score: b[j].score,
  19010. img: b[j].img,
  19011. type: 2,
  19012. time: b[j].time,
  19013. userid: b[j].userid,
  19014. wid: b[j].id
  19015. });
  19016. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19017. //选择题
  19018. this.workStudent[i].push({
  19019. works: b[j].content,
  19020. sName: b[j].name,
  19021. score: b[j].score,
  19022. img: b[j].img,
  19023. type: 8,
  19024. time: b[j].time,
  19025. userid: b[j].userid,
  19026. wid: b[j].id
  19027. });
  19028. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19029. //选择题
  19030. this.workStudent[i].push({
  19031. works: b[j].content,
  19032. sName: b[j].name,
  19033. score: b[j].score,
  19034. img: b[j].img,
  19035. type: 9,
  19036. time: b[j].time,
  19037. userid: b[j].userid,
  19038. wid: b[j].id
  19039. });
  19040. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19041. //选择题
  19042. this.workStudent[i].push({
  19043. works: b[j].content,
  19044. sName: b[j].name,
  19045. score: b[j].score,
  19046. img: b[j].img,
  19047. type: 10,
  19048. time: b[j].time,
  19049. userid: b[j].userid,
  19050. wid: b[j].id
  19051. });
  19052. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19053. //选择题
  19054. this.workStudent[i].push({
  19055. works: b[j].content,
  19056. sName: b[j].name,
  19057. score: b[j].score,
  19058. img: b[j].img,
  19059. type: 13,
  19060. time: b[j].time,
  19061. userid: b[j].userid,
  19062. wid: b[j].id
  19063. });
  19064. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  19065. //选择题
  19066. this.workStudent[i].push({
  19067. works: b[j].content,
  19068. sName: b[j].name,
  19069. score: b[j].score,
  19070. img: b[j].img,
  19071. type: 12,
  19072. time: b[j].time,
  19073. userid: b[j].userid,
  19074. wid: b[j].id
  19075. });
  19076. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  19077. //选择题
  19078. this.workStudent[i].push({
  19079. works: b[j].content,
  19080. sName: b[j].name,
  19081. score: b[j].score,
  19082. img: b[j].img,
  19083. type: 12,
  19084. time: b[j].time,
  19085. userid: b[j].userid,
  19086. wid: b[j].id
  19087. });
  19088. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  19089. //选择题
  19090. this.workStudent[i].push({
  19091. works: b[j].content,
  19092. sName: b[j].name,
  19093. score: b[j].score,
  19094. img: b[j].img,
  19095. type: 15,
  19096. time: b[j].time,
  19097. userid: b[j].userid,
  19098. wid: b[j].id
  19099. });
  19100. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19101. //英语写作
  19102. this.workStudent[i].push({
  19103. works: b[j].content,
  19104. sName: b[j].name,
  19105. score: b[j].score,
  19106. img: b[j].img,
  19107. type: 16,
  19108. time: b[j].time,
  19109. userid: b[j].userid,
  19110. wid: b[j].id,
  19111. aiCode: b[j].aiCode,
  19112. teacherCode: b[j].teacherCode
  19113. });
  19114. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19115. //英语写作
  19116. this.workStudent[i].push({
  19117. works: b[j].content,
  19118. sName: b[j].name,
  19119. score: b[j].score,
  19120. img: b[j].img,
  19121. type: 17,
  19122. time: b[j].time,
  19123. userid: b[j].userid,
  19124. wid: b[j].id
  19125. });
  19126. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19127. //英语口语
  19128. this.workStudent[i].push({
  19129. works: b[j].content,
  19130. sName: b[j].name,
  19131. score: b[j].score,
  19132. img: b[j].img,
  19133. type: 14,
  19134. time: b[j].time,
  19135. userid: b[j].userid,
  19136. wid: b[j].id
  19137. });
  19138. }
  19139. }
  19140. }
  19141. }
  19142. this.selectStudentLoading = false
  19143. })
  19144. .catch(err => {
  19145. this.selectStudentLoading = false
  19146. console.error(err);
  19147. });
  19148. },
  19149. openVideo(w) {
  19150. this.videoDetail = {};
  19151. this.playerOptions1.sources[0].src = w.works;
  19152. this.videoDetail = this.playerOptions1;
  19153. this.videoVisible = true;
  19154. },
  19155. isLikes(wid, uid, t, c, isLikes, sName) {
  19156. if (isLikes == false) {
  19157. let params = [
  19158. {
  19159. wid: wid,
  19160. lid: uid,
  19161. t: t,
  19162. c: c
  19163. }
  19164. ];
  19165. this.ajax
  19166. .post(this.$store.state.api + "insertComment", params)
  19167. .then(res => {
  19168. this.$message({
  19169. message: "点赞成功",
  19170. type: "success"
  19171. });
  19172. this.selectSWorks();
  19173. this.selectStudent();
  19174. if(this.tType!=2){
  19175. this.insertMemorandum(
  19176. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  19177. );
  19178. }
  19179. })
  19180. .catch(err => {
  19181. this.$message.error("点赞失败");
  19182. console.error(err);
  19183. });
  19184. } else {
  19185. let params = {
  19186. wid: wid,
  19187. lid: uid,
  19188. type: t
  19189. };
  19190. this.ajax
  19191. .get(this.$store.state.api + "deleteComment", params)
  19192. .then(res => {
  19193. this.$message({
  19194. message: "取消点赞成功",
  19195. type: "success"
  19196. });
  19197. this.selectSWorks();
  19198. this.selectStudent();
  19199. })
  19200. .catch(err => {
  19201. console.error(err);
  19202. });
  19203. }
  19204. },
  19205. deleteComment(wid) {
  19206. this.$confirm("确定删除此评论吗?", "提示", {
  19207. confirmButtonText: "确定",
  19208. cancelButtonText: "取消",
  19209. type: "warning"
  19210. })
  19211. .then(() => {
  19212. let params = {
  19213. id: wid
  19214. };
  19215. this.ajax
  19216. .get(this.$store.state.api + "deleteComment2", params)
  19217. .then(res => {
  19218. this.$message({
  19219. message: "删除评论成功",
  19220. type: "success"
  19221. });
  19222. this.selectSWorks();
  19223. this.selectStudent();
  19224. })
  19225. .catch(err => {
  19226. console.error(err);
  19227. });
  19228. })
  19229. .catch(() => {});
  19230. },
  19231. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  19232. this.commentIndexJson = {
  19233. toolIndex: toolIndex,
  19234. wIndex: wIndex,
  19235. gindex: gindex,
  19236. gid: gid
  19237. };
  19238. this.commentDialogVisible = true;
  19239. // console.log('wwwwww',w)
  19240. // if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  19241. // return;
  19242. this.commentDetailCopy = w.works;
  19243. this.commentDetail = [];
  19244. this.commentDetail = w;
  19245. if (w.works && w.type == 1) {
  19246. // this.pptImgUrl = "";
  19247. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19248. if (
  19249. a.indexOf(
  19250. w.works
  19251. .split(".")
  19252. [w.works.split(".").length - 1].toLocaleUpperCase()
  19253. ) != -1
  19254. ) {
  19255. let _uuurl = await this.checkLink(w.works);
  19256. this.pptImgUrl =
  19257. "https://view.officeapps.live.com/op/view.aspx?src=" +
  19258. encodeURIComponent(_uuurl);
  19259. this.showPDF = false;
  19260. } else if (
  19261. w.works
  19262. .split(".")
  19263. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19264. ) {
  19265. this.pptImgUrl = w.works;
  19266. this.showPDF = true;
  19267. }
  19268. } else if (w.works && w.type == 3) {
  19269. this.videoDetail = {};
  19270. this.playerOptions1.sources[0].src = w.works;
  19271. this.videoDetail = this.playerOptions1;
  19272. // this.videoVisible = true;
  19273. } else if (w.works && w.type == 4) {
  19274. this.eScore = JSON.parse(w.works);
  19275. this.rateJson = this.chapInfoList[
  19276. this.courseType
  19277. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19278. toolIndex
  19279. ].rateJson;
  19280. } else if (w.works && w.type == 10) {
  19281. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19282. } else if (w.works && w.type == 12) {
  19283. getFile(this.commentDetail.works).then(res => {
  19284. this.commentDetail.works = res.data;
  19285. });
  19286. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19287. } else if (w.works && w.type == 13) {
  19288. this.wordJson = this.chapInfoList[
  19289. this.courseType
  19290. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19291. toolIndex
  19292. ].wordJson;
  19293. }
  19294. this.$forceUpdate();
  19295. },
  19296. async openScore(w, index) {
  19297. this.wScore = 0;
  19298. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  19299. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  19300. this.commentDetail = [];
  19301. if (w.type == 17) {
  19302. this.dialogVisibleENScore = true;
  19303. } else {
  19304. this.dialogVisibleScore = true;
  19305. }
  19306. this.commentDetail = w;
  19307. if (w.works && w.type == 1) {
  19308. this.pptImgUrl = "";
  19309. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19310. if (
  19311. a.indexOf(
  19312. w.works
  19313. .split(".")
  19314. [w.works.split(".").length - 1].toLocaleUpperCase()
  19315. ) != -1
  19316. ) {
  19317. let _uuurl = await this.checkLink(w.works);
  19318. this.pptImgUrl =
  19319. "https://view.officeapps.live.com/op/view.aspx?src=" +
  19320. encodeURIComponent(_uuurl);
  19321. this.showPDF = false;
  19322. } else if (
  19323. w.works
  19324. .split(".")
  19325. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19326. ) {
  19327. this.pptImgUrl = w.works;
  19328. this.showPDF = true;
  19329. }
  19330. } else if (w.works && w.type == 3) {
  19331. this.videoDetail = {};
  19332. this.playerOptions1.sources[0].src = w.works;
  19333. this.videoDetail = this.playerOptions1;
  19334. } else if (w.type == 17) {
  19335. let englishVoiceJson = {};
  19336. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19337. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  19338. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19339. this.taskCount
  19340. ].toolChoose[index].englishVoiceJson
  19341. : {};
  19342. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19343. }
  19344. this.insertMemorandum(
  19345. `查看<span class="variable">${w.sName}</span>的作业`
  19346. );
  19347. },
  19348. addComment(wid, uid, t, detail) {
  19349. if (this.commentText == "") {
  19350. this.$message.error("请输入评论");
  19351. return;
  19352. }
  19353. let params2 = [
  19354. {
  19355. wid: wid,
  19356. lid: uid,
  19357. t: t
  19358. }
  19359. ];
  19360. this.ajax
  19361. .post(this.$store.state.api + "getComment", params2)
  19362. .then(res => {
  19363. if (res.data[0].length > 0) {
  19364. this.$message.error("一个作业只能评论一条");
  19365. } else {
  19366. let params = [
  19367. {
  19368. wid: wid,
  19369. lid: uid,
  19370. t: t,
  19371. c: this.commentText
  19372. }
  19373. ];
  19374. this.ajax
  19375. .post(this.$store.state.api + "insertComment", params)
  19376. .then(res => {
  19377. this.$message({
  19378. message: "评论成功",
  19379. type: "success"
  19380. });
  19381. this.commentText = "";
  19382. this.selectSWorks();
  19383. this.selectStudent();
  19384. if(this.tType!=2){
  19385. this.insertMemorandum(
  19386. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  19387. );
  19388. }
  19389. })
  19390. .catch(err => {
  19391. this.$message.error("评论失败");
  19392. console.error(err);
  19393. });
  19394. }
  19395. })
  19396. .catch(err => {
  19397. // this.$message.error("评论失败");
  19398. console.error(err);
  19399. });
  19400. },
  19401. scoreWork(wid, sName) {
  19402. if (this.wScore == 0) {
  19403. this.$message.error("请评分");
  19404. return;
  19405. }
  19406. let params = [
  19407. {
  19408. wid: wid,
  19409. score: JSON.stringify({
  19410. wScore: this.wScore,
  19411. detail: this.scoreDetail
  19412. })
  19413. }
  19414. ];
  19415. this.ajax
  19416. .post(this.$store.state.api + "scoreWork", params)
  19417. .then(res => {
  19418. this.$message({
  19419. message: "评分成功",
  19420. type: "success"
  19421. });
  19422. this.wScore = 0;
  19423. this.scoreDetail = "";
  19424. this.dialogVisibleScore = false;
  19425. this.selectSWorks();
  19426. this.selectStudent();
  19427. if(this.tType!=2){
  19428. this.insertMemorandum(
  19429. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  19430. );
  19431. }
  19432. })
  19433. .catch(err => {
  19434. this.$message.error("评分失败");
  19435. console.error(err);
  19436. });
  19437. },
  19438. openXz(w, i) {
  19439. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19440. .taskJson[this.taskCount].toolChoose[i].selectJson
  19441. ? JSON.parse(
  19442. JSON.stringify(
  19443. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19444. this.taskCount
  19445. ].toolChoose[i].selectJson
  19446. )
  19447. )
  19448. : { url: "", select: [], answer: [] };
  19449. var a = w.works.split(",");
  19450. for (var k = 0; k < a.length; k++) {
  19451. a[k] = parseInt(a[k]);
  19452. }
  19453. this.selectAnswer = { answer: a, stu: w.sName };
  19454. this.isSelect = true;
  19455. this.dialogVisibleSelect = true;
  19456. this.insertMemorandum(
  19457. `查看<span class="variable">${w.sName}</span>的作业`
  19458. );
  19459. },
  19460. openSen(w, i) {
  19461. this.sentenceList1 = JSON.parse(w.works);
  19462. this.sentenceList1.stuName = w.sName;
  19463. this.dialogVisibleSentence1 = true;
  19464. },
  19465. openPj(w, toolindex) {
  19466. this.isStar = true;
  19467. this.eScore = JSON.parse(w);
  19468. this.rateJson = this.chapInfoList[
  19469. this.courseType
  19470. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  19471. this.studentEvalDialogVisible = true;
  19472. },
  19473. openEnglishEva(id, i) {
  19474. let params = {
  19475. wid: id
  19476. };
  19477. this.ajax
  19478. .get(this.$store.state.api + "selectEngWork", params)
  19479. .then(res => {
  19480. this.evaEngJson.message = res.data[0][0];
  19481. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  19482. this.evaEngJson.teacherJson = this.chapInfoList[
  19483. this.courseType
  19484. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  19485. this.engEvaDialogVisible = true;
  19486. })
  19487. .catch(err => {
  19488. console.error(err);
  19489. });
  19490. },
  19491. deleteWorks(id) {
  19492. this.$confirm("确定删除此作业吗?", "提示", {
  19493. confirmButtonText: "确定",
  19494. cancelButtonText: "取消",
  19495. type: "warning"
  19496. })
  19497. .then(() => {
  19498. let params = [
  19499. {
  19500. id: id
  19501. }
  19502. ];
  19503. this.ajax
  19504. .post(this.$store.state.api + "deleteCourseWork", params)
  19505. .then(res => {
  19506. this.$message({
  19507. message: "删除成功",
  19508. type: "success"
  19509. });
  19510. this.selectStudent();
  19511. this.selectSWorks();
  19512. this.selectSLook();
  19513. })
  19514. .catch(err => {
  19515. this.$message.error("网络异常");
  19516. console.error(err);
  19517. });
  19518. })
  19519. .catch(() => {});
  19520. },
  19521. // deleteWorksTwo(w,stage,task) {
  19522. // // let mk = `markSco${toolIndex}${wIndex}`
  19523. // // console.log(this.$refs[mk][0].homeworkVal)
  19524. // // let wid = this.$refs[mk][0].homeworkVal.id
  19525. // // console.log('wid',wid);
  19526. // this.$confirm("确定删除此作业吗?", "提示", {
  19527. // confirmButtonText: "确定",
  19528. // cancelButtonText: "取消",
  19529. // type: "warning",
  19530. // })
  19531. // .then(() => {
  19532. // let params = [
  19533. // {
  19534. // id: w.wid,
  19535. // cid: this.id,
  19536. // uid:w.userid,
  19537. // s:stage,
  19538. // t:task
  19539. // },
  19540. // ];
  19541. // // return console.log(params)
  19542. // this.ajax
  19543. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  19544. // .then((res) => {
  19545. // this.$message({
  19546. // message: "删除成功",
  19547. // type: "success",
  19548. // });
  19549. // this.selectStudent();
  19550. // this.selectSWorks();
  19551. // this.selectSLook();
  19552. // })
  19553. // .catch((err) => {
  19554. // this.$message.error("网络异常");
  19555. // console.error(err);
  19556. // });
  19557. // })
  19558. // .catch(() => {});
  19559. // },
  19560. noIsAi() {
  19561. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  19562. },
  19563. getLang() {
  19564. let lang = "";
  19565. if (this.languageSetting == 0) {
  19566. lang = "Chinese.";
  19567. } else if (this.languageSetting == 1) {
  19568. lang = "Traditional Chinese.";
  19569. } else if (this.languageSetting == 2) {
  19570. lang = "English.";
  19571. }
  19572. return lang;
  19573. },
  19574. selectSWorks(gindex) {
  19575. if (this.selectSWorksLoading) return
  19576. this.selectSWorksLoading = true
  19577. //教师查看全部作业
  19578. let params = {
  19579. cid: this.id,
  19580. s: this.courseType,
  19581. t: this.taskCount
  19582. };
  19583. this.ajax
  19584. .get(this.$store.state.api + "selectSWorks", params)
  19585. .then(res => {
  19586. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19587. this.taskCount
  19588. ].toolChoose;
  19589. var b = res.data[0];
  19590. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19591. var y = [
  19592. "AVI",
  19593. "NAVI",
  19594. "MPEG",
  19595. "ASF",
  19596. "MOV",
  19597. "WMV",
  19598. "3GP",
  19599. "RM",
  19600. "RMVB",
  19601. "FLV",
  19602. "F4V",
  19603. "H.264",
  19604. "H.265",
  19605. "REAL VIDEO",
  19606. "MKV",
  19607. "WebM",
  19608. "HDDVD",
  19609. "MP4",
  19610. "MPG",
  19611. "M4V",
  19612. "MGV",
  19613. "OGV",
  19614. "QTM",
  19615. "STR",
  19616. "AMC",
  19617. "DVX",
  19618. "EVO",
  19619. "DAT",
  19620. "OGG",
  19621. "OGM"
  19622. ];
  19623. var d = res.data[1];
  19624. var e = res.data[2];
  19625. var f = res.data[3];
  19626. let _worksStudent = [];
  19627. var _worksStudent2 = [];
  19628. for (var i = 0; i < a.length; i++) {
  19629. _worksStudent[i] = [];
  19630. _worksStudent2[i] = [];
  19631. if (
  19632. !this.isCloseList[i] ||
  19633. this.isCloseList[i].isClose == undefined
  19634. ) {
  19635. this.isCloseList[i] = { isClose: 0 };
  19636. }
  19637. this.groupStudent[i] = [];
  19638. this.groupStudentUid[i] = [];
  19639. if (this.isGroup) {
  19640. for (
  19641. var groupI = 0;
  19642. groupI < this.courseGroup.group.length;
  19643. groupI++
  19644. ) {
  19645. this.courseGroup.group[groupI].works[i] = [];
  19646. }
  19647. }
  19648. this.isWorksS[i] = [];
  19649. this.checkJson[i] = [];
  19650. if (a[i].tool[0] == 49) {
  19651. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19652. this.groupStudent[i][gA] = [];
  19653. this.groupStudentUid[i][gA] = [];
  19654. _worksStudent[i][gA] = [];
  19655. _worksStudent2[i][gA] = [];
  19656. this.isCloseList[i][gA] = [];
  19657. for (var g = 0; g < f.length; g++) {
  19658. if (
  19659. f[g].ttype == 2 &&
  19660. this.tcid &&
  19661. this.arrayToArray(
  19662. f[g].classid ? f[g].classid.split(",") : [],
  19663. this.tcid.split(",")
  19664. ).length == 0
  19665. ) {
  19666. continue;
  19667. }
  19668. let _classId = this.arrayToArray(
  19669. this.courseDetail.juri
  19670. ? this.courseDetail.juri.split(",")
  19671. : [],
  19672. this.classId ? this.classId.split(",") : []
  19673. );
  19674. if (
  19675. gA == f[g].group &&
  19676. f[g].tool == i &&
  19677. (this.arrayToArray(
  19678. f[g].classid ? f[g].classid.split(",") : [],
  19679. this.tcid.split(",")
  19680. ).length !== 0 ||
  19681. this.arrayToArray(
  19682. f[g].classid ? f[g].classid.split(",") : [],
  19683. _classId
  19684. ).length !== 0 ||
  19685. (!this.tcid && this.tType == "1") ||
  19686. this.courseDetail.juri === "" ||
  19687. f[g].ttype == 1)
  19688. ) {
  19689. this.groupStudent[i][gA].push(f[g]);
  19690. this.groupStudentUid[i][gA].push(f[g].userid);
  19691. }
  19692. }
  19693. }
  19694. this.$forceUpdate();
  19695. }
  19696. for (var j = 0; j < b.length; j++) {
  19697. if (
  19698. b[j].ttype == 2 &&
  19699. this.tcid &&
  19700. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19701. .length == 0
  19702. ) {
  19703. continue;
  19704. }
  19705. var likesCount = 0;
  19706. var commentCount = 0;
  19707. var isLikes = false;
  19708. var commentJson = [];
  19709. var likeJson = [];
  19710. var data = b[j];
  19711. if (i == b[j].tool) {
  19712. if (data.type == 2 && a[i].tool[0] == 4) {
  19713. // if(JSON.parse(data.content)[0].anwer){
  19714. var checkL =
  19715. JSON.parse(data.content)[0].anwer instanceof Array
  19716. ? JSON.parse(data.content)[0].anwer
  19717. : JSON.parse(data.content)[0].anwer.split(",");
  19718. for (var z = 0; z < checkL.length; z++) {
  19719. if (!this.checkJson[i][z]) {
  19720. this.checkJson[i].push({
  19721. checkCount: [],
  19722. checkPerson: [],
  19723. rightPerson: []
  19724. });
  19725. }
  19726. if (!this.checkJson[i][z].checkCount.length) {
  19727. this.checkJson[i][z].checkCount = [];
  19728. let _askItemCount = JSON.parse(data.content)[0].askJson
  19729. .askJson[z].askItem;
  19730. for (var aic = 0; aic < _askItemCount; aic++) {
  19731. this.checkJson[i][z].checkCount.push(0);
  19732. }
  19733. }
  19734. if (checkL[z] instanceof Array) {
  19735. if (
  19736. JSON.parse(data.content)[0]
  19737. .anwer.sort()
  19738. .join(",") == checkL[z].sort().join(",")
  19739. ) {
  19740. this.checkJson[i][z].rightPerson.push(data.name);
  19741. }
  19742. for (var q = 0; q < checkL[z].length; q++) {
  19743. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19744. ? this.checkJson[i][z].checkPerson[
  19745. parseInt(checkL[z][q])
  19746. ].push(data.name)
  19747. : (this.checkJson[i][z].checkPerson[
  19748. parseInt(checkL[z][q])
  19749. ] = [data.name]);
  19750. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19751. ? this.checkJson[i][z].checkCount[
  19752. parseInt(checkL[z][q])
  19753. ]++
  19754. : (this.checkJson[i][z].checkCount[
  19755. parseInt(checkL[z][q])
  19756. ] = 1);
  19757. }
  19758. } else {
  19759. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19760. this.checkJson[i][z].rightPerson.push(data.name);
  19761. }
  19762. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19763. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19764. ? this.checkJson[i][z].checkPerson[
  19765. parseInt(checkL[z])
  19766. ].push(data.name)
  19767. : (this.checkJson[i][z].checkPerson[
  19768. parseInt(checkL[z])
  19769. ] = [data.name]);
  19770. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19771. ? this.checkJson[i][z].checkCount[
  19772. parseInt(checkL[z])
  19773. ]++
  19774. : (this.checkJson[i][z].checkCount[
  19775. parseInt(checkL[z])
  19776. ] = 1);
  19777. }
  19778. }
  19779. }
  19780. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19781. var checkL = JSON.parse(data.content)[0].anwer;
  19782. for (var z = 0; z < checkL.length; z++) {
  19783. if (!this.checkJson[i][z]) {
  19784. this.checkJson[i].push({
  19785. checkCount: [],
  19786. checkPerson: [],
  19787. rightPerson: []
  19788. });
  19789. }
  19790. if (!this.checkJson[i][z].checkCount.length) {
  19791. this.checkJson[i][z].checkCount = [];
  19792. let _askItemCount = JSON.parse(data.content)[0].testJson
  19793. .testJson[z].testItem;
  19794. for (var aic = 0; aic < _askItemCount; aic++) {
  19795. this.checkJson[i][z].checkCount.push(0);
  19796. }
  19797. }
  19798. if (checkL[z] instanceof Array) {
  19799. if (
  19800. JSON.parse(data.content)[0]
  19801. .testJson.testJson[z].answer.sort()
  19802. .join(",") == checkL[z].sort().join(",")
  19803. ) {
  19804. this.checkJson[i][z].rightPerson.push(data.name);
  19805. }
  19806. for (var q = 0; q < checkL[z].length; q++) {
  19807. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19808. ? this.checkJson[i][z].checkPerson[
  19809. parseInt(checkL[z][q])
  19810. ].push(data.name)
  19811. : (this.checkJson[i][z].checkPerson[
  19812. parseInt(checkL[z][q])
  19813. ] = [data.name]);
  19814. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19815. ? this.checkJson[i][z].checkCount[
  19816. parseInt(checkL[z][q])
  19817. ]++
  19818. : (this.checkJson[i][z].checkCount[
  19819. parseInt(checkL[z][q])
  19820. ] = 1);
  19821. }
  19822. } else {
  19823. if (
  19824. JSON.parse(data.content)[0].testJson.testJson[z]
  19825. .answer == checkL[z]
  19826. ) {
  19827. this.checkJson[i][z].rightPerson.push(data.name);
  19828. }
  19829. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19830. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19831. ? this.checkJson[i][z].checkPerson[
  19832. parseInt(checkL[z])
  19833. ].push(data.name)
  19834. : (this.checkJson[i][z].checkPerson[
  19835. parseInt(checkL[z])
  19836. ] = [data.name]);
  19837. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19838. ? this.checkJson[i][z].checkCount[
  19839. parseInt(checkL[z])
  19840. ]++
  19841. : (this.checkJson[i][z].checkCount[
  19842. parseInt(checkL[z])
  19843. ] = 1);
  19844. }
  19845. }
  19846. }
  19847. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19848. var checkL = JSON.parse(data.content);
  19849. for (var z = 0; z < checkL.length; z++) {
  19850. if (!this.checkJson[i][z]) {
  19851. this.checkJson[i].push({
  19852. checkCount: [],
  19853. checkPerson: [],
  19854. rightPerson: []
  19855. });
  19856. }
  19857. this.checkJson[i][z].checkPerson.push(data.name);
  19858. if (
  19859. checkL[z].chooseSenList.toString() ==
  19860. checkL[z].rightAnswer.toString()
  19861. ) {
  19862. this.checkJson[i][z].rightPerson.push(data.name);
  19863. }
  19864. }
  19865. }
  19866. for (var k = 0; k < d.length; k++) {
  19867. //点赞
  19868. if (d[k].workId == b[j].id) {
  19869. likesCount++;
  19870. likeJson.push(d[k]);
  19871. if (d[k].likesId == this.userid) {
  19872. isLikes = true;
  19873. }
  19874. }
  19875. }
  19876. for (var l = 0; l < e.length; l++) {
  19877. //评论
  19878. if (e[l].workId == b[j].id) {
  19879. if (e[l].comment != "") {
  19880. commentCount++;
  19881. commentJson.push({
  19882. commentText: e[l].comment,
  19883. commentTime: e[l].commentTime,
  19884. commentPeople: e[l].commentPeople,
  19885. userid: e[l].userid,
  19886. wid: e[l].id
  19887. });
  19888. }
  19889. }
  19890. }
  19891. if (
  19892. (b[j].type == 1 ||
  19893. b[j].type == 4 ||
  19894. b[j].type == 5 ||
  19895. b[j].type == 6 ||
  19896. b[j].type == 12 ||
  19897. b[j].type == 7) &&
  19898. a[i].tool[0] != 15 &&
  19899. a[i].tool[0] != 4 &&
  19900. a[i].tool[0] != 45 &&
  19901. a[i].tool[0] != 50 &&
  19902. a[i].tool[0] != 32 &&
  19903. a[i].tool[0] != 57 &&
  19904. a[i].tool[0] != 52
  19905. ) {
  19906. if (
  19907. c.indexOf(
  19908. b[j].content
  19909. .split(".")
  19910. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19911. ) != -1 &&
  19912. a[i].tool[0] == 16 &&
  19913. b[j].atool != 50
  19914. ) {
  19915. let _works = {
  19916. userid: b[j].userid,
  19917. ateacher: b[j].ateacher,
  19918. wid: b[j].id,
  19919. works: b[j].content,
  19920. sName: b[j].name,
  19921. type: 1,
  19922. ttype: b[j].ttype,
  19923. time: b[j].time,
  19924. score: b[j].score,
  19925. img: b[j].img,
  19926. likesCount: likesCount,
  19927. commentCount: commentCount,
  19928. isLikes: isLikes,
  19929. commentJson: commentJson,
  19930. likeJson: likeJson
  19931. };
  19932. if (this.isGroup) {
  19933. let isGw = 1;
  19934. for (
  19935. var groupI = 0;
  19936. groupI < this.courseGroup.group.length;
  19937. groupI++
  19938. ) {
  19939. let gid = this.courseGroup.group[groupI].id;
  19940. if (
  19941. this.courseGroupStudentUid[gid].indexOf(
  19942. b[j].userid
  19943. ) != -1
  19944. ) {
  19945. isGw = 2;
  19946. this.courseGroup.group[groupI].works[i].push(_works);
  19947. break;
  19948. }
  19949. }
  19950. if (isGw == 1) {
  19951. _worksStudent[i].push(_works);
  19952. }
  19953. } else {
  19954. _worksStudent[i].push(_works);
  19955. }
  19956. _worksStudent2[i].push(_works);
  19957. this.isWorksS[i].push({
  19958. uid: b[j].userid,
  19959. sName: b[j].name
  19960. });
  19961. } else if (
  19962. y.indexOf(
  19963. b[j].content
  19964. .split(".")
  19965. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19966. ) != -1 &&
  19967. a[i].tool[0] == 16 &&
  19968. b[j].atool != 50
  19969. ) {
  19970. let _works = {
  19971. userid: b[j].userid,
  19972. ateacher: b[j].ateacher,
  19973. wid: b[j].id,
  19974. works: b[j].content,
  19975. sName: b[j].name,
  19976. type: 3,
  19977. ttype: b[j].ttype,
  19978. time: b[j].time,
  19979. score: b[j].score,
  19980. img: b[j].img,
  19981. likesCount: likesCount,
  19982. commentCount: commentCount,
  19983. isLikes: isLikes,
  19984. commentJson: commentJson,
  19985. likeJson: likeJson
  19986. };
  19987. if (this.isGroup) {
  19988. let isGw = 1;
  19989. for (
  19990. var groupI = 0;
  19991. groupI < this.courseGroup.group.length;
  19992. groupI++
  19993. ) {
  19994. let gid = this.courseGroup.group[groupI].id;
  19995. if (
  19996. this.courseGroupStudentUid[gid].indexOf(
  19997. b[j].userid
  19998. ) != -1
  19999. ) {
  20000. isGw = 2;
  20001. this.courseGroup.group[groupI].works[i].push(_works);
  20002. break;
  20003. }
  20004. }
  20005. if (isGw == 1) {
  20006. _worksStudent[i].push(_works);
  20007. }
  20008. } else {
  20009. _worksStudent[i].push(_works);
  20010. }
  20011. _worksStudent2[i].push(_works);
  20012. this.isWorksS[i].push({
  20013. uid: b[j].userid,
  20014. sName: b[j].name
  20015. });
  20016. } else if (b[j].type == 6 && b[j].atool != 50) {
  20017. let _works = {
  20018. userid: b[j].userid,
  20019. ateacher: b[j].ateacher,
  20020. wid: b[j].id,
  20021. works: b[j].content,
  20022. sName: b[j].name,
  20023. type: 4,
  20024. ttype: b[j].ttype,
  20025. time: b[j].time,
  20026. score: b[j].score,
  20027. img: b[j].img,
  20028. likesCount: likesCount,
  20029. commentCount: commentCount,
  20030. isLikes: isLikes,
  20031. commentJson: commentJson,
  20032. likeJson: likeJson
  20033. };
  20034. _worksStudent[i].push(_works);
  20035. _worksStudent2[i].push(_works);
  20036. this.isWorksS[i].push({
  20037. uid: b[j].userid,
  20038. sName: b[j].name
  20039. });
  20040. } else if (b[j].type == 7 && b[j].atool != 50) {
  20041. let _work = {
  20042. userid: b[j].userid,
  20043. ateacher: b[j].ateacher,
  20044. wid: b[j].id,
  20045. works: b[j].content,
  20046. sName: b[j].name,
  20047. type: 5,
  20048. ttype: b[j].ttype,
  20049. time: b[j].time,
  20050. score: b[j].score,
  20051. img: b[j].img,
  20052. likesCount: likesCount,
  20053. commentCount: commentCount,
  20054. isLikes: isLikes,
  20055. commentJson: commentJson,
  20056. likeJson: likeJson
  20057. };
  20058. _worksStudent[i].push(_work);
  20059. _worksStudent2[i].push(_work);
  20060. this.isWorksS[i].push({
  20061. uid: b[j].userid,
  20062. sName: b[j].name
  20063. });
  20064. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  20065. let _works = {
  20066. userid: b[j].userid,
  20067. ateacher: b[j].ateacher,
  20068. wid: b[j].id,
  20069. works: b[j].content,
  20070. sName: b[j].name,
  20071. type: 12,
  20072. ttype: b[j].ttype,
  20073. time: b[j].time,
  20074. score: b[j].score,
  20075. img: b[j].img,
  20076. likesCount: likesCount,
  20077. commentCount: commentCount,
  20078. isLikes: isLikes,
  20079. commentJson: commentJson,
  20080. likeJson: likeJson
  20081. };
  20082. if (this.isGroup) {
  20083. let isGw = 1;
  20084. for (
  20085. var groupI = 0;
  20086. groupI < this.courseGroup.group.length;
  20087. groupI++
  20088. ) {
  20089. let gid = this.courseGroup.group[groupI].id;
  20090. if (
  20091. this.courseGroupStudentUid[gid].indexOf(
  20092. b[j].userid
  20093. ) != -1
  20094. ) {
  20095. isGw = 2;
  20096. this.courseGroup.group[groupI].works[i].push(_works);
  20097. break;
  20098. }
  20099. }
  20100. if (isGw == 1) {
  20101. _worksStudent[i].push(_works);
  20102. }
  20103. } else {
  20104. _worksStudent[i].push(_works);
  20105. }
  20106. _worksStudent2[i].push(_works);
  20107. this.isWorksS[i].push({
  20108. uid: b[j].userid,
  20109. sName: b[j].name
  20110. });
  20111. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  20112. let _works = {
  20113. userid: b[j].userid,
  20114. ateacher: b[j].ateacher,
  20115. wid: b[j].id,
  20116. works: b[j].content,
  20117. sName: b[j].name,
  20118. type: 0,
  20119. ttype: b[j].ttype,
  20120. time: b[j].time,
  20121. score: b[j].score,
  20122. img: b[j].img,
  20123. likesCount: likesCount,
  20124. commentCount: commentCount,
  20125. isLikes: isLikes,
  20126. commentJson: commentJson,
  20127. likeJson: likeJson
  20128. };
  20129. if (this.isGroup) {
  20130. let isGw = 1;
  20131. for (
  20132. var groupI = 0;
  20133. groupI < this.courseGroup.group.length;
  20134. groupI++
  20135. ) {
  20136. let gid = this.courseGroup.group[groupI].id;
  20137. if (
  20138. this.courseGroupStudentUid[gid].indexOf(
  20139. b[j].userid
  20140. ) != -1
  20141. ) {
  20142. isGw = 2;
  20143. this.courseGroup.group[groupI].works[i].push(_works);
  20144. break;
  20145. }
  20146. }
  20147. if (isGw == 1) {
  20148. _worksStudent[i].push(_works);
  20149. }
  20150. } else {
  20151. _worksStudent[i].push(_works);
  20152. }
  20153. _worksStudent2[i].push(_works);
  20154. this.isWorksS[i].push({
  20155. uid: b[j].userid,
  20156. sName: b[j].name
  20157. });
  20158. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  20159. let _works = {
  20160. userid: b[j].userid,
  20161. ateacher: b[j].ateacher,
  20162. wid: b[j].id,
  20163. works: b[j].content,
  20164. sName: b[j].name,
  20165. type: 0,
  20166. ttype: b[j].ttype,
  20167. time: b[j].time,
  20168. score: b[j].score,
  20169. img: b[j].img,
  20170. likesCount: likesCount,
  20171. commentCount: commentCount,
  20172. isLikes: isLikes,
  20173. commentJson: commentJson,
  20174. likeJson: likeJson
  20175. };
  20176. if (this.isGroup) {
  20177. let isGw = 1;
  20178. for (
  20179. var groupI = 0;
  20180. groupI < this.courseGroup.group.length;
  20181. groupI++
  20182. ) {
  20183. let gid = this.courseGroup.group[groupI].id;
  20184. if (
  20185. this.courseGroupStudentUid[gid].indexOf(
  20186. b[j].userid
  20187. ) != -1
  20188. ) {
  20189. isGw = 2;
  20190. this.courseGroup.group[groupI].works[i].push(_works);
  20191. break;
  20192. }
  20193. }
  20194. if (isGw == 1) {
  20195. _worksStudent[i].push(_works);
  20196. }
  20197. } else {
  20198. _worksStudent[i].push(_works);
  20199. }
  20200. _worksStudent2[i].push(_works);
  20201. this.isWorksS[i].push({
  20202. uid: b[j].userid,
  20203. sName: b[j].name
  20204. });
  20205. }
  20206. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  20207. let _works = {
  20208. userid: b[j].userid,
  20209. ateacher: b[j].ateacher,
  20210. wid: b[j].id,
  20211. works: b[j].content,
  20212. sName: b[j].name,
  20213. type: 2,
  20214. ttype: b[j].ttype,
  20215. time: b[j].time,
  20216. score: b[j].score,
  20217. img: b[j].img,
  20218. likesCount: likesCount,
  20219. commentCount: commentCount,
  20220. isLikes: isLikes,
  20221. commentJson: commentJson,
  20222. likeJson: likeJson
  20223. };
  20224. if (this.isGroup) {
  20225. let isGw = 1;
  20226. for (
  20227. var groupI = 0;
  20228. groupI < this.courseGroup.group.length;
  20229. groupI++
  20230. ) {
  20231. let gid = this.courseGroup.group[groupI].id;
  20232. if (
  20233. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  20234. -1
  20235. ) {
  20236. isGw = 2;
  20237. this.courseGroup.group[groupI].works[i].push(_works);
  20238. break;
  20239. }
  20240. }
  20241. if (isGw == 1) {
  20242. _worksStudent[i].push(_works);
  20243. }
  20244. } else {
  20245. _worksStudent[i].push(_works);
  20246. }
  20247. _worksStudent2[i].push(_works);
  20248. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20249. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  20250. let _works = {
  20251. userid: b[j].userid,
  20252. ateacher: b[j].ateacher,
  20253. wid: b[j].id,
  20254. works: b[j].content,
  20255. sName: b[j].name,
  20256. type: 20,
  20257. ttype: b[j].ttype,
  20258. time: b[j].time,
  20259. score: b[j].score,
  20260. img: b[j].img,
  20261. likesCount: likesCount,
  20262. commentCount: commentCount,
  20263. isLikes: isLikes,
  20264. commentJson: commentJson,
  20265. likeJson: likeJson
  20266. };
  20267. if (this.isGroup) {
  20268. let isGw = 1;
  20269. for (
  20270. var groupI = 0;
  20271. groupI < this.courseGroup.group.length;
  20272. groupI++
  20273. ) {
  20274. let gid = this.courseGroup.group[groupI].id;
  20275. if (
  20276. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  20277. -1
  20278. ) {
  20279. isGw = 2;
  20280. this.courseGroup.group[groupI].works[i].push(_works);
  20281. break;
  20282. }
  20283. }
  20284. if (isGw == 1) {
  20285. _worksStudent[i].push(_works);
  20286. }
  20287. } else {
  20288. _worksStudent[i].push(_works);
  20289. }
  20290. _worksStudent2[i].push(_works);
  20291. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20292. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  20293. //问卷
  20294. let _work = {
  20295. userid: b[j].userid,
  20296. ateacher: b[j].ateacher,
  20297. wid: b[j].id,
  20298. works: b[j].content,
  20299. sName: b[j].name,
  20300. type: 2,
  20301. ttype: b[j].ttype,
  20302. time: b[j].time,
  20303. score: b[j].score,
  20304. img: b[j].img,
  20305. likesCount: likesCount,
  20306. commentCount: commentCount,
  20307. isLikes: isLikes,
  20308. commentJson: commentJson,
  20309. likeJson: likeJson
  20310. };
  20311. _worksStudent[i].push(_work);
  20312. _worksStudent2[i].push(_work);
  20313. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20314. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  20315. //选择题
  20316. let _work = {
  20317. userid: b[j].userid,
  20318. ateacher: b[j].ateacher,
  20319. wid: b[j].id,
  20320. works: b[j].content,
  20321. sName: b[j].name,
  20322. type: 8,
  20323. ttype: b[j].ttype,
  20324. time: b[j].time,
  20325. score: b[j].score,
  20326. img: b[j].img,
  20327. likesCount: likesCount,
  20328. commentCount: commentCount,
  20329. isLikes: isLikes,
  20330. commentJson: commentJson,
  20331. likeJson: likeJson
  20332. };
  20333. _worksStudent[i].push(_work);
  20334. _worksStudent2[i].push(_work);
  20335. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20336. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  20337. //选择题
  20338. let _work = {
  20339. userid: b[j].userid,
  20340. ateacher: b[j].ateacher,
  20341. wid: b[j].id,
  20342. works: b[j].content,
  20343. sName: b[j].name,
  20344. type: 9,
  20345. ttype: b[j].ttype,
  20346. time: b[j].time,
  20347. score: b[j].score,
  20348. img: b[j].img,
  20349. likesCount: likesCount,
  20350. commentCount: commentCount,
  20351. isLikes: isLikes,
  20352. commentJson: commentJson,
  20353. likeJson: likeJson
  20354. };
  20355. _worksStudent[i].push(_work);
  20356. _worksStudent2[i].push(_work);
  20357. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20358. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  20359. //选择题
  20360. let _work = {
  20361. userid: b[j].userid,
  20362. ateacher: b[j].ateacher,
  20363. wid: b[j].id,
  20364. works: b[j].content,
  20365. sName: b[j].name,
  20366. type: 10,
  20367. ttype: b[j].ttype,
  20368. time: b[j].time,
  20369. score: b[j].score,
  20370. img: b[j].img,
  20371. likesCount: likesCount,
  20372. commentCount: commentCount,
  20373. isLikes: isLikes,
  20374. commentJson: commentJson,
  20375. likeJson: likeJson
  20376. };
  20377. _worksStudent[i].push(_work);
  20378. _worksStudent2[i].push(_work);
  20379. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20380. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  20381. //选择题
  20382. let _work = {
  20383. userid: b[j].userid,
  20384. ateacher: b[j].ateacher,
  20385. wid: b[j].id,
  20386. works: b[j].content,
  20387. sName: b[j].name,
  20388. type: 13,
  20389. ttype: b[j].ttype,
  20390. time: b[j].time,
  20391. score: b[j].score,
  20392. img: b[j].img,
  20393. likesCount: likesCount,
  20394. commentCount: commentCount,
  20395. isLikes: isLikes,
  20396. commentJson: commentJson,
  20397. likeJson: likeJson
  20398. };
  20399. _worksStudent[i].push(_work);
  20400. _worksStudent2[i].push(_work);
  20401. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20402. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  20403. //选择题
  20404. let _work = {
  20405. userid: b[j].userid,
  20406. ateacher: b[j].ateacher,
  20407. wid: b[j].id,
  20408. works: b[j].content,
  20409. sName: b[j].name,
  20410. type: 16,
  20411. ttype: b[j].ttype,
  20412. time: b[j].time,
  20413. score: b[j].score,
  20414. img: b[j].img,
  20415. likesCount: likesCount,
  20416. commentCount: commentCount,
  20417. isLikes: isLikes,
  20418. commentJson: commentJson,
  20419. aiCode: b[j].aiCode,
  20420. teacherCode: b[j].teacherCode,
  20421. likeJson: likeJson
  20422. };
  20423. _worksStudent[i].push(_work);
  20424. _worksStudent2[i].push(_work);
  20425. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20426. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  20427. //选择题
  20428. let _work = {
  20429. userid: b[j].userid,
  20430. ateacher: b[j].ateacher,
  20431. wid: b[j].id,
  20432. works: b[j].content,
  20433. sName: b[j].name,
  20434. type: 17,
  20435. ttype: b[j].ttype,
  20436. time: b[j].time,
  20437. score: b[j].score,
  20438. img: b[j].img,
  20439. likesCount: likesCount,
  20440. commentCount: commentCount,
  20441. isLikes: isLikes,
  20442. commentJson: commentJson,
  20443. likeJson: likeJson
  20444. };
  20445. _worksStudent[i].push(_work);
  20446. _worksStudent2[i].push(_work);
  20447. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20448. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  20449. //交互视频
  20450. let _work = {
  20451. userid: b[j].userid,
  20452. ateacher: b[j].ateacher,
  20453. wid: b[j].id,
  20454. works: b[j].content,
  20455. sName: b[j].name,
  20456. type: 14,
  20457. ttype: b[j].ttype,
  20458. time: b[j].time,
  20459. score: b[j].score,
  20460. img: b[j].img,
  20461. likesCount: likesCount,
  20462. commentCount: commentCount,
  20463. isLikes: isLikes,
  20464. commentJson: commentJson,
  20465. likeJson: likeJson
  20466. };
  20467. _worksStudent[i].push(_work);
  20468. _worksStudent2[i].push(_work);
  20469. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20470. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  20471. let _gindex = JSON.parse(b[j].content);
  20472. if (
  20473. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  20474. b[j].userid
  20475. ) != -1
  20476. ) {
  20477. let _work = {
  20478. userid: b[j].userid,
  20479. ateacher: b[j].ateacher,
  20480. wid: b[j].id,
  20481. works: _gindex.url,
  20482. sName: b[j].name,
  20483. type: _gindex.type,
  20484. ttype: b[j].ttype,
  20485. time: b[j].time,
  20486. score: b[j].score,
  20487. img: b[j].img,
  20488. likesCount: likesCount,
  20489. commentCount: commentCount,
  20490. isLikes: isLikes,
  20491. commentJson: commentJson,
  20492. likeJson: likeJson
  20493. };
  20494. _worksStudent[i][_gindex.groupIndex].push(_work);
  20495. _worksStudent2[i][_gindex.groupIndex].push(_work);
  20496. }
  20497. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20498. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  20499. let _work = {
  20500. userid: b[j].userid,
  20501. ateacher: b[j].ateacher,
  20502. wid: b[j].id,
  20503. works: b[j].content,
  20504. sName: b[j].name ? b[j].name : b[j].userid,
  20505. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  20506. ttype: b[j].ttype,
  20507. time: b[j].time,
  20508. score: b[j].score,
  20509. img: b[j].img,
  20510. likesCount: likesCount,
  20511. commentCount: commentCount,
  20512. isLikes: isLikes,
  20513. commentJson: commentJson,
  20514. likeJson: likeJson
  20515. };
  20516. _worksStudent[i].push(_work);
  20517. _worksStudent2[i].push(_work);
  20518. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20519. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  20520. let _work = {
  20521. userid: b[j].userid,
  20522. ateacher: b[j].ateacher,
  20523. wid: b[j].id,
  20524. works: b[j].content,
  20525. sName: b[j].name ? b[j].name : b[j].userid,
  20526. type: 12,
  20527. ttype: b[j].ttype,
  20528. time: b[j].time,
  20529. score: b[j].score,
  20530. img: b[j].img,
  20531. likesCount: likesCount,
  20532. commentCount: commentCount,
  20533. isLikes: isLikes,
  20534. commentJson: commentJson,
  20535. likeJson: likeJson
  20536. };
  20537. _worksStudent[i].push(_work);
  20538. _worksStudent2[i].push(_work);
  20539. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20540. } else if (
  20541. a[i].tool[0] == 57 &&
  20542. b[j].atool == 57 &&
  20543. b[j].type == 12
  20544. ) {
  20545. let _work = {
  20546. userid: b[j].userid,
  20547. ateacher: b[j].ateacher,
  20548. wid: b[j].id,
  20549. works: b[j].content,
  20550. sName: b[j].name ? b[j].name : b[j].userid,
  20551. type: 12,
  20552. ttype: b[j].ttype,
  20553. time: b[j].time,
  20554. score: b[j].score,
  20555. img: b[j].img,
  20556. likesCount: likesCount,
  20557. commentCount: commentCount,
  20558. isLikes: isLikes,
  20559. commentJson: commentJson,
  20560. likeJson: likeJson
  20561. };
  20562. _worksStudent[i].push(_work);
  20563. _worksStudent2[i].push(_work);
  20564. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20565. } else if (
  20566. a[i].tool[0] == 57 &&
  20567. b[j].atool == 57 &&
  20568. b[j].type == 15
  20569. ) {
  20570. let _work = {
  20571. userid: b[j].userid,
  20572. ateacher: b[j].ateacher,
  20573. wid: b[j].id,
  20574. works: b[j].content,
  20575. sName: b[j].name ? b[j].name : b[j].userid,
  20576. type: 15,
  20577. ttype: b[j].ttype,
  20578. time: b[j].time,
  20579. score: b[j].score,
  20580. img: b[j].img,
  20581. likesCount: likesCount,
  20582. commentCount: commentCount,
  20583. isLikes: isLikes,
  20584. commentJson: commentJson,
  20585. likeJson: likeJson
  20586. };
  20587. _worksStudent[i].push(_work);
  20588. _worksStudent2[i].push(_work);
  20589. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20590. }
  20591. }
  20592. }
  20593. if (_worksStudent[i] && _worksStudent[i].length) {
  20594. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  20595. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20596. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20597. var scoreA = parseFloat(jscoreA);
  20598. var scoreB = parseFloat(jscoreB);
  20599. if (scoreA == scoreB) {
  20600. return b.likesCount - a.likesCount;
  20601. }
  20602. return scoreB - scoreA;
  20603. });
  20604. if (this.isGroup) {
  20605. for (
  20606. var groupI = 0;
  20607. groupI < this.courseGroup.group.length;
  20608. groupI++
  20609. ) {
  20610. this.courseGroup.group[groupI].works[
  20611. i
  20612. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20613. a,
  20614. b
  20615. ) {
  20616. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20617. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20618. var scoreA = parseFloat(jscoreA);
  20619. var scoreB = parseFloat(jscoreB);
  20620. if (scoreA == scoreB) {
  20621. return b.likesCount - a.likesCount;
  20622. }
  20623. return scoreB - scoreA;
  20624. });
  20625. }
  20626. }
  20627. }
  20628. }
  20629. this.timeWorkList = _worksStudent2;
  20630. for (var i = 0; i < a.length; i++) {
  20631. for (var j = 0; j < b.length; j++) {
  20632. var data = b[j];
  20633. if (i == b[j].tool) {
  20634. if (data.type == 2 || data.type == 8) {
  20635. for (var z = 0; z < this.checkJson[i].length; z++) {
  20636. this.checkJson[i][z].checkPerent = [];
  20637. this.checkJson[i][z].right = Math.round(
  20638. (this.checkJson[i][z].rightPerson.length /
  20639. parseInt(_worksStudent[i].length)) *
  20640. 100
  20641. );
  20642. let aaaa = this.checkJson[i][z];
  20643. for (
  20644. var k = 0;
  20645. k < this.checkJson[i][z].checkCount.length;
  20646. k++
  20647. ) {
  20648. this.checkJson[i][z].checkPerent.push(
  20649. Math.round(
  20650. (this.checkJson[i][z].checkCount[k] /
  20651. parseInt(_worksStudent[i].length)) *
  20652. 100
  20653. )
  20654. );
  20655. }
  20656. }
  20657. } else if (data.type == 9) {
  20658. for (var z = 0; z < this.checkJson[i].length; z++) {
  20659. this.checkJson[i][z].checkPerent = [];
  20660. this.checkJson[i][z].right = Math.round(
  20661. (this.checkJson[i][z].rightPerson.length /
  20662. this.checkJson[i][z].checkPerson.length) *
  20663. 100
  20664. );
  20665. }
  20666. }
  20667. }
  20668. }
  20669. }
  20670. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20671. this.joinGroup(gindex);
  20672. }
  20673. this.worksStudent = _worksStudent;
  20674. // if (((this.worksStudentCopy.length == 0) &&
  20675. // (this.worksStudent.length != 0)) ||
  20676. // (this.worksStudentCopy[this.taskCount].length != this.worksStudent[this.taskCount].length)
  20677. // ) {
  20678. // this.worksStudentCopy = this.worksStudent;
  20679. // }
  20680. this.selectWorksStudent();
  20681. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20682. this.$nextTick(() => {
  20683. setTimeout(() => {
  20684. setTimeout(() => {
  20685. this.panToolHeight("tool-" + ci);
  20686. }, 500);
  20687. }, 0);
  20688. });
  20689. }
  20690. this.selectSWorksLoading = false
  20691. })
  20692. .catch(err => {
  20693. this.selectSWorksLoading = false
  20694. console.error(err);
  20695. });
  20696. },
  20697. pngToWhiteBg(file) {
  20698. const _file = file;
  20699. let read = new FileReader();
  20700. read.readAsDataURL(file); // 文件转base64
  20701. return new Promise((resolve, reject) => {
  20702. read.onload = e => {
  20703. let img = new Image();
  20704. img.src = e.target.result;
  20705. img.onload = async () => {
  20706. // 生成canvas
  20707. let canvas = document.createElement("canvas");
  20708. let context = canvas.getContext("2d");
  20709. // 绘制图片到canvas上
  20710. canvas.width = img.width;
  20711. canvas.height = img.height;
  20712. // 在canvas绘制前填充白色背景
  20713. context.fillStyle = "#fff";
  20714. context.fillRect(0, 0, canvas.width, canvas.height);
  20715. context.drawImage(img, 0, 0);
  20716. let base64 = canvas.toDataURL(file["type"], 1);
  20717. let newFile = this.dataUrlToFile(base64, _file);
  20718. resolve(newFile);
  20719. };
  20720. };
  20721. });
  20722. },
  20723. dataUrlToFile(dataurl, file) {
  20724. let arr = dataurl.split(","),
  20725. mime = arr[0].match(/:(.*?);/)[1],
  20726. bstr = atob(arr[1]),
  20727. n = bstr.length,
  20728. u8arr = new Uint8Array(n);
  20729. while (n--) {
  20730. u8arr[n] = bstr.charCodeAt(n);
  20731. }
  20732. // return new Blob([u8arr], { type: mime });
  20733. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20734. type: mime
  20735. });
  20736. },
  20737. async beforeUpload1(event, type, i) {
  20738. // this.$message.success('进入上传')
  20739. var file = "";
  20740. if (type == 5) {
  20741. file = event;
  20742. } else {
  20743. file = event.target.files[0];
  20744. }
  20745. var credentials = {
  20746. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20747. secretAccessKey: "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"
  20748. }; //秘钥形式的登录上传
  20749. window.AWS.config.update(credentials);
  20750. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20751. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20752. var _this = this;
  20753. _this.progress = 0;
  20754. _this.proVisible = true;
  20755. _this.isFinishSize = 0;
  20756. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  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. "JPEG",
  20780. "JPG",
  20781. "TIF",
  20782. "PCX",
  20783. "TGA",
  20784. "EXIF",
  20785. "FPX",
  20786. "SVG",
  20787. "APNG"
  20788. ];
  20789. // if (
  20790. // b.indexOf(
  20791. // file.name
  20792. // .split(".")
  20793. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20794. // ) != -1
  20795. // ) {
  20796. // if (file.size / 1024 / 1024 > 10) {
  20797. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20798. // return;
  20799. // }
  20800. // } else if (
  20801. // excelA.indexOf(
  20802. // file.name
  20803. // .split(".")
  20804. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20805. // ) != "-1"
  20806. // ) {
  20807. // if (file.size / 1024 / 1024 > 5) {
  20808. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20809. // return;
  20810. // }
  20811. // }
  20812. if (
  20813. photoA.indexOf(
  20814. file.name
  20815. .split(".")
  20816. [file.name.split(".").length - 1].toLocaleUpperCase()
  20817. ) != -1 &&
  20818. type != 4
  20819. ) {
  20820. // const blob = await imageConversion.compress(file, 0.8)
  20821. file = await this.pngToWhiteBg(file);
  20822. const blob = await imageConversion.compressAccurately(file, 256);
  20823. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20824. file = new File([blob], file.name, { type: file.type });
  20825. }
  20826. if (file) {
  20827. var params = {
  20828. Key:
  20829. file.name.split(".")[0] +
  20830. new Date().getTime() +
  20831. "." +
  20832. file.name.split(".")[file.name.split(".").length - 1],
  20833. ContentType: file.type,
  20834. Body: file,
  20835. "Access-Control-Allow-Credentials": "*",
  20836. ACL: "public-read"
  20837. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20838. var options = {
  20839. // partSize: 2048 * 1024 * 1024,
  20840. partSize: 1024 * 1024 * 1024,
  20841. queueSize: 2,
  20842. leavePartsOnError: true
  20843. };
  20844. bucket
  20845. .upload(params, options)
  20846. .on("httpUploadProgress", function(evt) {
  20847. //这里可以写进度条
  20848. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20849. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20850. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20851. })
  20852. .send(function(err, data) {
  20853. _this.progress = 100;
  20854. _this.isFinishSize = _this.isAllSize;
  20855. setTimeout(() => {
  20856. _this.proVisible = false;
  20857. }, 1000);
  20858. if (err) {
  20859. var a = _this.$refs.upload1.uploadFiles;
  20860. a.splice(a.length - 1, a.length);
  20861. _this.$message.error("上传失败");
  20862. } else {
  20863. // _this.$message.success('上传成功')
  20864. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20865. var c = [
  20866. "AVI",
  20867. "NAVI",
  20868. "MPEG",
  20869. "ASF",
  20870. "MOV",
  20871. "WMV",
  20872. "3GP",
  20873. "RM",
  20874. "RMVB",
  20875. "FLV",
  20876. "F4V",
  20877. "H.264",
  20878. "H.265",
  20879. "REAL VIDEO",
  20880. "MKV",
  20881. "WebM",
  20882. "HDDVD",
  20883. "MP4",
  20884. "MPG",
  20885. "M4V",
  20886. "MGV",
  20887. "OGV",
  20888. "QTM",
  20889. "STR",
  20890. "AMC",
  20891. "DVX",
  20892. "EVO",
  20893. "DAT",
  20894. "OGG",
  20895. "OGM"
  20896. ];
  20897. if (type == 1) {
  20898. _this.studyJuri[0].cover.push({
  20899. name: file.name,
  20900. url: data.Location,
  20901. uid: file.uid
  20902. });
  20903. if (
  20904. c.indexOf(
  20905. _this.studyJuri[0].cover[0].url
  20906. .split(".")
  20907. [
  20908. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20909. ].toLocaleUpperCase()
  20910. ) != -1
  20911. ) {
  20912. _this.fileType = 2;
  20913. } else if (
  20914. b.indexOf(
  20915. _this.studyJuri[0].cover[0].url
  20916. .split(".")
  20917. [
  20918. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20919. ].toLocaleUpperCase()
  20920. ) != -1
  20921. ) {
  20922. _this.fileType = 1;
  20923. } else if (
  20924. photoA.indexOf(
  20925. _this.studyJuri[0].cover[0].url
  20926. .split(".")
  20927. [
  20928. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20929. ].toLocaleUpperCase()
  20930. ) != -1
  20931. ) {
  20932. _this.fileType = 0;
  20933. } else {
  20934. _this.fileType = 3;
  20935. }
  20936. _this.imgChange(null, null, type);
  20937. } else if (type == 2) {
  20938. _this.upToolImg = data.Location;
  20939. _this.imgChange(null, null, type);
  20940. _this.addCourseWorks(i);
  20941. } else if (type == 4) {
  20942. _this.addPz("3", data.Location);
  20943. } else if (type == 5) {
  20944. _this.addImgDrawImG(data.Location);
  20945. } else if (type == 6) {
  20946. var _ftype = 1;
  20947. if (
  20948. c.indexOf(
  20949. data.Location.split(".")[
  20950. data.Location.split(".").length - 1
  20951. ].toLocaleUpperCase()
  20952. ) != -1
  20953. ) {
  20954. _ftype = 5;
  20955. } else if (
  20956. b.indexOf(
  20957. data.Location.split(".")[
  20958. data.Location.split(".").length - 1
  20959. ].toLocaleUpperCase()
  20960. ) != -1
  20961. ) {
  20962. _ftype = 4;
  20963. } else {
  20964. _ftype = 1;
  20965. }
  20966. _this.plworkFile.push({
  20967. name: file.name,
  20968. url: data.Location,
  20969. uid: file.uid,
  20970. fileType: _ftype,
  20971. username:
  20972. _this.plworkFile.length > 10
  20973. ? _this.plworkFile.length + 1
  20974. : "0" + (_this.plworkFile.length + 1)
  20975. });
  20976. } else if (type == 7) {
  20977. _this.addCourseWorksGong(i, data.Location, 32);
  20978. } else if (type == 8) {
  20979. _this.addCourseWorksGong(i, data.Location, 57);
  20980. }
  20981. _this.imgChange(null, null, type);
  20982. console.log(data.Location);
  20983. // _this.$message.success('上传成功'+data.Location)
  20984. }
  20985. });
  20986. }
  20987. },
  20988. async beforeUpload3(event, type, i) {
  20989. // this.$message.success('进入上传')
  20990. let file = "";
  20991. let cfindex2 = 0;
  20992. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20993. file = event.target.files[cfindex];
  20994. var credentials = {
  20995. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20996. secretAccessKey: "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"
  20997. }; //秘钥形式的登录上传
  20998. window.AWS.config.update(credentials);
  20999. window.AWS.config.region = "cn-northwest-1"; //设置区域
  21000. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  21001. var _this = this;
  21002. // _this.progress = 0;
  21003. _this.proVisible2 = true;
  21004. var b = [
  21005. "DOC",
  21006. "DOCX",
  21007. "DOCM",
  21008. "DOTM",
  21009. "DOTX",
  21010. "PPTX",
  21011. "PPSX",
  21012. "PPT",
  21013. "PPS",
  21014. "PPTM",
  21015. "POTM",
  21016. "PPAM",
  21017. "POTX",
  21018. "PPSM"
  21019. ];
  21020. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  21021. var photoA = [
  21022. "BMP",
  21023. "GIF",
  21024. "PNG",
  21025. "JPEG",
  21026. "JPG",
  21027. "TIF",
  21028. "PCX",
  21029. "TGA",
  21030. "EXIF",
  21031. "FPX",
  21032. "SVG",
  21033. "APNG"
  21034. ];
  21035. if (
  21036. photoA.indexOf(
  21037. file.name
  21038. .split(".")
  21039. [file.name.split(".").length - 1].toLocaleUpperCase()
  21040. ) != -1 &&
  21041. type != 4
  21042. ) {
  21043. // const blob = await imageConversion.compress(file, 0.8)
  21044. file = await this.pngToWhiteBg(file);
  21045. const blob = await imageConversion.compressAccurately(file, 256);
  21046. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  21047. file = new File([blob], file.name, { type: file.type });
  21048. }
  21049. if (file) {
  21050. var params = {
  21051. Key:
  21052. file.name.split(".")[0] +
  21053. new Date().getTime() +
  21054. "." +
  21055. file.name.split(".")[file.name.split(".").length - 1],
  21056. ContentType: file.type,
  21057. Body: file,
  21058. "Access-Control-Allow-Credentials": "*",
  21059. ACL: "public-read"
  21060. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  21061. var options = {
  21062. // partSize: 2048 * 1024 * 1024,
  21063. partSize: 1024 * 1024 * 1024,
  21064. queueSize: 2,
  21065. leavePartsOnError: true
  21066. };
  21067. bucket
  21068. .upload(params, options)
  21069. .on("httpUploadProgress", function(evt) {
  21070. //这里可以写进度条
  21071. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  21072. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  21073. })
  21074. .send(function(err, data) {
  21075. // _this.progress = 100;
  21076. cfindex2++;
  21077. setTimeout(() => {
  21078. if (
  21079. cfindex2 == event.target.files.length - 1 ||
  21080. cfindex2 > event.target.files.length - 1
  21081. ) {
  21082. _this.proVisible2 = false;
  21083. }
  21084. }, 1000);
  21085. if (err) {
  21086. var a = _this.$refs.upload1.uploadFiles;
  21087. a.splice(a.length - 1, a.length);
  21088. _this.$message.error("上传失败");
  21089. } else {
  21090. // _this.$message.success('上传成功')
  21091. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  21092. var c = [
  21093. "AVI",
  21094. "NAVI",
  21095. "MPEG",
  21096. "ASF",
  21097. "MOV",
  21098. "WMV",
  21099. "3GP",
  21100. "RM",
  21101. "RMVB",
  21102. "FLV",
  21103. "F4V",
  21104. "H.264",
  21105. "H.265",
  21106. "REAL VIDEO",
  21107. "MKV",
  21108. "WebM",
  21109. "HDDVD",
  21110. "MP4",
  21111. "MPG",
  21112. "M4V",
  21113. "MGV",
  21114. "OGV",
  21115. "QTM",
  21116. "STR",
  21117. "AMC",
  21118. "DVX",
  21119. "EVO",
  21120. "DAT",
  21121. "OGG",
  21122. "OGM"
  21123. ];
  21124. if (type == 1) {
  21125. _this.studyJuri[0].cover.push({
  21126. name: file.name,
  21127. url: data.Location,
  21128. uid: file.uid
  21129. });
  21130. if (
  21131. c.indexOf(
  21132. _this.studyJuri[0].cover[0].url
  21133. .split(".")
  21134. [
  21135. _this.studyJuri[0].cover[0].url.split(".").length - 1
  21136. ].toLocaleUpperCase()
  21137. ) != -1
  21138. ) {
  21139. _this.fileType = 2;
  21140. } else if (
  21141. b.indexOf(
  21142. _this.studyJuri[0].cover[0].url
  21143. .split(".")
  21144. [
  21145. _this.studyJuri[0].cover[0].url.split(".").length - 1
  21146. ].toLocaleUpperCase()
  21147. ) != -1
  21148. ) {
  21149. _this.fileType = 1;
  21150. } else {
  21151. _this.fileType = 0;
  21152. }
  21153. _this.imgChange(null, null, type);
  21154. } else if (type == 2) {
  21155. _this.upToolImg = data.Location;
  21156. _this.imgChange(null, null, type);
  21157. _this.addCourseWorks(i);
  21158. } else if (type == 4) {
  21159. _this.addPz("3", data.Location);
  21160. } else if (type == 5) {
  21161. _this.addImgDrawImG(data.Location);
  21162. } else if (type == 6) {
  21163. var _ftype = 1;
  21164. if (
  21165. c.indexOf(
  21166. data.Location.split(".")[
  21167. data.Location.split(".").length - 1
  21168. ].toLocaleUpperCase()
  21169. ) != -1
  21170. ) {
  21171. _ftype = 5;
  21172. } else if (
  21173. b.indexOf(
  21174. data.Location.split(".")[
  21175. data.Location.split(".").length - 1
  21176. ].toLocaleUpperCase()
  21177. ) != -1
  21178. ) {
  21179. _ftype = 4;
  21180. } else {
  21181. _ftype = 1;
  21182. }
  21183. _this.plworkFile.push({
  21184. name: file.name,
  21185. url: data.Location,
  21186. uid: file.uid,
  21187. fileType: _ftype,
  21188. username:
  21189. _this.plworkFile.length + 1 > 9
  21190. ? _this.plworkFile.length + 1
  21191. : "0" + (_this.plworkFile.length + 1)
  21192. });
  21193. }
  21194. _this.imgChange(null, null, type);
  21195. console.log(data.Location);
  21196. // _this.$message.success('上传成功'+data.Location)
  21197. }
  21198. });
  21199. }
  21200. }
  21201. },
  21202. beforeUpload2(event, type) {
  21203. var file = event.target.files[0];
  21204. var credentials = {
  21205. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  21206. secretAccessKey: "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"
  21207. }; //秘钥形式的登录上传
  21208. window.AWS.config.update(credentials);
  21209. window.AWS.config.region = "cn-northwest-1"; //设置区域
  21210. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  21211. var _this = this;
  21212. _this.progress = 0;
  21213. _this.proVisible = true;
  21214. if (file) {
  21215. var params = {
  21216. Key:
  21217. file.name.split(".")[0] +
  21218. new Date().getTime() +
  21219. "." +
  21220. file.name.split(".")[file.name.split(".").length - 1],
  21221. ContentType: file.type,
  21222. Body: file,
  21223. "Access-Control-Allow-Credentials": "*",
  21224. ACL: "public-read"
  21225. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  21226. var options = {
  21227. partSize: 2048 * 1024 * 1024,
  21228. queueSize: 2,
  21229. leavePartsOnError: true
  21230. };
  21231. bucket
  21232. .upload(params, options)
  21233. .on("httpUploadProgress", function(evt) {
  21234. //这里可以写进度条
  21235. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  21236. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  21237. })
  21238. .send(function(err, data) {
  21239. _this.progress = 100;
  21240. setTimeout(() => {
  21241. _this.proVisible = false;
  21242. }, 1000);
  21243. if (err) {
  21244. var a = _this.$refs.upload1.uploadFiles;
  21245. a.splice(a.length - 1, a.length);
  21246. _this.$message.error("上传失败");
  21247. } else {
  21248. if (type == 2) {
  21249. _this.studyJuri[0].upVedio.push({
  21250. name: file.name,
  21251. url: data.Location,
  21252. uid: file.uid
  21253. });
  21254. _this.imgChange(null, null, type);
  21255. } else if (type == 3) {
  21256. _this.studyJuri[0].upFile.push({
  21257. name: file.name,
  21258. url: data.Location,
  21259. uid: file.uid
  21260. });
  21261. _this.imgChange(null, null, type);
  21262. }
  21263. console.log(data.Location);
  21264. }
  21265. });
  21266. }
  21267. },
  21268. allScrell() {
  21269. window.topU.postMessage({ allScreen: this.screenType }, "*");
  21270. },
  21271. // 0上一步 1下一步
  21272. nextOrpreSteps(t) {
  21273. if (this.IsFollow && this.tType == 2) {
  21274. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21275. return;
  21276. }
  21277. var b = this.chapInfoList.length - 1;
  21278. if (t == 0) {
  21279. if (this.courseType == 0) {
  21280. if (this.taskCount == 0) {
  21281. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  21282. if (this.IsLookOpen) {
  21283. if (
  21284. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  21285. ) {
  21286. if (
  21287. this.courseDetail.userid != this.userid &&
  21288. (!this.courseDetail.course_teacher ||
  21289. (this.courseDetail.course_teacher &&
  21290. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21291. -1))
  21292. ) {
  21293. this.$message.error("任务未解锁");
  21294. } else {
  21295. this.$message.error("上一任务未解锁");
  21296. }
  21297. return;
  21298. }
  21299. }
  21300. this.navList[this.courseType].isOpen = false;
  21301. this.courseType = b;
  21302. this.taskCount =
  21303. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21304. .length - 1;
  21305. this.navList[this.courseType].isOpen = true;
  21306. } else {
  21307. this.taskCount--;
  21308. }
  21309. } else {
  21310. if (this.taskCount == 0) {
  21311. this.navList[this.courseType].isOpen = false;
  21312. this.courseType--;
  21313. this.taskCount =
  21314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21315. .length - 1;
  21316. this.navList[this.courseType].isOpen = true;
  21317. } else {
  21318. this.taskCount--;
  21319. }
  21320. }
  21321. } else {
  21322. if (this.courseType == b) {
  21323. if (
  21324. this.taskCount ==
  21325. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21326. 1
  21327. ) {
  21328. this.navList[this.courseType].isOpen = false;
  21329. this.courseType = 0;
  21330. this.taskCount = 0;
  21331. this.navList[this.courseType].isOpen = true;
  21332. } else {
  21333. var bbb = parseInt(this.taskCount) + 1;
  21334. if (
  21335. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21336. .isLook &&
  21337. this.courseDetail.userid != this.userid &&
  21338. (!this.courseDetail.course_teacher ||
  21339. (this.courseDetail.course_teacher &&
  21340. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21341. -1)) &&
  21342. this.IsLookOpen
  21343. ) {
  21344. this.$message.error("任务未解锁");
  21345. return;
  21346. }
  21347. this.taskCount++;
  21348. if (this.IsLookOpen) {
  21349. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21350. this.taskCount
  21351. ].isLook = true;
  21352. this.addCourseState(3);
  21353. }
  21354. }
  21355. } else {
  21356. if (
  21357. this.taskCount ==
  21358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21359. 1
  21360. ) {
  21361. var bbb = parseInt(this.courseType) + 1;
  21362. if (
  21363. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  21364. this.courseDetail.userid != this.userid &&
  21365. (!this.courseDetail.course_teacher ||
  21366. (this.courseDetail.course_teacher &&
  21367. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21368. -1)) &&
  21369. this.IsLookOpen
  21370. ) {
  21371. this.$message.error("任务未解锁");
  21372. return;
  21373. }
  21374. this.navList[this.courseType].isOpen = false;
  21375. this.courseType++;
  21376. this.taskCount = 0;
  21377. this.navList[this.courseType].isOpen = true;
  21378. } else {
  21379. var bbb = parseInt(this.taskCount) + 1;
  21380. if (
  21381. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21382. .isLook &&
  21383. this.courseDetail.userid != this.userid &&
  21384. (!this.courseDetail.course_teacher ||
  21385. (this.courseDetail.course_teacher &&
  21386. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21387. -1)) &&
  21388. this.IsLookOpen
  21389. ) {
  21390. this.$message.error("任务未解锁");
  21391. return;
  21392. }
  21393. this.taskCount++;
  21394. }
  21395. if (this.IsLookOpen) {
  21396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21397. this.taskCount
  21398. ].isLook = true;
  21399. this.addCourseState(3);
  21400. }
  21401. }
  21402. // if (
  21403. // this.taskCount ==
  21404. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  21405. // ) {
  21406. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  21407. // } else {
  21408. // this.taskCount++;
  21409. // }
  21410. }
  21411. document.scrollingElement.scrollTop = 0;
  21412. this.showType = 7;
  21413. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21414. // if (this.vedio[this.taskCount].length > 0) {
  21415. // var a =
  21416. // document.getElementsByClassName("box_course")[this.taskCount]
  21417. // .offsetHeight;
  21418. // document.getElementsByClassName("vedioList")[
  21419. // this.taskCount
  21420. // ].style.height = a + "px";
  21421. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  21422. // a - 40 + "px";
  21423. // }
  21424. this.isNoHomeWork = false;
  21425. (this.studyJuri = [
  21426. {
  21427. content: "",
  21428. cover: [],
  21429. upVedio: [],
  21430. upFile: []
  21431. }
  21432. ]),
  21433. (this.radio = []);
  21434. this.isClickNav = "";
  21435. this.selectPz();
  21436. this.getHomeWork();
  21437. this.getCourseDetail(2);
  21438. this.$forceUpdate();
  21439. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  21440. this.setCTask();
  21441. }
  21442. },
  21443. openTask(s, n, i) {
  21444. if (this.IsFollow && this.tType == 2) {
  21445. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21446. return;
  21447. }
  21448. if (this.IsLookOpen &&
  21449. this.courseDetail.userid != this.userid &&
  21450. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  21451. if (
  21452. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  21453. this.courseDetail.userid != this.userid &&
  21454. (!this.courseDetail.course_teacher ||
  21455. (this.courseDetail.course_teacher &&
  21456. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  21457. ) {
  21458. this.$message.error("任务未解锁");
  21459. return;
  21460. }
  21461. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  21462. if (
  21463. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  21464. .isLook
  21465. ) {
  21466. this.$message.error("上一任务未解锁");
  21467. return;
  21468. }
  21469. } else if (s > this.courseType) {
  21470. if (n > 0) {
  21471. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  21472. this.$message.error("上一任务未解锁");
  21473. return;
  21474. }
  21475. } else {
  21476. if (
  21477. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  21478. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  21479. ].isLook
  21480. ) {
  21481. this.$message.error("上一任务未解锁");
  21482. return;
  21483. }
  21484. }
  21485. }
  21486. }
  21487. if (this.navList[s].task[n].isOpen == true) {
  21488. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  21489. return;
  21490. }
  21491. let flag = this.courseType == s;
  21492. this.courseType = s;
  21493. this.navId = i;
  21494. this.taskCount = n;
  21495. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  21496. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  21497. this.courseType
  21498. ].task[this.taskCount].isOpen;
  21499. if (this.IsLookOpen) {
  21500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21501. this.taskCount
  21502. ].isLook = true;
  21503. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  21504. this.addCourseState(3,yym);
  21505. }
  21506. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  21507. this.isCloseList[ci].isClose = 0;
  21508. this.isCloseList[ci].isCloseBoolean = false;
  21509. this.$nextTick(() => {
  21510. setTimeout(() => {
  21511. setTimeout(() => {
  21512. this.panToolHeight("tool-" + ci);
  21513. }, 0);
  21514. }, 0);
  21515. });
  21516. }
  21517. this.showType = 7;
  21518. this.isNoHomeWork = false;
  21519. (this.studyJuri = [
  21520. {
  21521. content: "",
  21522. cover: [],
  21523. upVedio: [],
  21524. upFile: []
  21525. }
  21526. ]),
  21527. (this.radio = []);
  21528. document.scrollingElement.scrollTop = 0;
  21529. // setTimeout(() => {
  21530. // let a = document.getElementById(i);
  21531. // if (a.offsetTop - 110 == 0) {
  21532. // window.scrollTo(0, 0);
  21533. // } else {
  21534. // window.scrollTo(0, a.offsetTop);
  21535. // }
  21536. // }, 0);
  21537. for (var z = 0; z < this.navList.length; z++) {
  21538. for (var q = 0; q < this.navList[z].task.length; q++) {
  21539. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  21540. this.navList[z].task[q].tool[w].isTool = false;
  21541. }
  21542. }
  21543. }
  21544. this.selectPz();
  21545. this.getHomeWork();
  21546. this.getCourseDetail(2);
  21547. if (flag) {
  21548. this.insertMemorandum(
  21549. `进入<span class="variable">任务${n + 1}${
  21550. this.navList[s].task[n].taskName
  21551. ? ":" + this.navList[s].task[n].taskName
  21552. : ""
  21553. }</span>`
  21554. );
  21555. } else {
  21556. this.insertMemorandum(
  21557. `进入<span class="variable">阶段${s + 1}${
  21558. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  21559. }</span>→<span class="variable">任务${n + 1}${
  21560. this.navList[s].task[n].taskName
  21561. ? ":" + this.navList[s].task[n].taskName
  21562. : ""
  21563. }</span>`
  21564. );
  21565. }
  21566. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  21567. this.setCTask();
  21568. }
  21569. },
  21570. get(i) {
  21571. if (this.IsFollow && this.tType == 2) {
  21572. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21573. return;
  21574. }
  21575. // for(var k=0;k<this.navList.length;k++){
  21576. // this.navList[k].isOpen = false;
  21577. // }
  21578. // this.navList[i].isOpen = true;
  21579. this.navList[i].isOpen = !this.navList[i].isOpen;
  21580. if (this.navList[i].isOpen) {
  21581. this.openTask(i, 0, i + "-0");
  21582. }
  21583. },
  21584. addQuestion() {
  21585. this.answerList.push({
  21586. answerTitle: this.answerQ,
  21587. answer: this.questionAnswer
  21588. });
  21589. let params = [
  21590. {
  21591. uid: this.userid,
  21592. cid: this.id,
  21593. stage: this.courseType,
  21594. task: this.taskCount,
  21595. tool: this.toolindex,
  21596. content: JSON.stringify(this.answerList),
  21597. type: 3
  21598. }
  21599. ];
  21600. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  21601. this.homeWorkLoading = true
  21602. this.ajax
  21603. .post(this.$store.state.api + "addCourseWorks", params)
  21604. .then(res => {
  21605. this.$message({
  21606. message: "提交成功",
  21607. type: "success"
  21608. });
  21609. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21610. setTimeout(() => {
  21611. this.homeWorkLoading = false
  21612. }, 500);
  21613. this.answerList = [];
  21614. this.answerDialogVisible = false;
  21615. this.selectStudent();
  21616. this.selectSWorks();
  21617. this.selectSLook();
  21618. })
  21619. .catch(err => {
  21620. this.$message.error("提交失败");
  21621. setTimeout(() => {
  21622. this.homeWorkLoading = false
  21623. }, 500);
  21624. console.error(err);
  21625. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21626. });
  21627. },
  21628. addQuestionTeacher() {
  21629. this.answerList.push({
  21630. answerTitle: this.answerQ,
  21631. answer: this.questionAnswer
  21632. });
  21633. let params = [
  21634. {
  21635. uid: this.sStudent.userid,
  21636. cid: this.id,
  21637. stage: this.courseType,
  21638. task: this.taskCount,
  21639. tool: this.toolindex,
  21640. content: JSON.stringify(this.answerList),
  21641. type: 3,
  21642. ateacher: this.userid
  21643. }
  21644. ];
  21645. this.ajax
  21646. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21647. .then(res => {
  21648. this.$message({
  21649. message: "提交成功",
  21650. type: "success"
  21651. });
  21652. this.answerList = [];
  21653. this.questionAnswer = "";
  21654. this.answerDialogVisibleTeacher = false;
  21655. this.selectStudent();
  21656. this.selectSWorks();
  21657. this.selectSLook();
  21658. })
  21659. .catch(err => {
  21660. this.$message.error("提交失败");
  21661. console.error(err);
  21662. });
  21663. },
  21664. refreshCourse() {
  21665. // window.location.reload();
  21666. this.navList = [];
  21667. this.getCourseDetail(1);
  21668. },
  21669. getCourseDetail(type, gindex) {
  21670. let loading;
  21671. if (type != 2) {
  21672. loading = this.$loading.service({
  21673. background: "rgba(255, 255, 255, 0.7)",
  21674. target: document.querySelector(".student_table")
  21675. });
  21676. }
  21677. this.downLoading = false;
  21678. // this.navList[0].isOpen = false;
  21679. // this.navList[this.courseType].isOpen = true;
  21680. // this.courseType = this.courseTypeLine;
  21681. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21682. let params = {
  21683. courseId: this.id
  21684. };
  21685. this.ajax
  21686. .get(this.$store.state.api + "selectCourseDetail3", params)
  21687. .then(res => {
  21688. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21689. if (type != 2) {
  21690. loading.close();
  21691. if (
  21692. this.courseType >
  21693. JSON.parse(res.data[0][0].chapters).length - 1
  21694. ) {
  21695. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21696. }
  21697. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21698. .chapterInfo[0].taskJson;
  21699. var b = [
  21700. "AVI",
  21701. "NAVI",
  21702. "MPEG",
  21703. "ASF",
  21704. "MOV",
  21705. "WMV",
  21706. "3GP",
  21707. "RM",
  21708. "RMVB",
  21709. "FLV",
  21710. "F4V",
  21711. "H.264",
  21712. "H.265",
  21713. "REAL VIDEO",
  21714. "MKV",
  21715. "WebM",
  21716. "HDDVD",
  21717. "MP4",
  21718. "MPG",
  21719. "M4V",
  21720. "MGV",
  21721. "OGV",
  21722. "QTM",
  21723. "STR",
  21724. "AMC",
  21725. "DVX",
  21726. "EVO",
  21727. "DAT",
  21728. "OGG",
  21729. "OGM",
  21730. "MP3"
  21731. ];
  21732. let _chapterData = [];
  21733. for (var i = 0; i < a.length; i++) {
  21734. var c = a[i].chapterData;
  21735. this.vedio[i] = [];
  21736. this.textList[i] = [];
  21737. this.lineList[i] = [];
  21738. this.chapToolList[i] = [];
  21739. this.file[i] = [];
  21740. this.fileC[i] = [];
  21741. _chapterData[i] = c.filter(el => {
  21742. return el.type != 12;
  21743. });
  21744. this.fileC[i] = c.filter(el => {
  21745. return el.type == 12;
  21746. });
  21747. if (this.tType == 2) {
  21748. if (this.fileC[i].length) {
  21749. let yym1 = this.fileC[i].filter(e=>{
  21750. if(!converter(e.name).includes(converter("教案"))){
  21751. return e
  21752. }
  21753. })
  21754. this.fileC[i] = yym1
  21755. }
  21756. }
  21757. // else if (c[j].type == 12) {
  21758. // this.fileC[i].push(c[j]);
  21759. // }
  21760. for (var j = 0; j < c.length; j++) {
  21761. if (c[j].type == 7) {
  21762. this.chapToolList[i].push(c[j]);
  21763. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21764. this.lineList[i].push(c[j]);
  21765. } else if (c[j].type == 6) {
  21766. this.textList[i].push(c[j]);
  21767. } else {
  21768. if (
  21769. b.indexOf(
  21770. c[j].url
  21771. .split(".")
  21772. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21773. ) != -1
  21774. ) {
  21775. this.vedio[i].push(c[j]);
  21776. } else {
  21777. this.file[i].push(c[j]);
  21778. }
  21779. }
  21780. }
  21781. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21782. d.sources[0].src =
  21783. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21784. this.playerO[i] = d;
  21785. }
  21786. this.courseDetail = res.data[0][0];
  21787. if(this.tType == 2){
  21788. this.tcid = this.arrayToArray(
  21789. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21790. this.classId ? this.classId.split(",") : []
  21791. ).join(",");
  21792. }else{
  21793. this.tcid = this.arrayToArray(
  21794. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21795. this.tcid2 ? this.tcid2.split(",") : []
  21796. ).join(",");
  21797. }
  21798. this.evalua = res.data[0][0].evaId;
  21799. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21800. this.courseType
  21801. ];
  21802. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21803. if (this.tcid && res.data[1].length) {
  21804. let _inviteA = [];
  21805. for (var ik = 0; ik < res.data[1].length; ik++) {
  21806. _inviteA.push({
  21807. cid: res.data[1][ik].classid,
  21808. ic: res.data[1][ik].code
  21809. });
  21810. }
  21811. for (var ik = 0; ik < _inviteA.length; ik++) {
  21812. if (
  21813. this.arrayToArray(
  21814. _inviteA[ik].cid.split(","),
  21815. this.tcid.split(",")
  21816. ).length
  21817. ) {
  21818. this.inviteCode = _inviteA[ik].ic;
  21819. break;
  21820. }
  21821. }
  21822. }
  21823. for (var l = 0; l < this.chapInfoList.length; l++) {
  21824. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21825. for (var m = 0; m < w.length; m++) {
  21826. w[m].id = l + "-" + m;
  21827. }
  21828. }
  21829. if (
  21830. _chapterData[this.taskCount].length &&
  21831. _chapterData[this.taskCount][0].type == 2
  21832. ) {
  21833. this.showType = 0;
  21834. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21835. } else {
  21836. if (_chapterData[this.taskCount].length > 0) {
  21837. let _url = _chapterData[this.taskCount][0].url;
  21838. if (
  21839. _chapterData[this.taskCount][0].type == 8 ||
  21840. _chapterData[this.taskCount][0].type == 14 ||
  21841. _chapterData[this.taskCount][0].type == 15
  21842. ) {
  21843. this.showType = 2;
  21844. if (
  21845. _url.indexOf("https://") == -1 &&
  21846. _url.indexOf("http://") == -1
  21847. ) {
  21848. _url = "https://" + _url;
  21849. }
  21850. this.pptImgUrl1 = _url;
  21851. } else if (_chapterData[this.taskCount][0].type == 3) {
  21852. if (
  21853. _url
  21854. .split(".")
  21855. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21856. ) {
  21857. this.showType = 3;
  21858. this.pptImgUrl1 = _url;
  21859. } else if (
  21860. this.isAssetTypeAnImage(
  21861. _url
  21862. .split(".")
  21863. [_url.split(".").length - 1].toLocaleLowerCase()
  21864. )
  21865. ) {
  21866. this.showType = 4;
  21867. this.pptImgUrl1 = _url;
  21868. } else {
  21869. this.showType = 2;
  21870. this.pptImgUrl1 =
  21871. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21872. encodeURIComponent(_url);
  21873. }
  21874. } else if (_chapterData[this.taskCount][0].type == 13) {
  21875. this.showType = 4;
  21876. this.pptImgUrl1 = _url;
  21877. } else if (_chapterData[this.taskCount][0].type == 6) {
  21878. this.showType = 1;
  21879. this.text = this.textList[this.taskCount][0];
  21880. } else if (_chapterData[this.taskCount][0].type == 16) {
  21881. this.showType = 16;
  21882. this.pptImgUrl1 = _url;
  21883. }
  21884. }
  21885. }
  21886. this.isClickNav = 0;
  21887. if (
  21888. !_chapterData[this.taskCount].length ||
  21889. _chapterData[this.taskCount][0].type == 12
  21890. ) {
  21891. this.isClickNav = "";
  21892. this.showType = "";
  21893. }
  21894. if (this.tType == 2) {
  21895. _chapterData.forEach((e,i)=>{
  21896. if (e.length) {
  21897. let yym = e.filter(k=>{
  21898. if(!converter(k.name).includes(converter("教案"))){
  21899. return k
  21900. }
  21901. })
  21902. _chapterData[i] = yym
  21903. }
  21904. })
  21905. }
  21906. this.vChapterData = _chapterData;
  21907. } else {
  21908. this.showType = 0;
  21909. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21910. .chapterInfo[0].taskJson;
  21911. var b = [
  21912. "AVI",
  21913. "NAVI",
  21914. "MPEG",
  21915. "ASF",
  21916. "MOV",
  21917. "WMV",
  21918. "3GP",
  21919. "RM",
  21920. "RMVB",
  21921. "FLV",
  21922. "F4V",
  21923. "H.264",
  21924. "H.265",
  21925. "REAL VIDEO",
  21926. "MKV",
  21927. "WebM",
  21928. "HDDVD",
  21929. "MP4",
  21930. "MPG",
  21931. "M4V",
  21932. "MGV",
  21933. "OGV",
  21934. "QTM",
  21935. "STR",
  21936. "AMC",
  21937. "DVX",
  21938. "EVO",
  21939. "DAT",
  21940. "OGG",
  21941. "OGM",
  21942. "MP3"
  21943. ];
  21944. let _chapterData = [];
  21945. for (var i = 0; i < a.length; i++) {
  21946. var c = a[i].chapterData;
  21947. this.vedio[i] = [];
  21948. this.textList[i] = [];
  21949. this.lineList[i] = [];
  21950. this.chapToolList[i] = [];
  21951. this.file[i] = [];
  21952. this.fileC[i] = [];
  21953. _chapterData[i] = c.filter(el => {
  21954. return el.type != 12;
  21955. });
  21956. this.fileC[i] = c.filter(el => {
  21957. return el.type == 12;
  21958. });
  21959. if (this.tType == 2) {
  21960. if (this.fileC[i].length) {
  21961. let yym1 = this.fileC[i].filter(e=>{
  21962. if(!converter(e.name).includes(converter("教案"))){
  21963. return e
  21964. }
  21965. })
  21966. this.fileC[i] = yym1
  21967. }
  21968. }
  21969. for (var j = 0; j < c.length; j++) {
  21970. if (c[j].type == 7) {
  21971. this.chapToolList[i].push(c[j]);
  21972. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21973. this.lineList[i].push(c[j]);
  21974. } else if (c[j].type == 6) {
  21975. this.textList[i].push(c[j]);
  21976. } else {
  21977. if (
  21978. b.indexOf(
  21979. c[j].url
  21980. .split(".")
  21981. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21982. ) != -1
  21983. ) {
  21984. this.vedio[i].push(c[j]);
  21985. } else {
  21986. this.file[i].push(c[j]);
  21987. }
  21988. }
  21989. }
  21990. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21991. d.sources[0].src =
  21992. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21993. this.playerO[i] = d;
  21994. }
  21995. if (
  21996. _chapterData[this.taskCount].length &&
  21997. _chapterData[this.taskCount][0].type == 2
  21998. ) {
  21999. this.showType = 0;
  22000. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  22001. } else {
  22002. if (_chapterData[this.taskCount].length > 0) {
  22003. let _url = _chapterData[this.taskCount][0].url;
  22004. if (
  22005. _chapterData[this.taskCount][0].type == 8 ||
  22006. _chapterData[this.taskCount][0].type == 14 ||
  22007. _chapterData[this.taskCount][0].type == 15
  22008. ) {
  22009. this.showType = 2;
  22010. if (
  22011. _url.indexOf("https://") == -1 &&
  22012. _url.indexOf("http://") == -1
  22013. ) {
  22014. _url = "https://" + _url;
  22015. }
  22016. this.pptImgUrl1 = _url;
  22017. } else if (_chapterData[this.taskCount][0].type == 3) {
  22018. if (
  22019. _url
  22020. .split(".")
  22021. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22022. ) {
  22023. this.showType = 3;
  22024. this.pptImgUrl1 = _url;
  22025. } else if (
  22026. this.isAssetTypeAnImage(
  22027. _url
  22028. .split(".")
  22029. [_url.split(".").length - 1].toLocaleLowerCase()
  22030. )
  22031. ) {
  22032. this.showType = 4;
  22033. this.pptImgUrl1 = _url;
  22034. } else {
  22035. this.showType = 2;
  22036. this.pptImgUrl1 =
  22037. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22038. encodeURIComponent(_url);
  22039. }
  22040. } else if (_chapterData[this.taskCount][0].type == 13) {
  22041. this.showType = 4;
  22042. this.pptImgUrl1 = _url;
  22043. } else if (_chapterData[this.taskCount][0].type == 6) {
  22044. this.showType = 1;
  22045. this.text = this.textList[this.taskCount][0];
  22046. } else if (_chapterData[this.taskCount][0].type == 16) {
  22047. this.showType = 16;
  22048. this.pptImgUrl1 = _url;
  22049. }
  22050. }
  22051. }
  22052. this.isClickNav = 0;
  22053. if (
  22054. !_chapterData[this.taskCount].length ||
  22055. _chapterData[this.taskCount][0].type == 12
  22056. ) {
  22057. this.isClickNav = "";
  22058. this.showType = "";
  22059. }
  22060. if (this.tType == 2) {
  22061. _chapterData.forEach((e,i)=>{
  22062. if (e.length) {
  22063. let yym = e.filter(k=>{
  22064. if(!converter(k.name).includes(converter("教案"))){
  22065. return k
  22066. }
  22067. })
  22068. _chapterData[i] = yym
  22069. }
  22070. })
  22071. }
  22072. this.vChapterData = _chapterData;
  22073. this.$forceUpdate();
  22074. }
  22075. // console.log('this.chapInfoList22222',JS);
  22076. if (res.data[0][0].setting) {
  22077. try {
  22078. this.languageSetting =
  22079. JSON.parse(res.data[0][0].setting).languageSetting ||
  22080. JSON.parse(res.data[0][0].setting).languageSetting == 0
  22081. ? JSON.parse(res.data[0][0].setting).languageSetting
  22082. : 0;
  22083. } catch (error) {
  22084. console.error(error);
  22085. }
  22086. }
  22087. // finalMarkList用来判断哪个工具为评分工具
  22088. if (this.courseDetail.state == 5) {
  22089. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  22090. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  22091. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  22092. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  22093. // // 没有的话在选其他工具为评分工具
  22094. // if(adc.length > 0){
  22095. // for (let k = chap.length - 1; k >= 0; k--) {
  22096. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  22097. // this.finalMarkList = k;
  22098. // break;
  22099. // }
  22100. // }
  22101. // }else{
  22102. // for (let k = chap.length - 1; k >= 0; k--) {
  22103. // 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) {
  22104. // this.finalMarkList = k;
  22105. // break;
  22106. // }
  22107. // }
  22108. // }
  22109. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  22110. // 不然会无限循环报错,会很难受
  22111. let aiSNum = 0;
  22112. if (
  22113. chapInfoListCopy[this.taskCount].eList &&
  22114. chapInfoListCopy[this.taskCount].eList.length
  22115. ) {
  22116. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  22117. if (e.isai == 2) {
  22118. aiSNum++;
  22119. }
  22120. });
  22121. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  22122. this.isaiNum = aiSNum;
  22123. } else {
  22124. this.isaiNum = 0;
  22125. }
  22126. // for (
  22127. // let k = 0;
  22128. // k < chapInfoListCopy[this.taskCount].eList.length;
  22129. // k++
  22130. // ) {
  22131. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  22132. // this.againEva(this.taskCount, k);
  22133. // }
  22134. // }
  22135. }
  22136. }
  22137. // else {
  22138. // this.courseDetail = res.data[0][0];
  22139. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  22140. // }
  22141. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  22142. if (type == 10) {
  22143. console.log('this.courseDetail.userid',this.courseDetail.userid);
  22144. console.log('this.userid',this.userid);
  22145. if (this.courseDetail.userid == this.userid) {
  22146. // 开局关闭学生查看内容
  22147. this.StulookMode(true)
  22148. // 开局打开跟随模式
  22149. this.followingMode(true)
  22150. }
  22151. }
  22152. let _this = this;
  22153. if (_this.timer) {
  22154. clearInterval(_this.timer);
  22155. _this.timer = null;
  22156. }
  22157. if (_this.tcid) {
  22158. _this.getCourseGroup(gindex);
  22159. } else {
  22160. _this.selectSWorks(gindex);
  22161. }
  22162. _this.selectStudent();
  22163. _this.selectSLook();
  22164. _this.getPick();
  22165. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  22166. // _this.setCTask();
  22167. // }
  22168. if (_this.dialogVisibleGroup) {
  22169. _this.groupJson =
  22170. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  22171. _this.taskCount
  22172. ].toolChoose[_this.toolindex].groupJson;
  22173. }
  22174. _this.$nextTick(() => {
  22175. setTimeout(() => {
  22176. _this.checkEva();
  22177. }, 1000);
  22178. });
  22179. _this.timer = setInterval(function() {
  22180. // _this.getCourseDetail(2);
  22181. if (_this.tcid) {
  22182. _this.getCourseGroup();
  22183. } else {
  22184. _this.selectSWorks();
  22185. }
  22186. _this.selectStudent();
  22187. _this.selectSLook();
  22188. _this.getPick();
  22189. // _this.getSplitScreenData();
  22190. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  22191. // _this.setCTask();
  22192. // }
  22193. if (_this.dialogVisibleGroup) {
  22194. _this.groupJson =
  22195. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  22196. _this.taskCount
  22197. ].toolChoose[_this.toolindex].groupJson;
  22198. }
  22199. if (_this.tType == 4 || _this.ispzType == 4) {
  22200. _this.selectPz();
  22201. }
  22202. }, 5000);
  22203. if (_this.timer2 == null) {
  22204. _this.timer2 = setInterval(()=> {
  22205. _this.getSplitScreenData();//获取分屏数据
  22206. }, 5000);
  22207. }
  22208. _this.$nextTick(function() {
  22209. setTimeout(() => {
  22210. // var a =
  22211. // document.getElementsByClassName("box_course")[0].offsetHeight;
  22212. // document.getElementsByClassName("vedioList")[0].style.height =
  22213. // a + "px";
  22214. // document.getElementsByClassName("navBox")[0].style.height =
  22215. // a - 40 + "px";
  22216. // if (_this.vedio[_this.taskCount].length > 0) {
  22217. // _this.vedioTime = [];
  22218. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  22219. // _this.vedioTime[i] = document.getElementsByClassName(
  22220. // "vjs-duration-display"
  22221. // )[i].textContent;
  22222. // }
  22223. // }
  22224. }, 1000);
  22225. });
  22226. })
  22227. .catch(err => {
  22228. loading.close();
  22229. console.error(err);
  22230. });
  22231. },
  22232. getCourseGroup(gindex) {
  22233. if(this.getCourseGroupLoading) return
  22234. this.getCourseGroupLoading = true
  22235. let params = {
  22236. cid: this.id,
  22237. classid: this.tcid ? this.tcid : "1"
  22238. };
  22239. this.ajax
  22240. .get(this.$store.state.api + "getCourseGroup", params)
  22241. .then(res => {
  22242. if (res.data && res.data[0].length) {
  22243. if (!this.isGroup) {
  22244. let courseGroup = JSON.parse(res.data[0][0].group);
  22245. courseGroup.group = courseGroup.group.filter(el => {
  22246. el.works = [];
  22247. return el;
  22248. });
  22249. if (courseGroup.isopen == 2) {
  22250. this.isGroup = false;
  22251. this.selectSWorks(gindex);
  22252. return;
  22253. }
  22254. this.courseGroup = courseGroup;
  22255. let groupPerson = res.data[1];
  22256. let group = JSON.parse(res.data[0][0].group).group;
  22257. let courseGroupStudent = {};
  22258. let courseGroupStudentUid = {};
  22259. for (var i = 0; i < group.length; i++) {
  22260. courseGroupStudent[group[i].id] = [];
  22261. courseGroupStudentUid[group[i].id] = [];
  22262. for (var j = 0; j < groupPerson.length; j++) {
  22263. if (groupPerson[j].groupCid == group[i].id) {
  22264. courseGroupStudent[group[i].id].push(groupPerson[j]);
  22265. courseGroupStudentUid[group[i].id].push(
  22266. groupPerson[j].userid
  22267. );
  22268. }
  22269. }
  22270. }
  22271. this.courseGroupStudent = courseGroupStudent;
  22272. this.courseGroupStudentUid = courseGroupStudentUid;
  22273. }
  22274. if (this.courseGroup.isopen == 2) {
  22275. this.isGroup = false;
  22276. } else {
  22277. this.isGroup = true;
  22278. }
  22279. this.selectSWorks(gindex);
  22280. } else {
  22281. this.selectSWorks(gindex);
  22282. this.isGroup = false;
  22283. }
  22284. this.getCourseGroupLoading = false
  22285. })
  22286. .catch(err => {
  22287. this.getCourseGroupLoading = false
  22288. // this.$message.error("网络不佳");
  22289. console.error(err);
  22290. });
  22291. },
  22292. setOperationTime() {
  22293. let _this = this;
  22294. if (_this.opertimer) {
  22295. clearInterval(_this.opertimer);
  22296. _this.opertimer = null;
  22297. }
  22298. _this.opertimer = setInterval(() => {
  22299. _this.setoTime("600");
  22300. }, 600000);
  22301. },
  22302. setoTime(time) {
  22303. let params = [
  22304. {
  22305. uid: this.userid,
  22306. cid: this.id,
  22307. type: "2",
  22308. time: time
  22309. }
  22310. ];
  22311. this.ajax
  22312. .post(this.$store.state.api + "addOperationTimeT2", params)
  22313. .then(res => {})
  22314. .catch(err => {
  22315. console.error(err);
  22316. });
  22317. },
  22318. addPz(type, content) {
  22319. if (type == "1" && this.pzConText == "") {
  22320. this.$message.error("评论不能为空!");
  22321. return;
  22322. }
  22323. let params = [
  22324. {
  22325. cid: this.id,
  22326. uid: this.userid,
  22327. s: this.courseType,
  22328. t: this.taskCount,
  22329. c: type == "1" ? this.pzConText : content,
  22330. type: type
  22331. }
  22332. ];
  22333. this.ajax
  22334. .post(this.$store.state.api + "addPz2", params)
  22335. .then(res => {
  22336. this.$message({
  22337. message: "添加成功",
  22338. type: "success"
  22339. });
  22340. this.pzConText = "";
  22341. this.addPzDialog = false;
  22342. this.selectPz();
  22343. if(this.tType!=2){
  22344. this.insertMemorandum(
  22345. `使用<span class="btn">评论</span>功能,添加评论`
  22346. );
  22347. }
  22348. })
  22349. .catch(err => {
  22350. this.$message.error("添加失败");
  22351. console.error(err);
  22352. });
  22353. },
  22354. setReplyIndex(id, i) {
  22355. this.replyIndex = i;
  22356. this.replyPid = id;
  22357. this.replyDialogVisible = true;
  22358. },
  22359. addHf() {
  22360. if (this.reply == "") {
  22361. this.$message.error("回复不能为空!");
  22362. return;
  22363. }
  22364. let params = [
  22365. {
  22366. cid: this.id,
  22367. uid: this.userid,
  22368. s: this.courseType,
  22369. t: this.taskCount,
  22370. type: "1",
  22371. ct: 2,
  22372. pid: this.replyPid,
  22373. c: this.reply
  22374. }
  22375. ];
  22376. this.ajax
  22377. .post(this.$store.state.api + "addHf", params)
  22378. .then(res => {
  22379. this.reply = "";
  22380. this.$message({
  22381. message: "回复成功",
  22382. type: "success"
  22383. });
  22384. this.replyDialogVisible = false;
  22385. this.selectPz();
  22386. })
  22387. .catch(err => {
  22388. this.$message.error("回复失败");
  22389. console.error(err);
  22390. });
  22391. },
  22392. deletePz(id) {
  22393. this.$confirm("确定删除此评论吗?", "提示", {
  22394. confirmButtonText: "确定",
  22395. cancelButtonText: "取消",
  22396. type: "warning"
  22397. })
  22398. .then(() => {
  22399. let params = [
  22400. {
  22401. id: id
  22402. }
  22403. ];
  22404. this.ajax
  22405. .post(this.$store.state.api + "deletePz", params)
  22406. .then(res => {
  22407. this.$message({
  22408. message: "删除成功",
  22409. type: "success"
  22410. });
  22411. this.selectPz();
  22412. })
  22413. .catch(err => {
  22414. this.$message.error("网络异常");
  22415. console.error(err);
  22416. });
  22417. })
  22418. .catch(() => {});
  22419. },
  22420. deleteReply(id) {
  22421. this.$confirm("确定删除此回复吗?", "提示", {
  22422. confirmButtonText: "确定",
  22423. cancelButtonText: "取消",
  22424. type: "warning"
  22425. })
  22426. .then(() => {
  22427. let params = [
  22428. {
  22429. id: id
  22430. }
  22431. ];
  22432. this.ajax
  22433. .post(this.$store.state.api + "deleteReply", params)
  22434. .then(res => {
  22435. this.$message({
  22436. message: "删除成功",
  22437. type: "success"
  22438. });
  22439. this.selectPz();
  22440. })
  22441. .catch(err => {
  22442. this.$message.error("网络异常");
  22443. console.error(err);
  22444. });
  22445. })
  22446. .catch(() => {});
  22447. },
  22448. setPz() {
  22449. if (this.ispzType == 4) {
  22450. this.ispzType = 0;
  22451. this.pzDialog = false;
  22452. return;
  22453. }
  22454. this.ispzType = 4;
  22455. this.pzDialog = true;
  22456. this.selectPz();
  22457. },
  22458. selectPz() {
  22459. if(this.selectPzLoading) return
  22460. this.selectPzLoading = true
  22461. let params = {
  22462. cid: this.id,
  22463. s: this.courseType,
  22464. t: this.taskCount,
  22465. type: this.pzStype,
  22466. uid: this.userid
  22467. };
  22468. this.ajax
  22469. .get(this.$store.state.api + "selectPzListType", params)
  22470. .then(res => {
  22471. this.pzList = res.data[0];
  22472. var a = res.data[1];
  22473. for (var i = 0; i < a.length; i++) {
  22474. for (var j = 0; j < this.pzList.length; j++) {
  22475. if (!this.pzList[j].hfList) {
  22476. this.pzList[j].hfList = [];
  22477. }
  22478. if (a[i].pid == this.pzList[j].id) {
  22479. this.pzList[j].hfList.push(a[i]);
  22480. }
  22481. }
  22482. }
  22483. this.selectPzLoading = false
  22484. })
  22485. .catch(err => {
  22486. this.selectPzLoading = false
  22487. console.error(err);
  22488. });
  22489. },
  22490. // selectHf() {
  22491. // let params = {
  22492. // cid: this.id,
  22493. // s: this.courseType,
  22494. // t: this.taskCount,
  22495. // };
  22496. // this.ajax
  22497. // .get(this.$store.state.api + "selectHfList", params)
  22498. // .then((res) => {
  22499. // var a = res.data[0];
  22500. // for (var i = 0; i < a.length; i++) {
  22501. // for (var j = 0; j < this.pzList.length; j++) {
  22502. // if (!this.pzList[i].hfList) {
  22503. // this.pzList[i].hfList = [];
  22504. // }
  22505. // if (a[i].pid == this.pzList[j].id) {
  22506. // this.pzList[i].hfList.push(a[i]);
  22507. // }
  22508. // }
  22509. // }
  22510. // })
  22511. // .catch((err) => {
  22512. // console.error(err);
  22513. // });
  22514. // },
  22515. updateSLook() {
  22516. let params = {
  22517. sopen: this.sIsOpen == false ? 1 : 2,
  22518. cid: this.id
  22519. };
  22520. this.ajax
  22521. .get(this.$store.state.api + "updateCourseSLook", params)
  22522. .then(res => {
  22523. if (this.sIsOpen == true) {
  22524. this.$message({
  22525. message: "权限设置成功",
  22526. type: "success"
  22527. });
  22528. } else {
  22529. this.$message({
  22530. message: "权限关闭成功",
  22531. type: "success"
  22532. });
  22533. }
  22534. })
  22535. .catch(err => {
  22536. console.error(err);
  22537. });
  22538. },
  22539. updateIsStulook(){
  22540. let params = [
  22541. {
  22542. sopen: this.IsStulook == false ? 2 : 1,
  22543. cid: this.id
  22544. }
  22545. ];
  22546. this.ajax
  22547. .post(this.$store.state.api + "updateCourseStulook", params)
  22548. .then(res => {
  22549. if (this.IsStulook == true) {
  22550. this.$message({
  22551. message: "学生查看内容资料权限已开启",
  22552. type: "success"
  22553. });
  22554. } else {
  22555. this.$message({
  22556. message: "关闭学生查看内容资料权限",
  22557. type: "success"
  22558. });
  22559. }
  22560. // this.setCTask();
  22561. })
  22562. .catch(err => {
  22563. console.error(err);
  22564. });
  22565. },
  22566. updateFollow() {
  22567. let params = [
  22568. {
  22569. sopen: this.IsFollow == false ? 1 : 2,
  22570. cid: this.id
  22571. }
  22572. ];
  22573. this.ajax
  22574. .post(this.$store.state.api + "updateCourseFollow", params)
  22575. .then(res => {
  22576. if (this.IsFollow == true) {
  22577. this.$message({
  22578. message: "跟随模式已开启",
  22579. type: "success"
  22580. });
  22581. } else {
  22582. this.$message({
  22583. message: "跟随模式已关闭",
  22584. type: "success"
  22585. });
  22586. }
  22587. this.setCTask();
  22588. })
  22589. .catch(err => {
  22590. console.error(err);
  22591. });
  22592. },
  22593. setCTask() {
  22594. let params = [
  22595. {
  22596. sopen: this.courseType + "-" + this.taskCount,
  22597. cid: this.id
  22598. }
  22599. ];
  22600. this.ajax
  22601. .post(this.$store.state.api + "updateCourseFollowC", params)
  22602. .then(res => {})
  22603. .catch(err => {
  22604. console.error(err);
  22605. });
  22606. },
  22607. updateLookOpen() {
  22608. let params = [
  22609. {
  22610. sopen: this.IsLookOpen == false ? 1 : 2,
  22611. cid: this.id
  22612. }
  22613. ];
  22614. this.ajax
  22615. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22616. .then(res => {
  22617. if (this.IsLookOpen == true) {
  22618. // if (this.courseType != 0 && this.taskCount != 0) {
  22619. // this.openTask(0, 0, "0-0");
  22620. // }
  22621. this.$message({
  22622. message: "权限设置成功",
  22623. type: "success"
  22624. });
  22625. } else {
  22626. this.$message({
  22627. message: "权限关闭成功",
  22628. type: "success"
  22629. });
  22630. }
  22631. this.getCourseState(2);
  22632. })
  22633. .catch(err => {
  22634. console.error(err);
  22635. });
  22636. },
  22637. selectSLook() {
  22638. if(this.selectSLookLoading) return
  22639. this.selectSLookLoading = true
  22640. let params = {
  22641. cid: this.id
  22642. };
  22643. this.ajax
  22644. .get(this.$store.state.api + "selectCourseSLook", params)
  22645. .then(res => {
  22646. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22647. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22648. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22649. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  22650. if (!this.IsLookOpen) {
  22651. this.setNavList();
  22652. }else {
  22653. this.getCourseState(1);
  22654. }
  22655. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  22656. if ((this.IsFollow && this.tType == 2)) {
  22657. this.setContent2(false);
  22658. let _followC = res.data[0][0].followC.split("-");
  22659. if (
  22660. this.courseType != _followC[0] ||
  22661. this.taskCount != _followC[1]
  22662. ) {
  22663. this.navList[this.courseType].isOpen = false;
  22664. this.courseType = _followC[0];
  22665. this.navList[this.courseType].isOpen = true;
  22666. this.taskCount = parseInt(_followC[1]);
  22667. this.navId = res.data[0][0].followC;
  22668. document.scrollingElement.scrollTop = 0;
  22669. this.getCourseDetail(2);
  22670. }
  22671. }
  22672. this.selectSLookLoading = false
  22673. })
  22674. .catch(err => {
  22675. this.selectSLookLoading = false
  22676. console.error(err);
  22677. });
  22678. },
  22679. setNavList() {
  22680. if (this.navList.length == 0) {
  22681. this.navList = [];
  22682. var copyList = [];
  22683. for (var l = 0; l < this.chapInfoList.length; l++) {
  22684. var q = this.chapInfoList[l].dyName;
  22685. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22686. var e;
  22687. copyList.push({
  22688. dyName: q,
  22689. isOpen: l === 0 ? true : false,
  22690. task: []
  22691. });
  22692. for (var r = 0; r < w.length; r++) {
  22693. e = w[r].task;
  22694. if (this.chapInfoList[l].easy == 1) {
  22695. copyList[l].task.push({
  22696. taskName: q,
  22697. id: l + "-" + r,
  22698. isLook: w[r].isLook,
  22699. isOpen: r === 0 ? true : false,
  22700. tool: []
  22701. });
  22702. } else {
  22703. copyList[l].task.push({
  22704. taskName: e,
  22705. id: l + "-" + r,
  22706. isLook: w[r].isLook,
  22707. isOpen: r === 0 ? true : false,
  22708. tool: []
  22709. });
  22710. }
  22711. var t = w[r].toolChoose;
  22712. for (var k = 0; k < t.length; k++) {
  22713. var tool = t[k].tool[0];
  22714. copyList[l].task[r].tool.push({
  22715. tool: tool,
  22716. isTool: false
  22717. });
  22718. }
  22719. // this.navId = this.navId ? this.navId : l + "-" + r;
  22720. // this.navId = l + "-" + r;
  22721. }
  22722. }
  22723. this.navList = copyList;
  22724. this.navList[0].isOpen = false;
  22725. this.navList[this.courseType].isOpen = true;
  22726. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  22727. } else {
  22728. this.setNavList2();
  22729. }
  22730. },
  22731. setNavList2() {
  22732. for (var l = 0; l < this.chapInfoList.length; l++) {
  22733. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22734. for (var r = 0; r < w.length; r++) {
  22735. this.navList[l].task[r].isLook = w[r].isLook;
  22736. }
  22737. }
  22738. if (
  22739. this.IsLookOpen &&
  22740. !this.navList[this.courseType].task[this.taskCount].isLook
  22741. ) {
  22742. this.openTask(0, 0, "0-0");
  22743. }
  22744. this.$forceUpdate();
  22745. },
  22746. getCourseState(type) {
  22747. let params = {
  22748. cid: this.id
  22749. };
  22750. this.ajax
  22751. .get(this.$store.state.api + "getCourseState", params)
  22752. .then(res => {
  22753. // if (res.data[0].length > 0) {
  22754. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22755. // }
  22756. if (res.data[0].length > 0 && type == 1) {
  22757. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22758. console.log("this.chapInfoList", this.chapInfoList);
  22759. this.setNavList();
  22760. this.$forceUpdate();
  22761. } else if (res.data[0].length > 0 && type == 2) {
  22762. this.addCourseState(2);
  22763. } else {
  22764. // this.addCourseState(1);
  22765. console.log('99999')
  22766. }
  22767. })
  22768. .catch(err => {
  22769. console.error(err);
  22770. });
  22771. },
  22772. addCourseState(type,val = '') {
  22773. let _state = val ? val : this.chapInfoList;
  22774. // this.courseType this.taskCount
  22775. if (type == 1 || type == 2) {
  22776. for (var i = 0; i < _state.length; i++) {
  22777. let el = _state[i].chapterInfo[0].taskJson;
  22778. for (var j = 0; j < el.length; j++) {
  22779. // if (i == 0 && j == 0) {
  22780. // el[j].isLook = true;
  22781. // } else {
  22782. // el[j].isLook = false;
  22783. // }
  22784. if (
  22785. this.courseType > i ||
  22786. (this.courseType == i && this.taskCount + 1 > j)
  22787. ) {
  22788. el[j].isLook = true;
  22789. } else {
  22790. el[j].isLook = false;
  22791. }
  22792. }
  22793. }
  22794. }
  22795. let params = [
  22796. {
  22797. cid: this.id,
  22798. state: JSON.stringify(_state)
  22799. }
  22800. ];
  22801. this.ajax
  22802. .post(
  22803. this.$store.state.api +
  22804. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22805. params
  22806. )
  22807. .then(res => {
  22808. if (this.IsLookOpen) {
  22809. this.setNavList();
  22810. }
  22811. if (type == 3 && type == 2) {
  22812. this.getCourseState(1);
  22813. }
  22814. })
  22815. .catch(err => {
  22816. console.error(err);
  22817. });
  22818. },
  22819. getHomeWork() {
  22820. let params = {
  22821. cid: this.id,
  22822. stage: this.courseType,
  22823. task: this.taskCount,
  22824. uid: this.userid
  22825. };
  22826. this.ajax
  22827. .get(this.$store.state.api + "selectWork", params)
  22828. .then(res => {
  22829. if (res.data[0].length > 0) {
  22830. this.studyJuri = JSON.parse(res.data[0][0].content);
  22831. this.isNoHomeWork = true;
  22832. }
  22833. })
  22834. .catch(err => {
  22835. console.error(err);
  22836. });
  22837. },
  22838. isAssetTypeAnImage(ext) {
  22839. return (
  22840. [
  22841. "png",
  22842. "jpg",
  22843. "jpeg",
  22844. "bmp",
  22845. "gif",
  22846. "webp",
  22847. "psd",
  22848. "svg",
  22849. "tiff"
  22850. ].indexOf(ext) !== -1
  22851. );
  22852. },
  22853. switchVideo(media) {
  22854. this.playerO = {};
  22855. this.playerOptions.poster = "";
  22856. this.playerOptions.sources[0].src = media;
  22857. this.playerO = this.playerOptions;
  22858. },
  22859. onPlayerPlay() {},
  22860. onPlayerTimeupdate(player) {
  22861. let gklog = player.cache_.currentTime; //当前播放的秒数
  22862. let a = player.cache_.duration; //视频的总时长
  22863. let gklog2 = parseInt(gklog);
  22864. // if(gklog2 == '3'){
  22865. // player.pause()
  22866. // setTimeout(()=>{
  22867. // player.currentTime(gklog2+1)
  22868. // player.play()
  22869. // },1000)
  22870. // }
  22871. console.log(" onPlayerTimeupdate!", gklog);
  22872. console.log(" onPlayerTimeupdate!", gklog2);
  22873. },
  22874. lookVedio(u, i) {
  22875. this.isClickNav = "";
  22876. // this.playerOptions.sources[0].src = u;
  22877. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22878. d.sources[0].src = u;
  22879. this.playerO[this.taskCount] = d;
  22880. this.showType = 0;
  22881. // this.isClickNav = "video" + i;
  22882. this.isClickNav = i;
  22883. this.$forceUpdate();
  22884. this.insertMemorandum(
  22885. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22886. this.vChapterData[this.taskCount].find(i => i.url == u).name
  22887. }</span>`
  22888. );
  22889. },
  22890. lookText(i, t) {
  22891. this.isClickNav = "";
  22892. // this.text = this.textList[i][t];
  22893. this.text = this.vChapterData[i][t];
  22894. // this.dialogVisible1 = true;
  22895. this.showType = 1;
  22896. // this.isClickNav = "text" + t;
  22897. this.isClickNav = t;
  22898. this.insertMemorandum(
  22899. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22900. this.vChapterData[this.taskCount][t].name
  22901. }.doc</span>`
  22902. );
  22903. },
  22904. lookTools(i, t) {
  22905. this.chapTools = this.chapToolList[i][t];
  22906. this.dialogVisible2 = true;
  22907. },
  22908. async openFile(f) {
  22909. this.pptImgUrl = "";
  22910. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22911. if (
  22912. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22913. -1
  22914. ) {
  22915. let _uuurl = await this.checkLink(f);
  22916. this.pptImgUrl =
  22917. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22918. encodeURIComponent(_uuurl);
  22919. this.showPDF = false;
  22920. this.dialogVisible3 = true;
  22921. } else if (
  22922. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22923. ) {
  22924. this.pptImgUrl = f;
  22925. this.showPDF = true;
  22926. this.dialogVisible3 = true;
  22927. }
  22928. this.insertMemorandum(
  22929. `查看<span class="variable">${w.sName}</span>的作业`
  22930. );
  22931. },
  22932. openTable(f) {
  22933. this.tableJson = JSON.parse(f.works);
  22934. this.dialogVisibleTable2 = true;
  22935. this.insertMemorandum(
  22936. `查看<span class="variable">${f.sName}的作业</span>`
  22937. );
  22938. },
  22939. openWord(f) {
  22940. this.tableJson = JSON.parse(f.works);
  22941. this.dialogVisibleTable3 = true;
  22942. this.insertMemorandum(
  22943. `查看<span class="variable">${f.sName}的作业</span>`
  22944. );
  22945. },
  22946. doUrl(url, i) {
  22947. this.isClickNav = "";
  22948. this.pptImgUrl1 = "";
  22949. this.showType = 2;
  22950. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22951. url = "https://" + url;
  22952. }
  22953. this.pptImgUrl1 = "";
  22954. this.diffKey = new Date().getTime();
  22955. setTimeout(() => {
  22956. this.pptImgUrl1 = url;
  22957. }, 500);
  22958. // this.isClickNav = "line" + i;
  22959. this.isClickNav = i;
  22960. this.$forceUpdate();
  22961. },
  22962. checkPhoto(f, i) {
  22963. this.showType = 4;
  22964. this.pptImgUrl1 = f.url;
  22965. this.isClickNav = i;
  22966. this.$forceUpdate();
  22967. this.insertMemorandum(
  22968. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22969. this.vChapterData[this.taskCount][i].name
  22970. }</span>`
  22971. );
  22972. },
  22973. checkHtml(f, i){
  22974. console.log('checkHtml',f, i);
  22975. this.showType = 16;
  22976. this.pptImgUrl1 = f.url;
  22977. this.isClickNav = i;
  22978. this.$forceUpdate();
  22979. },
  22980. async downFile(f, i) {
  22981. this.isClickNav = "";
  22982. this.pptImgUrl1 = "";
  22983. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22984. if (
  22985. a.indexOf(
  22986. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22987. ) != -1
  22988. ) {
  22989. let _uuurl = await this.checkLink(f.url);
  22990. this.pptImgUrl1 =
  22991. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22992. encodeURIComponent(_uuurl);
  22993. // this.dialogVisible3 = true;
  22994. this.showType = 2;
  22995. } else if (
  22996. this.isAssetTypeAnImage(
  22997. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22998. )
  22999. ) {
  23000. this.showType = 4;
  23001. this.pptImgUrl1 = f.url;
  23002. } else if (
  23003. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23004. "PDF"
  23005. ) {
  23006. this.pptImgUrl1 = f.url;
  23007. // this.dialogVisible3 = true;
  23008. this.showType = 3;
  23009. } else {
  23010. window.open(this.file[i].url);
  23011. }
  23012. // this.isClickNav = "word" + i;
  23013. this.isClickNav = i;
  23014. this.insertMemorandum(
  23015. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  23016. this.vChapterData[this.taskCount][i].name
  23017. }</span>`
  23018. );
  23019. },
  23020. downFileList(i) {
  23021. window.open(this.noImgList[i].url);
  23022. },
  23023. openAddWork() {
  23024. this.dialogVisible = true;
  23025. },
  23026. addBzWorks() {
  23027. let params = [
  23028. {
  23029. uid: this.userid,
  23030. cid: this.id,
  23031. stage: this.courseType,
  23032. task: this.taskCount,
  23033. tool: this.toolindex,
  23034. content: JSON.stringify(this.eScore),
  23035. type: 6
  23036. }
  23037. ];
  23038. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  23039. this.homeWorkLoading = true
  23040. this.ajax
  23041. .post(this.$store.state.api + "addCourseWorks", params)
  23042. .then(res => {
  23043. this.$message({
  23044. message: "提交成功",
  23045. type: "success"
  23046. });
  23047. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  23048. setTimeout(() => {
  23049. this.homeWorkLoading = false
  23050. }, 500);
  23051. this.eScore = { eBzText: "", eStar: [] };
  23052. this.studentEvalDialogVisible = false;
  23053. this.selectSWorks();
  23054. })
  23055. .catch(err => {
  23056. this.$message.error("提交失败");
  23057. console.error(err);
  23058. setTimeout(() => {
  23059. this.homeWorkLoading = false
  23060. }, 500);
  23061. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  23062. });
  23063. },
  23064. addBzWorksTeacher() {
  23065. let params = [
  23066. {
  23067. uid: this.sStudent.userid,
  23068. cid: this.id,
  23069. stage: this.courseType,
  23070. task: this.taskCount,
  23071. tool: this.toolindex,
  23072. content: JSON.stringify(this.eScore),
  23073. type: 6
  23074. }
  23075. ];
  23076. this.ajax
  23077. .post(this.$store.state.api + "addCourseWorks", params)
  23078. .then(res => {
  23079. this.$message({
  23080. message: "提交成功",
  23081. type: "success"
  23082. });
  23083. this.eScore = { eBzText: "", eStar: [] };
  23084. this.studentEvalDialogVisibleTeacher = false;
  23085. this.selectSWorks();
  23086. })
  23087. .catch(err => {
  23088. this.$message.error("提交失败");
  23089. console.error(err);
  23090. });
  23091. },
  23092. addStudentAsk() {
  23093. if (!this.radio.length) {
  23094. this.$message.error("请选择选项");
  23095. return;
  23096. }
  23097. for (var i = 0; i < this.askJson.askCount; i++) {
  23098. if (
  23099. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23100. (this.radio[i] !== 0 && !this.radio[i])
  23101. ) {
  23102. this.$message.error("请选择选项");
  23103. return;
  23104. }
  23105. }
  23106. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  23107. let params = [
  23108. {
  23109. uid: this.userid,
  23110. cid: this.id,
  23111. stage: this.courseType,
  23112. task: this.taskCount,
  23113. tool: this.toolindex,
  23114. content: JSON.stringify(this.askList),
  23115. type: 2
  23116. }
  23117. ];
  23118. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  23119. this.homeWorkLoading = true
  23120. this.ajax
  23121. .post(this.$store.state.api + "addCourseWorks", params)
  23122. .then(res => {
  23123. this.$message({
  23124. message: "提交成功",
  23125. type: "success"
  23126. });
  23127. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  23128. setTimeout(() => {
  23129. this.homeWorkLoading = false
  23130. }, 500);
  23131. this.askList = [];
  23132. this.dialogVisible5 = false;
  23133. this.selectStudent();
  23134. this.selectSWorks();
  23135. this.selectSLook();
  23136. })
  23137. .catch(err => {
  23138. this.$message.error("提交失败");
  23139. console.error(err);
  23140. setTimeout(() => {
  23141. this.homeWorkLoading = false
  23142. }, 500);
  23143. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  23144. });
  23145. },
  23146. addStudentAskTeacher() {
  23147. if (!this.radio.length) {
  23148. this.$message.error("请选择选项");
  23149. return;
  23150. }
  23151. for (var i = 0; i < this.askJson.askCount; i++) {
  23152. if (
  23153. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23154. (this.radio[i] !== 0 && !this.radio[i])
  23155. ) {
  23156. this.$message.error("请选择选项");
  23157. return;
  23158. }
  23159. }
  23160. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  23161. let params = [
  23162. {
  23163. uid: this.sStudent.userid,
  23164. cid: this.id,
  23165. stage: this.courseType,
  23166. task: this.taskCount,
  23167. tool: this.toolindex,
  23168. content: JSON.stringify(this.askList),
  23169. type: 2
  23170. }
  23171. ];
  23172. this.ajax
  23173. .post(this.$store.state.api + "addCourseWorks", params)
  23174. .then(res => {
  23175. this.$message({
  23176. message: "提交成功",
  23177. type: "success"
  23178. });
  23179. this.askList = [];
  23180. this.dialogVisible5Teacher = false;
  23181. this.selectStudent();
  23182. this.selectSWorks();
  23183. this.selectSLook();
  23184. })
  23185. .catch(err => {
  23186. this.$message.error("提交失败");
  23187. console.error(err);
  23188. });
  23189. },
  23190. addStudentTest() {
  23191. if (!this.radio.length) {
  23192. this.$message.error("请选择选项");
  23193. return;
  23194. }
  23195. for (var i = 0; i < this.testJson.testCount; i++) {
  23196. if (
  23197. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23198. (this.radio[i] !== 0 && !this.radio[i])
  23199. ) {
  23200. this.$message.error("请选择选项");
  23201. return;
  23202. }
  23203. }
  23204. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  23205. let params = [
  23206. {
  23207. uid: this.userid,
  23208. cid: this.id,
  23209. stage: this.courseType,
  23210. task: this.taskCount,
  23211. tool: this.toolindex,
  23212. content: JSON.stringify(this.askList),
  23213. type: 8
  23214. }
  23215. ];
  23216. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  23217. this.homeWorkLoading = true
  23218. this.ajax
  23219. .post(this.$store.state.api + "addCourseWorks", params)
  23220. .then(res => {
  23221. this.$message({
  23222. message: "提交成功",
  23223. type: "success"
  23224. });
  23225. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  23226. setTimeout(() => {
  23227. this.homeWorkLoading = false
  23228. }, 500);
  23229. this.askList = [];
  23230. this.dialogVisibleChoice = false;
  23231. this.selectStudent();
  23232. this.selectSWorks();
  23233. this.selectSLook();
  23234. })
  23235. .catch(err => {
  23236. this.$message.error("提交失败");
  23237. console.error(err);
  23238. setTimeout(() => {
  23239. this.homeWorkLoading = false
  23240. }, 500);
  23241. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  23242. });
  23243. },
  23244. addStudentTestTeacher() {
  23245. if (!this.radio.length) {
  23246. this.$message.error("请选择选项");
  23247. return;
  23248. }
  23249. for (var i = 0; i < this.testJson.testCount; i++) {
  23250. if (
  23251. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23252. (this.radio[i] !== 0 && !this.radio[i])
  23253. ) {
  23254. this.$message.error("请选择选项");
  23255. return;
  23256. }
  23257. }
  23258. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  23259. let params = [
  23260. {
  23261. uid: this.sStudent.userid,
  23262. cid: this.id,
  23263. stage: this.courseType,
  23264. task: this.taskCount,
  23265. tool: this.toolindex,
  23266. content: JSON.stringify(this.askList),
  23267. type: 8
  23268. }
  23269. ];
  23270. this.ajax
  23271. .post(this.$store.state.api + "addCourseWorks", params)
  23272. .then(res => {
  23273. this.$message({
  23274. message: "提交成功",
  23275. type: "success"
  23276. });
  23277. this.askList = [];
  23278. this.dialogVisibleChoiceTeacher = false;
  23279. this.selectStudent();
  23280. this.selectSWorks();
  23281. this.selectSLook();
  23282. })
  23283. .catch(err => {
  23284. this.$message.error("提交失败");
  23285. console.error(err);
  23286. });
  23287. },
  23288. addWork() {
  23289. if (this.studyJuri[0].content == "") {
  23290. this.$message.error("请将信息填写完整");
  23291. return;
  23292. } else if (this.studyJuri[0].cover.length == 0) {
  23293. this.$message.error("请将信息填写完整");
  23294. return;
  23295. } else if (this.studyJuri[0].upVedio.length == 0) {
  23296. this.$message.error("请将信息填写完整");
  23297. return;
  23298. }
  23299. if (this.isNoHomeWork) {
  23300. this.$confirm(
  23301. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  23302. "提示",
  23303. {
  23304. confirmButtonText: "确定",
  23305. cancelButtonText: "取消",
  23306. type: "warning"
  23307. }
  23308. )
  23309. .then(() => {
  23310. let params = [
  23311. {
  23312. uid: this.userid,
  23313. cid: this.id,
  23314. stage: this.courseType,
  23315. task: this.taskCount,
  23316. content: JSON.stringify(this.studyJuri)
  23317. }
  23318. ];
  23319. this.ajax
  23320. .post(this.$store.state.api + "addWorks", params)
  23321. .then(res => {
  23322. this.$message({
  23323. message: "提交成功",
  23324. type: "success"
  23325. });
  23326. this.isNoHomeWork = true;
  23327. this.dialogVisible = false;
  23328. })
  23329. .catch(err => {
  23330. this.$message.error("提交失败");
  23331. console.error(err);
  23332. });
  23333. })
  23334. .catch(() => {});
  23335. } else {
  23336. let params = [
  23337. {
  23338. uid: this.userid,
  23339. cid: this.id,
  23340. stage: this.courseType,
  23341. task: this.taskCount,
  23342. content: JSON.stringify(this.studyJuri)
  23343. }
  23344. ];
  23345. this.ajax
  23346. .post(this.$store.state.api + "addWorks", params)
  23347. .then(res => {
  23348. this.$message({
  23349. message: "提交成功",
  23350. type: "success"
  23351. });
  23352. this.isNoHomeWork = true;
  23353. this.dialogVisible = false;
  23354. })
  23355. .catch(err => {
  23356. this.$message.error("提交失败");
  23357. console.error(err);
  23358. });
  23359. }
  23360. },
  23361. selectCount() {
  23362. let params = {
  23363. cid: this.id,
  23364. chid: this.courseType,
  23365. uid: this.userid
  23366. };
  23367. this.ajax
  23368. .get(this.$store.state.api + "selectToolsCount", params)
  23369. .then(res => {
  23370. for (var i = 0; i < res.data[0].length; i++) {
  23371. if (res.data[0][i].tools == 1) {
  23372. this.wbCount = res.data[0][i].count;
  23373. } else if (res.data[0][i].tools == 2) {
  23374. this.wordCount = res.data[0][i].count;
  23375. } else if (res.data[0][i].tools == 3) {
  23376. this.mindCount = res.data[0][i].count;
  23377. } else if (res.data[0][i].tools == 4) {
  23378. this.askCount = res.data[0][i].count;
  23379. } else if (res.data[0][i].tools == 6) {
  23380. this.noteCount = res.data[0][i].count;
  23381. } else if (res.data[0][i].tools == 7) {
  23382. this.mindNetWorkCount = res.data[0][i].count;
  23383. } else if (res.data[0][i].tools == 8) {
  23384. this.libraryCount = res.data[0][i].count;
  23385. } else if (res.data[0][i].tools == 16) {
  23386. this.workCount = res.data[0][i].count;
  23387. } else if (res.data[0][i].tools == 10) {
  23388. this.timeCount = res.data[0][i].count;
  23389. } else if (res.data[0][i].tools == 15) {
  23390. this.answerCount = res.data[0][i].count;
  23391. } else if (res.data[0][i].tools == 18) {
  23392. this.trainCount = res.data[0][i].count;
  23393. }
  23394. }
  23395. })
  23396. .catch(err => {
  23397. console.error(err);
  23398. });
  23399. },
  23400. openTools(t, i, index, c, sName, id) {
  23401. var z = JSON.parse(c);
  23402. this.noteName = sName;
  23403. if (t == 4) {
  23404. this.radio = [];
  23405. this.isAnswer = false;
  23406. let b = z[0].anwer;
  23407. this.radio = b;
  23408. this.askJson = z[0].askJson;
  23409. this.isAnswer = true;
  23410. this.dialogVisible5 = true;
  23411. } else if (t == 45) {
  23412. this.radio = [];
  23413. this.isAnswer = false;
  23414. let b = z[0].anwer;
  23415. this.radio = b;
  23416. this.testJson = z[0].testJson;
  23417. this.isAnswer = true;
  23418. this.dialogVisibleChoice = true;
  23419. } else if (t == 69) {
  23420. this.oldEnglishJson1 = {};
  23421. this.oldEnglishJson = {};
  23422. this.englishList1 = {};
  23423. this.newEngIndex = -1;
  23424. this.isNoUserid = false;
  23425. this.englishList1 = this.chapInfoList[
  23426. this.courseType
  23427. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  23428. this.oldEnglishJson = z;
  23429. this.engWid = id;
  23430. this.newEnglishList = { engTitle: "", engText: "" };
  23431. this.newEnglishList1 = [];
  23432. this.selectEngC(id, z);
  23433. } else if (t == 62) {
  23434. this.videoType = 1;
  23435. this.videoJson = {};
  23436. this.videoJson = JSON.parse(c);
  23437. // this.videoJson =
  23438. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23439. // index
  23440. // ].toolChoose[i].videoJson;
  23441. this.dialogVisibleVideo = true;
  23442. }
  23443. // else if (t == 15) {
  23444. // this.answerQ = "";
  23445. // this.questionAnswer = "";
  23446. // this.answerQ = z[0].answerTitle;
  23447. // this.questionAnswer = z[0].answer;
  23448. // this.answerDialogVisible = true;
  23449. // }
  23450. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  23451. },
  23452. fastText(p, t) {
  23453. if (t == 1) {
  23454. this.commentText += p;
  23455. } else {
  23456. this.eScore.eBzText += p;
  23457. }
  23458. },
  23459. addTools(t, i, index) {
  23460. var a = 0;
  23461. // this.taskCount = index;
  23462. this.toolindex = i;
  23463. if (t == 1) {
  23464. if (this.wbCount > 0) {
  23465. this.updateCount(this.wbCount, t);
  23466. } else {
  23467. this.wbCount++;
  23468. a = this.wbCount;
  23469. this.toolsCount(a, t);
  23470. }
  23471. window.topU.postMessage(
  23472. {
  23473. tools: "1",
  23474. cid: this.id,
  23475. stage: this.courseType,
  23476. task: this.taskCount,
  23477. tool: i
  23478. },
  23479. "*"
  23480. );
  23481. } else if (t == 2) {
  23482. if (this.wordCount > 0) {
  23483. this.updateCount(this.wordCount, t);
  23484. } else {
  23485. this.wordCount++;
  23486. a = this.wordCount;
  23487. this.toolsCount(a, t);
  23488. }
  23489. window.topU.postMessage({ tools: "2" }, "*");
  23490. } else if (t == 3) {
  23491. if (this.mindCount > 0) {
  23492. this.updateCount(this.mindCount, t);
  23493. } else {
  23494. this.mindCount++;
  23495. a = this.mindCount;
  23496. this.toolsCount(a, t);
  23497. }
  23498. window.topU.postMessage(
  23499. {
  23500. tools: "3",
  23501. cid: this.id,
  23502. stage: this.courseType,
  23503. task: this.taskCount,
  23504. tool: i
  23505. },
  23506. "*"
  23507. );
  23508. } else if (t == 4) {
  23509. this.radio = [];
  23510. this.noteName = "";
  23511. this.isAnswer = false;
  23512. if (this.askCount > 0) {
  23513. this.updateCount(this.askCount, t);
  23514. } else {
  23515. this.askCount++;
  23516. a = this.askCount;
  23517. this.toolsCount(a, t);
  23518. }
  23519. if (!this.dialogVisible2) {
  23520. this.askJson.askJson = this.chapInfoList[
  23521. this.courseType
  23522. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23523. this.askJson.askTitle = this.chapInfoList[
  23524. this.courseType
  23525. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23526. this.askJson.askCount = this.chapInfoList[
  23527. this.courseType
  23528. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23529. } else {
  23530. this.askJson.askJson = this.chapTools.askJson.askJson;
  23531. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23532. this.askJson.askCount = this.chapTools.askJson.askCount;
  23533. }
  23534. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23535. if (this.askJson.askJson[k].type == "2") {
  23536. this.radio.push([]);
  23537. } else {
  23538. this.radio.push("");
  23539. }
  23540. }
  23541. this.dialogVisible5 = true;
  23542. // window.topU.postMessage({ tools: "4" }, "*");
  23543. } else if (t == 45) {
  23544. this.noteName = "";
  23545. this.radio = [];
  23546. this.isAnswer = false;
  23547. if (this.askCount > 0) {
  23548. this.updateCount(this.askCount, t);
  23549. } else {
  23550. this.askCount++;
  23551. a = this.askCount;
  23552. this.toolsCount(a, t);
  23553. }
  23554. this.testJson = this.chapInfoList[
  23555. this.courseType
  23556. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23557. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23558. if (this.testJson.testJson[k].type == "2") {
  23559. this.radio.push([]);
  23560. } else {
  23561. this.radio.push("");
  23562. }
  23563. }
  23564. this.dialogVisibleChoice = true;
  23565. // window.topU.postMessage({ tools: "4" }, "*");
  23566. } else if (t == 5) {
  23567. if (this.scoreCount > 0) {
  23568. this.updateCount(this.scoreCount, t);
  23569. } else {
  23570. this.scoreCount++;
  23571. a = this.scoreCount;
  23572. this.toolsCount(a, t);
  23573. }
  23574. this.dialogVisible4 = true;
  23575. // window.topU.postMessage({ tools: "5" }, "*");
  23576. } else if (t == 6) {
  23577. if (this.noteCount > 0) {
  23578. this.updateCount(this.noteCount, t);
  23579. } else {
  23580. this.noteCount++;
  23581. a = this.noteCount;
  23582. this.toolsCount(a, t);
  23583. }
  23584. window.topU.postMessage(
  23585. {
  23586. tools: "6",
  23587. cid: this.id,
  23588. stage: this.courseType,
  23589. task: this.taskCount,
  23590. tool: i
  23591. },
  23592. "*"
  23593. );
  23594. } else if (t == 7) {
  23595. if (this.mindNetWorkCount > 0) {
  23596. this.updateCount(this.mindNetWorkCount, t);
  23597. } else {
  23598. this.mindNetWorkCount++;
  23599. a = this.mindNetWorkCount;
  23600. this.toolsCount(a, t);
  23601. }
  23602. window.topU.postMessage(
  23603. {
  23604. tools: "7",
  23605. cid: this.id,
  23606. stage: this.courseType,
  23607. task: this.taskCount,
  23608. tool: i
  23609. },
  23610. "*"
  23611. );
  23612. } else if (t == 16) {
  23613. if (this.workCount > 0) {
  23614. this.updateCount(this.workCount, t);
  23615. } else {
  23616. this.workCount++;
  23617. a = this.workCount;
  23618. this.toolsCount(a, t);
  23619. }
  23620. this.dialogVisible = true;
  23621. } else if (t == 50) {
  23622. if (this.tType == 2) {
  23623. this.$message.error("不支持学生使用");
  23624. return;
  23625. }
  23626. this.plworkFile = [];
  23627. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23628. if (!this.uploadCid) {
  23629. this.$message.error(
  23630. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23631. );
  23632. return;
  23633. }
  23634. // this.uploadCid =
  23635. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23636. // index
  23637. // ].toolChoose[i].uploadJson[0];
  23638. this.selectUploadStudent(2);
  23639. } else if (t == 8) {
  23640. if (this.libraryCount > 0) {
  23641. this.updateCount(this.libraryCount, t);
  23642. } else {
  23643. this.libraryCount++;
  23644. a = this.libraryCount;
  23645. this.toolsCount(a, t);
  23646. }
  23647. window.topU.postMessage({ tools: "8" }, "*");
  23648. } else if (t == 17) {
  23649. if (this.libraryCount > 0) {
  23650. this.updateCount(this.libraryCount, t);
  23651. } else {
  23652. this.libraryCount++;
  23653. a = this.libraryCount;
  23654. this.toolsCount(a, t);
  23655. }
  23656. window.topU.postMessage({ tools: "17" }, "*");
  23657. } else if (t == 18) {
  23658. if (this.trainCount > 0) {
  23659. this.updateCount(this.trainCount, t);
  23660. } else {
  23661. this.trainCount++;
  23662. a = this.trainCount;
  23663. this.toolsCount(a, t);
  23664. }
  23665. window.topU.postMessage({ tools: "18" }, "*");
  23666. } else if (t == 10) {
  23667. if (this.timeCount > 0) {
  23668. this.updateCount(this.timeCount, t);
  23669. } else {
  23670. this.timeCount++;
  23671. a = this.timeCount;
  23672. this.toolsCount(a, t);
  23673. }
  23674. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23675. .taskJson[index].toolChoose[i].preTime
  23676. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23677. .toolChoose[i].preTime
  23678. : "";
  23679. this.timeDialogVisible = true;
  23680. } else if (t == 15) {
  23681. this.answerQ = "";
  23682. this.questionAnswer = "";
  23683. if (this.answerCount > 0) {
  23684. this.updateCount(this.answerCount, t);
  23685. } else {
  23686. this.answerCount++;
  23687. a = this.answerCount;
  23688. this.toolsCount(a, t);
  23689. }
  23690. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23691. .taskJson[index].toolChoose[i].answerQ
  23692. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23693. .toolChoose[i].answerQ
  23694. : "";
  23695. this.answerDialogVisible = true;
  23696. } else if (t == 21) {
  23697. window.topU.postMessage({ tools: "21" }, "*");
  23698. } else if (t == 22) {
  23699. window.topU.postMessage({ tools: "22" }, "*");
  23700. } else if (t == 23) {
  23701. window.topU.postMessage({ tools: "23" }, "*");
  23702. } else if (t == 24) {
  23703. window.topU.postMessage({ tools: "24" }, "*");
  23704. } else if (t == 25) {
  23705. window.topU.postMessage({ tools: "25" }, "*");
  23706. } else if (t == 31) {
  23707. window.topU.postMessage({ tools: "31" }, "*");
  23708. } else if (t == 28) {
  23709. window.topU.postMessage({ tools: "28" }, "*");
  23710. } else if (t == 37) {
  23711. window.topU.postMessage({ tools: "37" }, "*");
  23712. } else if (t == 38) {
  23713. window.topU.postMessage({ tools: "38" }, "*");
  23714. } else if (t == 39) {
  23715. window.topU.postMessage({ tools: "39" }, "*");
  23716. } else if (t == 32) {
  23717. window.topU.postMessage({ tools: "32" }, "*");
  23718. } else if (t == 66) {
  23719. window.topU.postMessage({ tools: "66" }, "*");
  23720. } else if (t == 67) {
  23721. window.topU.postMessage({ tools: "67" }, "*");
  23722. } else if (t == 68) {
  23723. window.topU.postMessage({ tools: "68" }, "*");
  23724. } else if (t == 57) {
  23725. // window.topU.postMessage({ tools: "57" }, "*");
  23726. window.topU.postMessage(
  23727. {
  23728. tools: "57u",
  23729. cid: this.id,
  23730. stage: this.courseType,
  23731. task: this.taskCount,
  23732. tool: i
  23733. },
  23734. "*"
  23735. );
  23736. } else if (t == 58) {
  23737. window.topU.postMessage({ tools: "58" }, "*");
  23738. } else if (t == 59) {
  23739. window.topU.postMessage({ tools: "59" }, "*");
  23740. } else if (t == 60) {
  23741. window.topU.postMessage({ tools: "60" }, "*");
  23742. } else if (t == 61) {
  23743. window.topU.postMessage({ tools: "61" }, "*");
  23744. } else if (t == 63) {
  23745. window.topU.postMessage({ tools: "63" }, "*");
  23746. } else if (t == 71) {
  23747. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23748. // this.$message.error("该工具不可使用");
  23749. // return
  23750. // }
  23751. window.topU.postMessage({ tools: "71" }, "*");
  23752. } else if (t == 72) {
  23753. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23754. .taskJson[index].toolChoose[i].appJson
  23755. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23756. .toolChoose[i].appJson
  23757. : "";
  23758. console.log('item.url',item.url);
  23759. if(!item || !item.url){
  23760. this.$message.error("应用连接为空, 请到课程管理中添加");
  23761. return;
  23762. }
  23763. if (!document.fullscreenElement) {
  23764. this.enterFullScreen();
  23765. }
  23766. this.$refs.appStoreC.getData(item.url,this.userid)
  23767. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23768. // window.open(item.url, "_blank");
  23769. } else if (t == 69) {
  23770. if (this.worksStudent[i].length) {
  23771. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23772. if (this.userid == this.worksStudent[i][k].userid) {
  23773. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  23774. break;
  23775. } else {
  23776. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23777. }
  23778. }
  23779. } else {
  23780. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23781. }
  23782. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23783. .taskJson[index].toolChoose[i].englishList
  23784. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23785. .toolChoose[i].englishList
  23786. : {};
  23787. this.englishToolIndex = i;
  23788. this.myAnList = this.myAnswerList1;
  23789. this.engDialogVisible = true;
  23790. } else if (t == 70) {
  23791. if (this.worksStudent[i].length) {
  23792. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23793. if (
  23794. this.userid == this.worksStudent[i][k].userid &&
  23795. this.worksStudent[i][k].type == 17
  23796. ) {
  23797. this.englishVoiceJsonWork = JSON.parse(
  23798. this.worksStudent[i][k].works
  23799. );
  23800. break;
  23801. } else {
  23802. this.englishVoiceJsonWork = [];
  23803. }
  23804. }
  23805. } else {
  23806. this.englishVoiceJsonWork = [];
  23807. }
  23808. let englishVoiceJson = {};
  23809. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23810. .taskJson[index].toolChoose[i].englishVoiceJson
  23811. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23812. .toolChoose[i].englishVoiceJson
  23813. : {};
  23814. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23815. this.EnglishVoiceDialog = true;
  23816. } else if (t == 65) {
  23817. if (this.tType == 2) {
  23818. this.$message.error("不支持学生使用");
  23819. return;
  23820. }
  23821. this.uploadCid = this.tcid;
  23822. if (!this.uploadCid) {
  23823. this.$message.error(
  23824. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23825. );
  23826. return;
  23827. }
  23828. this.selectPickStudent();
  23829. } else if (t == 26) {
  23830. window.topU.postMessage(
  23831. {
  23832. tools: "26",
  23833. cid: this.id,
  23834. stage: this.courseType,
  23835. task: this.taskCount,
  23836. tool: i
  23837. },
  23838. "*"
  23839. );
  23840. } else if (t == 40) {
  23841. if (this.evalCount > 0) {
  23842. this.updateCount(this.evalCount, t);
  23843. } else {
  23844. this.evalCount++;
  23845. a = this.evalCount;
  23846. this.toolsCount(a, t);
  23847. }
  23848. this.eScore = { eBzText: "", eStar: [] };
  23849. if (this.worksStudent[i].length) {
  23850. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23851. if (this.userid == this.worksStudent[i][k].userid) {
  23852. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23853. this.rateJson = this.chapInfoList[
  23854. this.courseType
  23855. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23856. break;
  23857. } else {
  23858. this.rateJson = this.chapInfoList[
  23859. this.courseType
  23860. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23861. }
  23862. }
  23863. } else {
  23864. this.rateJson = this.chapInfoList[
  23865. this.courseType
  23866. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23867. }
  23868. this.isStar = false;
  23869. this.studentEvalDialogVisible = true;
  23870. } else if (t == 41) {
  23871. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23872. .taskJson[index].toolChoose[i].selectJson
  23873. ? JSON.parse(
  23874. JSON.stringify(
  23875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23876. index
  23877. ].toolChoose[i].selectJson
  23878. )
  23879. )
  23880. : { url: "", select: [], answer: [] };
  23881. if (this.worksStudent[i].length) {
  23882. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23883. if (this.userid == this.worksStudent[i][k].userid) {
  23884. var a = this.worksStudent[i][k].works.split(",");
  23885. for (var ki = 0; ki < a.length; ki++) {
  23886. a[ki] = parseInt(a[ki]);
  23887. }
  23888. this.selectAnswer = {
  23889. answer: a,
  23890. stu: this.worksStudent[i][k].sName
  23891. };
  23892. break;
  23893. } else {
  23894. this.selectAnswer = { answer: [], stu: "" };
  23895. }
  23896. }
  23897. } else {
  23898. this.selectAnswer = { answer: [], stu: "" };
  23899. }
  23900. this.isSelect = false;
  23901. this.dialogVisibleSelect = true;
  23902. } else if (t == 44) {
  23903. window.topU.postMessage({ tools: "44" }, "*");
  23904. } else if (t == 47) {
  23905. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23906. .taskJson[index].toolChoose[i].sentenceList
  23907. ? JSON.parse(
  23908. JSON.stringify(
  23909. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23910. index
  23911. ].toolChoose[i].sentenceList
  23912. )
  23913. )
  23914. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23915. for (var q = 0; q < this.sentenceList.length; q++) {
  23916. this.sentenceList[q].chooseSenList = [];
  23917. this.sentenceList[q].addChangeSen = [];
  23918. this.sentenceList[q].addChangeSen = JSON.parse(
  23919. JSON.stringify(this.sentenceList[q].addSentence)
  23920. );
  23921. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23922. q
  23923. ].rightAnswer.length;
  23924. }
  23925. this.dialogVisibleSentence = true;
  23926. } else if (t == 48) {
  23927. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23928. .taskJson[index].toolChoose[i].tableJson
  23929. ? JSON.parse(
  23930. JSON.stringify(
  23931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23932. index
  23933. ].toolChoose[i].tableJson
  23934. )
  23935. )
  23936. : { text: "" };
  23937. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23938. if (this.worksStudent[i].length) {
  23939. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23940. if (this.userid == this.worksStudent[i][k].userid) {
  23941. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23942. break;
  23943. }
  23944. }
  23945. }
  23946. this.dialogVisibleTable = true;
  23947. } else if (t == 52) {
  23948. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23949. .taskJson[index].toolChoose[i].wordJson
  23950. ? JSON.parse(
  23951. JSON.stringify(
  23952. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23953. index
  23954. ].toolChoose[i].wordJson
  23955. )
  23956. )
  23957. : { text: "" };
  23958. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23959. if (this.worksStudent[i].length) {
  23960. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23961. if (this.userid == this.worksStudent[i][k].userid) {
  23962. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23963. break;
  23964. }
  23965. }
  23966. }
  23967. this.dialogVisibleWord = true;
  23968. } else if (t == 49) {
  23969. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  23970. return;
  23971. }
  23972. this.groupJson = this.chapInfoList[
  23973. this.courseType
  23974. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  23975. this.islock = this.groupJson.islock == 1 ? true : false;
  23976. this.dialogVisibleGroup = true;
  23977. } else if (t == 62) {
  23978. this.videoType = 0;
  23979. this.videoJson = {};
  23980. this.videoJson = this.chapInfoList[
  23981. this.courseType
  23982. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  23983. this.dialogVisibleVideo = true;
  23984. }
  23985. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23986. this.insertMemorandum(
  23987. `点击工作区<span class="variable">工具${index + 1}:${
  23988. this.toolsList[t]
  23989. }</span>`
  23990. );
  23991. },
  23992. teacherWorkSubmit(t, i, index, s) {
  23993. console.log('t',t);
  23994. if(t == 72) return
  23995. this.sStudent = s;
  23996. this.toolindex = i;
  23997. this.sTool = t;
  23998. if (this.tType !== "1" && this.tType !== "4") {
  23999. return;
  24000. }
  24001. if (t == 16 || t == 32 || t == 50) {
  24002. this.dialogVisibleWorks = true;
  24003. } else if (t == 15) {
  24004. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  24005. .taskJson[index].toolChoose[i].answerQ
  24006. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  24007. .toolChoose[i].answerQ
  24008. : "";
  24009. this.questionAnswer = "";
  24010. this.answerDialogVisibleTeacher = true; //问答
  24011. } else if (t == 52) {
  24012. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  24013. .taskJson[index].toolChoose[i].wordJson
  24014. ? JSON.parse(
  24015. JSON.stringify(
  24016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24017. index
  24018. ].toolChoose[i].wordJson
  24019. )
  24020. )
  24021. : { text: "" };
  24022. if (this.worksStudent[i].length) {
  24023. for (var k = 0; k < this.worksStudent[i].length; k++) {
  24024. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  24025. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  24026. break;
  24027. }
  24028. }
  24029. }
  24030. this.dialogVisibleWordTeacher = true; //文档
  24031. } else if (t == 4) {
  24032. this.radio = [];
  24033. this.noteName = "";
  24034. this.isAnswer = false;
  24035. if (this.askCount > 0) {
  24036. this.updateCount(this.askCount, t);
  24037. } else {
  24038. this.askCount++;
  24039. a = this.askCount;
  24040. this.toolsCount(a, t);
  24041. }
  24042. if (!this.dialogVisible2) {
  24043. this.askJson.askJson = this.chapInfoList[
  24044. this.courseType
  24045. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  24046. this.askJson.askTitle = this.chapInfoList[
  24047. this.courseType
  24048. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  24049. this.askJson.askCount = this.chapInfoList[
  24050. this.courseType
  24051. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  24052. } else {
  24053. this.askJson.askJson = this.chapTools.askJson.askJson;
  24054. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  24055. this.askJson.askCount = this.chapTools.askJson.askCount;
  24056. }
  24057. for (var k = 0; k < this.askJson.askJson.length; k++) {
  24058. if (this.askJson.askJson[k].type == "2") {
  24059. this.radio.push([]);
  24060. } else {
  24061. this.radio.push("");
  24062. }
  24063. }
  24064. this.dialogVisible5Teacher = true;
  24065. } else if (t == 45) {
  24066. this.noteName = "";
  24067. this.radio = [];
  24068. this.isAnswer = false;
  24069. if (this.askCount > 0) {
  24070. this.updateCount(this.askCount, t);
  24071. } else {
  24072. this.askCount++;
  24073. a = this.askCount;
  24074. this.toolsCount(a, t);
  24075. }
  24076. this.testJson = this.chapInfoList[
  24077. this.courseType
  24078. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  24079. for (var k = 0; k < this.testJson.testJson.length; k++) {
  24080. if (this.testJson.testJson[k].type == "2") {
  24081. this.radio.push([]);
  24082. } else {
  24083. this.radio.push("");
  24084. }
  24085. }
  24086. this.dialogVisibleChoiceTeacher = true;
  24087. } else if (t == 41) {
  24088. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  24089. .taskJson[index].toolChoose[i].selectJson
  24090. ? JSON.parse(
  24091. JSON.stringify(
  24092. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24093. index
  24094. ].toolChoose[i].selectJson
  24095. )
  24096. )
  24097. : { url: "", select: [], answer: [] };
  24098. if (this.worksStudent[i].length) {
  24099. for (var k = 0; k < this.worksStudent[i].length; k++) {
  24100. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  24101. var a = this.worksStudent[i][k].works.split(",");
  24102. for (var ki = 0; ki < a.length; ki++) {
  24103. a[ki] = parseInt(a[ki]);
  24104. }
  24105. this.selectAnswer = {
  24106. answer: a,
  24107. stu: this.worksStudent[i][k].sName
  24108. };
  24109. break;
  24110. } else {
  24111. this.selectAnswer = { answer: [], stu: "" };
  24112. }
  24113. }
  24114. } else {
  24115. this.selectAnswer = { answer: [], stu: "" };
  24116. }
  24117. this.isSelect = false;
  24118. this.dialogVisibleSelectTeacher = true;
  24119. } else if (t == 47) {
  24120. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  24121. .taskJson[index].toolChoose[i].sentenceList
  24122. ? JSON.parse(
  24123. JSON.stringify(
  24124. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24125. index
  24126. ].toolChoose[i].sentenceList
  24127. )
  24128. )
  24129. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  24130. for (var q = 0; q < this.sentenceList.length; q++) {
  24131. this.sentenceList[q].chooseSenList = [];
  24132. this.sentenceList[q].addChangeSen = [];
  24133. this.sentenceList[q].addChangeSen = JSON.parse(
  24134. JSON.stringify(this.sentenceList[q].addSentence)
  24135. );
  24136. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  24137. q
  24138. ].rightAnswer.length;
  24139. }
  24140. this.dialogVisibleSentenceTeacher = true;
  24141. } else if (t == 48) {
  24142. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  24143. .taskJson[index].toolChoose[i].tableJson
  24144. ? JSON.parse(
  24145. JSON.stringify(
  24146. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24147. index
  24148. ].toolChoose[i].tableJson
  24149. )
  24150. )
  24151. : { text: "" };
  24152. if (this.worksStudent[i].length) {
  24153. for (var k = 0; k < this.worksStudent[i].length; k++) {
  24154. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  24155. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  24156. break;
  24157. }
  24158. }
  24159. }
  24160. this.dialogVisibleTableTeacher = true;
  24161. } else if (t == 40) {
  24162. if (this.evalCount > 0) {
  24163. this.updateCount(this.evalCount, t);
  24164. } else {
  24165. this.evalCount++;
  24166. a = this.evalCount;
  24167. this.toolsCount(a, t);
  24168. }
  24169. this.eScore = { eBzText: "", eStar: [] };
  24170. if (this.worksStudent[i].length) {
  24171. for (var k = 0; k < this.worksStudent[i].length; k++) {
  24172. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  24173. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  24174. this.rateJson = this.chapInfoList[
  24175. this.courseType
  24176. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  24177. break;
  24178. } else {
  24179. this.rateJson = this.chapInfoList[
  24180. this.courseType
  24181. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  24182. }
  24183. }
  24184. } else {
  24185. this.rateJson = this.chapInfoList[
  24186. this.courseType
  24187. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  24188. }
  24189. this.isStar = false;
  24190. this.studentEvalDialogVisibleTeacher = true;
  24191. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  24192. window.topU.postMessage(
  24193. {
  24194. tools: t + "teacher",
  24195. cid: this.id,
  24196. stage: this.courseType,
  24197. task: this.taskCount,
  24198. tool: i,
  24199. student: this.sStudent
  24200. },
  24201. "*"
  24202. );
  24203. }else if (t == 72) {
  24204. if (!document.fullscreenElement) {
  24205. this.enterFullScreen();
  24206. }
  24207. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  24208. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  24209. }
  24210. },
  24211. openCocoPi(tool, i, uid, uname) {
  24212. let student = {
  24213. userid: uid,
  24214. student: uname
  24215. };
  24216. if (tool == 57) {
  24217. window.topU.postMessage(
  24218. {
  24219. tools: tool + "teacher",
  24220. cid: this.id,
  24221. stage: this.courseType,
  24222. task: this.taskCount,
  24223. tool: i,
  24224. student: student
  24225. },
  24226. "*"
  24227. );
  24228. }
  24229. },
  24230. setRightAnswer(s, i, j) {
  24231. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  24232. if (
  24233. this.sentenceList[i].chooseSenList[q] == undefined ||
  24234. this.sentenceList[i].chooseSenList[q] == ""
  24235. ) {
  24236. this.sentenceList[i].chooseSenList[q] = s;
  24237. this.sentenceList[i].addChangeSen[j] = "";
  24238. break;
  24239. }
  24240. }
  24241. this.$forceUpdate();
  24242. },
  24243. returnCard(r, i, j) {
  24244. var a = this.sentenceList[i].addSentence.indexOf(r);
  24245. this.sentenceList[i].chooseSenList[j] = "";
  24246. this.sentenceList[i].addChangeSen[a] = r;
  24247. this.$forceUpdate();
  24248. },
  24249. // addSentenceTool() {
  24250. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24251. // this.taskCount
  24252. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  24253. // this.sentenceList = [
  24254. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  24255. // ];
  24256. // this.dialogVisibleSentence = false;
  24257. // },
  24258. toolsCount(a, t) {
  24259. let params = {
  24260. cid: this.id,
  24261. chid: this.courseType,
  24262. uid: this.userid,
  24263. tid: t,
  24264. count: a
  24265. };
  24266. this.ajax
  24267. .get(this.$store.state.api + "insertToolsCount", params)
  24268. .then(res => {
  24269. this.selectCount();
  24270. })
  24271. .catch(err => {
  24272. console.error(err);
  24273. });
  24274. },
  24275. updateCount(c, t) {
  24276. c++;
  24277. let params = {
  24278. cid: this.id,
  24279. chid: this.courseType,
  24280. uid: this.userid,
  24281. tid: t,
  24282. count: c
  24283. };
  24284. this.ajax
  24285. .get(this.$store.state.api + "updateToolsCount", params)
  24286. .then(res => {
  24287. this.selectCount();
  24288. })
  24289. .catch(err => {
  24290. console.error(err);
  24291. });
  24292. },
  24293. checkEva() {
  24294. if (this.evalua != "") {
  24295. for (var i = 0; i < this.evaJuri.length; i++) {
  24296. if (this.evalua == this.evaJuri[i].id) {
  24297. this.eTitle = this.evaJuri[i].title;
  24298. this.eJson = JSON.parse(this.evaJuri[i].content);
  24299. }
  24300. }
  24301. this.$forceUpdate();
  24302. setTimeout(() => {
  24303. this.setMindData();
  24304. }, 0);
  24305. }
  24306. },
  24307. selectEva() {
  24308. let params = {
  24309. oid: this.oid
  24310. };
  24311. this.ajax
  24312. .get(this.$store.state.api + "selectAllEvaluation", params)
  24313. .then(res => {
  24314. this.evaJuri = res.data[0];
  24315. })
  24316. .catch(err => {
  24317. console.error(err);
  24318. });
  24319. },
  24320. setMindData() {
  24321. this.data.data = [];
  24322. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  24323. let _eJson = Object.keys(this.eJson);
  24324. let _e = this.eJson;
  24325. for (let i = 0; i < _eJson.length; i++) {
  24326. let element = _e[_eJson[i]];
  24327. this.data.data.push({
  24328. id: element.id,
  24329. parentid: "root",
  24330. topic: element.name
  24331. });
  24332. let _eJsonc = Object.keys(element.child);
  24333. let _e2 = element.child;
  24334. for (let j = 0; j < _eJsonc.length; j++) {
  24335. let _ec = _e2[_eJsonc[j]];
  24336. this.data.data.push({
  24337. id: _ec.id,
  24338. parentid: element.id,
  24339. topic: _ec.name
  24340. });
  24341. let _eJsonz = Object.keys(_ec.child);
  24342. let _e3 = _ec.child;
  24343. for (let z = 0; z < _eJsonz.length; z++) {
  24344. let _ez = _e3[_eJsonz[z]];
  24345. this.data.data.push({
  24346. id: _ez.id,
  24347. parentid: _ec.id,
  24348. topic: _ez.name
  24349. });
  24350. }
  24351. }
  24352. }
  24353. this.$forceUpdate();
  24354. },
  24355. checkFileFull(type, url) {
  24356. this.fullDialogVisible = true;
  24357. this.fulltype = type;
  24358. this.fullUrl = url;
  24359. },
  24360. async checkFileFull1(t, f) {
  24361. this.fullDialogVisible = true;
  24362. if (t == 6) {
  24363. this.fulltype = 1;
  24364. this.fullUrl = JSON.parse(JSON.stringify(f));
  24365. } else if (t == 8) {
  24366. this.fulltype = 2;
  24367. this.fullUrl = f.url;
  24368. }else if (t == 15) {
  24369. this.fulltype = 4;
  24370. this.fullUrl = f.url;
  24371. } else if (t == 16) {
  24372. this.fulltype = 16;
  24373. this.fullUrl = f.url;
  24374. } else if (
  24375. t == 3 &&
  24376. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  24377. "PDF"
  24378. ) {
  24379. this.fulltype = 3;
  24380. this.fullUrl = f.url;
  24381. } else if (t == 3) {
  24382. this.fulltype = 2;
  24383. let _uuurl = await this.checkLink(f.url);
  24384. this.fullUrl =
  24385. "https://view.officeapps.live.com/op/view.aspx?src=" +
  24386. encodeURIComponent(_uuurl);
  24387. }
  24388. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  24389. },
  24390. openSname(n, id, i, uid) {
  24391. this.snameWid = id;
  24392. this.worksSName = n;
  24393. this.worksSid = uid == n ? "" : uid;
  24394. this.toolindex = i;
  24395. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  24396. if (!this.uploadCid) {
  24397. this.$message.error(
  24398. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  24399. );
  24400. return;
  24401. }
  24402. this.selectUploadStudent(1);
  24403. },
  24404. updateName() {
  24405. let params = {
  24406. n: this.worksSName,
  24407. cid: this.snameWid
  24408. };
  24409. this.ajax
  24410. .get(this.$store.state.api + "updateCourseWorksName", params)
  24411. .then(res => {
  24412. this.$message({
  24413. message: "修改成功",
  24414. type: "success"
  24415. });
  24416. this.dialogVisibleSname = false;
  24417. this.getCourseDetail(2);
  24418. this.snameWid = "";
  24419. this.worksSName = "";
  24420. })
  24421. .catch(err => {
  24422. console.error(err);
  24423. });
  24424. },
  24425. downloadFile2(f) {
  24426. // const loading = this.$loading.service({
  24427. // background: "rgba(255, 255, 255, 0.7)",
  24428. // target: document.body,
  24429. // text: "文件加载中...",
  24430. // });
  24431. // let url2 = f.url;
  24432. // let _url2 = "";
  24433. // if (
  24434. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24435. // ) {
  24436. // _url2 = url2.split(
  24437. // "https://view.officeapps.live.com/op/view.aspx?src="
  24438. // )[1];
  24439. // } else {
  24440. // _url2 = url2;
  24441. // }
  24442. // let params = {
  24443. // url: _url2,
  24444. // name: f.name,
  24445. // };
  24446. // this.ajax
  24447. // .get(this.$store.state.api + "download", params)
  24448. // .then((res) => {
  24449. // loading.close();
  24450. // let content = res.data.data.data;
  24451. // let ab = new ArrayBuffer(content.length);
  24452. // let view = new Uint8Array(ab);
  24453. // for (var i = 0; i < content.length; ++i) {
  24454. // view[i] = content[i];
  24455. // }
  24456. // let elink = document.createElement("a");
  24457. // elink.download = f.name;
  24458. // elink.style.display = "none";
  24459. // let blob = new Blob([ab], {
  24460. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  24461. // });
  24462. // elink.href = URL.createObjectURL(blob);
  24463. // document.body.appendChild(elink);
  24464. // elink.click();
  24465. // document.body.removeChild(elink);
  24466. // })
  24467. // .catch((err) => {
  24468. // loading.close();
  24469. // console.error(err);
  24470. // });
  24471. var credentials = {
  24472. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24473. secretAccessKey: "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"
  24474. }; //秘钥形式的登录上传
  24475. window.AWS.config.update(credentials);
  24476. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24477. let url2 = f.url;
  24478. let _url2 = "";
  24479. if (
  24480. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24481. ) {
  24482. _url2 = url2.split(
  24483. "https://view.officeapps.live.com/op/view.aspx?src="
  24484. )[1];
  24485. } else {
  24486. _url2 = url2;
  24487. }
  24488. let _this = this;
  24489. _this.downLoading = true;
  24490. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24491. let name = decodeURIComponent(
  24492. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24493. );
  24494. var params = {
  24495. Bucket: "ccrb",
  24496. Key: name
  24497. };
  24498. s3.getObject(params, function(err, data) {
  24499. _this.downLoading = false;
  24500. if (err) console.log(err, err.stack);
  24501. // an error occurred
  24502. else {
  24503. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24504. let a = document.createElement("a");
  24505. a.name = f.name;
  24506. a.href = url;
  24507. a.download = f.name;
  24508. a.click();
  24509. console.log(data);
  24510. } // sxuccessful response
  24511. });
  24512. return;
  24513. let url = f.url;
  24514. let _url = "";
  24515. if (
  24516. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24517. ) {
  24518. _url = url.split(
  24519. "https://view.officeapps.live.com/op/view.aspx?src="
  24520. )[1];
  24521. } else {
  24522. _url = url;
  24523. }
  24524. _this.downLoading = true;
  24525. // const loading = _this.$loading.service({
  24526. // background: "rgba(255, 255, 255, 0.7)",
  24527. // target: document.body,
  24528. // text: "文件加载中...",
  24529. // });
  24530. let x = new XMLHttpRequest();
  24531. x.open("GET", _url, true);
  24532. x.responseType = "blob";
  24533. x.onload = function() {
  24534. _this.downLoading = false;
  24535. // loading.close();
  24536. let url = window.URL.createObjectURL(new Blob([x.response]));
  24537. let a = document.createElement("a");
  24538. a.name = f.name;
  24539. a.href = url;
  24540. a.download = f.name;
  24541. a.click();
  24542. };
  24543. x.send();
  24544. },
  24545. downloadFile(url,uid) {
  24546. if (this.tType == 1 || this.userid == uid) {
  24547. let hz = url.substring(url.lastIndexOf(".") + 1);
  24548. if (hz == "txt" || hz == "md") {
  24549. this.lookTxt(url);
  24550. return;
  24551. }
  24552. var credentials = {
  24553. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24554. secretAccessKey: "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"
  24555. }; //秘钥形式的登录上传
  24556. window.AWS.config.update(credentials);
  24557. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24558. let url2 = url;
  24559. let _url2 = "";
  24560. if (
  24561. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24562. ) {
  24563. _url2 = url2.split(
  24564. "https://view.officeapps.live.com/op/view.aspx?src="
  24565. )[1];
  24566. } else {
  24567. _url2 = url2;
  24568. }
  24569. const loading2 = this.$loading.service({
  24570. background: "rgba(255, 255, 255, 0.7)",
  24571. target: document.body,
  24572. text: "文件加载中..."
  24573. });
  24574. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24575. let name = decodeURIComponent(
  24576. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24577. );
  24578. var params = {
  24579. Bucket: "ccrb",
  24580. Key: name
  24581. };
  24582. s3.getObject(params, function(err, data) {
  24583. loading2.close();
  24584. if (err) console.log(err, err.stack);
  24585. // an error occurred
  24586. else {
  24587. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24588. let a = document.createElement("a");
  24589. a.name = name;
  24590. a.href = url;
  24591. a.download = name;
  24592. a.click();
  24593. console.log(data);
  24594. } // sxuccessful response
  24595. });
  24596. }
  24597. return;
  24598. let _this = this;
  24599. let _url = "";
  24600. if (
  24601. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24602. ) {
  24603. _url = url.split(
  24604. "https://view.officeapps.live.com/op/view.aspx?src="
  24605. )[1];
  24606. } else {
  24607. _url = url;
  24608. }
  24609. const x = new XMLHttpRequest();
  24610. x.open("GET", _url, true);
  24611. x.responseType = "blob";
  24612. const loading = _this.$loading.service({
  24613. background: "rgba(255, 255, 255, 0.7)",
  24614. target: document.body,
  24615. text: "文件加载中..."
  24616. });
  24617. // _this.$message.success("文件下载中...");
  24618. x.onload = function(e) {
  24619. loading.close();
  24620. let content = x.response;
  24621. let elink = document.createElement("a");
  24622. elink.download = decodeURI(
  24623. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24624. );
  24625. elink.style.display = "none";
  24626. let blob = new Blob([content]);
  24627. elink.href = URL.createObjectURL(blob);
  24628. document.body.appendChild(elink);
  24629. elink.click();
  24630. document.body.removeChild(elink);
  24631. };
  24632. x.send();
  24633. },
  24634. openLine(url) {
  24635. window.open(url);
  24636. },
  24637. resize() {
  24638. if (document.getElementsByClassName("box_course").length) {
  24639. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24640. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24641. if (this.showType == 2 || this.showType == 3) {
  24642. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24643. document.getElementsByClassName("navBox")[0].style.height =
  24644. a - 40 + 0 + "px";
  24645. }
  24646. } else {
  24647. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24648. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  24649. }
  24650. }
  24651. }
  24652. this.Stbodywidth =
  24653. document.getElementsByClassName("student_body").length &&
  24654. document.getElementsByClassName("student_body")[0].offsetWidth;
  24655. },
  24656. closeDraw() {
  24657. this.bg = null;
  24658. this.drawShow = false;
  24659. },
  24660. showPicturePaint(url) {
  24661. let params = {
  24662. img: url
  24663. };
  24664. this.ajax
  24665. .get(this.$store.state.api + "imgToBase64", params)
  24666. .then(res => {
  24667. this.drawShow = true;
  24668. this.bg = res.data[0].img;
  24669. })
  24670. .catch(err => {
  24671. console.error(err);
  24672. });
  24673. },
  24674. addImgDraw(base64) {
  24675. let file = { name: "批注图.png" };
  24676. let img = this.dataUrlToFile(base64, file);
  24677. this.beforeUpload1(img, 5);
  24678. },
  24679. addImgDrawImG(url) {
  24680. // console.log(url);
  24681. let params = [
  24682. {
  24683. wid: this.commentDetail.wid,
  24684. img: url
  24685. }
  24686. ];
  24687. this.ajax
  24688. .post(this.$store.state.api + "updateCourseWorks", params)
  24689. .then(res => {
  24690. this.$message({
  24691. message: "提交成功",
  24692. type: "success"
  24693. });
  24694. this.drawShow = false;
  24695. this.bg = "";
  24696. this.selectSWorks();
  24697. this.selectStudent();
  24698. })
  24699. .catch(err => {
  24700. this.$message.error("提交失败");
  24701. console.error(err);
  24702. });
  24703. },
  24704. deletePicturePaint() {
  24705. this.$confirm("确定删除此批注吗?", "提示", {
  24706. confirmButtonText: "确定",
  24707. cancelButtonText: "取消",
  24708. type: "warning"
  24709. })
  24710. .then(() => {
  24711. let params = [
  24712. {
  24713. wid: this.commentDetail.wid,
  24714. img: ""
  24715. }
  24716. ];
  24717. this.ajax
  24718. .post(this.$store.state.api + "updateCourseWorks", params)
  24719. .then(res => {
  24720. this.$message({
  24721. message: "删除成功",
  24722. type: "success"
  24723. });
  24724. this.selectSWorks();
  24725. this.selectStudent();
  24726. })
  24727. .catch(err => {
  24728. this.$message.error("删除失败");
  24729. console.error(err);
  24730. });
  24731. })
  24732. .catch(() => {});
  24733. },
  24734. getAudioVideo(constraintsData) {
  24735. if (navigator.mediaDevices === undefined) {
  24736. navigator.mediaDevices = {};
  24737. }
  24738. if (navigator.mediaDevices.getUserMedia === undefined) {
  24739. navigator.mediaDevices.getUserMedia = function(constraints) {
  24740. // 首先,如果有getUserMedia的话,就获得它
  24741. var getUserMedia =
  24742. navigator.getUserMedia ||
  24743. navigator.webkitGetUserMedia ||
  24744. navigator.mozGetUserMedia ||
  24745. navigator.msGetUserMedia;
  24746. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24747. if (!getUserMedia) {
  24748. return Promise.reject({ code: 404 });
  24749. }
  24750. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24751. return new Promise(function(resolve, reject) {
  24752. getUserMedia.call(navigator, constraints, resolve, reject);
  24753. });
  24754. };
  24755. }
  24756. return navigator.mediaDevices.getUserMedia(constraintsData);
  24757. },
  24758. /**
  24759. * 开始录制
  24760. */
  24761. startRecording(callback) {
  24762. let _function = screenStream => {
  24763. this.addStreamStopListener(screenStream, () => {
  24764. console.log("流停止监听");
  24765. this.stopRecording();
  24766. this.$emit("streamStop", {});
  24767. // this.stopRecording();
  24768. });
  24769. var options = {
  24770. type: "video",
  24771. mimeType: "video/webm",
  24772. disableLogs: false,
  24773. getNativeBlob: false, // enable it for longer recordings
  24774. ignoreMutedMedia: false
  24775. };
  24776. // this.video.srcObject = screenStream;
  24777. this.recorder = RecordRTC(screenStream, options);
  24778. this.recorder.startRecording();
  24779. this.recorder.screen = screenStream;
  24780. this.videoStart = true;
  24781. // callback(true);
  24782. };
  24783. this.getAudioVideo({ audio: true })
  24784. .then(res => {
  24785. this.captureScreen(_function, true);
  24786. console.log("已点击允许,开启成功");
  24787. })
  24788. .catch(err => {
  24789. // console.log('浏览器不支持,请更换浏览器')
  24790. // } else {
  24791. this.captureScreen(_function, false);
  24792. console.log("请检查是否存在麦克风");
  24793. });
  24794. },
  24795. /**
  24796. * 停止录制
  24797. */
  24798. stopRecording(callback) {
  24799. this.recorder.stopRecording(() => {
  24800. // this.video.src = this.video.srcObject = null;
  24801. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24802. const url = URL.createObjectURL(this.recorder.getBlob());
  24803. const a = document.createElement("a"); //this.fileName+
  24804. let videoFile = new File(
  24805. [this.recorder.getBlob()],
  24806. this.courseDetail.title + "录屏.mp4",
  24807. {
  24808. type: "video/mp4"
  24809. }
  24810. );
  24811. let downloadUrl = URL.createObjectURL(videoFile);
  24812. if (this.$refs.classRoomHelperRef) {
  24813. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  24814. }
  24815. document.body.appendChild(a);
  24816. a.style.display = "none";
  24817. a.href = url;
  24818. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24819. a.click();
  24820. this.recorder.screen.stop();
  24821. this.recorder.destroy();
  24822. this.recorder = null;
  24823. this.videoStart = false;
  24824. // callback(false);
  24825. });
  24826. },
  24827. //初始化
  24828. captureScreen(callback, type) {
  24829. if (navigator.getDisplayMedia) {
  24830. //录制结束,文件下载
  24831. navigator
  24832. .getDisplayMedia({
  24833. video: true
  24834. })
  24835. .then(screenStream => {
  24836. if (type) {
  24837. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24838. screenStream.addTrack(mic.getTracks()[0]);
  24839. callback(screenStream);
  24840. });
  24841. } else {
  24842. callback(screenStream);
  24843. }
  24844. })
  24845. .catch(function(error) {
  24846. console.log("error", error);
  24847. });
  24848. } else if (navigator.mediaDevices.getDisplayMedia) {
  24849. navigator.mediaDevices
  24850. .getDisplayMedia({
  24851. video: true
  24852. })
  24853. .then(screenStream => {
  24854. if (type) {
  24855. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24856. screenStream.addTrack(mic.getTracks()[0]);
  24857. callback(screenStream);
  24858. });
  24859. } else {
  24860. callback(screenStream);
  24861. }
  24862. })
  24863. .catch(function(error) {
  24864. console.log("error", error);
  24865. });
  24866. } else {
  24867. var error = "getDisplayMedia API are not supported in this browser.";
  24868. console.log("error", error);
  24869. alert(error);
  24870. }
  24871. },
  24872. //流监听
  24873. addStreamStopListener(stream, callback) {
  24874. stream.addEventListener(
  24875. "ended",
  24876. function() {
  24877. callback();
  24878. callback = function() {};
  24879. },
  24880. false
  24881. );
  24882. stream.addEventListener(
  24883. "inactive",
  24884. function() {
  24885. callback();
  24886. callback = function() {};
  24887. },
  24888. false
  24889. );
  24890. stream.getTracks().forEach(function(track) {
  24891. track.addEventListener(
  24892. "ended",
  24893. function() {
  24894. callback();
  24895. callback = function() {};
  24896. },
  24897. false
  24898. );
  24899. track.addEventListener(
  24900. "inactive",
  24901. function() {
  24902. callback();
  24903. callback = function() {};
  24904. },
  24905. false
  24906. );
  24907. });
  24908. },
  24909. updateGroup() {
  24910. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24911. this.dialogVisibleGroup2 = true;
  24912. },
  24913. numberPan() {
  24914. if (
  24915. /[^\d]/.test(this.groupJson.number) ||
  24916. this.groupJson.number < 2 ||
  24917. this.groupJson.number > 10
  24918. ) {
  24919. this.$message.error("请输入2-10的数字");
  24920. this.groupJson.number = "";
  24921. }
  24922. },
  24923. updateGroupJson() {
  24924. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24925. if (
  24926. this.groupStudentUid[this.toolindex][i].length >
  24927. this.groupJson2.number
  24928. ) {
  24929. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24930. return;
  24931. }
  24932. }
  24933. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24934. this.islock = this.groupJson.islock == 1 ? true : false;
  24935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24936. this.taskCount
  24937. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24938. let params = [
  24939. {
  24940. cid: this.id,
  24941. chapters: JSON.stringify(this.chapInfoList),
  24942. uid: this.userid,
  24943. unitIndex: this.courseType
  24944. }
  24945. ];
  24946. this.ajax
  24947. .post(this.$store.state.api + "updateWorkNew4", params)
  24948. .then(res => {
  24949. this.$message.success("设置成功");
  24950. this.getCourseDetail(2);
  24951. this.dialogVisibleGroup2 = false;
  24952. this.groupJson2 = {};
  24953. this.$forceUpdate();
  24954. })
  24955. .catch(err => {
  24956. this.$message.error("网络不佳");
  24957. console.error(err);
  24958. });
  24959. },
  24960. lockChair() {
  24961. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24962. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24963. this.updateGroupJson();
  24964. },
  24965. selectGroup(index) {
  24966. this.getCourseDetail(2, index);
  24967. },
  24968. joinGroup(index) {
  24969. if (this.groupJson.islock == 2) {
  24970. this.$message.error("位置已被锁定,无法加入");
  24971. return;
  24972. }
  24973. if (
  24974. this.groupStudent[this.toolindex][index].length >
  24975. this.groupJson.number ||
  24976. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24977. ) {
  24978. this.$message.error("位置已满,无法加入");
  24979. return;
  24980. }
  24981. let params = [
  24982. {
  24983. cid: this.id,
  24984. stage: this.courseType,
  24985. task: this.taskCount,
  24986. tool: this.toolindex,
  24987. g: index,
  24988. uid: this.userid
  24989. }
  24990. ];
  24991. this.ajax
  24992. .post(this.$store.state.api + "joinGroup", params)
  24993. .then(res => {
  24994. this.$message.success("加入成功");
  24995. this.getCourseDetail(2);
  24996. })
  24997. .catch(err => {
  24998. this.$message.error("网络不佳");
  24999. console.error(err);
  25000. });
  25001. },
  25002. exitGroup(id) {
  25003. if (this.groupJson.islock == 2) {
  25004. this.$message.error("位置已被锁定,无法退出");
  25005. return;
  25006. }
  25007. let params = [
  25008. {
  25009. gid: id
  25010. }
  25011. ];
  25012. this.ajax
  25013. .post(this.$store.state.api + "exitGroup", params)
  25014. .then(res => {
  25015. this.$message.success("退出成功");
  25016. this.getCourseDetail(2);
  25017. })
  25018. .catch(err => {
  25019. this.$message.error("网络不佳");
  25020. console.error(err);
  25021. });
  25022. },
  25023. groupUpload(index, task, gindex) {
  25024. this.taskCount = task;
  25025. this.toolindex = index;
  25026. this.groupIndex = gindex;
  25027. this.dialogVisibleGroupWork = true;
  25028. },
  25029. updateGroupChair(user) {
  25030. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  25031. el.label = index;
  25032. return index != user.group;
  25033. });
  25034. this.updateGroupUser = user;
  25035. this.dialogVisibleUpdateGroup = true;
  25036. },
  25037. updateChair() {
  25038. if (
  25039. this.groupStudent[this.toolindex][this.checkChair].length >
  25040. this.groupJson.number ||
  25041. this.groupStudent[this.toolindex][this.checkChair].length ==
  25042. this.groupJson.number
  25043. ) {
  25044. this.$message.error("位置已满,无法加入");
  25045. return;
  25046. }
  25047. let params = [
  25048. {
  25049. cid: this.id,
  25050. stage: this.courseType,
  25051. task: this.taskCount,
  25052. tool: this.toolindex,
  25053. g: this.checkChair,
  25054. uid: this.updateGroupUser.userid
  25055. }
  25056. ];
  25057. this.ajax
  25058. .post(this.$store.state.api + "joinGroup", params)
  25059. .then(res => {
  25060. this.$message.success("修改成功");
  25061. this.updateGroupUser = {};
  25062. this.checkChair = "";
  25063. this.updateGroupArray = {};
  25064. this.dialogVisibleUpdateGroup = false;
  25065. this.getCourseDetail(2);
  25066. })
  25067. .catch(err => {
  25068. this.$message.error("网络不佳");
  25069. console.error(err);
  25070. });
  25071. },
  25072. deleteGroupChair(gindex) {
  25073. this.checkDeleteGroup = [];
  25074. this.deleteGroupUser = JSON.parse(
  25075. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  25076. );
  25077. this.deleteGroupArray = this.groupJson.group[gindex];
  25078. this.groupIndex = gindex;
  25079. this.dialogVisibleDeleteGroup = true;
  25080. },
  25081. async deleteChair() {
  25082. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  25083. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  25084. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  25085. this.checkDeleteGroup[i]
  25086. )
  25087. ];
  25088. let params = [
  25089. {
  25090. gid: gid.id
  25091. }
  25092. ];
  25093. var a = await this.deleteChairA(params);
  25094. if (i == this.checkDeleteGroup.length - 1) {
  25095. this.$message.success("退出成功");
  25096. this.dialogVisibleDeleteGroup = false;
  25097. this.deleteGroupUser = [];
  25098. this.deleteGroupArray = {};
  25099. this.groupIndex = "";
  25100. this.checkDeleteGroup = [];
  25101. this.getCourseDetail(2);
  25102. }
  25103. }
  25104. },
  25105. deleteChairA(params) {
  25106. return new Promise((resolve, reject) => {
  25107. this.ajax
  25108. .post(this.$store.state.api + "exitGroup", params)
  25109. .then(res => {
  25110. resolve(1);
  25111. })
  25112. .catch(err => {
  25113. this.$message.error("网络不佳");
  25114. console.error(err);
  25115. });
  25116. });
  25117. },
  25118. contract(i) {
  25119. if (this.isCloseList[i].isClose == 0) {
  25120. this.isCloseList[i].isClose = 1;
  25121. } else {
  25122. this.isCloseList[i].isClose = 0;
  25123. }
  25124. this.$forceUpdate();
  25125. },
  25126. openWordCloud(toolindex) {
  25127. this.wordCloudData = '';
  25128. let array = [];
  25129. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  25130. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  25131. array.push({ name: works });
  25132. }
  25133. if (this.isGroup) {
  25134. for (var i = 0; i < this.courseGroup.group.length; i++) {
  25135. let works = this.courseGroup.group[i].works[toolindex];
  25136. for (var j = 0; j < works.length; j++) {
  25137. let answer = JSON.parse(works[j].works)[0].answer;
  25138. array.push({ name: answer });
  25139. }
  25140. }
  25141. }
  25142. let _result = ''
  25143. array.forEach(e=>{
  25144. _result +=e.name+','
  25145. })
  25146. this.wordCloudData = _result;
  25147. this.dialogVisibleWordCloud = true;
  25148. this.wordCloudKey += 1;
  25149. },
  25150. openTips(i) {
  25151. this.tipsIndex = i;
  25152. this.downDialogVisible = true;
  25153. },
  25154. uploadWorks(i) {
  25155. this.$confirm("确定导出作业吗?", "提示", {
  25156. confirmButtonText: "确定",
  25157. cancelButtonText: "取消",
  25158. type: "warning"
  25159. })
  25160. .then(() => {
  25161. const loading = this.$loading.service({
  25162. background: "rgba(255, 255, 255, 0.7)",
  25163. target: document.body,
  25164. text: "文件加载中..."
  25165. });
  25166. const _worksStudent = this.worksStudent;
  25167. let url = [];
  25168. var counts = {};
  25169. for (var l = 0; l < _worksStudent[i].length; l++) {
  25170. var item = _worksStudent[i][l];
  25171. var name = item.sName;
  25172. if (!counts.hasOwnProperty(name)) {
  25173. counts[name] = 0;
  25174. } else {
  25175. counts[name]++;
  25176. }
  25177. if (counts[name] > 0) {
  25178. item.sName += " (" + counts[name] + ")";
  25179. }
  25180. }
  25181. for (var l = 0; l < _worksStudent[i].length; l++) {
  25182. var item = _worksStudent[i][l];
  25183. if (
  25184. item.works.indexOf(
  25185. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  25186. ) !== -1 &&
  25187. item.works.indexOf("img") === -1
  25188. ) {
  25189. url.push({ name: item.sName, url: item.works });
  25190. }
  25191. }
  25192. // var toolList = [
  25193. // { name: "电子白板", tool: 1 },
  25194. // { name: "思维导图", tool: 3 },
  25195. // { name: "协同文档", tool: 6 },
  25196. // { name: "思维网格", tool: 7 },
  25197. // { name: "素材库", tool: 8 },
  25198. // { name: "学习资料", tool: 17 },
  25199. // { name: "便签", tool: 2 },
  25200. // { name: "问卷调查", tool: 4 },
  25201. // { name: "选择题", tool: 45 },
  25202. // { name: "倒计时", tool: 10 },
  25203. // { name: "问答", tool: 15 },
  25204. // { name: "课程设计", tool: 26 },
  25205. // { name: "训练服务器", tool: 18 },
  25206. // { name: "作业提交", tool: 16 },
  25207. // { name: "批量上传", tool: 50 },
  25208. // { name: "AIoT Blockly", tool: 21 },
  25209. // { name: "AI Python", tool: 23 },
  25210. // { name: "AI Blockly", tool: 24 },
  25211. // { name: "目标管理", tool: 25 },
  25212. // { name: "数学画板", tool: 31 },
  25213. // { name: "翻译", tool: 28 },
  25214. // { name: "魔盒识字", tool: 37 },
  25215. // { name: "数学画板", tool: 31 },
  25216. // { name: "24点", tool: 38 },
  25217. // { name: "GeoGebra", tool: 39 },
  25218. // { name: "源码编辑", tool: 32 },
  25219. // { name: "个人评价", tool: 40 },
  25220. // { name: "选择匹配", tool: 41 },
  25221. // { name: "汉字宫", tool: 44 },
  25222. // { name: "排序", tool: 47 },
  25223. // { name: "表格", tool: 48 },
  25224. // { name: "文档", tool: 52 },
  25225. // { name: "学生分组", tool: 49 },
  25226. // { name: "CocoPi", tool: 57 },
  25227. // { name: "模拟驾驶", tool: 58 },
  25228. // { name: "路径搜索", tool: 59 },
  25229. // { name: "深度学习", tool: 60 },
  25230. // { name: "全历史", tool: 61 },
  25231. // { name: "交互视频", tool: 62 },
  25232. // { name: "海龟编程", tool: 63 },
  25233. // { name: "挑人", tool: 65 },
  25234. // { name: "公式编辑", tool: 66 },
  25235. // { name: "分子结构", tool: 67 },
  25236. // { name: "时间轴", tool: 68 },
  25237. // ];
  25238. // var toolName = "";
  25239. // for(var w = 0;w<toolList.length;w++){
  25240. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  25241. // toolName = toolList[w].name;
  25242. // }
  25243. // }
  25244. console.log(url);
  25245. this.downLoadAll(url, loading);
  25246. })
  25247. .catch(() => {});
  25248. },
  25249. downLoadAll(url, loading) {
  25250. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  25251. const zip = new JSZip();
  25252. const cache = {};
  25253. const promises = [];
  25254. data.forEach(item => {
  25255. const promise = getFile(item.url).then(data => {
  25256. if (data.data != 1) {
  25257. // 下载文件, 并存成ArrayBuffer对象
  25258. const file_name =
  25259. item.name +
  25260. "." +
  25261. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  25262. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  25263. cache[file_name] = data.data;
  25264. }
  25265. });
  25266. promises.push(promise);
  25267. });
  25268. Promise.all(promises).then(() => {
  25269. zip.generateAsync({ type: "blob" }).then(content => {
  25270. // 生成二进制流
  25271. FileSaver.saveAs(
  25272. content,
  25273. this.courseDetail.title + "-" + "作业提交工具.zip"
  25274. ); // 利用file-saver保存文件 自定义文件名
  25275. setTimeout(() => {
  25276. loading.close();
  25277. }, 2000);
  25278. });
  25279. });
  25280. },
  25281. pickStudent(stu) {
  25282. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  25283. return;
  25284. }
  25285. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  25286. confirmButtonText: "确定",
  25287. cancelButtonText: "取消",
  25288. type: "warning"
  25289. })
  25290. .then(() => {
  25291. let params = [
  25292. {
  25293. uid: stu.userid,
  25294. cid: this.id,
  25295. stage: this.courseType,
  25296. task: this.taskCount,
  25297. tool: this.toolindex
  25298. }
  25299. ];
  25300. this.ajax
  25301. .post(this.$store.state.api + "updateCoursePick", params)
  25302. .then(res => {
  25303. this.$message.success("操作成功");
  25304. this.getPick();
  25305. })
  25306. .catch(err => {
  25307. this.$message.error("网络不佳");
  25308. console.error(err);
  25309. });
  25310. })
  25311. .catch(() => {});
  25312. },
  25313. selectUser() {
  25314. let params = {
  25315. userid: this.userid
  25316. };
  25317. this.ajax
  25318. .get(this.$store.state.api + "selectUser", params)
  25319. .then(res => {
  25320. this.userMes = res.data[0];
  25321. })
  25322. .catch(err => {
  25323. console.error(err);
  25324. });
  25325. },
  25326. setEngText(i) {
  25327. this.newEngIndex = i;
  25328. this.$forceUpdate();
  25329. },
  25330. addCorrect() {
  25331. this.$confirm("你确定提交批改嘛?", "提示", {
  25332. confirmButtonText: "确定",
  25333. showCancelButton: false,
  25334. closeOnClickModal: false,
  25335. type: "warning"
  25336. })
  25337. .then(() => {
  25338. let params = {
  25339. cid: this.id,
  25340. s: parseInt(this.courseType),
  25341. t: this.taskCount,
  25342. tool: this.toolindex,
  25343. wid: this.engWid,
  25344. c: this.userid,
  25345. w:
  25346. this.userMes[0].type == 2
  25347. ? JSON.parse(this.newEnglishList)
  25348. : this.newEngIndex == -1 &&
  25349. this.isNoUserid == true &&
  25350. this.newEnglishList1.length
  25351. ? JSON.stringify(this.oldEnglishJson1)
  25352. : this.newEngIndex == -1
  25353. ? JSON.stringify(this.newEnglishList)
  25354. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  25355. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  25356. : ""
  25357. };
  25358. this.ajax
  25359. .get(this.$store.state.api + "addEngC", params)
  25360. .then(res => {
  25361. this.$message.success("提交成功");
  25362. this.engUpdateDialogVisible = false;
  25363. })
  25364. .catch(err => {
  25365. console.error(err);
  25366. });
  25367. })
  25368. .catch(() => {});
  25369. },
  25370. selectEngC(id, z) {
  25371. let params = {
  25372. workid: id
  25373. };
  25374. this.ajax
  25375. .get(this.$store.state.api + "selectEngC", params)
  25376. .then(res => {
  25377. if (res.data[0].length == 0) {
  25378. this.newEnglishList.engTitle = z.engTitle;
  25379. this.newEnglishList.engText = z.engText;
  25380. } else {
  25381. var a = res.data[0];
  25382. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  25383. if (this.userMes[0].type == 2) {
  25384. var snum = 0;
  25385. for (var i = 0; i < a.length; i++) {
  25386. if (this.userMes[0].userid == a[i].correct) {
  25387. this.newEnglishList = JSON.parse(a[i].cWork);
  25388. snum = 1;
  25389. }
  25390. }
  25391. if (snum == 0) {
  25392. this.newEnglishList = { engTitle: "", engText: "" };
  25393. this.newEnglishList.engTitle = z.engTitle;
  25394. this.newEnglishList.engText = z.engText;
  25395. }
  25396. } else if (this.userMes[0].type == 1) {
  25397. var num = 0;
  25398. for (var w = 0; w < a.length; w++) {
  25399. if (this.userMes[0].userid == a[w].correct) {
  25400. num = 1;
  25401. }
  25402. }
  25403. if (num == 0) {
  25404. this.isNoUserid = true;
  25405. var c = JSON.parse(JSON.stringify(z));
  25406. this.oldEnglishJson1 = c;
  25407. } else {
  25408. this.isNoUserid = false;
  25409. }
  25410. var b = a.sort((item, index) => {
  25411. console.log(item);
  25412. if (item.correct === this.userMes[0].userid) {
  25413. return -1; // 将a移到前面
  25414. } else if (index.correct === this.userMes[0].userid) {
  25415. return 1; // 将b移到前面
  25416. } else {
  25417. return 0; // 保持默认顺序
  25418. }
  25419. });
  25420. for (var p = 0; p < b.length; p++) {
  25421. for (var y = 0; y < ppp.length; y++) {
  25422. if (b[p].id == ppp[y].id) {
  25423. b[p].cWork = JSON.parse(ppp[y].cWork);
  25424. break;
  25425. }
  25426. }
  25427. }
  25428. this.newEnglishList1 = b;
  25429. }
  25430. }
  25431. this.greyType = false;
  25432. setTimeout(() => {
  25433. this.topHeight = document.querySelectorAll(
  25434. ".engUpTop"
  25435. )[0].offsetHeight;
  25436. if (this.newEnglishList1.length > 0) {
  25437. if (this.isNoUserid == true) {
  25438. this.engListLength = this.newEnglishList1.length + 1;
  25439. this.newEngIndex = -1;
  25440. } else {
  25441. this.engListLength = this.newEnglishList1.length;
  25442. this.newEngIndex = 0;
  25443. }
  25444. }
  25445. if (this.userMes[0].type == 2) {
  25446. this.correctWord = Diff.diffWordsWithSpace(
  25447. this.oldEnglishJson.engText,
  25448. this.newEnglishList.engText
  25449. );
  25450. } else if (
  25451. this.newEngIndex == -1 &&
  25452. this.isNoUserid == true &&
  25453. this.newEnglishList1.length
  25454. ) {
  25455. this.correctWord = Diff.diffWordsWithSpace(
  25456. this.oldEnglishJson.engText,
  25457. this.oldEnglishJson1.engText
  25458. );
  25459. } else if (this.newEngIndex == -1) {
  25460. this.correctWord = Diff.diffWordsWithSpace(
  25461. this.oldEnglishJson.engText,
  25462. this.newEnglishList.engText
  25463. );
  25464. } else if (
  25465. this.newEngIndex > -1 &&
  25466. this.newEnglishList1.length > 0
  25467. ) {
  25468. this.correctWord = Diff.diffWordsWithSpace(
  25469. this.oldEnglishJson.engText,
  25470. this.newEnglishList1[this.newEngIndex].cWork.engText
  25471. );
  25472. }
  25473. }, 500);
  25474. this.engUpdateDialogVisible = true;
  25475. this.$forceUpdate();
  25476. })
  25477. .catch(err => {
  25478. console.error(err);
  25479. });
  25480. },
  25481. getPick() {
  25482. if(this.getPickLoading) return
  25483. this.getPickLoading = true
  25484. let params = {
  25485. cid: this.id
  25486. };
  25487. this.ajax
  25488. .get(this.$store.state.api + "getPick", params)
  25489. .then(res => {
  25490. let array = [];
  25491. for (var i = 0; i < res.data[0].length; i++) {
  25492. array.push(res.data[0][i].userid);
  25493. }
  25494. this.isPickStudent = array;
  25495. if (array.indexOf(this.userid) !== -1) {
  25496. this.$confirm("你被老师选到啦!", "提示", {
  25497. confirmButtonText: "确定",
  25498. showCancelButton: false,
  25499. closeOnClickModal: false,
  25500. type: "warning"
  25501. })
  25502. .then(() => {
  25503. let pa = [
  25504. {
  25505. uid: this.userid,
  25506. cid: this.id
  25507. }
  25508. ];
  25509. this.ajax
  25510. .post(this.$store.state.api + "deletePick", pa)
  25511. .then(res => {
  25512. this.getPick();
  25513. })
  25514. .catch(err => {
  25515. this.$message.error("网络不佳");
  25516. console.error(err);
  25517. });
  25518. })
  25519. .catch(() => {});
  25520. }
  25521. this.getPickLoading = false
  25522. })
  25523. .catch(err => {
  25524. this.getPickLoading = false
  25525. this.$message.error("网络不佳");
  25526. console.error(err);
  25527. });
  25528. },
  25529. foldEva() {
  25530. if (
  25531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25532. this.taskCount
  25533. ].isEvaFold2
  25534. ) {
  25535. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25536. this.taskCount
  25537. ].isEvaFold2 = false;
  25538. } else {
  25539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25540. this.taskCount
  25541. ].isEvaFold2 = true;
  25542. setTimeout(() => {
  25543. this.checkEva();
  25544. setTimeout(() => {
  25545. this.checkEva();
  25546. }, 500);
  25547. }, 0);
  25548. }
  25549. this.$forceUpdate();
  25550. },
  25551. panToolHeight(tool) {
  25552. var _tool = document.querySelectorAll("#" + tool)[0];
  25553. var _toolA = _tool ? _tool.offsetHeight : 0;
  25554. var _toolC = 0;
  25555. var _toolC =
  25556. _tool && _tool.children && _tool.children[0]
  25557. ? _tool.children[0].offsetHeight + 50
  25558. : 0;
  25559. let boolean2 = _toolA > _toolC ? true : false;
  25560. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  25561. this.$forceUpdate();
  25562. },
  25563. async checkLink(url) {
  25564. // console.log(url)
  25565. let _url = url;
  25566. try {
  25567. const response = await fetch(url);
  25568. if (!response.ok) {
  25569. _url = await this.checkLink(
  25570. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25571. encodeURIComponent(
  25572. _url.split(
  25573. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  25574. )[1]
  25575. )
  25576. );
  25577. }
  25578. // console.log(response.ok)
  25579. } catch (error) {
  25580. console.error("Error checking link:", error);
  25581. // console.log(false)
  25582. _url = await this.checkLink(
  25583. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25584. encodeURIComponent(
  25585. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  25586. )
  25587. );
  25588. }
  25589. // console.log(_url)
  25590. return _url;
  25591. },
  25592. setClassRoomHelperWidth(width) {
  25593. this.classRoomHelperWidth = width;
  25594. },
  25595. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  25596. this.$refs.choseWorksDetailDialogRef.open({
  25597. toolType:tooc,
  25598. tType: this.tType,
  25599. toolIndex: toolIndex
  25600. });
  25601. this.changeSplitScreenBehavior({
  25602. code: 1,
  25603. form: {
  25604. toolType:tooc,
  25605. toolIndex: toolIndex,
  25606. courseType: this.courseType,
  25607. taskCount: this.taskCount,
  25608. type: 0
  25609. }
  25610. });
  25611. },
  25612. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  25613. this.$refs.statisticalAnalysisRef.open({
  25614. worksStudent: this.worksStudent[toolIndex],
  25615. tType: this.tType,
  25616. toolIndex: toolIndex
  25617. });
  25618. this.changeSplitScreenBehavior({
  25619. code: 2,
  25620. form: {
  25621. toolType:4,
  25622. courseType: this.courseType,
  25623. taskCount: this.taskCount,
  25624. toolIndex: toolIndex,
  25625. type: 0
  25626. }
  25627. });
  25628. },
  25629. statisticalAnalysisRefresh(toolIndex) {
  25630. this.$refs.statisticalAnalysisRef.refreshData({
  25631. worksStudent: this.worksStudent[toolIndex],
  25632. tType: this.tType,
  25633. toolIndex: toolIndex
  25634. });
  25635. },
  25636. async splitScreenBehavior(type = 0) {
  25637. // return;
  25638. if (this.splitScreenData.loading)
  25639. return this.$message.info("操作过快,请稍等");
  25640. if (type == 0) {
  25641. //关闭分屏
  25642. this.splitScreenData.isOpen = false;
  25643. // this.splitScreenData.userId = "";
  25644. // this.splitScreenData.uid = "";
  25645. this.splitScreenData.behavior = null;
  25646. await this.updateSplitScreenData(1);
  25647. this.$message.success("已关闭分屏模式");
  25648. this.studentFreePreview(false);
  25649. this.OpenJobPreview(false);
  25650. // this.followingMode(false);
  25651. } else if (type == 1) {
  25652. //开启分屏
  25653. this.splitScreenData.isOpen = true;
  25654. this.splitScreenData.userId = this.userid;
  25655. this.splitScreenData.uid = this.splitScreenData.myUid;
  25656. this.splitScreenData.behavior = null;
  25657. let status = await this.updateSplitScreenData(0);
  25658. if (status == 1) {
  25659. this.$message.success("已开启分屏");
  25660. this.studentFreePreview(false);
  25661. this.OpenJobPreview(true);
  25662. this.changeSplitScreenBehavior({form:{}})
  25663. // this.followingMode(true);
  25664. } else {
  25665. this.splitScreenData.isOpen = false;
  25666. this.splitScreenData.userId = "";
  25667. this.splitScreenData.uid = "";
  25668. this.splitScreenData.behavior = null;
  25669. this.$message.success("分屏开启失败");
  25670. }
  25671. }
  25672. },
  25673. enterFullScreen() {
  25674. let element = document.documentElement;
  25675. if (element.requestFullscreen) {
  25676. element.requestFullscreen();
  25677. } else if (element.mozRequestFullScreen) { /* Firefox */
  25678. element.mozRequestFullScreen();
  25679. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25680. element.webkitRequestFullscreen();
  25681. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25682. element.msRequestFullscreen();
  25683. }
  25684. },
  25685. exitFullScreen() {
  25686. if (document.exitFullscreen) {
  25687. document.exitFullscreen();
  25688. } else if (document.mozCancelFullScreen) { /* Firefox */
  25689. document.mozCancelFullScreen();
  25690. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25691. document.webkitExitFullscreen();
  25692. } else if (document.msExitFullscreen) { /* IE/Edge */
  25693. document.msExitFullscreen();
  25694. }
  25695. },
  25696. confirmOpen(){
  25697. this.splitScreenData.isOpen = true;
  25698. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25699. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25700. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25701. this.confirmOpenDig = false
  25702. if (!document.fullscreenElement) {
  25703. this.enterFullScreen();
  25704. }
  25705. // if (this.timer2) {
  25706. // clearInterval(this.timer2);
  25707. // this.timer2 = null;
  25708. // console.log('清除定时器');
  25709. // }
  25710. // this.timer2 = setInterval(()=> {
  25711. // this.getSplitScreenData();//获取分屏数据
  25712. // }, 1000);
  25713. this.IsLookOpen = flase
  25714. this.$message.success("分屏模式已开启");
  25715. },
  25716. getSplitScreenData() {
  25717. // return;
  25718. // if (this.tType != 1) return;
  25719. if(this.getSplitScreenDataLoading) return
  25720. this.getSplitScreenDataLoading = true
  25721. let params = {
  25722. cid: this.id
  25723. };
  25724. this.ajax
  25725. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25726. .then(async res => {
  25727. let data = res.data[0][0]["splitScreenData"];
  25728. console.log("获取了分屏数:", data);
  25729. if (data) {
  25730. data = JSON.parse(data);
  25731. if (
  25732. !this.splitScreenData.isOpen &&
  25733. data.isOpen &&
  25734. this.splitScreenData.myUid == data.uid
  25735. ) {
  25736. this.splitScreenData.isOpen = false;
  25737. this.splitScreenData.userId = "";
  25738. this.splitScreenData.uid = "";
  25739. this.splitScreenData.behavior = null;
  25740. await this.updateSplitScreenData(1);
  25741. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25742. this.confirmOpenDig = true
  25743. this.confirmOpenDigData = data
  25744. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25745. this.splitScreenData.isOpen = false;
  25746. this.splitScreenData.userId = "";
  25747. this.splitScreenData.uid = "";
  25748. this.splitScreenData.behavior = null;
  25749. this.$message.error("已结束分屏模式");
  25750. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25751. this.splitScreenData.isOpen = true;
  25752. this.splitScreenData.uid = data.uid;
  25753. this.splitScreenData.userId = data.userId;
  25754. this.splitScreenData.behavior = data.behavior;
  25755. }
  25756. this.doSplitScreenBehavior();
  25757. } else {
  25758. if (this.splitScreenData.isOpen) {
  25759. this.splitScreenData.isOpen = false;
  25760. this.splitScreenData.userId = "";
  25761. this.splitScreenData.uid = "";
  25762. this.splitScreenData.behavior = null;
  25763. this.$message.error("已结束分屏模式");
  25764. // if (this.timer2) {
  25765. // clearInterval(this.timer2);
  25766. // this.timer2 = null;
  25767. // }
  25768. // this.timer2 = setInterval(()=> {
  25769. // this.getSplitScreenData();//获取分屏数据
  25770. // }, 5000);
  25771. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25772. confirmButtonText: '确定', //确认按钮的文字
  25773. showCancelButton: false, //是否显示取消按钮
  25774. showClose: false, //是否显示关闭按钮
  25775. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25776. type: "warning",
  25777. })
  25778. .then(() => {
  25779. if (document.fullscreenElement) {
  25780. this.exitFullScreen();
  25781. }
  25782. })
  25783. .catch(() => {});
  25784. }
  25785. }
  25786. this.getSplitScreenDataLoading = false
  25787. })
  25788. .catch(e => {
  25789. this.getSplitScreenDataLoading = false
  25790. console.log("获取分屏数出错:", e);
  25791. });
  25792. },
  25793. doSplitScreenBehavior() {
  25794. if (
  25795. this.splitScreenData.isOpen &&
  25796. this.splitScreenData.uid != this.splitScreenData.myUid
  25797. ) {
  25798. let behavior = this.splitScreenData.behavior;
  25799. if (behavior) {
  25800. if (behavior.code === 99) {
  25801. //初始化
  25802. this.fullDialogVisible = false;
  25803. if(this.$refs.choseWorksDetailDialogRef.show){
  25804. this.$refs.choseWorksDetailDialogRef.close();
  25805. }
  25806. if(this.$refs.statisticalAnalysisRef.show){
  25807. this.$refs.statisticalAnalysisRef.close();
  25808. }
  25809. }
  25810. if (behavior.code === 0) {
  25811. //开启内容列表弹窗
  25812. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25813. }else{
  25814. this.fullDialogVisible = false;
  25815. }
  25816. if (behavior.code === 1) {
  25817. //关于选择题的作业详细的操作
  25818. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25819. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25820. this.courseType = behavior.form.courseType;
  25821. this.taskCount = behavior.form.taskCount;
  25822. }
  25823. this.$nextTick(() => {
  25824. if (this.$refs.choseWorksDetailDialogRef.show) {
  25825. //已经打开了
  25826. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25827. } else {
  25828. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25829. }
  25830. });
  25831. }else{
  25832. this.$refs.choseWorksDetailDialogRef.close()
  25833. }
  25834. if(behavior.code === 2){
  25835. if(this.$refs.statisticalAnalysisRef.show){
  25836. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25837. }else{
  25838. this.$refs.statisticalAnalysisRef.open({
  25839. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25840. tType: this.tType,
  25841. toolIndex: behavior.form.toolIndex
  25842. });
  25843. }
  25844. }else{
  25845. this.$refs.statisticalAnalysisRef.close();
  25846. }
  25847. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25848. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25849. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25850. if (behavior.form.courseType != this.courseType ||
  25851. behavior.form.taskCount != this.taskCount ||
  25852. behavior.form.toolType != this.toolindex
  25853. ) {
  25854. var a = document.scrollingElement;
  25855. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25856. if (target) {
  25857. target.scrollIntoView(true);
  25858. setTimeout(()=>{
  25859. let scrollBody = document.querySelector('.body_student').parentElement
  25860. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25861. }, 0);
  25862. // setTimeout(() => {
  25863. // a.scrollTop = 0
  25864. // }, 0);
  25865. }
  25866. }
  25867. if(this.courseType !=behavior.form.courseType){
  25868. this.courseType = behavior.form.courseType;
  25869. }
  25870. if(this.taskCount !=behavior.form.taskCount){
  25871. this.taskCount = behavior.form.taskCount;
  25872. }
  25873. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25874. this.toolindex = behavior.form.toolType;
  25875. }
  25876. // if(behavior.form.navId){
  25877. // this.navId = behavior.form.navId
  25878. // }
  25879. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25880. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25881. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25882. this.getCourseDetail()
  25883. }
  25884. this.setContent2(false)
  25885. }
  25886. } else {
  25887. }
  25888. }
  25889. },
  25890. updateSplitScreenData(empty = 0) {
  25891. return new Promise(resolve => {
  25892. if(this.userid!==this.courseDetail.userid){
  25893. if(!this.courseDetail.userid){
  25894. return setTimeout(()=>{
  25895. this.updateSplitScreenData(empty)
  25896. },2000)
  25897. }
  25898. return;
  25899. };
  25900. if (
  25901. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25902. this.splitScreenData.userId == this.userid
  25903. ) {
  25904. this.splitScreenData.loading = true;
  25905. let params = [
  25906. {
  25907. cid: this.id,
  25908. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25909. }
  25910. ];
  25911. this.ajax
  25912. .post(
  25913. this.$store.state.api + "update_courseSplitScreenData",
  25914. params
  25915. )
  25916. .then(res => {
  25917. this.splitScreenData.loading = false;
  25918. if (res.data == 1) {
  25919. resolve(1);
  25920. console.log("修改分屏数据成功");
  25921. }
  25922. })
  25923. .catch(e => {
  25924. this.splitScreenData.loading = false;
  25925. console.log("修改分屏数据失败", e);
  25926. resoleve(0);
  25927. });
  25928. } else if (empty == 2 && this.tType == 1) {
  25929. let params = [
  25930. {
  25931. cid: this.id,
  25932. nData: ""
  25933. }
  25934. ];
  25935. return this.ajax
  25936. .post(
  25937. this.$store.state.api + "update_courseSplitScreenData",
  25938. params
  25939. )
  25940. .then(_ => resolve(1))
  25941. .catch(_ => resolve(0));
  25942. } else {
  25943. return resolve(0);
  25944. }
  25945. });
  25946. },
  25947. changeSplitScreenBehavior(newValue) {
  25948. if (
  25949. this.splitScreenData.isOpen &&
  25950. this.splitScreenData.uid == this.splitScreenData.myUid
  25951. ) {
  25952. let _behavior = null;
  25953. if(!newValue){
  25954. _behavior = {}
  25955. }else{
  25956. _behavior = newValue
  25957. }
  25958. if(_behavior.form){
  25959. _behavior.form.taskCount = this.taskCount;
  25960. _behavior.form.courseType = this.courseType
  25961. }else{
  25962. _behavior.form = {
  25963. taskCount:this.taskCount,
  25964. courseType:this.courseType
  25965. }
  25966. }
  25967. this.splitScreenData.behavior = _behavior;
  25968. this.updateSplitScreenData(0);
  25969. }
  25970. },
  25971. studentFreePreview(flag) {
  25972. this.IsLookOpen = flag;
  25973. this.followingMode(flag)
  25974. this.updateLookOpen();
  25975. },
  25976. OpenJobPreview(flag) {
  25977. this.sIsOpen = flag;
  25978. this.updateSLook();
  25979. },
  25980. followingMode(flag) {
  25981. this.IsFollow = flag;
  25982. this.updateFollow();
  25983. },
  25984. StulookMode(flag) {
  25985. this.IsStulook = flag;
  25986. this.updateIsStulook();
  25987. },
  25988. getScoreList() {
  25989. let params = {
  25990. cid: this.id
  25991. };
  25992. this.ajax
  25993. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25994. .then(res => {
  25995. let result = res.data;
  25996. this.scoreList.datalist = result[0];
  25997. this.scoreList.isScoreList = result[1];
  25998. })
  25999. .catch(err => {
  26000. console.error(err);
  26001. });
  26002. }
  26003. },
  26004. directives: {
  26005. // 使用局部注册指令的方式
  26006. resize: {
  26007. // 指令的名称
  26008. bind(el, binding) {
  26009. // el为绑定的元素,binding为绑定给指令的对象
  26010. let width = "",
  26011. height = "";
  26012. function isReize() {
  26013. const style = document.defaultView.getComputedStyle(el);
  26014. if (width !== style.width || height !== style.height) {
  26015. binding.value(); // 关键
  26016. }
  26017. width = style.width;
  26018. height = style.height;
  26019. }
  26020. el.__vueSetInterval__ = setInterval(isReize, 300);
  26021. },
  26022. unbind(el) {
  26023. clearInterval(el.__vueSetInterval__);
  26024. }
  26025. },
  26026. autoHeight: {
  26027. update(el, binding) {
  26028. const { value } = binding;
  26029. if (value && typeof value === "number") {
  26030. el.style.height = `${value}px`;
  26031. } else {
  26032. el.style.height = "auto";
  26033. }
  26034. },
  26035. componentUpdated(el) {
  26036. el.style.height = `${el.scrollHeight + 5}px`;
  26037. }
  26038. }
  26039. },
  26040. beforeDestroy() {
  26041. window.onresize = null;
  26042. clearInterval(this.timer);
  26043. this.timer = null;
  26044. clearInterval(this.timer2);
  26045. this.timer2 = null;
  26046. clearInterval(this.opertimer);
  26047. this.opertimer = null;
  26048. this.updateSplitScreenData(1);
  26049. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  26050. let endTime = new Date().toLocaleString("zh-CN", {
  26051. hour12: false,
  26052. timeZone: "Asia/Shanghai"
  26053. }).replace(/\//g, "-")
  26054. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  26055. this.syncClassData({
  26056. courseId: this.id,
  26057. title: this.courseDetail.title,
  26058. courseGrade: this.tcid2,
  26059. courseTime: courseTime,
  26060. startTime: this.startTime,
  26061. endTime: endTime,
  26062. })
  26063. console.log('同步数据')
  26064. }
  26065. },
  26066. computed: {
  26067. renderedFormula2() {
  26068. return function(val){
  26069. // 处理换行符和HTML实体
  26070. const normalized = val
  26071. .replace(/&amp;/g, '&')
  26072. .replace(/<br\/?>/g, '\n');
  26073. // 匹配行内公式($...$)和块级公式($$...$$)
  26074. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  26075. try {
  26076. return katex.renderToString(expr.trim(), {
  26077. displayMode: false,
  26078. throwOnError: false,
  26079. macros: {
  26080. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  26081. }
  26082. });
  26083. } catch (e) {
  26084. console.warn('KaTeX渲染失败:', e);
  26085. return `<span style="color:red">${expr}</span>`;
  26086. }
  26087. })
  26088. }
  26089. },
  26090. renderedFormula() {
  26091. return function(val){
  26092. try {
  26093. // 判断是否含有HTML标签,<tag ...>...</tag>
  26094. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  26095. if (!hasTag) {
  26096. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  26097. // 纯文本,整体渲染
  26098. try {
  26099. return katex.renderToString(val.trim(), {
  26100. throwOnError: false,
  26101. strict: false,
  26102. output: "htmlAndMathml"
  26103. });
  26104. } catch (e) {
  26105. return val; // 渲染失败原样输出
  26106. }
  26107. } else {
  26108. // 有标签,对每个标签内容渲染
  26109. return val.replace(
  26110. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  26111. (match, tag, attrs, inner) => {
  26112. let html;
  26113. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  26114. try {
  26115. html = katex.renderToString(inner.trim(), {
  26116. throwOnError: false,
  26117. strict: false,
  26118. output: "htmlAndMathml"
  26119. });
  26120. } catch (e) {
  26121. html = inner;
  26122. }
  26123. return `<${tag}${attrs}>${html}</${tag}>`;
  26124. }
  26125. );
  26126. }
  26127. } catch (e) {
  26128. console.error('KaTeX渲染错误:', e);
  26129. return val;
  26130. }
  26131. }
  26132. },
  26133. isAndroid() {
  26134. return /Android/i.test(navigator.userAgent);
  26135. },
  26136. getHeight() {
  26137. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  26138. },
  26139. contentConvent() {
  26140. return function(c) {
  26141. return c
  26142. ? c
  26143. .replaceAll(/\r\n/g, "<br/>")
  26144. .replaceAll(/\n/g, "<br/>")
  26145. .replaceAll(/\s/g, " &nbsp")
  26146. : "";
  26147. };
  26148. },
  26149. commentRight() {
  26150. if (
  26151. !this.orgArray.includes(this.org) &&
  26152. !this.oidArray.includes(this.oid)
  26153. ) {
  26154. return "35px";
  26155. }
  26156. return `calc(${this.classRoomHelperWidth} + 5px)`;
  26157. // if(this.$refs["classRoomHelperRef"].type==0){
  26158. // return "100px";
  26159. // }else if(this.$refs["classRoomHelperRef"].type==1){
  26160. // return "502px"
  26161. // }else{
  26162. // return "0px"
  26163. // }
  26164. },
  26165. checkUpload() {
  26166. return function() {
  26167. var studentK = [];
  26168. if (this.plworkFile.length > 0) {
  26169. for (var z = 0; z < this.plworkFile.length; z++) {
  26170. studentK.push(this.plworkFile[z].username);
  26171. }
  26172. studentK = studentK.join(",");
  26173. }
  26174. var a = this.uploadStudentJuri.filter(el => {
  26175. return studentK.indexOf(el.userid) == -1;
  26176. });
  26177. return a;
  26178. };
  26179. },
  26180. getSName() {
  26181. return function(name) {
  26182. var check = name;
  26183. this.uploadStudentJuri.forEach(el => {
  26184. if (el.userid == check) {
  26185. check = el.name ? el.name : el.username;
  26186. }
  26187. });
  26188. return check;
  26189. };
  26190. },
  26191. getImgList() {
  26192. return function(val) {
  26193. let srcList = []; // 定义一个数组用来接收后面的img地址
  26194. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  26195. match,
  26196. capture
  26197. ) {
  26198. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  26199. srcList.push(capture);
  26200. });
  26201. return srcList;
  26202. };
  26203. },
  26204. retrnToolHeight() {
  26205. return function(tool) {
  26206. var _tool = document.querySelectorAll("#" + tool)[0];
  26207. return _tool
  26208. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  26209. 30 +
  26210. "px"
  26211. : 0;
  26212. };
  26213. },
  26214. Correct() {
  26215. return function(c) {
  26216. let w = "";
  26217. let a = this.correctWord;
  26218. for (var k = 0; k < a.length; k++) {
  26219. //diffWordsWithSpace
  26220. if (a.length > 1) {
  26221. if (a[k].added == true) {
  26222. w +=
  26223. '<span style="background-color: green;color:#fff">' +
  26224. a[k].value +
  26225. "</span>";
  26226. } else if (a[k].removed == true) {
  26227. w +=
  26228. '<span style="text-decoration: line-through;color:red">' +
  26229. a[k].value +
  26230. "</span>";
  26231. } else {
  26232. w += "<span>" + a[k].value + "</span>";
  26233. }
  26234. } else {
  26235. w = c;
  26236. }
  26237. //diffChars方法
  26238. // if(w == ""){
  26239. // if(a.length > 1){
  26240. // if(a[k].added == true){
  26241. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  26242. // }else if(a[k].removed == true){
  26243. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  26244. // }
  26245. // }else{
  26246. // w = c
  26247. // }
  26248. // }else{
  26249. // if(k == a.length - 1){
  26250. // if(a[k].added == true){
  26251. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  26252. // }else if(a[k].removed == true){
  26253. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  26254. // }
  26255. // }else{
  26256. // if(a[k].added == true){
  26257. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  26258. // }else if(a[k].removed == true){
  26259. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  26260. // }
  26261. // }
  26262. // }
  26263. }
  26264. c = w;
  26265. return c;
  26266. };
  26267. },
  26268. },
  26269. mounted() {
  26270. this.startTime = new Date().toLocaleString("zh-CN", {
  26271. hour12: false,
  26272. timeZone: "Asia/Shanghai"
  26273. }).replace(/\//g, "-")
  26274. this.updateSplitScreenData(2);
  26275. this.splitScreenData.myUid = uuidv4();
  26276. document.body.addEventListener("click", e => {
  26277. if (this.isUpdateToolDetail1) {
  26278. this.updateToolDetail(this.toolDetailIndex);
  26279. }
  26280. });
  26281. try {
  26282. if (this.screenType == 2) {
  26283. window.topU.postMessage({ allScreen: 4 }, "*");
  26284. } else if (this.screenType == 3) {
  26285. window.topU.postMessage({ allScreen: 5 }, "*");
  26286. } else if (this.screenType == 1) {
  26287. window.topU.postMessage({ allScreen: 6 }, "*");
  26288. }
  26289. } catch (error) {
  26290. console.log(error)
  26291. }
  26292. this.setOperationTime();
  26293. this.selectEva();
  26294. this.getCourseDetail(10);
  26295. this.selectCount();
  26296. this.getHomeWork();
  26297. this.selectUser();
  26298. this.getAIJ();
  26299. this.contentDialog = false;
  26300. this.setContent2(true);
  26301. if (this.tType == 4) {
  26302. this.pzDialog = true;
  26303. this.selectPz();
  26304. }
  26305. // 获取评分列表
  26306. this.getScoreList();
  26307. document.scrollingElement.scrollTop = 0;
  26308. window.addEventListener("resize", () => {
  26309. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  26310. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  26311. if (this.showType == 2 || this.showType == 3) {
  26312. document.getElementsByClassName("navBox")[0].style.height =
  26313. a - 40 + 0 + "px";
  26314. } else {
  26315. document.getElementsByClassName("navBox")[0].style.height =
  26316. a - 40 + "px";
  26317. }
  26318. });
  26319. let _this = this;
  26320. setTimeout(() => {
  26321. // _this.vedioTime = [];
  26322. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  26323. // _this.vedioTime[i] = document.getElementsByClassName(
  26324. // "vjs-duration-display"
  26325. // )[i].textContent;
  26326. // }
  26327. }, 1000);
  26328. }
  26329. };
  26330. </script>
  26331. <style scoped>
  26332. @media screen and (max-width: 1280px) {
  26333. /* .courseIndex > div:first-child(2) {
  26334. width: 15% !important;
  26335. } */
  26336. /* .navText {
  26337. width: 120px !important;
  26338. } */
  26339. .evaCss {
  26340. flex-direction: column !important;
  26341. align-items: center !important;
  26342. }
  26343. .elist_input {
  26344. width: 90% !important;
  26345. }
  26346. .dialog_diy1 >>> .el-dialog {
  26347. width: 100% !important;
  26348. }
  26349. .rightWidthCss {
  26350. width: 100% !important;
  26351. }
  26352. .dialog_diy3 >>> .el-dialog {
  26353. width: 100% !important;
  26354. }
  26355. .addToolCss {
  26356. right: 0 !important;
  26357. width: 100% !important;
  26358. min-width: unset !important;
  26359. }
  26360. }
  26361. .evaCssMax {
  26362. flex-direction: column !important;
  26363. align-items: center !important;
  26364. }
  26365. .dialog_diy >>> .el-dialog {
  26366. margin-top: 10vh !important;
  26367. }
  26368. .body_student {
  26369. width: 77%;
  26370. height: 100%;
  26371. position: absolute;
  26372. left: 22%;
  26373. top: 0;
  26374. }
  26375. .student_head {
  26376. width: 100%;
  26377. margin: 20px auto 0;
  26378. padding-bottom: 20px;
  26379. display: flex;
  26380. flex-direction: column;
  26381. flex-wrap: nowrap;
  26382. align-items: flex-start;
  26383. justify-content: flex-start;
  26384. }
  26385. .pb_left {
  26386. width: 15%;
  26387. margin-right: 10px;
  26388. background: rgb(255, 255, 255);
  26389. position: fixed;
  26390. height: calc(100% - 40px);
  26391. border-radius: 20px;
  26392. padding-bottom: 15px;
  26393. box-sizing: border-box;
  26394. }
  26395. .wheel > img,
  26396. .project > img,
  26397. .star > img,
  26398. .evaluate > img,
  26399. .up_photo > img,
  26400. .chapter_add > img,
  26401. .deleteWord > img,
  26402. .question > img,
  26403. .homework > img {
  26404. width: 100%;
  26405. height: 100%;
  26406. }
  26407. .upCover > img {
  26408. width: 131px;
  26409. height: 69px;
  26410. object-fit: cover;
  26411. }
  26412. .upCover {
  26413. width: calc(100% / 3.5);
  26414. position: relative;
  26415. margin: 0 15px 10px 0;
  26416. display: flex;
  26417. flex-direction: column;
  26418. flex-wrap: nowrap;
  26419. justify-content: center;
  26420. align-content: center;
  26421. align-items: center;
  26422. height: fit-content;
  26423. }
  26424. .upCover2 {
  26425. width: 100%;
  26426. position: relative;
  26427. margin: 0 15px 10px 0;
  26428. display: flex;
  26429. flex-direction: column;
  26430. flex-wrap: nowrap;
  26431. justify-content: center;
  26432. align-content: center;
  26433. align-items: center;
  26434. }
  26435. .upCover2 > img {
  26436. width: 100%;
  26437. height: 90px;
  26438. object-fit: contain;
  26439. }
  26440. .chapter_add {
  26441. width: 120px;
  26442. position: relative;
  26443. text-align: center;
  26444. }
  26445. .isAddThings {
  26446. margin-top: 20px;
  26447. position: relative;
  26448. text-align: center;
  26449. background: #f7f8fa;
  26450. height: 90px;
  26451. width: 90px;
  26452. display: flex;
  26453. flex-direction: column;
  26454. justify-content: center;
  26455. }
  26456. .deleteWord {
  26457. width: 22px;
  26458. height: 22px;
  26459. position: absolute;
  26460. right: -5px;
  26461. top: -5px;
  26462. cursor: pointer;
  26463. }
  26464. .box_course {
  26465. /* width: 60%; */
  26466. width: calc(100% - 300px);
  26467. }
  26468. .wheel {
  26469. width: 100%;
  26470. /* height: 100%; */
  26471. height: 650px;
  26472. }
  26473. .right_box {
  26474. display: flex;
  26475. flex-direction: column;
  26476. margin-left: 30px;
  26477. justify-content: space-around;
  26478. }
  26479. .right_box_title {
  26480. font-size: 23px;
  26481. }
  26482. .people {
  26483. display: flex;
  26484. }
  26485. .student_body {
  26486. width: 100%;
  26487. margin: 0 auto;
  26488. margin-top: 10px;
  26489. padding: 0 0 20px;
  26490. }
  26491. .study_top {
  26492. margin-top: 100px;
  26493. width: 100%;
  26494. height: auto;
  26495. padding-bottom: 20px;
  26496. margin-left: 2px;
  26497. min-height: 90%;
  26498. }
  26499. .study_top .checkbox {
  26500. display: flex;
  26501. align-items: center;
  26502. padding: 15px 0 15px 30px;
  26503. flex: 0 0 auto;
  26504. font-weight: bold;
  26505. border-bottom: 1px solid #eee;
  26506. }
  26507. .study_top .check {
  26508. padding-bottom: 5px;
  26509. text-align: center;
  26510. cursor: pointer;
  26511. height: 30px;
  26512. box-sizing: border-box;
  26513. display: flex;
  26514. }
  26515. .study_top .checked {
  26516. border-bottom: 4px solid #3fc6a0;
  26517. padding-bottom: 5px;
  26518. color: #3fc6a0;
  26519. display: flex;
  26520. height: 35px;
  26521. }
  26522. .study_top .checked > div,
  26523. .study_top .check > div {
  26524. margin-right: 5px;
  26525. }
  26526. .videoTop {
  26527. display: flex;
  26528. flex-direction: row;
  26529. justify-content: space-between;
  26530. background: #fff;
  26531. align-items: center;
  26532. width: 95%;
  26533. padding: 20px;
  26534. }
  26535. .filebox {
  26536. display: flex;
  26537. flex-wrap: wrap;
  26538. flex-direction: column;
  26539. padding: 0 0 5px;
  26540. position: relative;
  26541. }
  26542. .filebox:before {
  26543. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  26544. position: absolute;
  26545. top: 20px;
  26546. left: 13px;
  26547. border-left: 2px dotted #cad1dc;
  26548. height: calc(100% - 15px);
  26549. }
  26550. .toolHeng2 > div:last-child::before {
  26551. height: calc(100% - 43px);
  26552. }
  26553. .filebox .tooldetail {
  26554. width: calc(100%);
  26555. margin: 0px 12px;
  26556. padding: 12px;
  26557. line-height: 30px;
  26558. word-break: break-word;
  26559. background: #ffffff;
  26560. border-radius: 8px 8px 8px 8px;
  26561. opacity: 1;
  26562. border: 1px solid #cad1dc;
  26563. overflow: hidden;
  26564. box-sizing: border-box;
  26565. }
  26566. .file {
  26567. display: flex;
  26568. flex-direction: column;
  26569. align-items: center;
  26570. justify-content: center;
  26571. cursor: pointer;
  26572. width: 200px;
  26573. }
  26574. .file div {
  26575. margin-top: 10px;
  26576. width: 150px;
  26577. text-align: center;
  26578. overflow: hidden;
  26579. white-space: nowrap;
  26580. text-overflow: ellipsis;
  26581. }
  26582. .media {
  26583. display: flex;
  26584. flex-direction: column;
  26585. align-items: center;
  26586. justify-content: center;
  26587. margin: 0 20px 20px 0;
  26588. cursor: pointer;
  26589. margin: 12px 0 5px 15px;
  26590. overflow: hidden;
  26591. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  26592. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  26593. box-sizing: border-box;
  26594. }
  26595. .media img {
  26596. height: 90px;
  26597. width: 160px;
  26598. object-fit: cover;
  26599. }
  26600. .media .title {
  26601. padding: 5px;
  26602. text-align: left;
  26603. width: 100%;
  26604. box-sizing: border-box;
  26605. }
  26606. .media .btn {
  26607. width: 100%;
  26608. height: 35px;
  26609. line-height: 35px;
  26610. color: #fff;
  26611. background: #606060;
  26612. text-align: center;
  26613. overflow: hidden;
  26614. white-space: nowrap;
  26615. text-overflow: ellipsis;
  26616. }
  26617. .detail_content_top {
  26618. width: 100%;
  26619. padding: 25px 0 25px 0;
  26620. }
  26621. .detail_title {
  26622. text-align: center;
  26623. font-size: 24px;
  26624. }
  26625. .detail_time {
  26626. font-size: 13px;
  26627. padding: 15px 0 0 40px;
  26628. }
  26629. .detail_content {
  26630. line-height: 2pc;
  26631. width: 90%;
  26632. margin: 0 auto;
  26633. padding-top: 30px;
  26634. text-indent: 30px;
  26635. overflow: auto;
  26636. height: 200px;
  26637. }
  26638. .score_box >>> .el-rate {
  26639. margin-left: 10px;
  26640. }
  26641. .dialog_change >>> .el-dialog {
  26642. border-radius: 5px;
  26643. }
  26644. .dialog_change >>> .el-dialog__header {
  26645. background: #f2f2f2;
  26646. text-align: center;
  26647. }
  26648. .dialog_change >>> .el-dialog__title {
  26649. line-height: 5px;
  26650. }
  26651. .dialog_change >>> .el-dialog__body {
  26652. background: #fff;
  26653. padding: 10px 20px;
  26654. }
  26655. .score_box {
  26656. display: flex;
  26657. align-items: center;
  26658. margin-bottom: 18px;
  26659. margin-top: 20px;
  26660. }
  26661. .up_photo {
  26662. width: 120px;
  26663. cursor: pointer;
  26664. margin-top: 10px;
  26665. }
  26666. .up_photo2 {
  26667. width: 180px;
  26668. box-sizing: border-box;
  26669. min-width: 180px;
  26670. height: 180px;
  26671. max-height: 180px;
  26672. min-height: 180px;
  26673. cursor: pointer;
  26674. display: flex;
  26675. flex-direction: column;
  26676. align-items: center;
  26677. justify-content: center;
  26678. background: rgb(242, 246, 255);
  26679. /* padding: 25px; */
  26680. margin-bottom: 10px;
  26681. }
  26682. .up_photo2 img {
  26683. width: 50%;
  26684. height: auto;
  26685. }
  26686. .up_photo2 span {
  26687. color: #898989;
  26688. }
  26689. .plworkBox {
  26690. display: flex;
  26691. align-items: center;
  26692. margin-top: 10px;
  26693. flex-wrap: wrap;
  26694. }
  26695. .upload_send {
  26696. margin: 30px auto 30px;
  26697. width: 60%;
  26698. background: #3681fc;
  26699. text-align: center;
  26700. height: 35px;
  26701. line-height: 35px;
  26702. color: #fff;
  26703. border-radius: 5px;
  26704. cursor: pointer;
  26705. }
  26706. .marginT {
  26707. margin-top: 20px;
  26708. }
  26709. .cd_content_steps {
  26710. display: flex;
  26711. width: 90%;
  26712. justify-content: space-around;
  26713. border-top: 1px solid #eeeeee;
  26714. }
  26715. .cd_steps_box {
  26716. display: flex;
  26717. justify-content: center;
  26718. align-items: center;
  26719. flex-direction: column;
  26720. cursor: pointer;
  26721. }
  26722. .first {
  26723. display: flex;
  26724. align-items: center;
  26725. margin: 15px 0 20px 0;
  26726. font-size: 20px;
  26727. }
  26728. .first > div:nth-child(2) {
  26729. font-size: 16px !important;
  26730. padding-left: 10px;
  26731. line-height: 26px;
  26732. box-sizing: border-box;
  26733. }
  26734. .blue_box_one {
  26735. text-align: center;
  26736. color: #fff;
  26737. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26738. border-radius: 7px;
  26739. margin: 10px;
  26740. cursor: pointer;
  26741. width: 95%;
  26742. height: 45px;
  26743. display: flex;
  26744. flex-direction: row;
  26745. justify-content: flex-start;
  26746. align-items: center;
  26747. }
  26748. .blue_box_one > div:nth-child(1) {
  26749. line-height: 30px;
  26750. margin: 0 5px 0 10px;
  26751. width: 30%;
  26752. min-width: 70px;
  26753. border-radius: 4px;
  26754. }
  26755. .blue_box_one > div:nth-child(2) {
  26756. white-space: nowrap;
  26757. text-overflow: ellipsis;
  26758. overflow: hidden;
  26759. word-break: break-all;
  26760. width: 70%;
  26761. text-align: left;
  26762. margin-right: 10px;
  26763. max-width: calc(100% - 85px);
  26764. }
  26765. .blue_box_one > div:nth-child(2):hover {
  26766. overflow: hidden;
  26767. text-overflow: ellipsis;
  26768. white-space: nowrap;
  26769. cursor: pointer;
  26770. }
  26771. .upFile {
  26772. margin: 0 auto;
  26773. width: 120px;
  26774. background: #3681fc;
  26775. color: #fff;
  26776. height: 30px;
  26777. text-align: center;
  26778. line-height: 30px;
  26779. border-radius: 5px;
  26780. font-size: 14px;
  26781. cursor: pointer;
  26782. }
  26783. .courseTitle {
  26784. width: 85%;
  26785. margin: 10px auto 26px auto;
  26786. display: flex;
  26787. flex-direction: row;
  26788. align-items: center;
  26789. justify-content: space-between;
  26790. text-align: center;
  26791. }
  26792. .courseTitle .ctitle {
  26793. font-size: 20px;
  26794. font-weight: bold;
  26795. color: #0e1e33;
  26796. white-space: nowrap;
  26797. overflow: hidden;
  26798. text-overflow: ellipsis;
  26799. }
  26800. .inviteBox {
  26801. font-size: 14px;
  26802. /* margin-top: 5px; */
  26803. color: #00000099;
  26804. text-align: center;
  26805. }
  26806. .courseTitle >>> .el-tooltip {
  26807. width: 100%;
  26808. white-space: nowrap;
  26809. overflow: hidden;
  26810. text-overflow: ellipsis;
  26811. word-break: break-word;
  26812. }
  26813. .ml {
  26814. margin-left: 20px;
  26815. color: #5b7dba;
  26816. border-left: 3px solid #5b7dba;
  26817. padding-left: 5px;
  26818. font-weight: bold;
  26819. }
  26820. .return {
  26821. width: 2rem;
  26822. height: 2rem;
  26823. cursor: pointer;
  26824. }
  26825. .return > img {
  26826. width: 100%;
  26827. height: 100%;
  26828. }
  26829. .returnBtn {
  26830. width: 86px;
  26831. height: 36px;
  26832. background: #3681fc;
  26833. border-radius: 4px;
  26834. color: #fff;
  26835. text-align: center;
  26836. line-height: 36px;
  26837. margin-right: 20px;
  26838. cursor: pointer;
  26839. font-size: 14px;
  26840. font-weight: 400;
  26841. display: flex;
  26842. flex-direction: row;
  26843. flex-wrap: nowrap;
  26844. align-items: center;
  26845. justify-content: center;
  26846. }
  26847. .reBtnIcon,
  26848. .commentIcon,
  26849. .vedioIcon,
  26850. .vedioIcon1 {
  26851. /* width: 36px; */
  26852. height: 36px;
  26853. border-radius: 4px;
  26854. position: relative;
  26855. /* background: #e0eafb; */
  26856. background: #0061ff;
  26857. cursor: pointer;
  26858. margin-right: 12px;
  26859. display: flex;
  26860. align-items: center;
  26861. padding: 0 10px;
  26862. box-sizing: border-box;
  26863. font-size: 14px;
  26864. color: #fff;
  26865. }
  26866. .reBtnIcon::before,
  26867. .commentIcon::before,
  26868. .vedioIcon::before,
  26869. .vedioIcon1::before {
  26870. content: "";
  26871. display: block;
  26872. background-size: 100% 100%;
  26873. background-repeat: no-repeat;
  26874. width: 20px;
  26875. height: 20px;
  26876. margin-right: 5px;
  26877. /* position: absolute; */
  26878. /* top: 8px;
  26879. left: 8px; */
  26880. }
  26881. .vedioIcon1 {
  26882. background: #f63564;
  26883. }
  26884. .reBtnIcon::before {
  26885. background-image: url("../../assets/icon/newIcons/refresh.png");
  26886. }
  26887. .commentIcon::before {
  26888. background-image: url("../../assets/icon/newIcons/comment.png");
  26889. }
  26890. .vedioIcon::before {
  26891. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26892. }
  26893. .vedioIcon1::before {
  26894. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26895. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26896. }
  26897. .tool {
  26898. display: flex;
  26899. flex-direction: column;
  26900. flex-wrap: nowrap;
  26901. width: 13%;
  26902. margin: 0 30px;
  26903. align-items: center;
  26904. position: relative;
  26905. padding: 10px 25px;
  26906. cursor: pointer;
  26907. }
  26908. .whiteBIcon {
  26909. width: 150px;
  26910. }
  26911. .whiteBIcon > img {
  26912. width: 100%;
  26913. height: 100%;
  26914. }
  26915. .mask {
  26916. background-color: rgba(0, 0, 0, 0);
  26917. position: fixed;
  26918. top: 0;
  26919. left: 0;
  26920. width: 100%;
  26921. height: 100%;
  26922. z-index: 20000;
  26923. display: flex;
  26924. align-items: center;
  26925. justify-content: center;
  26926. }
  26927. .progressBox {
  26928. width: 500px;
  26929. height: 180px;
  26930. background: #fff;
  26931. border-radius: 10px;
  26932. box-shadow: 0 0 6px 1px #bfbfbf;
  26933. display: flex;
  26934. align-items: center;
  26935. justify-content: center;
  26936. flex-direction: column;
  26937. position: relative;
  26938. color: #6c6c6c;
  26939. }
  26940. .progressBox >>> .el-progress-bar__outer {
  26941. background-color: #d1dfff !important;
  26942. }
  26943. .progressBox .lbox {
  26944. height: 50px;
  26945. font-size: 19px;
  26946. display: flex;
  26947. align-items: center;
  26948. color: #747474;
  26949. }
  26950. .progressBox .lbox img {
  26951. width: 40px;
  26952. margin-right: 20px;
  26953. }
  26954. .closeCss {
  26955. position: absolute;
  26956. top: 8px;
  26957. right: 8px;
  26958. cursor: pointer;
  26959. width: 20px;
  26960. height: 20px;
  26961. }
  26962. .closeCss > img {
  26963. width: 100%;
  26964. height: 100%;
  26965. }
  26966. .uploadVedio {
  26967. display: flex;
  26968. flex-direction: column;
  26969. flex-wrap: nowrap;
  26970. justify-content: center;
  26971. align-items: center;
  26972. margin: 0 15px 10px 0;
  26973. }
  26974. .uploadVedio > img {
  26975. width: 30px;
  26976. height: 30px;
  26977. }
  26978. .uploadVedio > span {
  26979. white-space: nowrap;
  26980. overflow: hidden;
  26981. text-overflow: ellipsis;
  26982. width: 75px;
  26983. margin-top: 7px;
  26984. }
  26985. .picName {
  26986. white-space: nowrap;
  26987. overflow: hidden;
  26988. text-overflow: ellipsis;
  26989. width: 75px;
  26990. margin-top: 7px;
  26991. }
  26992. .new_top {
  26993. display: flex;
  26994. background: #fff;
  26995. flex-direction: row;
  26996. justify-content: flex-start;
  26997. align-items: center;
  26998. height: 60px;
  26999. position: fixed;
  27000. top: 20px;
  27001. left: 22%;
  27002. width: 77%;
  27003. z-index: 999;
  27004. border-radius: 12px 12px 0 0;
  27005. border-bottom: 1px solid #cad1dc;
  27006. padding: 10px 0;
  27007. }
  27008. .new_topFixed {
  27009. width: 100%;
  27010. height: 40px;
  27011. position: fixed;
  27012. top: 0px;
  27013. display: block;
  27014. background: #f2f2f2;
  27015. z-index: 998;
  27016. }
  27017. .before {
  27018. position: absolute;
  27019. background: #c3dad4;
  27020. width: 6px;
  27021. height: 100%;
  27022. }
  27023. .courseIndex {
  27024. display: flex;
  27025. flex-direction: row;
  27026. align-items: center;
  27027. width: calc(100% - 745px);
  27028. }
  27029. .courseIndex > div:nth-child(1) {
  27030. margin: 0 0 0 10px;
  27031. font-size: 20px;
  27032. min-width: 100px;
  27033. font-weight: bold;
  27034. border-left: 4px solid #3363b9;
  27035. height: 32px;
  27036. text-align: center;
  27037. line-height: 35px;
  27038. }
  27039. .courseIndex > div:nth-child(2) {
  27040. font-size: 20px;
  27041. /* width: 300px; */
  27042. max-width: calc(100% - 105px);
  27043. white-space: nowrap;
  27044. overflow: hidden;
  27045. text-overflow: ellipsis;
  27046. }
  27047. .courseIndex > div:nth-child(3) {
  27048. border-bottom: 1px solid #d7d7d7;
  27049. padding-bottom: 5px;
  27050. background: #3681fc;
  27051. width: 55px;
  27052. min-width: 55px;
  27053. border-radius: 5px;
  27054. color: #fff;
  27055. text-align: center;
  27056. height: 20px;
  27057. line-height: 26px;
  27058. font-size: 14px;
  27059. margin: 0 0 0 10px;
  27060. }
  27061. .course_text {
  27062. padding: 20px 0 0 15px;
  27063. text-indent: 30px;
  27064. width: 80%;
  27065. min-height: 20px;
  27066. }
  27067. .vedioList {
  27068. background: #f2f2f2;
  27069. border: 1px solid #ececec;
  27070. /* width: 38.8%; */
  27071. /* width: 300px; */
  27072. width: 100%;
  27073. height: 445px;
  27074. border-radius: 10px;
  27075. overflow: hidden;
  27076. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  27077. }
  27078. .vedioNav {
  27079. margin: 10px 0 0 15px;
  27080. border-bottom: 1px solid #d7d7d7;
  27081. padding-bottom: 5px;
  27082. background: #3681fc;
  27083. width: 55px;
  27084. min-width: 55px;
  27085. border-radius: 5px;
  27086. color: #fff;
  27087. text-align: center;
  27088. height: 20px;
  27089. line-height: 26px;
  27090. font-size: 14px;
  27091. }
  27092. .queTop {
  27093. display: flex;
  27094. padding: 20px 0 20px 30px;
  27095. width: 100%;
  27096. flex-direction: row;
  27097. justify-content: flex-start;
  27098. align-items: center;
  27099. box-sizing: border-box;
  27100. }
  27101. .queTopTitle {
  27102. display: flex;
  27103. flex-direction: row;
  27104. flex-wrap: nowrap;
  27105. align-items: center;
  27106. font-weight: bold;
  27107. font-size: 20px;
  27108. color: rgb(14, 30, 51);
  27109. }
  27110. .queTopTitle::before {
  27111. content: "";
  27112. width: 2px;
  27113. height: 22px;
  27114. background: #3681fc;
  27115. border-radius: 3px;
  27116. display: block;
  27117. margin: 2px 6px 0 0;
  27118. }
  27119. .queTopRight {
  27120. display: flex;
  27121. flex-direction: row;
  27122. flex-wrap: nowrap;
  27123. align-items: center;
  27124. }
  27125. .queTopClose {
  27126. margin-right: 20px;
  27127. cursor: pointer;
  27128. position: relative;
  27129. display: flex;
  27130. }
  27131. .closeImg,
  27132. .openImg {
  27133. width: 25px;
  27134. height: 25px;
  27135. position: absolute;
  27136. left: -20px;
  27137. top: -1px;
  27138. }
  27139. .closeImg > img,
  27140. .openImg > img {
  27141. width: 100%;
  27142. height: 100%;
  27143. }
  27144. .question {
  27145. width: 40px;
  27146. margin-right: 10px;
  27147. margin-top: 7px;
  27148. }
  27149. .queTitle {
  27150. margin-left: 5px;
  27151. font-size: 25px;
  27152. display: flex;
  27153. align-items: center;
  27154. }
  27155. .addEditor {
  27156. width: 100px;
  27157. height: 30px;
  27158. background: #42cda6;
  27159. color: #fff;
  27160. border-radius: 5px;
  27161. text-align: center;
  27162. line-height: 30px;
  27163. box-shadow: 1px 3px 6px 1px #bfbfbf;
  27164. cursor: pointer;
  27165. }
  27166. /* .vedioName {
  27167. cursor: pointer;
  27168. margin: 0px 0px 10px 5px;
  27169. white-space: nowrap;
  27170. overflow: hidden;
  27171. text-overflow: ellipsis;
  27172. width: 100%;
  27173. } */
  27174. .vedioTime {
  27175. width: 35px;
  27176. position: absolute;
  27177. color: #fff;
  27178. bottom: 0px;
  27179. right: 0px;
  27180. text-align: center;
  27181. background: #46411f;
  27182. height: 20px;
  27183. font-size: 14px;
  27184. line-height: 20px;
  27185. }
  27186. .homework {
  27187. width: 200px;
  27188. display: flex;
  27189. flex-direction: column;
  27190. flex-wrap: nowrap;
  27191. align-items: center;
  27192. cursor: pointer;
  27193. }
  27194. .homebox {
  27195. display: flex;
  27196. flex-wrap: wrap;
  27197. flex-direction: row;
  27198. justify-content: flex-start;
  27199. align-items: center;
  27200. padding: 15px 0;
  27201. }
  27202. .isChooseActive {
  27203. color: #3681fc !important;
  27204. font-weight: bold !important;
  27205. }
  27206. .chooseWho {
  27207. display: flex;
  27208. width: 100%;
  27209. flex-direction: row;
  27210. flex-wrap: nowrap;
  27211. justify-content: flex-start;
  27212. padding-bottom: 10px;
  27213. }
  27214. .chooseWho > div {
  27215. cursor: pointer;
  27216. padding-bottom: 10px;
  27217. margin: 0 30px 0 0;
  27218. font-weight: 400;
  27219. color: #0e1e33;
  27220. }
  27221. .addPoint > div > img {
  27222. cursor: pointer;
  27223. width: 85px;
  27224. border-radius: 15px;
  27225. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  27226. }
  27227. .addPoint > div {
  27228. display: flex;
  27229. flex-direction: column;
  27230. flex-wrap: nowrap;
  27231. align-items: center;
  27232. }
  27233. .isBorder > div {
  27234. margin: 0 0 10px 0;
  27235. align-items: flex-start !important;
  27236. }
  27237. .noiframeBox {
  27238. display: flex;
  27239. flex-wrap: wrap;
  27240. }
  27241. .iframeBox iframe {
  27242. width: 100%;
  27243. height: 800px;
  27244. border: none;
  27245. margin-bottom: 20px;
  27246. border: 1px solid #ccc;
  27247. }
  27248. .upload_toolBtn {
  27249. background: #3681fc;
  27250. color: #fff;
  27251. width: 110px;
  27252. text-align: center;
  27253. height: 35px;
  27254. line-height: 35px;
  27255. font-size: 14px;
  27256. border-radius: 5px;
  27257. cursor: pointer;
  27258. position: absolute;
  27259. right: 10px;
  27260. bottom: 0;
  27261. }
  27262. .binfo_input,
  27263. .pj {
  27264. font: inherit;
  27265. color: currentColor;
  27266. width: 100%;
  27267. margin: 0;
  27268. padding: 15px 14px;
  27269. display: block;
  27270. min-width: 0;
  27271. outline: none;
  27272. box-sizing: content-box;
  27273. background: none;
  27274. -webkit-tap-highlight-color: transparent;
  27275. border: 1px solid rgba(0, 0, 0, 0.23);
  27276. border-radius: 4px;
  27277. box-sizing: border-box;
  27278. resize: none;
  27279. }
  27280. .binfo_input:focus-visible {
  27281. border: 1px solid rgba(61, 103, 188);
  27282. }
  27283. .dialog_diyCopy >>> .el-dialog__header {
  27284. display: none !important;
  27285. }
  27286. .dialog_diyCopy >>> .el-dialog__body {
  27287. padding: 0 !important;
  27288. height: 100% !important;
  27289. }
  27290. .confirmOpenDigCss > div{
  27291. font-size: 14px;
  27292. color: rgba(0, 0, 0, 0.6);
  27293. }
  27294. .confirmOpenDigCss >>> .el-dialog{
  27295. border-radius: 6px;
  27296. }
  27297. .confirmOpenDigCss >>> .el-dialog__body{
  27298. padding: 25px !important;
  27299. }
  27300. .confirmOpenDigCss > span{
  27301. font-size: 16px;
  27302. font-weight: 600;
  27303. color: rgba(0, 0, 0, 0.8);
  27304. }
  27305. .dialog_diy >>> .el-dialog__header,
  27306. .dialog_diy1 >>> .el-dialog__header {
  27307. background: #454545 !important;
  27308. padding: 15px 20px;
  27309. }
  27310. .dialog_diy >>> .el-dialog__title,
  27311. .dialog_diy1 >>> .el-dialog__title {
  27312. color: #fff;
  27313. }
  27314. .dialog_diy >>> .el-dialog__headerbtn,
  27315. .dialog_diy1 >>> .el-dialog__headerbtn {
  27316. top: 19px;
  27317. }
  27318. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  27319. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  27320. color: #fff;
  27321. }
  27322. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  27323. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  27324. color: #fff;
  27325. }
  27326. .dialog_diy1 >>> .el-dialog__body {
  27327. padding: 0;
  27328. }
  27329. .dialog_diy >>> .el-dialog__body,
  27330. .dialog_diy >>> .el-dialog__footer,
  27331. .dialog_diy1 >>> .el-dialog__footer {
  27332. background: #fafafa;
  27333. }
  27334. .markScore_diy >>> .el-dialog {
  27335. border-radius: 10px;
  27336. }
  27337. .markScore_diy >>> .el-dialog__body {
  27338. padding: 0;
  27339. height: 621px;
  27340. min-height: calc(100% - 60px);
  27341. }
  27342. .markScore_diy >>> .el-dialog__header {
  27343. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  27344. }
  27345. .markScore_diy >>> .markScore_diyTit {
  27346. width: calc(100% - 60px);
  27347. display: flex;
  27348. justify-content: space-between;
  27349. align-items: center;
  27350. }
  27351. .a_addBox {
  27352. padding: 0 0 0 15px;
  27353. }
  27354. .a_add_box {
  27355. padding: 10px;
  27356. background: #fff;
  27357. margin-bottom: 10px;
  27358. border-radius: 5px;
  27359. box-shadow: 0 0 5px 0 #d5d5d5;
  27360. }
  27361. .a_add_head {
  27362. display: flex;
  27363. align-items: flex-start;
  27364. /* justify-content: space-between; */
  27365. flex-direction: column;
  27366. /* flex-direction: row; */
  27367. margin: 10px 0 20px 0;
  27368. font-size: 18px;
  27369. width: 100%;
  27370. }
  27371. .askIndex {
  27372. background: #3681fc;
  27373. border-radius: 50%;
  27374. color: #fff;
  27375. width: 25px;
  27376. height: 25px;
  27377. min-width: 25px;
  27378. min-height: 25px;
  27379. text-align: center;
  27380. line-height: 25px;
  27381. margin-right: 5px;
  27382. }
  27383. .a_add_head .a_add_head_input {
  27384. width: 300px;
  27385. }
  27386. .a_add_head .a_add_head_div {
  27387. display: flex;
  27388. align-items: center;
  27389. justify-content: space-between;
  27390. }
  27391. .a_add_body {
  27392. display: flex;
  27393. align-items: center;
  27394. }
  27395. .a_add_input {
  27396. display: flex;
  27397. align-items: center;
  27398. flex-wrap: wrap;
  27399. width: 100%;
  27400. }
  27401. .a_add_input >>> .el-radio-group,
  27402. .a_add_input >>> .el-checkbox-group {
  27403. width: 100%;
  27404. }
  27405. .a_add_input >>> .el-radio,
  27406. .a_add_input >>> .el-checkbox {
  27407. display: flex;
  27408. flex-direction: row;
  27409. flex-wrap: nowrap;
  27410. align-items: center;
  27411. padding: 15px 0;
  27412. }
  27413. .a_add_input >>> .el-radio:not(:last-child),
  27414. .a_add_input >>> .el-checkbox:not(:last-child) {
  27415. width: 100%;
  27416. border-bottom: 1px solid #efefef;
  27417. }
  27418. .redioStyle >>> .el-radio__label {
  27419. font-size: 18px;
  27420. }
  27421. .redioStyle >>> .el-radio__label > span,
  27422. .redioStyle >>> .el-checkbox__label > span {
  27423. word-break: break-all;
  27424. white-space: normal;
  27425. }
  27426. .redioStyle >>> .el-checkbox__label {
  27427. font-size: 18px;
  27428. }
  27429. .toolHeng2 {
  27430. width: 100%;
  27431. padding-left: 15px;
  27432. box-sizing: border-box;
  27433. }
  27434. .workNav {
  27435. font-size: 20px;
  27436. font-weight: bold;
  27437. color: #0e1e33;
  27438. display: flex;
  27439. flex-direction: row;
  27440. flex-wrap: nowrap;
  27441. align-items: center;
  27442. padding: 15px 0 15px 0;
  27443. }
  27444. .workNav::before {
  27445. content: "";
  27446. width: 2px;
  27447. height: 22px;
  27448. background: #3681fc;
  27449. border-radius: 3px;
  27450. display: block;
  27451. margin: 2px 6px 0 0;
  27452. }
  27453. .toolHeng {
  27454. display: flex;
  27455. flex-direction: row;
  27456. flex-wrap: wrap;
  27457. justify-content: flex-start;
  27458. align-items: center;
  27459. width: 100%;
  27460. }
  27461. .toolHeng > div {
  27462. padding-left: 20px;
  27463. }
  27464. .isWidth {
  27465. width: 20%;
  27466. }
  27467. .textTitle {
  27468. display: flex;
  27469. flex-direction: row;
  27470. flex-wrap: nowrap;
  27471. align-items: center;
  27472. width: 95%;
  27473. }
  27474. .textTitle >>> .el-form-item__label {
  27475. font-size: 22px;
  27476. color: #918f8f;
  27477. width: 100px;
  27478. }
  27479. .textTitle >>> .el-form-item__content {
  27480. width: calc(100% - 100px);
  27481. }
  27482. .textCss >>> .el-dialog {
  27483. width: 800px !important;
  27484. height: 400px;
  27485. background: #fafafa;
  27486. }
  27487. .textCss >>> .el-dialog__body {
  27488. margin: 55px 8% 0 8%;
  27489. padding: 0 !important;
  27490. }
  27491. .textCss >>> .el-dialog__footer {
  27492. padding-top: 38px;
  27493. }
  27494. .toolsCss >>> .el-dialog__body {
  27495. padding: 20px;
  27496. }
  27497. .lineCss >>> .el-dialog__body {
  27498. display: flex;
  27499. flex-direction: row;
  27500. align-items: center;
  27501. justify-content: center;
  27502. }
  27503. .newNav {
  27504. display: flex;
  27505. flex-direction: row;
  27506. align-items: baseline;
  27507. justify-content: flex-start;
  27508. }
  27509. .navListItem {
  27510. width: calc(100% - 20px);
  27511. height: 50px;
  27512. margin: 0px auto 10px;
  27513. display: flex;
  27514. flex-direction: row;
  27515. flex-wrap: nowrap;
  27516. align-items: center;
  27517. justify-content: space-between;
  27518. background: #f0f4fa;
  27519. border-radius: 6px 6px 6px 6px;
  27520. }
  27521. .navText {
  27522. cursor: pointer;
  27523. white-space: nowrap;
  27524. overflow: hidden;
  27525. text-overflow: ellipsis;
  27526. width: 220px;
  27527. padding: 0 10px;
  27528. font-weight: 400;
  27529. color: #0e1e33;
  27530. }
  27531. .downIcon {
  27532. width: 20px;
  27533. min-width: 20px;
  27534. height: 20px;
  27535. margin-right: 15px;
  27536. cursor: pointer;
  27537. }
  27538. .downIcon > img {
  27539. width: 100%;
  27540. height: 100%;
  27541. }
  27542. .noVedio {
  27543. display: flex;
  27544. flex-direction: row;
  27545. justify-content: center;
  27546. align-content: center;
  27547. }
  27548. .noNavText {
  27549. cursor: pointer;
  27550. margin: 0px 0px 10px 5px;
  27551. width: 112px;
  27552. }
  27553. .listNoVedio {
  27554. margin: 0 0 0 30px;
  27555. width: 97%;
  27556. }
  27557. .video-player >>> .video-js {
  27558. height: 100%;
  27559. }
  27560. .hangVedioList {
  27561. width: 90% !important;
  27562. height: 150px !important;
  27563. margin: 20px 0 0 30px;
  27564. }
  27565. .hangVedio {
  27566. width: 100%;
  27567. height: 170px !important;
  27568. align-items: flex-start !important;
  27569. }
  27570. .hangHand {
  27571. height: 150px !important;
  27572. }
  27573. .twoChild {
  27574. width: 95%;
  27575. margin: 10px;
  27576. border-radius: 5px;
  27577. background: #f2f2f2;
  27578. display: flex;
  27579. flex-direction: column;
  27580. flex-wrap: nowrap;
  27581. justify-content: flex-start;
  27582. align-items: flex-start;
  27583. transition: all 0.5s;
  27584. overflow: hidden;
  27585. height: 0;
  27586. background: #e7f3ff;
  27587. }
  27588. .twoChild > div:nth-child(1) {
  27589. margin-top: 5px;
  27590. }
  27591. .navChild {
  27592. width: 100%;
  27593. cursor: pointer;
  27594. margin-bottom: 10px;
  27595. position: relative;
  27596. }
  27597. .navChild img {
  27598. position: absolute;
  27599. right: 11px;
  27600. width: 15px;
  27601. top: 50%;
  27602. transform: translateY(-50%);
  27603. }
  27604. .navActive,
  27605. .toolActive {
  27606. height: auto !important;
  27607. overflow: auto !important;
  27608. /* // padding-bottom: 16px; */
  27609. }
  27610. .toolActive {
  27611. padding: 0;
  27612. }
  27613. .navTask {
  27614. display: flex;
  27615. flex-direction: row;
  27616. flex-wrap: nowrap;
  27617. align-items: center;
  27618. align-content: flex-start;
  27619. height: 40px;
  27620. justify-content: flex-start;
  27621. padding: 0 10px;
  27622. width: 100%;
  27623. box-sizing: border-box;
  27624. }
  27625. .navTaskname {
  27626. white-space: nowrap;
  27627. text-overflow: ellipsis;
  27628. overflow: hidden;
  27629. word-break: break-all;
  27630. padding-left: 5px;
  27631. }
  27632. .openTaskActive {
  27633. /* background-color: #e0eafb !important;
  27634. color: #0061ff; */
  27635. color: #fff;
  27636. background: rgb(55, 129, 252) !important;
  27637. }
  27638. .iframeName {
  27639. margin: 5px 0;
  27640. border-left: 4px solid #41c4a4;
  27641. padding-left: 4px;
  27642. }
  27643. .toolTitle {
  27644. margin: 0px 0px 20px;
  27645. font-size: 20px;
  27646. font-weight: 500;
  27647. border-left: 4px solid #41c4a4;
  27648. padding-left: 4px;
  27649. }
  27650. .cru_selectBox {
  27651. overflow: auto;
  27652. width: 95%;
  27653. margin: 17px auto 0;
  27654. height: calc(100% - 40px - 21px - 20px - 17px);
  27655. background: #fff;
  27656. border-radius: 8px;
  27657. }
  27658. .cru_selectBox::-webkit-scrollbar,
  27659. .study_top::-webkit-scrollbar,
  27660. .textContent::-webkit-scrollbar {
  27661. /*滚动条整体样式*/
  27662. width: 6px;
  27663. /*高宽分别对应横竖滚动条的尺寸*/
  27664. height: 6px;
  27665. }
  27666. /*定义滚动条轨道 内阴影+圆角*/
  27667. .cru_selectBox::-webkit-scrollbar-track,
  27668. .study_top::-webkit-scrollbar-track,
  27669. .textContent::-webkit-scrollbar {
  27670. border-radius: 10px;
  27671. background-color: #b8bdc9;
  27672. }
  27673. /*定义滑块 内阴影+圆角*/
  27674. .cru_selectBox::-webkit-scrollbar-thumb,
  27675. .study_top::-webkit-scrollbar-thumb,
  27676. .textContent::-webkit-scrollbar-thumb {
  27677. border-radius: 10px;
  27678. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  27679. background-color: #2c5ab3;
  27680. }
  27681. .vedioBox {
  27682. border-radius: 0 0 20px 20px;
  27683. background: #fff;
  27684. overflow: auto;
  27685. }
  27686. .taskBox {
  27687. width: 98%;
  27688. background: #f0f4fa;
  27689. margin: 10px auto;
  27690. padding: 0 10px;
  27691. border-radius: 4px;
  27692. box-sizing: border-box;
  27693. }
  27694. .vedioTaskBox {
  27695. width: 100%;
  27696. display: flex;
  27697. flex-direction: row;
  27698. flex-wrap: nowrap;
  27699. align-items: flex-start;
  27700. position: relative;
  27701. }
  27702. .toolBox {
  27703. margin: 15px 0 0 25px;
  27704. display: flex;
  27705. position: relative;
  27706. padding: 18px 20px;
  27707. border-top-left-radius: 5px;
  27708. border-top-right-radius: 5px;
  27709. width: 90%;
  27710. }
  27711. .btnAll {
  27712. position: absolute;
  27713. right: 0;
  27714. display: flex;
  27715. flex-direction: row;
  27716. flex-wrap: nowrap;
  27717. align-items: center;
  27718. }
  27719. .btnLeft,
  27720. .btnRight {
  27721. display: flex;
  27722. flex-direction: row;
  27723. flex-wrap: nowrap;
  27724. align-items: center;
  27725. padding: 5px 0;
  27726. }
  27727. .btnLeft {
  27728. border-right: 1px solid #cad1dc;
  27729. }
  27730. .btnLeft > .custom-tooltip {
  27731. background: #3681fc;
  27732. color: #fff;
  27733. }
  27734. .last:hover {
  27735. background: #3383fa !important;
  27736. color: #fff;
  27737. border: 1px solid #3383fa !important;
  27738. }
  27739. .last,
  27740. .returnBtn1 {
  27741. width: 90px;
  27742. height: 36px;
  27743. background: #ffffff;
  27744. border-radius: 4px;
  27745. border: 1px solid #0061ff;
  27746. color: #0061ff;
  27747. cursor: pointer;
  27748. display: flex;
  27749. flex-direction: row;
  27750. flex-wrap: nowrap;
  27751. align-items: center;
  27752. justify-content: center;
  27753. margin-left: 12px;
  27754. }
  27755. .returnBtn1 {
  27756. background: #f0f4fa;
  27757. border-radius: 4px;
  27758. border: 1px solid #cad1dc;
  27759. margin: 0 12px;
  27760. }
  27761. .lastImg {
  27762. min-width: 15px;
  27763. width: 15px;
  27764. height: 15px;
  27765. display: flex;
  27766. }
  27767. .lastText {
  27768. padding: 0 5px 0 5px;
  27769. box-sizing: border-box;
  27770. font-size: 14px;
  27771. }
  27772. .lastImg > img {
  27773. width: 100%;
  27774. height: 100%;
  27775. }
  27776. /* .vedioTimeBox {
  27777. display: flex;
  27778. flex-direction: row;
  27779. align-items: center;
  27780. flex-wrap: nowrap;
  27781. position: relative;
  27782. } */
  27783. .navBox {
  27784. background: #fff;
  27785. height: calc(100% - 40px);
  27786. overflow-y: auto;
  27787. overflow-x: hidden;
  27788. }
  27789. .worksBox {
  27790. margin: 0 0 10px 25px;
  27791. border-bottom: 1px solid #eeeeee;
  27792. padding: 18px 20px;
  27793. border-radius: 4px;
  27794. width: 90%;
  27795. }
  27796. .worksBTitle {
  27797. font-size: 20px;
  27798. padding-bottom: 15px;
  27799. border-bottom: 1px solid #eeeeee;
  27800. display: flex;
  27801. align-items: center;
  27802. }
  27803. .greenBox {
  27804. width: 5px;
  27805. height: 30px;
  27806. background: #63b6fa;
  27807. margin-right: 5px;
  27808. }
  27809. .worksDetailBox {
  27810. display: flex;
  27811. width: 100%;
  27812. flex-direction: row;
  27813. flex-wrap: wrap;
  27814. align-items: flex-end;
  27815. justify-content: flex-start;
  27816. padding: 15px 5px;
  27817. box-sizing: border-box;
  27818. }
  27819. .works {
  27820. display: flex;
  27821. flex-direction: column;
  27822. flex-wrap: nowrap;
  27823. align-items: flex-start;
  27824. justify-content: flex-start;
  27825. align-content: center;
  27826. max-width: 240px;
  27827. width: calc(100% / 3 - 10px);
  27828. height: auto;
  27829. margin-right: 10px;
  27830. margin-bottom: 10px;
  27831. overflow: hidden;
  27832. height: 140px;
  27833. box-shadow: 0 0 6px 1px #dfdada;
  27834. border-radius: 15px;
  27835. }
  27836. .workImg {
  27837. width: 100%;
  27838. /* height: calc(100% - 40px); */
  27839. height: 105px;
  27840. position: relative;
  27841. }
  27842. .workImg > img {
  27843. width: 100%;
  27844. height: 100%;
  27845. object-fit: contain;
  27846. cursor: pointer;
  27847. }
  27848. .worksName {
  27849. height: 40px;
  27850. line-height: 40px;
  27851. display: flex;
  27852. width: 100%;
  27853. flex-direction: row;
  27854. flex-wrap: nowrap;
  27855. justify-content: space-between;
  27856. align-items: center;
  27857. margin: 0 0 0 10px;
  27858. }
  27859. .worksName > div:nth-child(1) {
  27860. width: 110px;
  27861. white-space: nowrap;
  27862. overflow: hidden;
  27863. text-overflow: ellipsis;
  27864. }
  27865. .worksName > div:nth-child(2) {
  27866. color: #b7b4b5;
  27867. }
  27868. .noWorksS {
  27869. padding: 15px 0;
  27870. display: flex;
  27871. flex-direction: row;
  27872. flex-wrap: wrap;
  27873. align-items: center;
  27874. justify-content: flex-start;
  27875. }
  27876. .noWorksName,
  27877. .isWorksName,
  27878. .isWorksName2 {
  27879. background: #ddebf8;
  27880. color: #000;
  27881. width: 90px;
  27882. height: 25px;
  27883. text-align: center;
  27884. line-height: 25px;
  27885. border-radius: 4px;
  27886. margin: 10px 15px 10px 0;
  27887. white-space: nowrap;
  27888. overflow: hidden;
  27889. padding: 5px;
  27890. text-overflow: ellipsis;
  27891. cursor: pointer;
  27892. border: 1px solid #ddebf8;
  27893. }
  27894. .noWorksName {
  27895. background: #fff;
  27896. color: #0061ff;
  27897. border: 1px solid #0061ff;
  27898. }
  27899. .noWorksName > span {
  27900. max-width: 100%;
  27901. display: block;
  27902. overflow: hidden;
  27903. text-overflow: ellipsis;
  27904. white-space: nowrap;
  27905. }
  27906. .noWorksName2 {
  27907. background: #fff;
  27908. color: #0061ff;
  27909. width: 90px;
  27910. height: 25px;
  27911. text-align: center;
  27912. line-height: 25px;
  27913. border-radius: 4px;
  27914. margin: 10px 15px 10px 0;
  27915. white-space: nowrap;
  27916. overflow: hidden;
  27917. padding: 5px;
  27918. text-overflow: ellipsis;
  27919. cursor: pointer;
  27920. border: 1px solid #0061ff;
  27921. }
  27922. .noWorksName2 > span {
  27923. max-width: 100%;
  27924. display: block;
  27925. overflow: hidden;
  27926. text-overflow: ellipsis;
  27927. white-space: nowrap;
  27928. }
  27929. .isWorksName2 {
  27930. width: 100px;
  27931. height: 40px;
  27932. line-height: 40px;
  27933. position: relative;
  27934. background: #dae6f9;
  27935. }
  27936. .isWorksName {
  27937. background: #e7ebf1 !important;
  27938. width: 100px;
  27939. height: 40px;
  27940. line-height: 40px;
  27941. position: relative;
  27942. color: #acb4bf;
  27943. border: 1px solid #cad1dc !important;
  27944. }
  27945. .isSelectName,
  27946. .noWorksName:hover {
  27947. background: #3383fa !important;
  27948. color: #fff !important;
  27949. border: 1px solid #3383fa !important;
  27950. }
  27951. .title {
  27952. background: #1e5cc9;
  27953. /* width: 98%; */
  27954. height: 45px;
  27955. color: #fff;
  27956. line-height: 45px;
  27957. padding-left: 20px;
  27958. box-sizing: border-box;
  27959. }
  27960. .textBox {
  27961. font-size: 20px;
  27962. width: 90%;
  27963. display: flex;
  27964. flex-direction: column;
  27965. align-items: center;
  27966. margin: 20px auto 0;
  27967. max-height: calc(100% - 75px);
  27968. overflow: auto;
  27969. }
  27970. .textContent {
  27971. font-size: 18px;
  27972. width: 95%;
  27973. max-width: 95%;
  27974. }
  27975. .answerBg {
  27976. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27977. background-size: 100% 100%;
  27978. width: 100%;
  27979. height: 100%;
  27980. color: #fff;
  27981. text-align: center;
  27982. display: flex;
  27983. flex-direction: column;
  27984. flex-wrap: nowrap;
  27985. align-items: center;
  27986. position: relative;
  27987. justify-content: center;
  27988. }
  27989. /* .answerBg > div:nth-child(1) { */
  27990. /* font-size: 22px;
  27991. padding: 25px 0 10px; */
  27992. /* } */
  27993. .answerContent {
  27994. width: 215px;
  27995. max-height: 60px;
  27996. word-break: break-all;
  27997. text-align: center;
  27998. /* white-space: nowrap; */
  27999. overflow: hidden;
  28000. text-overflow: ellipsis;
  28001. /* padding: 23px 0 0; */
  28002. -webkit-line-clamp: 3;
  28003. -webkit-box-orient: vertical;
  28004. display: -webkit-box;
  28005. font-size: 15px;
  28006. cursor: pointer;
  28007. }
  28008. .elist_input_box {
  28009. display: flex;
  28010. align-items: flex-start;
  28011. flex-wrap: nowrap;
  28012. padding: 10px 0 15px 30px;
  28013. flex-direction: column;
  28014. }
  28015. .elist_input {
  28016. /* width: 40%; */
  28017. width: 45%;
  28018. padding: 20px;
  28019. /* margin: 20px; */
  28020. box-sizing: border-box;
  28021. }
  28022. .elist_input .elist_input_box input {
  28023. font: inherit;
  28024. color: currentColor;
  28025. width: 200px;
  28026. padding: 8px 14px;
  28027. display: block;
  28028. min-width: 0;
  28029. outline: none;
  28030. border: 1px solid rgba(0, 0, 0, 0.23);
  28031. border-radius: 4px;
  28032. box-sizing: border-box;
  28033. background: #fff;
  28034. margin: 0 20px 0 0;
  28035. }
  28036. .elist_input .elist_input_box span {
  28037. height: 36px;
  28038. line-height: 36px;
  28039. color: rgb(82, 82, 82);
  28040. }
  28041. .elist_input .elist_input_box .remove {
  28042. height: 20px;
  28043. width: 20px;
  28044. background-size: 100% 100%;
  28045. background-position: unset;
  28046. margin-left: 5px;
  28047. }
  28048. .elist_input_box >>> .el-rate {
  28049. display: flex;
  28050. height: 36px;
  28051. align-items: center;
  28052. }
  28053. .elist_input_box .elist_inptu_text {
  28054. min-height: 50px;
  28055. /* width: 500px;
  28056. max-height: 150px; */
  28057. width: 100%;
  28058. line-height: 50px;
  28059. color: rgb(82, 82, 82);
  28060. overflow: auto;
  28061. text-indent: 5px;
  28062. background: #f7f6f9;
  28063. border-radius: 10px;
  28064. }
  28065. .elist_input_box .elist_inptu_text input {
  28066. width: 500px;
  28067. }
  28068. .elist_input_box >>> .el-rate__icon {
  28069. font-size: 24px;
  28070. }
  28071. .isClick {
  28072. background: #4d9def;
  28073. }
  28074. .bzBox {
  28075. display: flex;
  28076. flex-direction: row;
  28077. align-items: center;
  28078. }
  28079. .bzBox .yCss {
  28080. width: 7px;
  28081. height: 7px;
  28082. background: #fff;
  28083. margin: 0 16px 0 6px;
  28084. border-radius: 50%;
  28085. border: 5px solid #3681fc;
  28086. z-index: 99;
  28087. }
  28088. .bzBox > div:nth-child(2) {
  28089. font-size: 18px;
  28090. font-weight: bold;
  28091. color: #0e1e33;
  28092. }
  28093. .navTitile {
  28094. padding: 0 0px 0 15px;
  28095. font-size: 16px;
  28096. font-weight: bold;
  28097. color: #0e1e33;
  28098. height: 40px;
  28099. line-height: 40px;
  28100. }
  28101. .isTypeOne {
  28102. width: 240px;
  28103. height: 170px;
  28104. /* border: 1px solid #f8f8f8; */
  28105. border-radius: 10px;
  28106. box-shadow: 0 0 6px 1px #dfdada;
  28107. }
  28108. .e_add_top {
  28109. display: flex;
  28110. justify-content: space-between;
  28111. padding: 10px 20px;
  28112. border-radius: 3px;
  28113. background: #fff;
  28114. }
  28115. .e_add_title2 {
  28116. display: flex;
  28117. align-items: center;
  28118. }
  28119. .e_add_title2 span {
  28120. width: 40px;
  28121. }
  28122. .e_add_title {
  28123. display: flex;
  28124. align-items: center;
  28125. color: #b8b8b8;
  28126. font-size: 18px;
  28127. position: relative;
  28128. height: 40px;
  28129. }
  28130. .e_add_title span {
  28131. margin-right: 10px;
  28132. }
  28133. .e_add_title .el_input {
  28134. width: 300px;
  28135. }
  28136. .e_add_title >>> .el-input__inner {
  28137. width: 400px;
  28138. }
  28139. /* .e_add_btn {
  28140. } */
  28141. .e_add_content {
  28142. display: flex;
  28143. width: 100%;
  28144. max-width: 650px;
  28145. height: 550px;
  28146. }
  28147. .e_add_list {
  28148. background: #fff;
  28149. height: 500px;
  28150. width: 210px;
  28151. position: relative;
  28152. margin: 15px 5px 0 0;
  28153. flex-shrink: 0;
  28154. display: flex;
  28155. flex-direction: column;
  28156. }
  28157. .e_add_list_title {
  28158. font-size: 20px;
  28159. width: 100%;
  28160. box-sizing: border-box;
  28161. padding: 15px 40px;
  28162. text-align: center;
  28163. border-bottom: 1px solid #eaeaea;
  28164. position: relative;
  28165. display: flex;
  28166. align-items: center;
  28167. justify-content: center;
  28168. height: 57px;
  28169. background: #f6f6f6;
  28170. }
  28171. .e_add_list_title span {
  28172. overflow: hidden;
  28173. white-space: nowrap;
  28174. text-overflow: ellipsis;
  28175. }
  28176. .e_add_list_title img {
  28177. position: absolute;
  28178. right: 15px;
  28179. width: 25px;
  28180. cursor: pointer;
  28181. top: 50%;
  28182. transform: translateY(-50%);
  28183. }
  28184. .e_add_list_body {
  28185. height: calc(100% - 187px);
  28186. overflow: auto;
  28187. }
  28188. .e_add_list_child {
  28189. width: 100%;
  28190. display: flex;
  28191. align-items: center;
  28192. justify-content: center;
  28193. position: relative;
  28194. box-sizing: border-box;
  28195. padding: 15px 40px;
  28196. text-align: center;
  28197. }
  28198. .e_add_list_child span {
  28199. overflow: hidden;
  28200. white-space: nowrap;
  28201. text-overflow: ellipsis;
  28202. cursor: pointer;
  28203. }
  28204. .e_add_list_child img {
  28205. position: absolute;
  28206. right: 10px;
  28207. width: 21px;
  28208. cursor: pointer;
  28209. top: 50%;
  28210. transform: translateY(-50%);
  28211. }
  28212. .e_add_list_child + .e_add_list_child {
  28213. border-top: 1px solid #eaeaea;
  28214. }
  28215. .e_add_list_child .active {
  28216. color: #409eff;
  28217. }
  28218. .e_add_list_btn {
  28219. position: absolute;
  28220. bottom: 0;
  28221. height: 50px;
  28222. background: rgb(120, 120, 254);
  28223. width: 100%;
  28224. color: #fff;
  28225. font-size: 16px;
  28226. text-align: center;
  28227. line-height: 50px;
  28228. cursor: pointer;
  28229. }
  28230. .e_add_list_detail {
  28231. position: absolute;
  28232. bottom: 0;
  28233. height: 130px;
  28234. background: rgb(120, 120, 254);
  28235. width: 100%;
  28236. color: #fff;
  28237. font-size: 16px;
  28238. display: flex;
  28239. align-items: center;
  28240. justify-content: center;
  28241. }
  28242. .e_add_list_detail textarea {
  28243. height: 90%;
  28244. width: 95%;
  28245. border: none;
  28246. resize: none;
  28247. outline: none;
  28248. padding: 5px;
  28249. box-sizing: border-box;
  28250. }
  28251. .e_add_list_pbox {
  28252. width: 100%;
  28253. max-width: 650px;
  28254. /* height: 600px; */
  28255. }
  28256. .e_add_list_pbox_title {
  28257. height: 50px;
  28258. background: #fff;
  28259. display: flex;
  28260. align-items: center;
  28261. width: 100%;
  28262. box-sizing: border-box;
  28263. padding: 0 20px;
  28264. }
  28265. .type_title {
  28266. font-size: 18px;
  28267. font-weight: 700;
  28268. }
  28269. .type_content {
  28270. font-size: 16px;
  28271. /* margin-left: 30px; */
  28272. }
  28273. .type_content span + span {
  28274. margin-left: 20px;
  28275. }
  28276. .type_content span {
  28277. cursor: pointer;
  28278. padding-bottom: 5px;
  28279. box-sizing: border-box;
  28280. }
  28281. .type_content .active {
  28282. color: #409eff;
  28283. border-bottom: 2px solid #409eff;
  28284. }
  28285. .e_add_list_pbox_content {
  28286. height: calc(100% - 50px);
  28287. display: flex;
  28288. align-items: center;
  28289. width: 100%;
  28290. background: #fff;
  28291. }
  28292. .evaCss {
  28293. display: flex;
  28294. flex-direction: row;
  28295. flex-wrap: nowrap;
  28296. align-items: flex-start;
  28297. padding: 0 0 20px;
  28298. }
  28299. .evaCss >>> .cell {
  28300. position: relative;
  28301. overflow: visible;
  28302. }
  28303. .evaCss >>> .el-table__body-wrapper {
  28304. overflow: visible;
  28305. }
  28306. .evaCss >>> .el-table {
  28307. overflow: visible;
  28308. }
  28309. .blueRootCss {
  28310. position: absolute;
  28311. top: 50%;
  28312. left: 0;
  28313. transform: translate(-20px, -50%);
  28314. }
  28315. .cru_line {
  28316. position: absolute;
  28317. bottom: 0px;
  28318. transition: all 0.5s;
  28319. left: 0px;
  28320. width: 125px;
  28321. margin-left: -25px;
  28322. }
  28323. .isNoMessage {
  28324. width: 20%;
  28325. margin: 25% auto 0;
  28326. }
  28327. .isNoMessage > img {
  28328. width: 100%;
  28329. height: 100%;
  28330. }
  28331. .fullStyle >>> .el-dialog__body {
  28332. height: 100% !important;
  28333. }
  28334. .fullStyle >>> .el-dialog,
  28335. .fullStyle {
  28336. width: 100% !important;
  28337. max-width: 100% !important;
  28338. height: 100% !important;
  28339. margin: 0 !important;
  28340. }
  28341. .full_diy >>> .el-dialog {
  28342. margin: 0 !important;
  28343. height: 100%;
  28344. padding: 4px;
  28345. }
  28346. .full_diy >>> .el-dialog__body {
  28347. height: calc(100% - 100px);
  28348. }
  28349. .full_diy2 >>> .el-dialog__body {
  28350. height: calc(100% - 50px);
  28351. padding: 0;
  28352. }
  28353. .switchCss {
  28354. /* width: 100%; */
  28355. display: flex;
  28356. flex-direction: row;
  28357. flex-wrap: nowrap;
  28358. align-items: center;
  28359. /* justify-content: center; */
  28360. }
  28361. .isClickNav {
  28362. /* color: #499eef; */
  28363. color: #000;
  28364. }
  28365. .commentImg {
  28366. width: 25px;
  28367. height: 25px;
  28368. cursor: pointer;
  28369. }
  28370. .commentImg > img {
  28371. width: 100%;
  28372. height: 100%;
  28373. }
  28374. .comment {
  28375. background: #f9f9f9;
  28376. border-radius: 0 0 4px 4px;
  28377. display: flex;
  28378. flex-direction: row;
  28379. flex-wrap: nowrap;
  28380. align-items: center;
  28381. justify-content: flex-end;
  28382. height: 35px;
  28383. }
  28384. .commentList {
  28385. display: flex;
  28386. flex-direction: row;
  28387. flex-wrap: nowrap;
  28388. align-items: center;
  28389. justify-content: center;
  28390. align-content: center;
  28391. /* margin-left: 15px; */
  28392. /* margin-left: 8px; */
  28393. }
  28394. .scoreImg {
  28395. width: 17px;
  28396. height: 17px;
  28397. }
  28398. .studentDetail {
  28399. display: flex;
  28400. flex-direction: row;
  28401. flex-wrap: nowrap;
  28402. /* align-items: center; */
  28403. align-items: flex-start;
  28404. }
  28405. .tx {
  28406. width: 50px;
  28407. }
  28408. .tx > img {
  28409. width: 100%;
  28410. height: 100%;
  28411. }
  28412. .nameAndTime {
  28413. display: flex;
  28414. flex-direction: column;
  28415. flex-wrap: nowrap;
  28416. align-items: flex-start;
  28417. margin-left: 10px;
  28418. }
  28419. .worksAnswer {
  28420. color: #4078dd;
  28421. margin: 10px 0;
  28422. font-size: 16px;
  28423. position: relative;
  28424. }
  28425. .worksAnswer > img {
  28426. width: 500px;
  28427. height: 300px;
  28428. object-fit: contain;
  28429. margin: 0 auto;
  28430. display: block;
  28431. }
  28432. .commentTop {
  28433. border-bottom: 1px solid #eaeaea;
  28434. padding-bottom: 10px;
  28435. }
  28436. .commentBox {
  28437. padding-top: 15px;
  28438. }
  28439. .pl {
  28440. font-size: 18px;
  28441. }
  28442. .plPerson {
  28443. width: 100%;
  28444. }
  28445. .plName {
  28446. display: flex;
  28447. flex-direction: row;
  28448. flex-wrap: nowrap;
  28449. align-items: baseline;
  28450. color: #78787a;
  28451. width: 100%;
  28452. }
  28453. .deleteComment {
  28454. cursor: pointer;
  28455. margin-left: auto;
  28456. color: #237ade;
  28457. }
  28458. .plContent {
  28459. margin-top: 5px;
  28460. }
  28461. .evalCss {
  28462. background: #fff;
  28463. font-size: 18px;
  28464. }
  28465. .nav {
  28466. color: #9d9d9d;
  28467. padding: 5px 0 15px 20px;
  28468. }
  28469. .middleBox {
  28470. padding: 5px 0 15px 20px;
  28471. }
  28472. .pfBox {
  28473. padding-bottom: 30px;
  28474. }
  28475. .nameAndrate {
  28476. display: flex;
  28477. flex-direction: row;
  28478. flex-wrap: nowrap;
  28479. align-items: center;
  28480. padding-bottom: 10px;
  28481. height: 30px;
  28482. line-height: 30px;
  28483. }
  28484. .nameAndrate > div {
  28485. margin-left: 10px;
  28486. color: #000;
  28487. height: 30px;
  28488. }
  28489. .nameAndrate >>> .el-rate__icon {
  28490. font-size: 28px !important;
  28491. }
  28492. .pfBox > div:nth-child(2) {
  28493. background: #f7f6f9;
  28494. width: 400px;
  28495. min-height: 45px;
  28496. border-radius: 10px;
  28497. font-size: 16px;
  28498. display: flex;
  28499. flex-wrap: wrap;
  28500. align-items: center;
  28501. padding: 10px 20px;
  28502. box-sizing: border-box;
  28503. color: #000;
  28504. }
  28505. .bz {
  28506. display: flex;
  28507. flex-direction: row;
  28508. flex-wrap: nowrap;
  28509. align-items: flex-start;
  28510. }
  28511. .bz > div {
  28512. padding: 0 10px;
  28513. }
  28514. .select_box2_title {
  28515. background: #fff;
  28516. border-radius: 5px;
  28517. padding: 15px 10px;
  28518. box-sizing: border-box;
  28519. margin-bottom: 10px;
  28520. display: flex;
  28521. flex-direction: row;
  28522. flex-wrap: nowrap;
  28523. align-items: center;
  28524. }
  28525. .select_box2_title > div:nth-child(2) {
  28526. margin-left: 10px;
  28527. color: #c4c4c4;
  28528. }
  28529. .select_box2_box {
  28530. display: flex;
  28531. height: 500px;
  28532. }
  28533. .select_box2_img {
  28534. width: calc(100% - 310px);
  28535. height: 100%;
  28536. overflow: auto;
  28537. background: #fff;
  28538. border-radius: 5px;
  28539. }
  28540. .select_box2_img img {
  28541. width: 100%;
  28542. }
  28543. .select_box2_answer {
  28544. background: #fff;
  28545. margin-left: 10px;
  28546. border-radius: 5px;
  28547. width: 300px;
  28548. overflow: auto;
  28549. height: 90%;
  28550. display: flex;
  28551. flex-direction: column;
  28552. align-items: flex-start;
  28553. padding-top: 10px;
  28554. box-sizing: border-box;
  28555. position: relative;
  28556. }
  28557. .select_answer_title {
  28558. padding: 0 0 15px 20px;
  28559. color: #c4c4c4;
  28560. }
  28561. .select_box2_answer_box {
  28562. margin: 0 0 10px 20px;
  28563. width: 85%;
  28564. display: flex;
  28565. flex-direction: row;
  28566. flex-wrap: nowrap;
  28567. align-items: center;
  28568. }
  28569. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  28570. color: #000;
  28571. }
  28572. .upAnswerCss {
  28573. position: absolute;
  28574. bottom: 15px;
  28575. right: 15px;
  28576. }
  28577. .upAnswerCss >>> .el-button {
  28578. width: 95px;
  28579. height: 35px;
  28580. line-height: 35px;
  28581. padding: 0;
  28582. }
  28583. .rightWidthCss {
  28584. width: 60%;
  28585. display: flex;
  28586. flex-direction: row;
  28587. align-items: flex-start;
  28588. }
  28589. .rightAnswer {
  28590. display: flex;
  28591. flex-direction: row;
  28592. flex-wrap: nowrap;
  28593. align-items: center;
  28594. color: red;
  28595. margin-bottom: 31px;
  28596. }
  28597. .rightAnswerCss {
  28598. display: flex;
  28599. flex-direction: column;
  28600. flex-wrap: nowrap;
  28601. padding-top: 60px;
  28602. }
  28603. .blueCss {
  28604. color: #767de1;
  28605. margin-left: 10px;
  28606. }
  28607. .redCss {
  28608. color: red;
  28609. }
  28610. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  28611. color: rgb(0 123 255) !important;
  28612. }
  28613. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  28614. color: rgb(0 123 255) !important;
  28615. }
  28616. .zuoyeYulan {
  28617. padding-top: 0;
  28618. font-size: 18px;
  28619. display: flex;
  28620. align-items: flex-end;
  28621. }
  28622. .buttonA {
  28623. margin-left: 10px;
  28624. padding: 0;
  28625. }
  28626. .displayBox {
  28627. margin-bottom: 10px;
  28628. display: block;
  28629. border-bottom: 3px solid #eee;
  28630. display: flex;
  28631. align-items: center;
  28632. }
  28633. .easy_comment {
  28634. width: calc(100% - 90px);
  28635. margin-left: 10px;
  28636. display: flex;
  28637. flex-wrap: wrap;
  28638. }
  28639. .easy_comment > div {
  28640. border: 1px solid #4a4a4a;
  28641. color: #666;
  28642. border-radius: 15px;
  28643. padding: 5px 10px;
  28644. font-size: 16px;
  28645. margin-bottom: 10px;
  28646. margin-right: 5px;
  28647. cursor: pointer;
  28648. }
  28649. .easy_comment div:hover {
  28650. border: 1px solid #f7ba2a;
  28651. color: #c69217;
  28652. }
  28653. .xuan_right_box {
  28654. padding: 10px 0;
  28655. background: #f0f4fa;
  28656. margin: 0 15px 0 25px;
  28657. border-bottom-left-radius: 5px;
  28658. border-bottom-right-radius: 5px;
  28659. width: 91.5%;
  28660. }
  28661. .tool_right_box {
  28662. display: flex;
  28663. align-items: center;
  28664. }
  28665. .tool_right_box >>> .katex {
  28666. font-size: 16px;
  28667. }
  28668. .tool_right_box + .tool_right_box {
  28669. margin-top: 10px;
  28670. }
  28671. .right_box_xuan {
  28672. border-radius: 5px;
  28673. padding: 5px;
  28674. margin-left: 10px;
  28675. min-width: 85px;
  28676. background: #fff;
  28677. color: #0061ff;
  28678. border: 1px solid #0061ff;
  28679. font-size: 14px;
  28680. }
  28681. .pButton:hover {
  28682. opacity: 1 !important;
  28683. }
  28684. .pButton {
  28685. position: fixed;
  28686. text-align: center;
  28687. cursor: pointer;
  28688. z-index: 999;
  28689. right: 20px;
  28690. top: 110px;
  28691. width: 50px;
  28692. height: 50px;
  28693. display: flex;
  28694. align-items: center;
  28695. justify-content: center;
  28696. border-radius: 5px;
  28697. }
  28698. .pzClass {
  28699. width: calc(100% - 340px);
  28700. }
  28701. .newDialogCss {
  28702. /* position: fixed;
  28703. right: 5%;
  28704. top: 50%;
  28705. width: 340px;
  28706. transform: translateY(-50%);
  28707. height: 60%;
  28708. box-shadow: 0px 0 8px 0px #555555;
  28709. border-radius: 15px;
  28710. z-index: 999; */
  28711. position: fixed;
  28712. right: 20px;
  28713. top: 101px;
  28714. width: 330px;
  28715. height: calc(100% - 80px);
  28716. z-index: 999;
  28717. background: #fff;
  28718. border-top-right-radius: 0px;
  28719. border-bottom-right-radius: 0px;
  28720. overflow: hidden;
  28721. }
  28722. .newDialogCss > .scoreList {
  28723. width: 100%;
  28724. height: 100%;
  28725. box-sizing: border-box;
  28726. padding: 10px 15px;
  28727. overflow: auto;
  28728. padding-bottom: 80px;
  28729. }
  28730. .pzTop {
  28731. color: #fff;
  28732. background: #000;
  28733. display: flex;
  28734. flex-direction: row;
  28735. flex-wrap: nowrap;
  28736. align-items: center;
  28737. justify-content: space-between;
  28738. height: 40px;
  28739. border-radius: 15px 15px 0 0;
  28740. user-select: none;
  28741. }
  28742. .pzTop2 .checkbox {
  28743. display: flex;
  28744. align-items: center;
  28745. padding: 5px 10px;
  28746. flex: 0 0 auto;
  28747. font-weight: bold;
  28748. border-bottom: 1px solid #eee;
  28749. justify-content: space-between;
  28750. }
  28751. .checkbox > .cb-tabList {
  28752. display: flex;
  28753. align-items: center;
  28754. }
  28755. .cb-tabList > div {
  28756. margin-right: 20px;
  28757. font-weight: 400;
  28758. cursor: pointer;
  28759. }
  28760. .cb-tabList > .cb-tabItem {
  28761. color: #1684fc;
  28762. position: relative;
  28763. }
  28764. .cb-tabItem::after {
  28765. content: "";
  28766. width: 100%;
  28767. height: 2px;
  28768. background: #1684fc;
  28769. position: absolute;
  28770. bottom: -5px;
  28771. left: 0;
  28772. }
  28773. .pzTop2 .check {
  28774. text-align: center;
  28775. cursor: pointer;
  28776. box-sizing: border-box;
  28777. display: flex;
  28778. }
  28779. .pzTop2 img {
  28780. width: 25px;
  28781. cursor: pointer;
  28782. }
  28783. .pzTop > div:nth-child(1) {
  28784. padding-left: 10px;
  28785. }
  28786. .pzTop > div:nth-child(2) {
  28787. width: 15px;
  28788. height: 15px;
  28789. padding-right: 10px;
  28790. cursor: pointer;
  28791. }
  28792. .pzTop > div:nth-child(2) > img {
  28793. width: 100%;
  28794. height: 100%;
  28795. }
  28796. .pzBox,
  28797. .noPzBox {
  28798. height: calc(100% - 60px);
  28799. /* background: #ededed; */
  28800. background: #fff;
  28801. /* border-radius: 0 0 15px 15px; */
  28802. }
  28803. .noPzBox {
  28804. display: flex;
  28805. flex-direction: column;
  28806. flex-wrap: nowrap;
  28807. justify-content: center;
  28808. align-items: center;
  28809. }
  28810. .pzList {
  28811. background: #f7f7f7;
  28812. width: 90%;
  28813. margin: 0 auto 15px;
  28814. border-radius: 5px;
  28815. }
  28816. .pzNavTop {
  28817. display: flex;
  28818. flex-direction: row;
  28819. flex-wrap: nowrap;
  28820. padding: 10px 10px 0 10px;
  28821. align-items: center;
  28822. }
  28823. .pzDelete {
  28824. cursor: pointer;
  28825. margin-left: auto;
  28826. font-size: 14px;
  28827. color: #afafaf;
  28828. }
  28829. .pzNavTop > div:nth-child(1) {
  28830. background: #3760af;
  28831. width: 35px;
  28832. height: 35px;
  28833. color: #fff;
  28834. text-align: center;
  28835. line-height: 35px;
  28836. border-radius: 50%;
  28837. font-size: 14px;
  28838. }
  28839. .pzNavTop > div:nth-child(2) {
  28840. font-size: 18px;
  28841. color: #959595;
  28842. margin-left: 5px;
  28843. }
  28844. .pzContent {
  28845. padding: 10px;
  28846. word-break: break-word;
  28847. }
  28848. .pzContent audio {
  28849. width: 100%;
  28850. }
  28851. .pzContent audio::-webkit-media-controls-panel {
  28852. background: #fff;
  28853. }
  28854. .pzContent >>> img {
  28855. max-width: 100%;
  28856. }
  28857. .pzListBox {
  28858. padding-top: 15px;
  28859. height: calc(100% - 110px);
  28860. overflow: auto;
  28861. }
  28862. .addPzButton {
  28863. position: relative;
  28864. margin-top: 3px;
  28865. width: 100%;
  28866. }
  28867. .addPzButton .img1 {
  28868. position: absolute;
  28869. top: 50%;
  28870. right: 25px;
  28871. transform: translateY(-50%);
  28872. height: 100%;
  28873. display: flex;
  28874. align-items: center;
  28875. }
  28876. .addPzButton .img1 div {
  28877. display: flex;
  28878. }
  28879. .addPzButton .img1 div img {
  28880. width: 28px;
  28881. margin-left: 10px;
  28882. cursor: pointer;
  28883. }
  28884. .addPzButton .img1 div span {
  28885. font-size: 14px;
  28886. margin: 4px 0 0 3px;
  28887. color: #afafaf;
  28888. }
  28889. .addPz {
  28890. background: #4b79ce;
  28891. width: 100px;
  28892. color: #fff;
  28893. font-size: 12px;
  28894. height: 30px;
  28895. margin: 0 auto;
  28896. text-align: center;
  28897. line-height: 30px;
  28898. border-radius: 10px;
  28899. cursor: pointer;
  28900. }
  28901. .addDialogCss {
  28902. position: fixed;
  28903. width: 600px;
  28904. height: 70%;
  28905. min-height: 450px;
  28906. box-shadow: 0px 0 8px 0px #555555;
  28907. border-radius: 15px;
  28908. z-index: 999;
  28909. left: 50%;
  28910. top: 50%;
  28911. margin: -18% 0 0 -300px;
  28912. }
  28913. .teacherPz {
  28914. display: flex;
  28915. flex-direction: row;
  28916. align-items: center;
  28917. flex-wrap: nowrap;
  28918. }
  28919. .teacherPzImg {
  28920. width: 30px;
  28921. height: 30px;
  28922. }
  28923. .teacherPzImg > img {
  28924. width: 100%;
  28925. height: 100%;
  28926. }
  28927. .addPzBox {
  28928. height: calc(100% - 40px);
  28929. background: #ededed;
  28930. border-bottom-left-radius: 15px;
  28931. border-bottom-right-radius: 15px;
  28932. }
  28933. .pzAudioClass {
  28934. margin: 15px 14px;
  28935. background: #fff;
  28936. height: 100%;
  28937. display: flex;
  28938. justify-content: center;
  28939. align-items: center;
  28940. }
  28941. .pzConText {
  28942. width: 95%;
  28943. height: 100%;
  28944. margin: 10px auto 0;
  28945. border: none;
  28946. background: #fff;
  28947. border-radius: 0px;
  28948. }
  28949. .pzConText >>> .text {
  28950. height: calc(100% - 82px);
  28951. }
  28952. .addTextCss {
  28953. background: #4b79ce;
  28954. width: 80px;
  28955. height: 30px;
  28956. text-align: center;
  28957. color: #fff;
  28958. line-height: 30px;
  28959. border-radius: 10px;
  28960. margin: 10px auto 0;
  28961. cursor: pointer;
  28962. }
  28963. .pzConText:focus-visible {
  28964. border: none !important;
  28965. }
  28966. .maxWidth {
  28967. width: 1000px;
  28968. }
  28969. .noPz {
  28970. width: 150px;
  28971. margin: 0 auto 20%;
  28972. }
  28973. .noPz > img {
  28974. width: 100%;
  28975. height: 100%;
  28976. }
  28977. .timeAndReply {
  28978. display: flex;
  28979. flex-direction: row;
  28980. flex-wrap: nowrap;
  28981. justify-content: space-between;
  28982. align-items: center;
  28983. font-size: 14px;
  28984. box-sizing: border-box;
  28985. padding: 0 10px 10px 0px;
  28986. }
  28987. .timeAndReply .time {
  28988. color: #bfbfbf;
  28989. padding: 0 0 0 10px;
  28990. box-sizing: border-box;
  28991. }
  28992. .timeAndReply > div:last-child {
  28993. cursor: pointer;
  28994. color: #777;
  28995. }
  28996. /* table 样式 */
  28997. .cont >>> table {
  28998. border-top: 1px solid #ccc;
  28999. border-left: 1px solid #ccc;
  29000. }
  29001. .cont >>> table td,
  29002. .cont >>> table th {
  29003. border-bottom: 1px solid #ccc;
  29004. border-right: 1px solid #ccc;
  29005. /* padding: 20px 5px; */
  29006. padding: 5px 10px;
  29007. max-width: 0px;
  29008. height: 30px;
  29009. vertical-align: baseline;
  29010. box-sizing: border-box;
  29011. }
  29012. .cont >>> table th {
  29013. border-bottom: 2px solid #ccc;
  29014. text-align: center;
  29015. }
  29016. /* blockquote 样式 */
  29017. .cont >>> blockquote {
  29018. display: block;
  29019. border-left: 8px solid #d0e5f2;
  29020. padding: 5px 10px;
  29021. margin: 10px 0;
  29022. line-height: 1.4;
  29023. font-size: 100%;
  29024. background-color: #f1f1f1;
  29025. }
  29026. /* code 样式 */
  29027. .cont >>> code {
  29028. display: inline-block;
  29029. /* *display: inline; */
  29030. zoom: 1;
  29031. background-color: #f1f1f1;
  29032. border-radius: 3px;
  29033. padding: 3px 5px;
  29034. margin: 0 3px;
  29035. }
  29036. .cont >>> pre code {
  29037. display: block;
  29038. }
  29039. /* ul ol 样式 */
  29040. .cont >>> ul,
  29041. ol {
  29042. margin: 10px 0 10px 20px;
  29043. }
  29044. .addPzCheck {
  29045. display: flex;
  29046. flex-direction: row;
  29047. flex-wrap: nowrap;
  29048. padding: 10px 15px 0;
  29049. }
  29050. .addPzCheck span {
  29051. cursor: pointer;
  29052. padding-bottom: 5px;
  29053. font-weight: bold;
  29054. }
  29055. .addPzCheck span + span {
  29056. margin-left: 10px;
  29057. }
  29058. .addPzCheck .isChooseActive {
  29059. color: #3e88f4;
  29060. border-bottom: 2px solid #2f80f3;
  29061. }
  29062. /* code 样式 */
  29063. .cont {
  29064. /* -webkit-user-modify: read-write; */
  29065. overflow-wrap: break-word;
  29066. -webkit-line-break: after-white-space;
  29067. word-break: break-word;
  29068. white-space: pre-line;
  29069. }
  29070. .scoreBox,
  29071. .scoreDetailBox {
  29072. display: flex;
  29073. align-items: center;
  29074. justify-content: flex-start;
  29075. margin-top: 20px;
  29076. font-size: 18px;
  29077. width: 100%;
  29078. }
  29079. .scoreBox .t,
  29080. .scoreDetailBox .t {
  29081. margin-right: 10px;
  29082. width: 100px;
  29083. text-align: right;
  29084. }
  29085. .scoreDetailBox {
  29086. align-items: flex-start;
  29087. }
  29088. .scoreDetailBox >>> .el-textarea {
  29089. width: calc(100% - 200px);
  29090. }
  29091. .scoreBox >>> .el-input {
  29092. width: 130px;
  29093. font-size: 38px;
  29094. }
  29095. .scoreBox >>> .el-input__inner {
  29096. height: 60px;
  29097. }
  29098. .answerScore {
  29099. position: absolute;
  29100. top: 10px;
  29101. right: 10px;
  29102. background: #0000008f;
  29103. border-radius: 5px;
  29104. padding: 3px 5px;
  29105. font-size: 14px;
  29106. color: #fff;
  29107. cursor: pointer;
  29108. }
  29109. .open_box .switch_box {
  29110. width: 100%;
  29111. margin: 0 auto;
  29112. display: flex;
  29113. justify-content: space-between;
  29114. }
  29115. .open_box .switch_box + .switch_box {
  29116. margin-top: 10px;
  29117. }
  29118. .deleteImg,
  29119. .deleteImg1 {
  29120. width: 25px !important;
  29121. height: 25px !important;
  29122. cursor: pointer;
  29123. position: absolute;
  29124. top: 10px;
  29125. right: 10px;
  29126. }
  29127. .deleteImg2 {
  29128. width: 23px !important;
  29129. height: 23px !important;
  29130. top: 5px;
  29131. right: 5px;
  29132. }
  29133. .deleteImg1 {
  29134. width: 23px !important;
  29135. height: 23px !important;
  29136. top: 5px !important;
  29137. right: 30px !important;
  29138. }
  29139. .rightW {
  29140. right: 40px;
  29141. }
  29142. .drawPBox {
  29143. display: flex;
  29144. flex-direction: column;
  29145. position: relative;
  29146. }
  29147. .drawPBox span {
  29148. font-size: 18px;
  29149. color: #606266;
  29150. padding-bottom: 10px;
  29151. margin: 10px 0;
  29152. border-bottom: 1px solid #eaeaea;
  29153. }
  29154. .drawPBox img {
  29155. width: 500px;
  29156. height: 300px;
  29157. object-fit: contain;
  29158. cursor: pointer;
  29159. margin: 0 auto;
  29160. }
  29161. .sentenBox {
  29162. background: #fff;
  29163. height: 450px;
  29164. overflow: auto;
  29165. background-image: url("../../assets/icon/conSentences/stuBg.png");
  29166. background-position: 102%;
  29167. background-repeat: no-repeat;
  29168. background-size: 60%;
  29169. }
  29170. .addSen {
  29171. background: #409efe;
  29172. width: 90px;
  29173. color: #fff;
  29174. height: 35px;
  29175. text-align: center;
  29176. line-height: 35px;
  29177. border-radius: 5px;
  29178. float: right;
  29179. margin: 10px 20px 0 0;
  29180. cursor: pointer;
  29181. }
  29182. .sentenTop {
  29183. display: flex;
  29184. flex-direction: row;
  29185. flex-wrap: nowrap;
  29186. align-items: center;
  29187. padding: 55px 0 0 20px;
  29188. box-sizing: border-box;
  29189. }
  29190. .sentenTop > div:nth-child(2) {
  29191. width: 300px;
  29192. margin: 0 15px;
  29193. }
  29194. .sentenTop > div:nth-child(3) {
  29195. background: #409efe;
  29196. color: #fff;
  29197. width: 65px;
  29198. height: 35px;
  29199. text-align: center;
  29200. line-height: 35px;
  29201. border-radius: 5px;
  29202. cursor: pointer;
  29203. }
  29204. .cardList,
  29205. .cardList1 {
  29206. padding: 10px 0 10px 0;
  29207. display: flex;
  29208. flex-direction: row;
  29209. flex-wrap: wrap;
  29210. align-items: center;
  29211. box-sizing: border-box;
  29212. border-bottom: 1px solid #f4f4f4;
  29213. width: 98%;
  29214. margin: 0 auto;
  29215. min-width: 60%;
  29216. max-width: 85%;
  29217. }
  29218. .cardList1 {
  29219. padding: 10px 0 10px 10px !important;
  29220. margin: 0 !important;
  29221. }
  29222. .cardBox {
  29223. display: flex;
  29224. flex-direction: row;
  29225. flex-wrap: wrap;
  29226. align-items: center;
  29227. align-content: center;
  29228. }
  29229. .cardBox > div {
  29230. margin-bottom: 10px;
  29231. }
  29232. .isCard,
  29233. .isChooseCard,
  29234. .noCard,
  29235. .isCard1 {
  29236. min-width: 130px;
  29237. width: auto;
  29238. height: 60px;
  29239. text-align: center;
  29240. line-height: 60px;
  29241. font-size: 20px;
  29242. cursor: pointer;
  29243. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  29244. background-size: cover;
  29245. transition: all 2s;
  29246. margin-right: 20px;
  29247. background-size: 100% 100%;
  29248. padding: 0 20px;
  29249. box-sizing: border-box;
  29250. }
  29251. .isCard > div,
  29252. .noCard > div,
  29253. .isCard1 > div {
  29254. white-space: nowrap;
  29255. overflow: hidden;
  29256. text-overflow: ellipsis;
  29257. width: 100%;
  29258. margin: 0 auto;
  29259. }
  29260. .noCard {
  29261. background-image: none;
  29262. }
  29263. .isCard1 {
  29264. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  29265. }
  29266. .isChooseCard {
  29267. background-image: none;
  29268. border: 1px dashed #b9b9b9;
  29269. border-radius: 10px;
  29270. }
  29271. .card {
  29272. width: 130px;
  29273. height: 60px;
  29274. }
  29275. .card > img {
  29276. width: 100%;
  29277. height: 100%;
  29278. }
  29279. .rightCardBox {
  29280. margin: 10px 0 0 10px;
  29281. }
  29282. .rightCardBox > div:nth-child(1) {
  29283. margin-bottom: 10px;
  29284. }
  29285. .cardCss {
  29286. display: flex;
  29287. flex-direction: column;
  29288. flex-wrap: nowrap;
  29289. align-items: center;
  29290. border-bottom: 3px solid #b4c3d3;
  29291. padding: 0 0 5px 0;
  29292. margin-right: 10px;
  29293. }
  29294. .cardCss > div:nth-child(2) {
  29295. background: #5b7b9d;
  29296. color: #fff;
  29297. width: 20px;
  29298. height: 20px;
  29299. border-radius: 50%;
  29300. text-align: center;
  29301. line-height: 20px;
  29302. }
  29303. .isWrong {
  29304. display: flex;
  29305. flex-direction: row;
  29306. flex-wrap: nowrap;
  29307. align-content: center;
  29308. align-items: center;
  29309. }
  29310. .answerRight {
  29311. width: 25%;
  29312. }
  29313. .isTj {
  29314. display: flex;
  29315. flex-direction: row;
  29316. flex-wrap: nowrap;
  29317. align-items: center;
  29318. }
  29319. .isTj > div:nth-child(2) {
  29320. color: #727070;
  29321. margin-left: 10px;
  29322. }
  29323. .isTjImg {
  29324. width: 30px;
  29325. height: 30px;
  29326. }
  29327. .isTjImg > img {
  29328. width: 100%;
  29329. height: 100%;
  29330. }
  29331. .cardAnswerBox {
  29332. font-size: 18px;
  29333. width: 97%;
  29334. border: 5px;
  29335. padding: 0;
  29336. border-radius: 5px;
  29337. margin: 10px auto;
  29338. word-break: break-word;
  29339. }
  29340. .w_name {
  29341. margin-bottom: 10px;
  29342. }
  29343. .w_name span {
  29344. font-size: 16px;
  29345. }
  29346. .w_teachert {
  29347. width: 50px !important;
  29348. position: absolute;
  29349. height: auto !important;
  29350. z-index: 10;
  29351. right: 25px;
  29352. top: -25px;
  29353. }
  29354. /* .group_workBox {
  29355. } */
  29356. .group_workBox + .group_workBox {
  29357. margin-top: 20px;
  29358. }
  29359. .group_box {
  29360. padding-bottom: 20px;
  29361. border-bottom: 2px solid #f0f0f0;
  29362. margin-top: 10px;
  29363. }
  29364. .group_title {
  29365. display: flex;
  29366. align-items: center;
  29367. justify-content: space-between;
  29368. width: 95%;
  29369. }
  29370. .group_name {
  29371. background-image: url(../../assets/icon/groupN.png);
  29372. width: 220px;
  29373. background-size: 100% 100%;
  29374. height: 67px;
  29375. padding: 0 20px 0 43px;
  29376. box-sizing: border-box;
  29377. line-height: 63px;
  29378. color: #fff;
  29379. overflow: hidden;
  29380. white-space: nowrap;
  29381. text-overflow: ellipsis;
  29382. }
  29383. .group_work {
  29384. width: 100%;
  29385. padding: 0 10px;
  29386. box-sizing: border-box;
  29387. display: flex;
  29388. flex-wrap: wrap;
  29389. }
  29390. .g_d_box {
  29391. display: flex;
  29392. flex-flow: wrap;
  29393. justify-content: space-around;
  29394. }
  29395. .g_d_box .isChair {
  29396. background-image: url(../../assets/avatar.png) !important;
  29397. }
  29398. .g_d_group {
  29399. width: 500px;
  29400. margin-bottom: 80px;
  29401. }
  29402. .g_d_group_chair {
  29403. display: flex;
  29404. align-items: center;
  29405. justify-content: center;
  29406. }
  29407. .g_d_group_chair > div + div {
  29408. margin-left: 30px;
  29409. }
  29410. .g_d_group_chair > div,
  29411. .g_d_group_chair2 > div {
  29412. display: flex;
  29413. flex-direction: column;
  29414. align-items: center;
  29415. }
  29416. .g_d_group_chair > div > span:nth-child(1),
  29417. .g_d_group_chair2 > div > span:nth-child(1) {
  29418. background-image: url(../../assets/icon/chair.png);
  29419. width: 50px;
  29420. height: 50px;
  29421. display: block;
  29422. background-size: 100% 100%;
  29423. }
  29424. .g_d_group_tableBox {
  29425. display: flex;
  29426. align-items: center;
  29427. justify-content: center;
  29428. }
  29429. .g_d_group_chair2 {
  29430. display: flex;
  29431. flex-direction: column;
  29432. align-items: center;
  29433. justify-content: center;
  29434. }
  29435. .g_d_group_chair2 > div + div {
  29436. margin-top: 10px;
  29437. }
  29438. .g_d_group_table {
  29439. background-image: url(../../assets/icon/groupBg.png);
  29440. width: 354px;
  29441. height: 196px;
  29442. background-size: 100% 100%;
  29443. display: flex;
  29444. align-items: center;
  29445. justify-content: center;
  29446. flex-direction: column;
  29447. color: #fff;
  29448. }
  29449. .g_d_group_table > div:nth-child(1) {
  29450. font-size: 24px;
  29451. margin-bottom: 5px;
  29452. }
  29453. .g_d_group_table > div:nth-child(2) div {
  29454. cursor: pointer;
  29455. background: #2e77bf;
  29456. padding: 4px 10px;
  29457. border-radius: 5px;
  29458. }
  29459. /* .groupBox {
  29460. } */
  29461. .groupContent + .groupContent {
  29462. margin-top: 30px;
  29463. }
  29464. .groupTitle {
  29465. font-size: 24px;
  29466. color: rgb(80, 80, 80);
  29467. margin-bottom: 20px;
  29468. }
  29469. .groupName {
  29470. display: flex;
  29471. align-items: center;
  29472. }
  29473. .groupn {
  29474. font-size: 15px;
  29475. margin-right: 10px;
  29476. }
  29477. .groupName + .groupName {
  29478. margin-top: 15px;
  29479. }
  29480. .groupBtn {
  29481. margin-left: 10px;
  29482. }
  29483. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  29484. text-align: left;
  29485. }
  29486. .g_d_btnBox {
  29487. display: flex;
  29488. justify-content: flex-end;
  29489. align-items: center;
  29490. margin-bottom: 20px;
  29491. }
  29492. .updateChair {
  29493. position: relative;
  29494. }
  29495. .updateChairBtn {
  29496. position: absolute;
  29497. width: 50px;
  29498. height: 50px;
  29499. overflow: hidden;
  29500. /* display: flex; */
  29501. align-items: center;
  29502. justify-content: center;
  29503. background: #00000087;
  29504. color: #fff;
  29505. border-radius: 50px;
  29506. display: none;
  29507. cursor: pointer;
  29508. }
  29509. .updateChair:hover .updateChairBtn {
  29510. display: flex;
  29511. }
  29512. .group_staic_box {
  29513. display: flex;
  29514. padding: 30px 40px 10px;
  29515. flex-wrap: wrap;
  29516. }
  29517. .group_staic {
  29518. /* width: 50%; */
  29519. margin-bottom: 20px;
  29520. display: flex;
  29521. align-items: center;
  29522. }
  29523. .group_staic span:nth-child(1) {
  29524. width: 150px;
  29525. text-align: right;
  29526. margin-right: 15px;
  29527. }
  29528. .group_staic span:nth-child(2) {
  29529. background: rgb(0 123 255);
  29530. color: #fff;
  29531. border-radius: 5px;
  29532. padding: 5px;
  29533. }
  29534. .codeFileBox {
  29535. height: 300px;
  29536. background: #fff;
  29537. display: flex;
  29538. align-items: center;
  29539. justify-content: center;
  29540. }
  29541. .codeFileBox img {
  29542. width: 200px;
  29543. margin: 0;
  29544. height: auto;
  29545. }
  29546. .codeFileBox div {
  29547. background: rgb(80, 142, 226);
  29548. color: #fff;
  29549. padding: 10px 20px;
  29550. border-radius: 25px;
  29551. cursor: pointer;
  29552. margin-left: 15px;
  29553. }
  29554. .radioBox {
  29555. display: flex;
  29556. flex-direction: column;
  29557. flex-wrap: nowrap;
  29558. align-items: flex-start;
  29559. }
  29560. .radioBox > div {
  29561. margin: 10px 0 0 10px;
  29562. }
  29563. /* .radioBox >>> .el-radio__input,
  29564. .radioBox >>> .el-checkbox__inner {
  29565. margin-left: 10px;
  29566. } */
  29567. .radioBox >>> .el-radio__label,
  29568. .radioBox >>> .el-checkbox__label {
  29569. display: flex;
  29570. align-items: center;
  29571. width: 100%;
  29572. }
  29573. .radioBox >>> .el-radio__label > span {
  29574. width: 100%;
  29575. display: -webkit-box;
  29576. overflow: hidden;
  29577. white-space: normal !important;
  29578. text-overflow: ellipsis;
  29579. word-wrap: break-word;
  29580. }
  29581. .inImg {
  29582. width: 100px;
  29583. cursor: pointer;
  29584. }
  29585. .inImg > img {
  29586. width: 100%;
  29587. height: 100%;
  29588. object-fit: cover;
  29589. }
  29590. .timuImgBox {
  29591. margin: 10px 0;
  29592. display: flex;
  29593. flex-direction: column;
  29594. flex-wrap: wrap;
  29595. align-items: flex-start;
  29596. }
  29597. .timuImg {
  29598. width: 150px;
  29599. margin: 5px 0;
  29600. cursor: pointer;
  29601. }
  29602. .timuImg > img {
  29603. width: 100%;
  29604. height: 100%;
  29605. object-fit: cover;
  29606. }
  29607. .worksTop {
  29608. display: flex;
  29609. flex-direction: row;
  29610. align-items: flex-end;
  29611. }
  29612. .worksTitle {
  29613. display: flex;
  29614. flex-direction: row;
  29615. flex-wrap: nowrap;
  29616. align-items: center;
  29617. }
  29618. .worksTitle::before,
  29619. .worksTop::before {
  29620. content: "";
  29621. display: block;
  29622. width: 3px;
  29623. height: 20px;
  29624. background: #0061ff;
  29625. border-radius: 3px;
  29626. margin: 0 5px 0 0;
  29627. }
  29628. .corOpen {
  29629. margin: 0 0 0 10px;
  29630. font-size: 14px;
  29631. cursor: pointer;
  29632. color: #505050;
  29633. }
  29634. .corOpen:hover {
  29635. color: #499eef;
  29636. }
  29637. .navCorOpenBox {
  29638. display: flex;
  29639. flex-direction: row;
  29640. align-items: center;
  29641. justify-content: space-between;
  29642. height: 55px;
  29643. background: #ffffff;
  29644. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  29645. border-radius: 8px 8px 0px 0px;
  29646. z-index: 9;
  29647. position: relative;
  29648. }
  29649. .navCorOpen {
  29650. padding-right: 15px;
  29651. cursor: pointer;
  29652. width: 45px;
  29653. display: flex;
  29654. }
  29655. .navCorOpen > img {
  29656. width: 100%;
  29657. height: 100%;
  29658. }
  29659. .mlImg {
  29660. width: 40px !important;
  29661. min-width: 40px;
  29662. cursor: pointer;
  29663. transform: rotate(180deg);
  29664. }
  29665. .mlImg > img {
  29666. width: 100%;
  29667. height: 100%;
  29668. }
  29669. .navLeftCss {
  29670. width: 100% !important;
  29671. left: 0 !important;
  29672. }
  29673. .isContentCss {
  29674. width: 100% !important;
  29675. }
  29676. .isAllWidth {
  29677. width: 100% !important;
  29678. }
  29679. .group_switch {
  29680. margin-right: 10px;
  29681. height: 30px;
  29682. display: flex;
  29683. align-items: center;
  29684. }
  29685. .group_switch > span {
  29686. margin-right: 5px;
  29687. }
  29688. .fileC_box {
  29689. padding-top: 15px;
  29690. }
  29691. .fileC_box > .fileC_title {
  29692. padding: 10px 5px 14px 10px;
  29693. border-top: 1px solid #cad1dc;
  29694. font-size: 14px;
  29695. font-weight: 400;
  29696. color: #cad1dc;
  29697. width: calc(100% - 20px);
  29698. margin: 0 auto;
  29699. box-sizing: border-box;
  29700. }
  29701. .pl_select_box {
  29702. height: 40px;
  29703. line-height: 40px;
  29704. width: 100%;
  29705. cursor: pointer;
  29706. padding: 0 20px;
  29707. box-sizing: border-box;
  29708. border-radius: 5px;
  29709. border: 1px solid #d6d6d6;
  29710. white-space: nowrap;
  29711. overflow: hidden;
  29712. text-overflow: ellipsis;
  29713. background: #fff;
  29714. text-align: left;
  29715. }
  29716. .newButton {
  29717. width: 102px;
  29718. height: 36px;
  29719. background: #e7ebf1;
  29720. border-radius: 4px;
  29721. color: #0e1e33;
  29722. font-weight: 400;
  29723. font-size: 14px;
  29724. border: none;
  29725. float: right;
  29726. margin-left: 10px;
  29727. }
  29728. .el-table >>> .even_row {
  29729. background-color: #f0f4fa;
  29730. }
  29731. .stageBoxCss,
  29732. .stageBoxIsCss {
  29733. display: flex;
  29734. flex-direction: row;
  29735. flex-wrap: nowrap;
  29736. align-items: center;
  29737. height: 50px;
  29738. border-bottom: 1px solid #e2f5fc;
  29739. cursor: pointer;
  29740. width: 100%;
  29741. }
  29742. .stageBoxIsCss {
  29743. background: #0061ff;
  29744. color: #fff;
  29745. border-radius: 8px;
  29746. }
  29747. .closeTri,
  29748. .closeTri1 {
  29749. min-width: 15px;
  29750. width: 15px;
  29751. height: 15px;
  29752. }
  29753. .closeTri1 {
  29754. padding-left: 10px;
  29755. cursor: pointer;
  29756. }
  29757. .closeTri > img,
  29758. .closeTri1 > img {
  29759. width: 100%;
  29760. height: 100%;
  29761. /* transition: all .5s; */
  29762. }
  29763. .noToolBlue {
  29764. min-width: 10px;
  29765. width: 10px;
  29766. height: 10px;
  29767. background: #0061ff;
  29768. border-radius: 50%;
  29769. margin-left: 13px;
  29770. }
  29771. .stageChild,
  29772. .toolChild {
  29773. height: 0;
  29774. overflow: hidden;
  29775. transition: all 0.5s;
  29776. }
  29777. /* .toolChild { */
  29778. /* margin: 0 0 0 17px;
  29779. padding: 0 0 0 20px;
  29780. border-left: 1px solid #d7d7d7; */
  29781. /* } */
  29782. .toolChild > div + div {
  29783. margin-top: 5px;
  29784. }
  29785. .gjCss {
  29786. display: flex;
  29787. flex-direction: row;
  29788. flex-wrap: nowrap;
  29789. align-items: center;
  29790. padding: 10px 0 10px 40px;
  29791. box-sizing: border-box;
  29792. font-size: 14px;
  29793. cursor: pointer;
  29794. border-radius: 5px;
  29795. }
  29796. .toolChild > div {
  29797. position: relative;
  29798. width: 100%;
  29799. }
  29800. /* .toolChild > div::before { */
  29801. /* content: "";
  29802. width: 15px;
  29803. height: 1px;
  29804. background: #cad1dc;
  29805. position: absolute;
  29806. top: 24px;
  29807. left: -20px;
  29808. display: block; */
  29809. /* } */
  29810. .isGjCss {
  29811. /* color: #0061ff; */
  29812. color: #fff;
  29813. background: rgb(55, 129, 252);
  29814. /* background-color: #e0eafb !important;
  29815. color: #0061ff !important; */
  29816. }
  29817. .navItem {
  29818. background: #ffffff;
  29819. border-radius: 4px;
  29820. width: 100%;
  29821. margin: 10px auto;
  29822. position: relative;
  29823. height: 40px;
  29824. display: flex;
  29825. flex-direction: row;
  29826. flex-wrap: nowrap;
  29827. align-items: center;
  29828. }
  29829. .navItemList {
  29830. display: flex;
  29831. flex-direction: row;
  29832. flex-wrap: nowrap;
  29833. align-items: center;
  29834. padding: 0 13px;
  29835. cursor: pointer;
  29836. width: calc(100% - 60px);
  29837. height: 100%;
  29838. }
  29839. .navItemList > div:first-child {
  29840. min-width: 60px;
  29841. }
  29842. .navItemList > div:last-child {
  29843. width: calc(100% - 80px);
  29844. white-space: nowrap;
  29845. overflow: hidden;
  29846. text-overflow: ellipsis;
  29847. word-break: break-word;
  29848. }
  29849. /* .isItemList > div {
  29850. color: #fff !important;
  29851. } */
  29852. .tool_work_box {
  29853. width: 100%;
  29854. padding: 0 37px 0;
  29855. box-sizing: border-box;
  29856. }
  29857. .tool_box {
  29858. width: 100%;
  29859. padding: 0 0 0 20px;
  29860. }
  29861. .tool_type_box {
  29862. display: flex;
  29863. flex-direction: row;
  29864. align-items: baseline;
  29865. flex-wrap: nowrap;
  29866. justify-content: flex-start;
  29867. position: relative;
  29868. }
  29869. .toolSort {
  29870. display: flex;
  29871. flex-direction: row;
  29872. flex-wrap: wrap;
  29873. justify-content: flex-start;
  29874. align-items: flex-start;
  29875. padding: 0 0 15px 0;
  29876. }
  29877. .toolSort > div {
  29878. margin: 0 10px 0 0;
  29879. width: 135px;
  29880. box-sizing: border-box;
  29881. border: 2px solid transparent;
  29882. }
  29883. .tools {
  29884. width: 100%;
  29885. display: flex;
  29886. flex-direction: column;
  29887. flex-wrap: nowrap;
  29888. align-items: flex-start;
  29889. }
  29890. .whiteBIcon {
  29891. width: fit-content;
  29892. cursor: pointer;
  29893. display: flex;
  29894. flex-direction: column;
  29895. flex-wrap: nowrap;
  29896. align-items: center;
  29897. font-size: 14px;
  29898. }
  29899. .tool:hover {
  29900. border: 2px solid #a5c7ff;
  29901. border-radius: 5px;
  29902. }
  29903. .whiteBIcon > img {
  29904. width: 65px;
  29905. height: 100%;
  29906. }
  29907. .whiteBIcon > img {
  29908. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29909. border-radius: 15px;
  29910. }
  29911. .check {
  29912. /* width: 20px;
  29913. height: 20px; */
  29914. cursor: pointer;
  29915. margin: 10px 0;
  29916. position: absolute;
  29917. right: 2px;
  29918. top: -5px;
  29919. }
  29920. .noChoose,
  29921. .isChoose {
  29922. width: 15px;
  29923. height: 15px;
  29924. border-radius: 50%;
  29925. border: 1px solid #adadad;
  29926. }
  29927. .isChoose {
  29928. border: 4px solid #0363ff !important;
  29929. width: 10px;
  29930. height: 10px;
  29931. }
  29932. .isToolChoose {
  29933. border: 2px solid #5394ff !important;
  29934. border-radius: 5px;
  29935. box-shadow: 0 0 6px 0px #5394ff;
  29936. }
  29937. .checkDiv {
  29938. display: flex;
  29939. align-items: center;
  29940. }
  29941. .checkDiv span {
  29942. margin-left: 5px;
  29943. color: #858585;
  29944. }
  29945. .check img {
  29946. width: 20px;
  29947. height: 20px;
  29948. }
  29949. .lockTaskIcon {
  29950. width: 20px;
  29951. height: 20px;
  29952. position: absolute;
  29953. right: 10px;
  29954. top: 10px;
  29955. }
  29956. .lockTaskIcon > img {
  29957. width: 100%;
  29958. height: 100%;
  29959. }
  29960. .pick_box {
  29961. display: flex;
  29962. align-items: flex-start;
  29963. flex-wrap: wrap;
  29964. }
  29965. .selectBox {
  29966. width: 110px;
  29967. margin-left: 10px;
  29968. margin: 0 10px 0 auto;
  29969. }
  29970. .selectBox >>> .el-input__inner {
  29971. height: 30px;
  29972. line-height: 30px;
  29973. }
  29974. .selectBox >>> .el-input__icon {
  29975. line-height: 30px;
  29976. }
  29977. .sentenceTitle {
  29978. display: flex;
  29979. flex-direction: row;
  29980. flex-wrap: nowrap;
  29981. align-items: center;
  29982. }
  29983. .sentenceTitle::before {
  29984. content: attr(index);
  29985. background: #3681fc;
  29986. border-radius: 50%;
  29987. color: #fff;
  29988. width: 25px;
  29989. height: 25px;
  29990. min-width: 25px;
  29991. min-height: 25px;
  29992. text-align: center;
  29993. line-height: 25px;
  29994. margin-right: 5px;
  29995. }
  29996. .hfBox {
  29997. padding: 10px;
  29998. box-sizing: border-box;
  29999. }
  30000. .whoReplyWho {
  30001. display: flex;
  30002. flex-direction: row;
  30003. flex-wrap: nowrap;
  30004. align-items: baseline;
  30005. justify-content: flex-start;
  30006. }
  30007. .hfBottom {
  30008. display: flex;
  30009. flex-direction: row;
  30010. flex-wrap: nowrap;
  30011. align-items: center;
  30012. justify-content: space-between;
  30013. font-size: 14px;
  30014. }
  30015. .deleteHfItem {
  30016. cursor: pointer;
  30017. width: 20px;
  30018. height: 20px;
  30019. }
  30020. .deleteHfItem > img {
  30021. width: 100%;
  30022. height: 100%;
  30023. }
  30024. .whoReplyWho > .hfImg {
  30025. width: 12px;
  30026. height: 12px;
  30027. margin: 0 5px;
  30028. }
  30029. .whoReplyWho > .hfImg > img {
  30030. width: 100%;
  30031. height: 100%;
  30032. }
  30033. .hfContent {
  30034. padding-top: 10px;
  30035. box-sizing: border-box;
  30036. display: -webkit-box;
  30037. overflow: hidden;
  30038. white-space: normal !important;
  30039. text-overflow: ellipsis;
  30040. word-wrap: break-word;
  30041. -webkit-box-orient: vertical;
  30042. }
  30043. .hfTime {
  30044. text-align: left;
  30045. box-sizing: border-box;
  30046. padding: 10px 0 10px 0px;
  30047. color: #bfbfbf;
  30048. font-size: 14px;
  30049. }
  30050. .btnAllNT {
  30051. position: fixed;
  30052. bottom: 100px;
  30053. right: 40px;
  30054. z-index: 999;
  30055. display: flex;
  30056. flex-direction: row;
  30057. }
  30058. .btnAllNT > img {
  30059. cursor: pointer;
  30060. width: 80px;
  30061. }
  30062. .toolMask {
  30063. position: fixed;
  30064. width: 100%;
  30065. height: 100%;
  30066. background: #3f3c3c;
  30067. opacity: 0.5;
  30068. top: 0;
  30069. left: 0;
  30070. z-index: 999;
  30071. }
  30072. .addToolCss {
  30073. position: fixed;
  30074. z-index: 999;
  30075. background: #fff;
  30076. right: 5%;
  30077. bottom: 18%;
  30078. min-width: 1035px;
  30079. min-height: 300px;
  30080. border-radius: 10px;
  30081. box-shadow: 0 0 8px 1px #b2b2b2;
  30082. }
  30083. .toolTop {
  30084. display: flex;
  30085. flex-direction: row;
  30086. flex-wrap: nowrap;
  30087. justify-content: space-between;
  30088. align-items: center;
  30089. padding: 20px;
  30090. }
  30091. .toolTop > div:nth-child(2) {
  30092. width: 15px;
  30093. height: 15px;
  30094. padding-right: 10px;
  30095. cursor: pointer;
  30096. }
  30097. .toolTop > div:nth-child(2) > img {
  30098. width: 100%;
  30099. height: 100%;
  30100. }
  30101. .fullStyle >>> .el-dialog__body {
  30102. height: calc(100% - 125px) !important;
  30103. box-sizing: border-box;
  30104. padding: 30px 0 !important;
  30105. background: #fff !important;
  30106. }
  30107. .fullStyle >>> .el-dialog {
  30108. width: 100% !important;
  30109. max-width: 100% !important;
  30110. height: 100% !important;
  30111. margin: 0 !important;
  30112. }
  30113. .fullStyle {
  30114. width: 100% !important;
  30115. max-width: 100% !important;
  30116. height: 100% !important;
  30117. margin: 0 auto !important;
  30118. }
  30119. .fullStyle >>> .el-dialog__footer {
  30120. background: #fff !important;
  30121. }
  30122. .engUpBox {
  30123. width: 100%;
  30124. height: 100%;
  30125. }
  30126. .engTitle,
  30127. .engText {
  30128. display: flex;
  30129. flex-direction: row;
  30130. flex-wrap: nowrap;
  30131. align-items: flex-start;
  30132. padding: 0 20px 20px 20px;
  30133. box-sizing: border-box;
  30134. }
  30135. .engTitle > .div:first-child,
  30136. .engText > div:first-child {
  30137. min-width: 75px;
  30138. }
  30139. .correctBox {
  30140. width: 100%;
  30141. display: flex;
  30142. flex-direction: row;
  30143. flex-wrap: nowrap;
  30144. align-items: flex-start;
  30145. }
  30146. .oldBox {
  30147. width: 50%;
  30148. height: 100%;
  30149. display: flex;
  30150. flex-direction: column;
  30151. flex-wrap: nowrap;
  30152. align-items: center;
  30153. border-top: 1px solid #d9d9d9;
  30154. border-left: 1px solid #d9d9d9;
  30155. border-right: 1px solid #d9d9d9;
  30156. }
  30157. .oldBox > div:first-child {
  30158. width: 100%;
  30159. text-align: center;
  30160. background: #d9d9d9;
  30161. height: 35px;
  30162. line-height: 35px;
  30163. font-weight: bold;
  30164. }
  30165. .oldText {
  30166. width: 100%;
  30167. height: calc(100% - 35px);
  30168. overflow: auto;
  30169. margin: 10px 0;
  30170. display: flex;
  30171. flex-direction: column;
  30172. flex-wrap: nowrap;
  30173. align-content: center;
  30174. align-items: center;
  30175. }
  30176. .detailBox {
  30177. width: 50%;
  30178. padding: 10px;
  30179. background: #f6f6f6;
  30180. border-radius: 5px;
  30181. }
  30182. .oldDetail,
  30183. .oldDetail1 {
  30184. padding-bottom: 30px;
  30185. }
  30186. .oldImg {
  30187. width: 30px;
  30188. height: 30px;
  30189. }
  30190. .oldImg > img {
  30191. width: 100%;
  30192. height: 100%;
  30193. }
  30194. .allName {
  30195. min-width: 200px;
  30196. white-space: nowrap;
  30197. overflow: hidden;
  30198. text-overflow: ellipsis;
  30199. word-break: break-word;
  30200. cursor: pointer;
  30201. text-align: center;
  30202. border: 1px solid #bcc2cc;
  30203. box-sizing: border-box;
  30204. }
  30205. .engUpTop {
  30206. max-height: 300px;
  30207. overflow: auto;
  30208. }
  30209. .isUpdateToolDetailClass {
  30210. padding: 0 !important;
  30211. }
  30212. .isUpdateToolDetailClass textarea {
  30213. padding: 12px;
  30214. font-size: 16px;
  30215. min-height: 100%;
  30216. width: 100%;
  30217. box-sizing: border-box;
  30218. outline: none;
  30219. border: none;
  30220. line-height: 30px;
  30221. resize: none;
  30222. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  30223. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  30224. color: #838383;
  30225. }
  30226. .show_taskD {
  30227. min-width: fit-content;
  30228. margin-left: 10px;
  30229. display: flex;
  30230. align-items: center;
  30231. font-size: 14px;
  30232. cursor: pointer;
  30233. color: #717c8d;
  30234. }
  30235. .show_taskD > img {
  30236. width: 15px;
  30237. margin-right: 5px;
  30238. transition: 0.2s all;
  30239. transform: rotate(-90deg);
  30240. }
  30241. .show_taskD.show > img {
  30242. transform: rotate(0deg);
  30243. }
  30244. .correctCss {
  30245. position: absolute;
  30246. bottom: -70px;
  30247. background: #409eff;
  30248. color: #fff;
  30249. }
  30250. .ScoreBtn {
  30251. background: rgba(87, 159, 248, 1);
  30252. display: flex;
  30253. justify-content: center;
  30254. align-items: center;
  30255. color: #fff;
  30256. font-size: 14px;
  30257. padding: 8px 12px;
  30258. border-radius: 5px;
  30259. cursor: pointer;
  30260. }
  30261. .max-height-popover .el-popover {
  30262. min-height: 200px;
  30263. max-height: 400px; /* 设置最大高度 */
  30264. overflow: auto; /* 超出部分显示滚动条 */
  30265. }
  30266. .blueRootCss {
  30267. display: block;
  30268. margin-right: 5px;
  30269. }
  30270. .stuLookScore {
  30271. position: absolute;
  30272. top: 12px;
  30273. right: 40px;
  30274. background: #0000008f;
  30275. border-radius: 5px;
  30276. padding: 3px 5px;
  30277. font-size: 14px;
  30278. color: #fff;
  30279. cursor: pointer;
  30280. }
  30281. div::-webkit-scrollbar {
  30282. width: 10px;
  30283. height: 6px;
  30284. }
  30285. .Ovh{
  30286. margin: 5px 0;
  30287. width: 4em;
  30288. -webkit-line-clamp: 2;
  30289. display: -webkit-box;
  30290. -webkit-box-orient: vertical;
  30291. overflow: hidden;
  30292. text-overflow: ellipsis;
  30293. }
  30294. .renderedFor >>> .katex {
  30295. font-size: 18px;
  30296. width: 100%;
  30297. white-space: normal;
  30298. font-family: '黑体' !important;
  30299. }
  30300. .renderedFor >>> .katex .base{
  30301. display: inline !important;
  30302. display: contents !important;
  30303. }
  30304. .renderedFor>>> .katex .base .cjk_fallback{
  30305. white-space: normal !important;
  30306. display: inline !important;
  30307. }
  30308. .notop >>> .vjs_video_3-dimensions.vjs-fluid{
  30309. padding-top: 0 !important;
  30310. }
  30311. </style>