studyStudent.vue 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121
  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"
  563. :class="contentDialog == false ? 'isAllWidth' : ''"
  564. :playsinline="true"
  565. :options="playerO[taskCount]"
  566. @play="onPlayerPlay($event)"
  567. style="width: 100%; height: 100%; 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>
  854. <div
  855. class="fileC_box"
  856. v-if="fileC[taskCount].length > 0"
  857. >
  858. <div class="fileC_title">以下文件不支持预览</div>
  859. <div
  860. class="vedioTimeBox"
  861. v-for="(vitem, vindex) in fileC[taskCount]"
  862. :key="vindex + '1'"
  863. >
  864. <div class="navListItem" v-if="vitem.type == 12">
  865. <div class="navText" style="color: #acb4bf">
  866. <span v-if="vitem.text">{{ vitem.text }}-</span
  867. >{{ vitem.name }}
  868. </div>
  869. <div
  870. class="downIcon"
  871. @click="downloadFile2(vitem)"
  872. >
  873. <img
  874. src="../../assets/icon/newIcon/down.png"
  875. alt
  876. />
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. </div>
  886. <div style="width: calc(100% - 315px)">
  887. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  888. <!-- <el-button
  889. type="primary"
  890. class="newButton"
  891. @click="checkFileFull(showType, pptImgUrl1)"
  892. >全屏查看</el-button
  893. >
  894. <el-button
  895. type="primary"
  896. class="newButton"
  897. @click="downloadFile(pptImgUrl1)"
  898. v-if="showType != 2"
  899. >文件下载</el-button
  900. > -->
  901. <el-button
  902. class="newButton"
  903. v-if="
  904. showType == 2 &&
  905. pptImgUrl1.indexOf(
  906. 'https://view.officeapps.live.com/op/view.aspx?src='
  907. ) == -1
  908. "
  909. type="primary"
  910. @click="openLine(pptImgUrl1)"
  911. >打开链接
  912. </el-button>
  913. </div>
  914. <!-- <div
  915. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  916. v-if="showType == 1"
  917. >
  918. <el-button
  919. type="primary"
  920. class="newButton"
  921. @click="checkFileFull(showType, text)"
  922. >全屏查看</el-button
  923. >
  924. </div> -->
  925. </div>
  926. </div>
  927. </div>
  928. <div class="student_body" v-resize="resize">
  929. <div
  930. class="vedioBox"
  931. :style="{
  932. borderRadius:
  933. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  934. .taskDetail == '' &&
  935. vChapterData[taskCount].length == 0 &&
  936. fileC[taskCount].length == 0
  937. ? '0 0 20px 20px'
  938. : '20px'
  939. }"
  940. v-if="
  941. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  942. .toolChoose[0].tool &&
  943. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  944. .toolChoose[0].tool.length > 0
  945. "
  946. >
  947. <div
  948. class="toolHeng2"
  949. style="position: relative"
  950. v-if="
  951. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  952. .toolChoose[0].tool &&
  953. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  954. .toolChoose[0].tool.length &&
  955. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  956. .toolChoose[0].tool.length > 0
  957. "
  958. >
  959. <div class="workNav">工作区</div>
  960. <div
  961. class="filebox"
  962. style="flex-wrap: nowrap"
  963. v-for="(tool, toolIndex) in chapInfoList[courseType]
  964. .chapterInfo[0].taskJson[taskCount].toolChoose"
  965. :key="toolIndex"
  966. >
  967. <div class="bzBox">
  968. <div class="yCss"></div>
  969. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  970. 工具{{ toolIndex + 1 }}
  971. </div>
  972. <div
  973. v-if="timeWorkList[toolIndex].length > 0"
  974. style="margin: 0 0 0 10px"
  975. >
  976. {{
  977. timeWorkList[toolIndex][0].time
  978. ? "时间:" + timeWorkList[toolIndex][0].time
  979. : ""
  980. }}
  981. </div>
  982. </div>
  983. <div class="toolBox">
  984. <div>
  985. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  986. :key="indexTool"-->
  987. <!-- <div class="iframeBox">
  988. <div
  989. class="addPoint isBorder"
  990. v-for="(tooC, toolCIndex) in tool.tool"
  991. :key="toolCIndex"
  992. >
  993. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  994. <div
  995. class="iframeName"
  996. >
  997. 电子白板
  998. </div>
  999. <iframe
  1000. src="https://iwb.cocorobo.cn/"
  1001. ref="whiteBoard"
  1002. ></iframe>
  1003. </div>
  1004. </div>
  1005. </div>-->
  1006. <div class="noiframeBox">
  1007. <div
  1008. class="addPoint"
  1009. v-for="(tooC, toolCIndex) in tool.tool"
  1010. :key="toolCIndex"
  1011. >
  1012. <div v-if="tooC == 1">
  1013. <img
  1014. src="../../assets/icon/secondToolList/whiteBoard.png"
  1015. alt
  1016. @click="addTools(tooC, toolIndex, taskCount)"
  1017. />
  1018. <div style="margin: 5px 0">电子白板</div>
  1019. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1020. style="position: absolute;right: 33px;top: -30px;">
  1021. 分析
  1022. </div>
  1023. </div>
  1024. <div v-if="tooC == 3">
  1025. <img
  1026. src="../../assets/icon/secondToolList/mindMapping.png"
  1027. alt
  1028. @click="addTools(tooC, toolIndex, taskCount)"
  1029. />
  1030. <div style="margin: 5px 0">思维导图</div>
  1031. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1032. style="position: absolute;right: 33px;top: -30px;">
  1033. 分析
  1034. </div>
  1035. </div>
  1036. <div v-if="tooC == 6">
  1037. <img
  1038. src="../../assets/icon/secondToolList/doc.png"
  1039. alt
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. />
  1042. <div style="margin: 5px 0">协同文档</div>
  1043. </div>
  1044. <div v-if="tooC == 7">
  1045. <img
  1046. src="../../assets/icon/secondToolList/mindNetwork.png"
  1047. alt
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. />
  1050. <div style="margin: 5px 0">思维网格</div>
  1051. <!-- && worksStudent[toolIndex].length>0 -->
  1052. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1053. style="position: absolute;right: 33px;top: -30px;">
  1054. 分析
  1055. </div>
  1056. </div>
  1057. <div v-if="tooC == 8">
  1058. <img
  1059. src="../../assets/icon/secondToolList/library.png"
  1060. alt
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. />
  1063. <div style="margin: 5px 0">素材库</div>
  1064. </div>
  1065. <div v-if="tooC == 17">
  1066. <img
  1067. src="../../assets/icon/secondToolList/library.png"
  1068. alt
  1069. @click="addTools(tooC, toolIndex, taskCount)"
  1070. />
  1071. <div style="margin: 5px 0">学习资料</div>
  1072. </div>
  1073. <div v-if="tooC == 2">
  1074. <img
  1075. @click="addTools(tooC, toolIndex, taskCount)"
  1076. src="../../assets/icon/secondToolList/note.png"
  1077. alt
  1078. />
  1079. <div style="margin: 5px 0">便签</div>
  1080. </div>
  1081. <div v-if="tooC == 4">
  1082. <img
  1083. @click="addTools(tooC, toolIndex, taskCount)"
  1084. src="../../assets/icon/thirdToolList/ask.png"
  1085. alt
  1086. />
  1087. <div style="margin: 5px 0">问卷调查</div>
  1088. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1089. style="position: absolute;right: 153px;top: -30px;">
  1090. 分析
  1091. </div>
  1092. <div
  1093. class="upload_toolBtn"
  1094. v-if="tType === '1'"
  1095. @click="
  1096. openStatisticalAnalysis(
  1097. tooC,
  1098. toolIndex,
  1099. taskCount,
  1100. 45
  1101. )
  1102. "
  1103. style="position: absolute;right: 33px;top: -30px;"
  1104. >
  1105. 统计分析
  1106. </div>
  1107. </div>
  1108. <div v-if="tooC == 45">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/thirdToolList/choose.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">选择题</div>
  1115. <div
  1116. class="upload_toolBtn"
  1117. v-if="tType == 1"
  1118. @click="
  1119. openChoseWorksDetailDialog(
  1120. tooC,
  1121. toolIndex,
  1122. taskCount,
  1123. 45
  1124. )
  1125. "
  1126. style="position: absolute;right: 33px;top: -30px;"
  1127. >
  1128. 分析
  1129. </div>
  1130. </div>
  1131. <!-- <div v-if="tooC == 5">
  1132. <img
  1133. @click="addTools(tooC, toolIndex, taskCount)"
  1134. src="../../assets/icon/thirdToolList/score.png"
  1135. alt
  1136. />
  1137. <div style="margin: 5px 0">量规评分</div>
  1138. </div> -->
  1139. <div v-if="tooC == 10">
  1140. <img
  1141. @click="addTools(tooC, toolIndex, taskCount)"
  1142. src="../../assets/icon/thirdToolList/time.png"
  1143. alt
  1144. />
  1145. <div style="margin: 5px 0">倒计时</div>
  1146. </div>
  1147. <div v-if="tooC == 15">
  1148. <img
  1149. @click="addTools(tooC, toolIndex, taskCount)"
  1150. src="../../assets/icon/thirdToolList/answer.png"
  1151. alt
  1152. />
  1153. <div style="margin: 5px 0">问答</div>
  1154. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1155. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1156. 分析
  1157. </div>
  1158. </div>
  1159. <div v-if="tooC == 26">
  1160. <img
  1161. @click="addTools(tooC, toolIndex, taskCount)"
  1162. src="../../assets/icon/thirdToolList/courseDesign.png"
  1163. alt
  1164. />
  1165. <div style="margin: 5px 0">课程设计</div>
  1166. </div>
  1167. <div v-if="tooC == 18">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">训练服务器</div>
  1174. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1175. style="position: absolute;right: 33px;top: -30px;">
  1176. 分析
  1177. </div>
  1178. </div>
  1179. <div v-if="tooC == 16">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/thirdToolList/work.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">作业提交</div>
  1186. </div>
  1187. <div v-if="tooC == 50">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/thirdToolList/plwork.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">批量上传</div>
  1194. </div>
  1195. <div v-if="tooC == 21">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/program.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">AIoT Blockly</div>
  1202. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1203. style="position: absolute;right: 33px;top: -30px;">
  1204. 分析
  1205. </div>
  1206. </div>
  1207. <!-- <div v-if="tooC == 22">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/fourthToolList/program.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">AI体验</div>
  1214. </div> -->
  1215. <div v-if="tooC == 23">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">AI Python</div>
  1222. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1223. style="position: absolute;right: 33px;top: -30px;">
  1224. 分析
  1225. </div>
  1226. </div>
  1227. <div v-if="tooC == 24">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/AIprogram.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">AI Blockly</div>
  1234. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1235. style="position: absolute;right: 33px;top: -30px;">
  1236. 分析
  1237. </div>
  1238. </div>
  1239. <div v-if="tooC == 25">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/thirdToolList/evalua.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">目标管理</div>
  1246. </div>
  1247. <div v-if="tooC == 31">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/secondToolList/networkPanel.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">数学画板</div>
  1254. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1255. style="position: absolute;right: 33px;top: -30px;">
  1256. 分析
  1257. </div>
  1258. </div>
  1259. <div v-if="tooC == 28">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/secondToolList/translation.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">翻译</div>
  1266. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1267. style="position: absolute;right: 33px;top: -30px;">
  1268. 分析
  1269. </div>
  1270. </div>
  1271. <div v-if="tooC == 37">
  1272. <img
  1273. @click="addTools(tooC, toolIndex, taskCount)"
  1274. src="../../assets/icon/secondToolList/mohe.png"
  1275. alt
  1276. />
  1277. <div style="margin: 5px 0">魔盒识字</div>
  1278. </div>
  1279. <div v-if="tooC == 38">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../../assets/icon/secondToolList/24game.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">24点</div>
  1286. </div>
  1287. <div v-if="tooC == 39">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../../assets/icon/secondToolList/GeoGebra.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">GeoGebra</div>
  1294. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1295. style="position: absolute;right: 33px;top: -30px;">
  1296. 分析
  1297. </div>
  1298. </div>
  1299. <div v-if="tooC == 32">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/thirdToolList/code.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">源码编辑</div>
  1306. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1307. style="position: absolute;right: 153px;top: -42px;">
  1308. 分析
  1309. </div>
  1310. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1311. style="position: absolute;left: 110px;bottom: 30px;">
  1312. 上传文件
  1313. <input type="file" accept="*" style="display: none"
  1314. @change="beforeUpload1($event, 7, toolIndex)" />
  1315. </div> -->
  1316. </div>
  1317. <div v-if="tooC == 40">
  1318. <img
  1319. @click="addTools(tooC, toolIndex, taskCount)"
  1320. src="../../assets/icon/secondToolList/eval.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,40)"
  1325. style="position: absolute;right: 33px;top: -30px;">
  1326. 分析
  1327. </div>
  1328. </div>
  1329. <div v-if="tooC == 41">
  1330. <img
  1331. @click="addTools(tooC, toolIndex, taskCount)"
  1332. src="../../assets/icon/thirdToolList/select.png"
  1333. alt
  1334. />
  1335. <div style="margin: 5px 0">选择匹配</div>
  1336. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1337. style="position: absolute;right: 33px;top: -30px;">
  1338. 分析
  1339. </div>
  1340. </div>
  1341. <div v-if="tooC == 44">
  1342. <img
  1343. @click="addTools(tooC, toolIndex, taskCount)"
  1344. src="../../assets/icon/thirdToolList/hanClass.png"
  1345. alt
  1346. />
  1347. <div style="margin: 5px 0">汉字宫</div>
  1348. </div>
  1349. <div v-if="tooC == 47">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../../assets/icon/fourthToolList/conSentences.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">排序</div>
  1356. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1357. style="position: absolute;right: 33px;top: -30px;">
  1358. 分析
  1359. </div>
  1360. </div>
  1361. <div v-if="tooC == 48">
  1362. <img
  1363. @click="addTools(tooC, toolIndex, taskCount)"
  1364. src="../../assets/icon/fourthToolList/table.png"
  1365. alt
  1366. />
  1367. <div style="margin: 5px 0">表格</div>
  1368. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1369. style="position: absolute;right: 33px;top: -30px;">
  1370. 分析
  1371. </div>
  1372. </div>
  1373. <div v-if="tooC == 52">
  1374. <img
  1375. @click="addTools(tooC, toolIndex, taskCount)"
  1376. src="../../assets/icon/fourthToolList/text.png"
  1377. alt
  1378. />
  1379. <div style="margin: 5px 0">文档</div>
  1380. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1381. style="position: absolute;right: 33px;top: -30px;">
  1382. 分析
  1383. </div>
  1384. </div>
  1385. <div v-if="tooC == 49">
  1386. <img
  1387. @click="addTools(tooC, toolIndex, taskCount)"
  1388. src="../../assets/icon/fourthToolList/group.png"
  1389. alt
  1390. />
  1391. <div style="margin: 5px 0">学生分组</div>
  1392. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1393. style="position: absolute;right: 33px;top: -30px;">
  1394. 分析
  1395. </div>
  1396. </div>
  1397. <div v-if="tooC == 57">
  1398. <img
  1399. @click="addTools(tooC, toolIndex, taskCount)"
  1400. src="../../assets/icon/fourthToolList/cocopi.png"
  1401. alt
  1402. />
  1403. <div style="margin: 5px 0">CocoPi</div>
  1404. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1405. style="position: absolute;right: 33px;top: -30px;">
  1406. 分析
  1407. </div>
  1408. </div>
  1409. <div v-if="tooC == 58">
  1410. <img
  1411. @click="addTools(tooC, toolIndex, taskCount)"
  1412. src="../../assets/icon/fourthToolList/car.png"
  1413. alt
  1414. />
  1415. <div style="margin: 5px 0">模拟驾驶</div>
  1416. </div>
  1417. <div v-if="tooC == 59">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../../assets/icon/fourthToolList/lineSearch.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">路径搜索</div>
  1424. </div>
  1425. <div v-if="tooC == 60">
  1426. <img
  1427. @click="addTools(tooC, toolIndex, taskCount)"
  1428. src="../../assets/icon/fourthToolList/deepLearning.png"
  1429. alt
  1430. />
  1431. <div style="margin: 5px 0">深度学习</div>
  1432. </div>
  1433. <div v-if="tooC == 61">
  1434. <img
  1435. @click="addTools(tooC, toolIndex, taskCount)"
  1436. src="../../assets/icon/fourthToolList/allHistory.png"
  1437. alt
  1438. />
  1439. <div style="margin: 5px 0">全历史</div>
  1440. </div>
  1441. <div v-if="tooC == 62">
  1442. <img
  1443. @click="addTools(tooC, toolIndex, taskCount)"
  1444. src="../../assets/icon/fourthToolList/interVideo.png"
  1445. alt
  1446. />
  1447. <div style="margin: 5px 0">交互视频</div>
  1448. </div>
  1449. <div v-if="tooC == 63">
  1450. <img
  1451. @click="addTools(tooC, toolIndex, taskCount)"
  1452. src="../../assets/icon/fourthToolList/Wood.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">海龟编程</div>
  1456. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1457. style="position: absolute;right: 33px;top: -30px;">
  1458. 分析
  1459. </div>
  1460. </div>
  1461. <div v-if="tooC == 71">
  1462. <img
  1463. @click="addTools(tooC, toolIndex, taskCount)"
  1464. src="../../assets/icon/fourthToolList/chatgpt.png"
  1465. alt
  1466. />
  1467. <div style="margin: 5px 0">AI智能体</div>
  1468. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1469. style="position: absolute;right: 33px;top: -30px;">
  1470. 分析
  1471. </div>
  1472. </div>
  1473. <div v-if="tooC == 72">
  1474. <img
  1475. style="height: 85px;object-fit: cover;"
  1476. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. :src="tool.appJson.json.icon"
  1479. alt
  1480. />
  1481. <img
  1482. v-else
  1483. @click="addTools(tooC, toolIndex, taskCount)"
  1484. src="../../assets/icon/firstToolList/appStore.png"
  1485. alt
  1486. />
  1487. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1488. <!-- content to trigger tooltip here -->
  1489. <div class="Ovh">
  1490. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1491. </div>
  1492. </el-tooltip>
  1493. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1494. style="position: absolute;right: 33px;top: -30px;">
  1495. 分析
  1496. </div>
  1497. </div>
  1498. <div v-if="tooC == 65">
  1499. <img
  1500. @click="addTools(tooC, toolIndex, taskCount)"
  1501. src="../../assets/icon/firstToolList/pickPeople.png"
  1502. alt
  1503. />
  1504. <div style="margin: 5px 0">挑人</div>
  1505. </div>
  1506. <div v-if="tooC == 66">
  1507. <img
  1508. @click="addTools(tooC, toolIndex, taskCount)"
  1509. src="../../assets/icon/secondToolList/formulaEdi.png"
  1510. alt
  1511. />
  1512. <div style="margin: 5px 0">公式编辑</div>
  1513. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1514. style="position: absolute;right: 33px;top: -30px;">
  1515. 分析
  1516. </div>
  1517. </div>
  1518. <div v-if="tooC == 67">
  1519. <img
  1520. @click="addTools(tooC, toolIndex, taskCount)"
  1521. src="../../assets/icon/secondToolList/molStr.png"
  1522. alt
  1523. />
  1524. <div style="margin: 5px 0">分子结构</div>
  1525. </div>
  1526. <div v-if="tooC == 68">
  1527. <img
  1528. @click="addTools(tooC, toolIndex, taskCount)"
  1529. src="../../assets/icon/secondToolList/timeAxis.png"
  1530. alt
  1531. />
  1532. <div style="margin: 5px 0">时间轴</div>
  1533. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1534. style="position: absolute;right: 33px;top: -30px;">
  1535. 分析
  1536. </div> -->
  1537. </div>
  1538. <div v-if="tooC == 69">
  1539. <img
  1540. @click="addTools(tooC, toolIndex, taskCount)"
  1541. src="../../assets/icon/secondToolList/english.png"
  1542. alt
  1543. />
  1544. <div style="margin: 5px 0">英语写作</div>
  1545. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1546. style="position: absolute;right: 33px;top: -30px;">
  1547. 分析
  1548. </div>
  1549. </div>
  1550. <div v-if="tooC == 70">
  1551. <img
  1552. @click="addTools(tooC, toolIndex, taskCount)"
  1553. src="../../assets/icon/thirdToolList/englishVoice.png"
  1554. alt
  1555. />
  1556. <div style="margin: 5px 0">英语口语</div>
  1557. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1558. style="position: absolute;right: 33px;top: -30px;">
  1559. 分析
  1560. </div>
  1561. </div>
  1562. </div>
  1563. </div>
  1564. </div>
  1565. <div
  1566. class="tooldetail renderedFor"
  1567. v-if="tool.toolDetail != ''"
  1568. :class="{
  1569. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1570. }"
  1571. >
  1572. <!-- <div class="toolTitle">工具描述</div> -->
  1573. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1574. <div
  1575. style="height:100%;"
  1576. v-html="renderedFormula(tool.toolDetail)"
  1577. v-if="toolDetailIndex != toolIndex"
  1578. ></div>
  1579. <div v-else @click.stop="" style="height:100%;">
  1580. <textarea
  1581. @change="
  1582. () => {
  1583. $forceUpdate();
  1584. }
  1585. "
  1586. class="checkTextArea"
  1587. rows="3"
  1588. v-autoHeight="70"
  1589. type="text"
  1590. placeholder="请输入任务描述"
  1591. v-model="updateToolDetailInner"
  1592. ></textarea>
  1593. </div>
  1594. </div>
  1595. <el-button
  1596. type="primary"
  1597. v-if="tool.tool[0] == 32"
  1598. style="position: absolute; right: 30px; top: -45px"
  1599. @click="addImg($event)"
  1600. >上传作业<input
  1601. type="file"
  1602. accept="*"
  1603. style="display: none"
  1604. @change="beforeUpload1($event, 7, toolIndex)"
  1605. /></el-button>
  1606. <el-button
  1607. type="primary"
  1608. v-if="tool.tool[0] == 15"
  1609. style="position: absolute; right: 30px; top: -45px"
  1610. @click="openWordCloud(toolIndex)"
  1611. >生成词云</el-button
  1612. >
  1613. <el-button
  1614. type="primary"
  1615. v-if="
  1616. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1617. "
  1618. style="position: absolute; right: 30px; top: -45px"
  1619. @click="uploadWorks(toolIndex)"
  1620. >导出作业</el-button
  1621. >
  1622. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1623. position: absolute;
  1624. right: 30px;
  1625. transform: translateY(-130%);
  1626. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1627. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1628. </div>
  1629. <div
  1630. v-if="
  1631. tType &&
  1632. tType == 2 &&
  1633. !sIsOpen &&
  1634. tool.tool.indexOf(16) != -1
  1635. "
  1636. class="worksBox"
  1637. >
  1638. <div
  1639. class="zuoyeYulan"
  1640. v-if="workStudent[toolIndex].length > 0"
  1641. >
  1642. <span class="worksTitle">作业预览</span>
  1643. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1644. </div>
  1645. <div
  1646. class="worksDetailBox"
  1647. v-if="workStudent[toolIndex].length > 0"
  1648. >
  1649. <div
  1650. class="works"
  1651. style="
  1652. width: 200px;
  1653. height: 140px;
  1654. margin: 10px 10px 10px 0;
  1655. box-shadow: 0 0 6px 1px #dfdada;
  1656. "
  1657. v-for="(w, wIndex) in workStudent[toolIndex]"
  1658. :key="wIndex"
  1659. >
  1660. <div class="workImg" v-if="w.type == 0">
  1661. <img
  1662. :src="w.works"
  1663. @click="previewImg(w.works, w)"
  1664. alt
  1665. />
  1666. <div
  1667. class="answerScore"
  1668. v-if="w.score"
  1669. @click.stop="openScore(w)"
  1670. :class="{
  1671. rightW:
  1672. w.userid == userid || tType == 1 || tType == 4
  1673. }"
  1674. >
  1675. {{ JSON.parse(w.score).wScore }}分
  1676. </div>
  1677. <div
  1678. class="answerScore"
  1679. @click.stop="openScore(w)"
  1680. v-else-if="courseDetail.userid == userid"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4
  1684. }"
  1685. >
  1686. 评分
  1687. </div>
  1688. <div
  1689. class="stuLookScore"
  1690. v-if="
  1691. w.userid == userid ||
  1692. (tType == 1 &&
  1693. courseDetail.state == 5 &&
  1694. ((chapInfoList[courseType].chapterInfo[0]
  1695. .taskJson[taskCount].eList &&
  1696. chapInfoList[courseType].chapterInfo[0]
  1697. .taskJson[taskCount].eList.length) ||
  1698. (tool.eList && tool.eList.length)))
  1699. "
  1700. >
  1701. <el-popover
  1702. placement="top"
  1703. width="318"
  1704. trigger="hover"
  1705. >
  1706. <markScore
  1707. :loading="AIloading[toolIndex][wIndex].loading"
  1708. :markScoreVisible="markScoreVisible"
  1709. :ref="`markSco${toolIndex}${wIndex}`"
  1710. @updateLoading="updateLoading"
  1711. @updateDocSco="updateDocSco"
  1712. @refreshOther="refreshOther"
  1713. @markScoreDig="markScoreDig"
  1714. :tool="tool"
  1715. :wIndex="wIndex"
  1716. :scoCon="w"
  1717. :toolIndex="toolIndex"
  1718. :key="refreshKey"
  1719. :stage="courseType"
  1720. :task="taskCount"
  1721. :scoTit="
  1722. chapInfoList[courseType].chapterInfo[0]
  1723. .taskJson[taskCount].eList
  1724. "
  1725. >
  1726. </markScore>
  1727. <div
  1728. @click="
  1729. markScoreDig2(
  1730. w.sName,
  1731. worksStudent,
  1732. w.userid,
  1733. toolIndex,
  1734. chapInfoList[courseType].chapterInfo[0]
  1735. .taskJson[taskCount].eList,
  1736. AIloading[toolIndex][wIndex].loading,
  1737. tool
  1738. )
  1739. "
  1740. slot="reference"
  1741. >
  1742. <span v-if="AIloading[toolIndex][wIndex].sco">
  1743. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1744. </span>
  1745. <span v-else>
  1746. 评分
  1747. </span>
  1748. </div>
  1749. </el-popover>
  1750. </div>
  1751. <img
  1752. class="deleteImg"
  1753. src="../../assets/deleteworks.png"
  1754. v-if="
  1755. w.userid == userid || tType == 1 || tType == 4
  1756. "
  1757. @click.stop="deleteWorks(w.wid)"
  1758. alt
  1759. />
  1760. </div>
  1761. <div class="workImg" v-if="w.type == 1">
  1762. <img :src="word" @click="openFile(w.works)" alt />
  1763. <div
  1764. class="answerScore"
  1765. v-if="w.score"
  1766. @click.stop="openScore(w)"
  1767. :class="{
  1768. rightW:
  1769. w.userid == userid || tType == 1 || tType == 4
  1770. }"
  1771. >
  1772. {{ JSON.parse(w.score).wScore }}分
  1773. </div>
  1774. <div
  1775. class="answerScore"
  1776. @click.stop="openScore(w)"
  1777. v-else-if="courseDetail.userid == userid"
  1778. :class="{
  1779. rightW:
  1780. w.userid == userid || tType == 1 || tType == 4
  1781. }"
  1782. >
  1783. 评分
  1784. </div>
  1785. <div
  1786. class="stuLookScore"
  1787. v-if="
  1788. w.userid == userid ||
  1789. (tType == 1 &&
  1790. courseDetail.state == 5 &&
  1791. ((chapInfoList[courseType].chapterInfo[0]
  1792. .taskJson[taskCount].eList &&
  1793. chapInfoList[courseType].chapterInfo[0]
  1794. .taskJson[taskCount].eList.length) ||
  1795. (tool.eList && tool.eList.length)))
  1796. "
  1797. >
  1798. <el-popover
  1799. placement="top"
  1800. width="318"
  1801. trigger="hover"
  1802. >
  1803. <markScore
  1804. :loading="AIloading[toolIndex][wIndex].loading"
  1805. :markScoreVisible="markScoreVisible"
  1806. :ref="`markSco${toolIndex}${wIndex}`"
  1807. @updateLoading="updateLoading"
  1808. @updateDocSco="updateDocSco"
  1809. @refreshOther="refreshOther"
  1810. @markScoreDig="markScoreDig"
  1811. :tool="tool"
  1812. :wIndex="wIndex"
  1813. :scoCon="w"
  1814. :toolIndex="toolIndex"
  1815. :key="refreshKey"
  1816. :stage="courseType"
  1817. :task="taskCount"
  1818. :scoTit="
  1819. chapInfoList[courseType].chapterInfo[0]
  1820. .taskJson[taskCount].eList
  1821. "
  1822. >
  1823. </markScore>
  1824. <div
  1825. @click="
  1826. markScoreDig2(
  1827. w.sName,
  1828. worksStudent,
  1829. w.userid,
  1830. toolIndex,
  1831. chapInfoList[courseType].chapterInfo[0]
  1832. .taskJson[taskCount].eList,
  1833. AIloading[toolIndex][wIndex].loading,
  1834. tool
  1835. )
  1836. "
  1837. slot="reference"
  1838. >
  1839. <span v-if="AIloading[toolIndex][wIndex].sco">
  1840. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1841. </span>
  1842. <span v-else>
  1843. 评分
  1844. </span>
  1845. </div>
  1846. </el-popover>
  1847. </div>
  1848. <img
  1849. class="deleteImg"
  1850. src="../../assets/deleteworks.png"
  1851. v-if="
  1852. w.userid == userid || tType == 1 || tType == 4
  1853. "
  1854. @click.stop="deleteWorks(w.wid)"
  1855. alt
  1856. />
  1857. </div>
  1858. <div class="workImg" v-if="w.type == 3">
  1859. <img
  1860. style="cursor: pointer"
  1861. :src="video"
  1862. @click="openVideo(w)"
  1863. alt
  1864. />
  1865. <div
  1866. class="answerScore"
  1867. v-if="w.score"
  1868. @click.stop="openScore(w)"
  1869. :class="{
  1870. rightW:
  1871. w.userid == userid || tType == 1 || tType == 4
  1872. }"
  1873. >
  1874. {{ JSON.parse(w.score).wScore }}分
  1875. </div>
  1876. <div
  1877. class="answerScore"
  1878. @click.stop="openScore(w)"
  1879. v-else-if="courseDetail.userid == userid"
  1880. :class="{
  1881. rightW:
  1882. w.userid == userid || tType == 1 || tType == 4
  1883. }"
  1884. >
  1885. 评分
  1886. </div>
  1887. <div
  1888. class="stuLookScore"
  1889. v-if="
  1890. w.userid == userid ||
  1891. (tType == 1 &&
  1892. courseDetail.state == 5 &&
  1893. ((chapInfoList[courseType].chapterInfo[0]
  1894. .taskJson[taskCount].eList &&
  1895. chapInfoList[courseType].chapterInfo[0]
  1896. .taskJson[taskCount].eList.length) ||
  1897. (tool.eList && tool.eList.length)))
  1898. "
  1899. >
  1900. <el-popover
  1901. placement="top"
  1902. width="318"
  1903. trigger="hover"
  1904. >
  1905. <markScore
  1906. :loading="AIloading[toolIndex][wIndex].loading"
  1907. :markScoreVisible="markScoreVisible"
  1908. :ref="`markSco${toolIndex}${wIndex}`"
  1909. @updateLoading="updateLoading"
  1910. @updateDocSco="updateDocSco"
  1911. @refreshOther="refreshOther"
  1912. @markScoreDig="markScoreDig"
  1913. :tool="tool"
  1914. :wIndex="wIndex"
  1915. :scoCon="w"
  1916. :toolIndex="toolIndex"
  1917. :key="refreshKey"
  1918. :stage="courseType"
  1919. :task="taskCount"
  1920. :scoTit="
  1921. chapInfoList[courseType].chapterInfo[0]
  1922. .taskJson[taskCount].eList
  1923. "
  1924. >
  1925. </markScore>
  1926. <div
  1927. @click="
  1928. markScoreDig2(
  1929. w.sName,
  1930. worksStudent,
  1931. w.userid,
  1932. toolIndex,
  1933. chapInfoList[courseType].chapterInfo[0]
  1934. .taskJson[taskCount].eList,
  1935. AIloading[toolIndex][wIndex].loading,
  1936. tool
  1937. )
  1938. "
  1939. slot="reference"
  1940. >
  1941. <span v-if="AIloading[toolIndex][wIndex].sco">
  1942. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1943. </span>
  1944. <span v-else>
  1945. 评分
  1946. </span>
  1947. </div>
  1948. </el-popover>
  1949. </div>
  1950. <img
  1951. class="deleteImg"
  1952. src="../../assets/deleteworks.png"
  1953. v-if="
  1954. w.userid == userid || tType == 1 || tType == 4
  1955. "
  1956. @click.stop="deleteWorks(w.wid)"
  1957. alt
  1958. />
  1959. </div>
  1960. <div class="workImg" v-if="w.type == 12">
  1961. <img
  1962. style="cursor: pointer"
  1963. :src="word2"
  1964. @click="downloadFile(w.works,w.userid)"
  1965. alt
  1966. />
  1967. <div
  1968. class="answerScore"
  1969. v-if="w.score"
  1970. @click.stop="openScore(w)"
  1971. :class="{
  1972. rightW:
  1973. w.userid == userid || tType == 1 || tType == 4
  1974. }"
  1975. >
  1976. {{ JSON.parse(w.score).wScore }}分
  1977. </div>
  1978. <div
  1979. class="answerScore"
  1980. @click.stop="openScore(w)"
  1981. v-else-if="courseDetail.userid == userid"
  1982. :class="{
  1983. rightW:
  1984. w.userid == userid || tType == 1 || tType == 4
  1985. }"
  1986. >
  1987. 评分
  1988. </div>
  1989. <div
  1990. class="stuLookScore"
  1991. v-if="
  1992. w.userid == userid ||
  1993. (tType == 1 &&
  1994. courseDetail.state == 5 &&
  1995. ((chapInfoList[courseType].chapterInfo[0]
  1996. .taskJson[taskCount].eList &&
  1997. chapInfoList[courseType].chapterInfo[0]
  1998. .taskJson[taskCount].eList.length) ||
  1999. (tool.eList && tool.eList.length)))
  2000. "
  2001. >
  2002. <el-popover
  2003. placement="top"
  2004. width="318"
  2005. trigger="hover"
  2006. >
  2007. <markScore
  2008. :loading="AIloading[toolIndex][wIndex].loading"
  2009. :markScoreVisible="markScoreVisible"
  2010. :ref="`markSco${toolIndex}${wIndex}`"
  2011. @updateLoading="updateLoading"
  2012. @updateDocSco="updateDocSco"
  2013. @refreshOther="refreshOther"
  2014. @markScoreDig="markScoreDig"
  2015. :tool="tool"
  2016. :wIndex="wIndex"
  2017. :scoCon="w"
  2018. :toolIndex="toolIndex"
  2019. :key="refreshKey"
  2020. :stage="courseType"
  2021. :task="taskCount"
  2022. :scoTit="
  2023. chapInfoList[courseType].chapterInfo[0]
  2024. .taskJson[taskCount].eList
  2025. "
  2026. >
  2027. </markScore>
  2028. <div
  2029. @click="
  2030. markScoreDig2(
  2031. w.sName,
  2032. worksStudent,
  2033. w.userid,
  2034. toolIndex,
  2035. chapInfoList[courseType].chapterInfo[0]
  2036. .taskJson[taskCount].eList,
  2037. AIloading[toolIndex][wIndex].loading,
  2038. tool
  2039. )
  2040. "
  2041. slot="reference"
  2042. >
  2043. <span v-if="AIloading[toolIndex][wIndex].sco">
  2044. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2045. </span>
  2046. <span v-else>
  2047. 评分
  2048. </span>
  2049. </div>
  2050. </el-popover>
  2051. </div>
  2052. <img
  2053. class="deleteImg"
  2054. src="../../assets/deleteworks.png"
  2055. v-if="
  2056. w.userid == userid || tType == 1 || tType == 4
  2057. "
  2058. @click.stop="deleteWorks(w.wid)"
  2059. alt
  2060. />
  2061. </div>
  2062. <div class="worksName">
  2063. <div>{{ w.sName }}</div>
  2064. </div>
  2065. </div>
  2066. </div>
  2067. </div>
  2068. <div
  2069. v-if="
  2070. tType &&
  2071. tType == 2 &&
  2072. !sIsOpen &&
  2073. tool.tool.indexOf(32) != -1
  2074. "
  2075. class="worksBox"
  2076. >
  2077. <div
  2078. class="zuoyeYulan"
  2079. v-if="workStudent[toolIndex].length > 0"
  2080. >
  2081. <span class="worksTitle">作业预览</span>
  2082. </div>
  2083. <div
  2084. class="worksDetailBox"
  2085. v-if="workStudent[toolIndex].length > 0"
  2086. >
  2087. <div
  2088. class="works"
  2089. style="
  2090. width: 200px;
  2091. height: 140px;
  2092. margin: 10px 10px 10px 0;
  2093. box-shadow: 0 0 6px 1px #dfdada;
  2094. "
  2095. v-for="(w, wIndex) in workStudent[toolIndex]"
  2096. :key="wIndex"
  2097. >
  2098. <div class="workImg">
  2099. <img
  2100. :src="word2"
  2101. @click="downloadFile(w.works,w.userid)"
  2102. alt
  2103. />
  2104. <div
  2105. class="answerScore"
  2106. v-if="w.score"
  2107. @click.stop="openScore(w)"
  2108. :class="{
  2109. rightW:
  2110. w.userid == userid || tType == 1 || tType == 4
  2111. }"
  2112. >
  2113. {{ JSON.parse(w.score).wScore }}分
  2114. </div>
  2115. <div
  2116. class="answerScore"
  2117. @click.stop="openScore(w)"
  2118. v-else-if="courseDetail.userid == userid"
  2119. :class="{
  2120. rightW:
  2121. w.userid == userid || tType == 1 || tType == 4
  2122. }"
  2123. >
  2124. 评分
  2125. </div>
  2126. <img
  2127. class="deleteImg"
  2128. src="../../assets/deleteworks.png"
  2129. v-if="
  2130. w.userid == userid || tType == 1 || tType == 4
  2131. "
  2132. @click.stop="deleteWorks(w.wid)"
  2133. alt
  2134. />
  2135. </div>
  2136. <div class="worksName">
  2137. <div>{{ w.sName }}</div>
  2138. </div>
  2139. </div>
  2140. </div>
  2141. </div>
  2142. <div
  2143. v-if="
  2144. tType &&
  2145. tType == 2 &&
  2146. !sIsOpen &&
  2147. tool.tool.indexOf(57) != -1
  2148. "
  2149. class="worksBox"
  2150. >
  2151. <div
  2152. class="zuoyeYulan"
  2153. v-if="workStudent[toolIndex].length > 0"
  2154. >
  2155. <span class="worksTitle">作业预览</span>
  2156. </div>
  2157. <div
  2158. class="worksDetailBox"
  2159. v-if="workStudent[toolIndex].length > 0"
  2160. >
  2161. <div
  2162. class="works"
  2163. style="
  2164. width: 200px;
  2165. height: 140px;
  2166. margin: 10px 10px 10px 0;
  2167. box-shadow: 0 0 6px 1px #dfdada;
  2168. "
  2169. v-for="(w, wIndex) in workStudent[toolIndex]"
  2170. :key="wIndex"
  2171. >
  2172. <div class="workImg">
  2173. <img
  2174. :src="word2"
  2175. @click="downloadFile(w.works,w.userid)"
  2176. v-if="w.type == 12"
  2177. alt
  2178. />
  2179. <img
  2180. :src="word2"
  2181. @click="
  2182. openCocoPi(57, toolIndex, w.userid, w.sName)
  2183. "
  2184. v-else-if="w.type == 15"
  2185. alt
  2186. />
  2187. <div
  2188. class="answerScore"
  2189. v-if="w.score"
  2190. @click.stop="openScore(w)"
  2191. :class="{
  2192. rightW:
  2193. w.userid == userid || tType == 1 || tType == 4
  2194. }"
  2195. >
  2196. {{ JSON.parse(w.score).wScore }}分
  2197. </div>
  2198. <div
  2199. class="answerScore"
  2200. @click.stop="openScore(w)"
  2201. v-else-if="courseDetail.userid == userid"
  2202. :class="{
  2203. rightW:
  2204. w.userid == userid || tType == 1 || tType == 4
  2205. }"
  2206. >
  2207. 评分
  2208. </div>
  2209. <img
  2210. class="deleteImg"
  2211. src="../../assets/deleteworks.png"
  2212. v-if="
  2213. w.userid == userid || tType == 1 || tType == 4
  2214. "
  2215. @click.stop="deleteWorks(w.wid)"
  2216. alt
  2217. />
  2218. </div>
  2219. <div class="worksName">
  2220. <div>{{ w.sName }}</div>
  2221. </div>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <div
  2226. v-if="
  2227. tType &&
  2228. tType == 2 &&
  2229. !sIsOpen &&
  2230. tool.tool.indexOf(4) != -1
  2231. "
  2232. class="worksBox"
  2233. >
  2234. <div
  2235. class="zuoyeYulan"
  2236. v-if="workStudent[toolIndex].length > 0"
  2237. >
  2238. <span class="worksTitle">作业预览</span>
  2239. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2240. </div>
  2241. <div
  2242. class="worksDetailBox"
  2243. v-if="workStudent[toolIndex].length > 0"
  2244. >
  2245. <div
  2246. class="isWorksName2"
  2247. v-for="(w, wIndex) in workStudent[toolIndex]"
  2248. :key="wIndex"
  2249. @click="
  2250. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2251. "
  2252. >
  2253. {{ w.sName }}
  2254. <img
  2255. class="deleteImg deleteImg2"
  2256. src="../../assets/deleteworks.png"
  2257. v-if="w.userid == userid || tType == 1 || tType == 4"
  2258. @click.stop="deleteWorks(w.wid)"
  2259. alt
  2260. />
  2261. </div>
  2262. <!-- <div
  2263. class="works"
  2264. style="
  2265. width: 200px;
  2266. height: 140px;
  2267. border-radius: 10px;
  2268. box-shadow: 0 0 6px 1px #dfdada;
  2269. overflow: hidden;
  2270. "
  2271. v-for="(w, wIndex) in workStudent[toolIndex]"
  2272. :key="wIndex"
  2273. >
  2274. <div class="workImg">
  2275. <img
  2276. src="../../assets/icon/works/noImg.png"
  2277. @click="
  2278. openTools(
  2279. 4,
  2280. toolIndex,
  2281. taskCount,
  2282. w.works,
  2283. w.sName
  2284. )
  2285. "
  2286. alt
  2287. />
  2288. </div>
  2289. <div class="worksName">
  2290. <div>{{ w.sName }}</div>
  2291. <div>{{ w.time }}</div>
  2292. </div>
  2293. </div> -->
  2294. </div>
  2295. </div>
  2296. <div
  2297. v-if="
  2298. tType &&
  2299. ((tType == 2 && sIsOpen == true) ||
  2300. tType == 1 ||
  2301. tType == 4) &&
  2302. tool.tool.indexOf(62) != -1
  2303. "
  2304. class="worksBox"
  2305. >
  2306. <div
  2307. class="zuoyeYulan"
  2308. v-if="
  2309. worksStudent.length &&
  2310. worksStudent[toolIndex].length > 0
  2311. "
  2312. >
  2313. <div class="worksTop">
  2314. <div>作业预览</div>
  2315. <div
  2316. class="corOpen"
  2317. @click="contract(toolIndex)"
  2318. v-if="
  2319. isCloseList[toolIndex].isCloseBoolean &&
  2320. isCloseList[toolIndex].isClose == 0
  2321. "
  2322. >
  2323. 折叠
  2324. </div>
  2325. <div
  2326. class="corOpen"
  2327. @click="contract(toolIndex)"
  2328. v-if="isCloseList[toolIndex].isClose == 1"
  2329. >
  2330. 展开
  2331. </div>
  2332. </div>
  2333. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2334. </div>
  2335. <div>
  2336. <div
  2337. :id="'tool-' + toolIndex"
  2338. :style="{
  2339. height:
  2340. isCloseList[toolIndex].isClose == 1
  2341. ? retrnToolHeight('tool-' + toolIndex)
  2342. : 'auto',
  2343. overflow:
  2344. isCloseList[toolIndex].isClose == 1
  2345. ? 'hidden'
  2346. : 'unset'
  2347. }"
  2348. class="worksDetailBox"
  2349. v-if="
  2350. worksStudent.length &&
  2351. worksStudent[toolIndex].length > 0
  2352. "
  2353. >
  2354. <div
  2355. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2356. :key="wIndex"
  2357. class="isWorksName2"
  2358. @click="
  2359. openTools(
  2360. 62,
  2361. toolIndex,
  2362. taskCount,
  2363. w.works,
  2364. w.sName
  2365. )
  2366. "
  2367. >
  2368. {{ w.sName }}
  2369. <img
  2370. class="deleteImg deleteImg2"
  2371. src="../../assets/deleteworks.png"
  2372. v-if="
  2373. w.userid == userid || tType == 1 || tType == 4
  2374. "
  2375. @click.stop="deleteWorks(w.wid)"
  2376. alt
  2377. />
  2378. </div>
  2379. </div>
  2380. </div>
  2381. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2382. 未提交
  2383. </div>
  2384. <div
  2385. class="noWorksS"
  2386. v-if="noWorksS && noWorksS[toolIndex].length"
  2387. >
  2388. <div
  2389. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2390. :key="sIndex"
  2391. class="noWorksName"
  2392. >
  2393. <el-tooltip
  2394. effect="dark"
  2395. :content="s.student"
  2396. placement="top"
  2397. >
  2398. <span>{{ s.student }}</span>
  2399. </el-tooltip>
  2400. </div>
  2401. </div>
  2402. </div>
  2403. <div
  2404. v-if="
  2405. tType &&
  2406. tType == 2 &&
  2407. !sIsOpen &&
  2408. tool.tool.indexOf(62) != -1
  2409. "
  2410. class="worksBox"
  2411. >
  2412. <div
  2413. class="zuoyeYulan"
  2414. v-if="workStudent[toolIndex].length > 0"
  2415. >
  2416. <span class="worksTitle">作业预览</span>
  2417. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2418. </div>
  2419. <div
  2420. class="worksDetailBox"
  2421. v-if="workStudent[toolIndex].length > 0"
  2422. >
  2423. <div
  2424. class="isWorksName2"
  2425. v-for="(w, wIndex) in workStudent[toolIndex]"
  2426. :key="wIndex"
  2427. @click="
  2428. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2429. "
  2430. >
  2431. {{ w.sName }}
  2432. <img
  2433. class="deleteImg deleteImg2"
  2434. src="../../assets/deleteworks.png"
  2435. v-if="w.userid == userid || tType == 1 || tType == 4"
  2436. @click.stop="deleteWorks(w.wid)"
  2437. alt
  2438. />
  2439. </div>
  2440. </div>
  2441. </div>
  2442. <div
  2443. v-if="
  2444. tType &&
  2445. tType == 2 &&
  2446. !sIsOpen &&
  2447. tool.tool.indexOf(45) != -1
  2448. "
  2449. class="worksBox"
  2450. >
  2451. <div
  2452. class="zuoyeYulan"
  2453. v-if="workStudent[toolIndex].length > 0"
  2454. >
  2455. <span class="worksTitle">作业预览</span>
  2456. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2457. </div>
  2458. <div
  2459. class="worksDetailBox"
  2460. v-if="workStudent[toolIndex].length > 0"
  2461. >
  2462. <div
  2463. class="isWorksName2"
  2464. v-for="(w, wIndex) in workStudent[toolIndex]"
  2465. :key="wIndex"
  2466. @click="
  2467. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2468. "
  2469. >
  2470. {{ w.sName }}
  2471. <img
  2472. class="deleteImg deleteImg2"
  2473. src="../../assets/deleteworks.png"
  2474. v-if="w.userid == userid || tType == 1 || tType == 4"
  2475. @click.stop="deleteWorks(w.wid)"
  2476. alt
  2477. />
  2478. </div>
  2479. </div>
  2480. </div>
  2481. <div
  2482. v-if="
  2483. tType &&
  2484. tType == 2 &&
  2485. !sIsOpen &&
  2486. tool.tool.indexOf(69) != -1
  2487. "
  2488. class="worksBox"
  2489. >
  2490. <div
  2491. class="zuoyeYulan"
  2492. v-if="workStudent[toolIndex].length > 0"
  2493. >
  2494. <span class="worksTitle">作业预览</span>
  2495. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2496. </div>
  2497. <div
  2498. class="worksDetailBox"
  2499. v-if="workStudent[toolIndex].length > 0"
  2500. >
  2501. <div
  2502. class="isWorksName2"
  2503. v-for="(w, wIndex) in workStudent[toolIndex]"
  2504. :key="wIndex"
  2505. @click="
  2506. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2507. "
  2508. >
  2509. {{ w.sName }}
  2510. <img
  2511. class="deleteImg deleteImg2"
  2512. src="../../assets/deleteworks.png"
  2513. v-if="w.userid == userid || tType == 1 || tType == 4"
  2514. @click.stop="deleteWorks(w.wid)"
  2515. alt
  2516. />
  2517. </div>
  2518. </div>
  2519. </div>
  2520. <div
  2521. v-if="
  2522. tType &&
  2523. tType == 2 &&
  2524. !sIsOpen &&
  2525. tool.tool.indexOf(15) != -1
  2526. "
  2527. class="worksBox"
  2528. >
  2529. <div
  2530. class="zuoyeYulan"
  2531. v-if="workStudent[toolIndex].length > 0"
  2532. >
  2533. <span class="worksTitle">作业预览</span>
  2534. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2535. </div>
  2536. <div
  2537. class="worksDetailBox"
  2538. v-if="workStudent[toolIndex].length > 0"
  2539. >
  2540. <div
  2541. class="works"
  2542. v-for="(w, wIndex) in workStudent[toolIndex]"
  2543. :key="wIndex"
  2544. >
  2545. <div class="workImg">
  2546. <!-- <img
  2547. src="../../assets/icon/works/noImg.png"
  2548. @click="openTools(15, toolIndex, taskCount, w.works)"
  2549. alt=""
  2550. />-->
  2551. <div class="answerBg">
  2552. <!-- <div>{{ w.sName }}</div> -->
  2553. <el-tooltip
  2554. class="item"
  2555. effect="light"
  2556. :content="JSON.parse(w.works)[0].answer"
  2557. placement="top"
  2558. >
  2559. <div class="answerContent">
  2560. {{ JSON.parse(w.works)[0].answer }}
  2561. </div>
  2562. </el-tooltip>
  2563. <div
  2564. class="answerScore"
  2565. v-if="w.score"
  2566. @click.stop="openScore(w)"
  2567. :class="{
  2568. rightW:
  2569. w.userid == userid || tType == 1 || tType == 4
  2570. }"
  2571. >
  2572. {{ JSON.parse(w.score).wScore }}分
  2573. </div>
  2574. <div
  2575. class="answerScore"
  2576. @click.stop="openScore(w)"
  2577. v-else-if="courseDetail.userid == userid"
  2578. :class="{
  2579. rightW:
  2580. w.userid == userid || tType == 1 || tType == 4
  2581. }"
  2582. >
  2583. 评分
  2584. </div>
  2585. <img
  2586. class="deleteImg"
  2587. src="../../assets/deleteworks.png"
  2588. v-if="
  2589. w.userid == userid || tType == 1 || tType == 4
  2590. "
  2591. @click.stop="deleteWorks(w.wid)"
  2592. alt
  2593. />
  2594. </div>
  2595. <div class="comment">
  2596. <div class="worksName">
  2597. <div>{{ w.sName }}</div>
  2598. </div>
  2599. </div>
  2600. </div>
  2601. </div>
  2602. </div>
  2603. </div>
  2604. <div
  2605. v-if="
  2606. tType &&
  2607. tType == 2 &&
  2608. !sIsOpen &&
  2609. tool.tool.indexOf(1) != -1
  2610. "
  2611. class="worksBox"
  2612. >
  2613. <div
  2614. class="zuoyeYulan"
  2615. v-if="workStudent[toolIndex].length > 0"
  2616. >
  2617. <span class="worksTitle">作业预览</span>
  2618. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2619. </div>
  2620. <div
  2621. class="worksDetailBox"
  2622. v-if="workStudent[toolIndex].length > 0"
  2623. >
  2624. <div
  2625. class="works"
  2626. style="
  2627. width: 200px;
  2628. height: 140px;
  2629. margin: 10px 10px 10px 0;
  2630. box-shadow: 0 0 6px 1px #dfdada;
  2631. "
  2632. v-for="(w, wIndex) in workStudent[toolIndex]"
  2633. :key="wIndex"
  2634. >
  2635. <div class="workImg">
  2636. <img
  2637. :src="w.works"
  2638. @click="previewImg(w.works, w)"
  2639. alt
  2640. />
  2641. <div
  2642. class="answerScore"
  2643. v-if="w.score"
  2644. @click.stop="openScore(w)"
  2645. :class="{
  2646. rightW:
  2647. w.userid == userid || tType == 1 || tType == 4
  2648. }"
  2649. >
  2650. {{ JSON.parse(w.score).wScore }}分
  2651. </div>
  2652. <div
  2653. class="answerScore"
  2654. @click.stop="openScore(w)"
  2655. v-else-if="courseDetail.userid == userid"
  2656. :class="{
  2657. rightW:
  2658. w.userid == userid || tType == 1 || tType == 4
  2659. }"
  2660. >
  2661. 评分
  2662. </div>
  2663. <div
  2664. class="stuLookScore"
  2665. v-if="
  2666. w.userid == userid ||
  2667. (tType == 1 &&
  2668. courseDetail.state == 5 &&
  2669. ((chapInfoList[courseType].chapterInfo[0]
  2670. .taskJson[taskCount].eList &&
  2671. chapInfoList[courseType].chapterInfo[0]
  2672. .taskJson[taskCount].eList.length) ||
  2673. (tool.eList && tool.eList.length)))
  2674. "
  2675. >
  2676. <el-popover
  2677. placement="top"
  2678. width="318"
  2679. trigger="hover"
  2680. >
  2681. <markScore
  2682. :loading="AIloading[toolIndex][wIndex].loading"
  2683. :markScoreVisible="markScoreVisible"
  2684. :ref="`markSco${toolIndex}${wIndex}`"
  2685. @updateLoading="updateLoading"
  2686. @updateDocSco="updateDocSco"
  2687. @refreshOther="refreshOther"
  2688. @markScoreDig="markScoreDig"
  2689. :tool="tool"
  2690. :wIndex="wIndex"
  2691. :scoCon="w"
  2692. :toolIndex="toolIndex"
  2693. :key="refreshKey"
  2694. :stage="courseType"
  2695. :task="taskCount"
  2696. :scoTit="
  2697. chapInfoList[courseType].chapterInfo[0]
  2698. .taskJson[taskCount].eList
  2699. "
  2700. >
  2701. </markScore>
  2702. <div
  2703. @click="
  2704. markScoreDig2(
  2705. w.sName,
  2706. worksStudent,
  2707. w.userid,
  2708. toolIndex,
  2709. chapInfoList[courseType].chapterInfo[0]
  2710. .taskJson[taskCount].eList,
  2711. AIloading[toolIndex][wIndex].loading,
  2712. tool
  2713. )
  2714. "
  2715. slot="reference"
  2716. >
  2717. <span v-if="AIloading[toolIndex][wIndex].sco">
  2718. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2719. </span>
  2720. <span v-else>
  2721. 评分
  2722. </span>
  2723. </div>
  2724. </el-popover>
  2725. </div>
  2726. <img
  2727. class="deleteImg"
  2728. src="../../assets/deleteworks.png"
  2729. v-if="
  2730. w.userid == userid || tType == 1 || tType == 4
  2731. "
  2732. @click.stop="deleteWorks(w.wid)"
  2733. alt
  2734. />
  2735. </div>
  2736. <div class="worksName">
  2737. <div>{{ w.sName }}</div>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. <div
  2743. v-if="
  2744. tType &&
  2745. tType == 2 &&
  2746. !sIsOpen &&
  2747. tool.tool.indexOf(3) != -1
  2748. "
  2749. class="worksBox"
  2750. >
  2751. <div
  2752. class="zuoyeYulan"
  2753. v-if="workStudent[toolIndex].length > 0"
  2754. >
  2755. <span class="worksTitle">作业预览</span>
  2756. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2757. </div>
  2758. <div
  2759. class="worksDetailBox"
  2760. v-if="workStudent[toolIndex].length > 0"
  2761. >
  2762. <div
  2763. class="works"
  2764. style="
  2765. width: 200px;
  2766. height: 140px;
  2767. margin: 10px 10px 10px 0;
  2768. box-shadow: 0 0 6px 1px #dfdada;
  2769. "
  2770. v-for="(w, wIndex) in workStudent[toolIndex]"
  2771. :key="wIndex"
  2772. >
  2773. <div class="workImg">
  2774. <img
  2775. :src="w.works"
  2776. @click="previewImg(w.works, w)"
  2777. alt
  2778. />
  2779. <div
  2780. class="answerScore"
  2781. v-if="w.score"
  2782. @click.stop="openScore(w)"
  2783. :class="{
  2784. rightW:
  2785. w.userid == userid || tType == 1 || tType == 4
  2786. }"
  2787. >
  2788. {{ JSON.parse(w.score).wScore }}分
  2789. </div>
  2790. <div
  2791. class="answerScore"
  2792. @click.stop="openScore(w)"
  2793. v-else-if="courseDetail.userid == userid"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid || tType == 1 || tType == 4
  2797. }"
  2798. >
  2799. 评分
  2800. </div>
  2801. <div
  2802. class="stuLookScore"
  2803. v-if="
  2804. w.userid == userid ||
  2805. (tType == 1 &&
  2806. courseDetail.state == 5 &&
  2807. ((chapInfoList[courseType].chapterInfo[0]
  2808. .taskJson[taskCount].eList &&
  2809. chapInfoList[courseType].chapterInfo[0]
  2810. .taskJson[taskCount].eList.length) ||
  2811. (tool.eList && tool.eList.length)))
  2812. "
  2813. >
  2814. <el-popover
  2815. placement="top"
  2816. width="318"
  2817. trigger="hover"
  2818. >
  2819. <markScore
  2820. :loading="AIloading[toolIndex][wIndex].loading"
  2821. :markScoreVisible="markScoreVisible"
  2822. :ref="`markSco${toolIndex}${wIndex}`"
  2823. @updateLoading="updateLoading"
  2824. @updateDocSco="updateDocSco"
  2825. @refreshOther="refreshOther"
  2826. @markScoreDig="markScoreDig"
  2827. :tool="tool"
  2828. :wIndex="wIndex"
  2829. :scoCon="w"
  2830. :toolIndex="toolIndex"
  2831. :key="refreshKey"
  2832. :stage="courseType"
  2833. :task="taskCount"
  2834. :scoTit="
  2835. chapInfoList[courseType].chapterInfo[0]
  2836. .taskJson[taskCount].eList
  2837. "
  2838. >
  2839. </markScore>
  2840. <div
  2841. @click="
  2842. markScoreDig2(
  2843. w.sName,
  2844. worksStudent,
  2845. w.userid,
  2846. toolIndex,
  2847. chapInfoList[courseType].chapterInfo[0]
  2848. .taskJson[taskCount].eList,
  2849. AIloading[toolIndex][wIndex].loading,
  2850. tool
  2851. )
  2852. "
  2853. slot="reference"
  2854. >
  2855. <span v-if="AIloading[toolIndex][wIndex].sco">
  2856. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2857. </span>
  2858. <span v-else>
  2859. 评分
  2860. </span>
  2861. </div>
  2862. </el-popover>
  2863. </div>
  2864. <img
  2865. class="deleteImg"
  2866. src="../../assets/deleteworks.png"
  2867. v-if="
  2868. w.userid == userid || tType == 1 || tType == 4
  2869. "
  2870. @click.stop="deleteWorks(w.wid)"
  2871. alt
  2872. />
  2873. </div>
  2874. <div class="worksName">
  2875. <div>{{ w.sName }}</div>
  2876. </div>
  2877. </div>
  2878. </div>
  2879. </div>
  2880. <div
  2881. v-if="
  2882. tType &&
  2883. tType == 2 &&
  2884. !sIsOpen &&
  2885. tool.tool.indexOf(6) != -1
  2886. "
  2887. class="worksBox"
  2888. >
  2889. <div
  2890. class="zuoyeYulan"
  2891. v-if="workStudent[toolIndex].length > 0"
  2892. >
  2893. <span class="worksTitle">作业预览</span>
  2894. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2895. </div>
  2896. <div
  2897. class="worksDetailBox"
  2898. v-if="workStudent[toolIndex].length > 0"
  2899. >
  2900. <div
  2901. class="works"
  2902. style="
  2903. width: 200px;
  2904. height: 140px;
  2905. margin: 10px 10px 10px 0;
  2906. box-shadow: 0 0 6px 1px #dfdada;
  2907. "
  2908. v-for="(w, wIndex) in workStudent[toolIndex]"
  2909. :key="wIndex"
  2910. >
  2911. <div class="workImg">
  2912. <img
  2913. :src="w.works"
  2914. @click="previewImg(w.works, w)"
  2915. alt
  2916. />
  2917. <div
  2918. class="answerScore"
  2919. v-if="w.score"
  2920. @click.stop="openScore(w)"
  2921. :class="{
  2922. rightW:
  2923. w.userid == userid || tType == 1 || tType == 4
  2924. }"
  2925. >
  2926. {{ JSON.parse(w.score).wScore }}分
  2927. </div>
  2928. <div
  2929. class="answerScore"
  2930. @click.stop="openScore(w)"
  2931. v-else-if="courseDetail.userid == userid"
  2932. :class="{
  2933. rightW:
  2934. w.userid == userid || tType == 1 || tType == 4
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="worksName">
  2950. <div>{{ w.sName }}</div>
  2951. </div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. <div
  2956. v-if="
  2957. tType &&
  2958. tType == 2 &&
  2959. !sIsOpen &&
  2960. tool.tool.indexOf(7) != -1
  2961. "
  2962. class="worksBox"
  2963. >
  2964. <div
  2965. class="zuoyeYulan"
  2966. v-if="workStudent[toolIndex].length > 0"
  2967. >
  2968. <span class="worksTitle">作业预览</span>
  2969. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2970. </div>
  2971. <div
  2972. class="worksDetailBox"
  2973. v-if="workStudent[toolIndex].length > 0"
  2974. >
  2975. <div
  2976. class="works"
  2977. style="
  2978. width: 200px;
  2979. height: 140px;
  2980. margin: 10px 10px 10px 0;
  2981. box-shadow: 0 0 6px 1px #dfdada;
  2982. "
  2983. v-for="(w, wIndex) in workStudent[toolIndex]"
  2984. :key="wIndex"
  2985. >
  2986. <div class="workImg">
  2987. <img
  2988. :src="w.works"
  2989. @click="previewImg(w.works, w)"
  2990. alt
  2991. />
  2992. <div
  2993. class="answerScore"
  2994. v-if="w.score"
  2995. @click.stop="openScore(w)"
  2996. :class="{
  2997. rightW:
  2998. w.userid == userid || tType == 1 || tType == 4
  2999. }"
  3000. >
  3001. {{ JSON.parse(w.score).wScore }}分
  3002. </div>
  3003. <div
  3004. class="answerScore"
  3005. @click.stop="openScore(w)"
  3006. v-else-if="courseDetail.userid == userid"
  3007. :class="{
  3008. rightW:
  3009. w.userid == userid || tType == 1 || tType == 4
  3010. }"
  3011. >
  3012. 评分
  3013. </div>
  3014. <div
  3015. class="stuLookScore"
  3016. v-if="
  3017. w.userid == userid ||
  3018. (tType == 1 &&
  3019. courseDetail.state == 5 &&
  3020. ((chapInfoList[courseType].chapterInfo[0]
  3021. .taskJson[taskCount].eList &&
  3022. chapInfoList[courseType].chapterInfo[0]
  3023. .taskJson[taskCount].eList.length) ||
  3024. (tool.eList && tool.eList.length)))
  3025. "
  3026. >
  3027. <el-popover
  3028. placement="top"
  3029. width="318"
  3030. trigger="hover"
  3031. >
  3032. <markScore
  3033. :loading="AIloading[toolIndex][wIndex].loading"
  3034. :markScoreVisible="markScoreVisible"
  3035. :ref="`markSco${toolIndex}${wIndex}`"
  3036. @updateLoading="updateLoading"
  3037. @updateDocSco="updateDocSco"
  3038. @refreshOther="refreshOther"
  3039. @markScoreDig="markScoreDig"
  3040. :tool="tool"
  3041. :wIndex="wIndex"
  3042. :scoCon="w"
  3043. :toolIndex="toolIndex"
  3044. :key="refreshKey"
  3045. :stage="courseType"
  3046. :task="taskCount"
  3047. :scoTit="
  3048. chapInfoList[courseType].chapterInfo[0]
  3049. .taskJson[taskCount].eList
  3050. "
  3051. >
  3052. </markScore>
  3053. <div
  3054. @click="
  3055. markScoreDig2(
  3056. w.sName,
  3057. worksStudent,
  3058. w.userid,
  3059. toolIndex,
  3060. chapInfoList[courseType].chapterInfo[0]
  3061. .taskJson[taskCount].eList,
  3062. AIloading[toolIndex][wIndex].loading,
  3063. tool
  3064. )
  3065. "
  3066. slot="reference"
  3067. >
  3068. <span v-if="AIloading[toolIndex][wIndex].sco">
  3069. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3070. </span>
  3071. <span v-else>
  3072. 评分
  3073. </span>
  3074. </div>
  3075. </el-popover>
  3076. </div>
  3077. <img
  3078. class="deleteImg"
  3079. src="../../assets/deleteworks.png"
  3080. v-if="
  3081. w.userid == userid || tType == 1 || tType == 4
  3082. "
  3083. @click.stop="deleteWorks(w.wid)"
  3084. alt
  3085. />
  3086. </div>
  3087. <div class="worksName">
  3088. <div>{{ w.sName }}</div>
  3089. </div>
  3090. </div>
  3091. </div>
  3092. </div>
  3093. <div
  3094. v-if="
  3095. tType &&
  3096. tType == 2 &&
  3097. !sIsOpen &&
  3098. tool.tool.indexOf(26) != -1
  3099. "
  3100. class="worksBox"
  3101. >
  3102. <div
  3103. class="zuoyeYulan"
  3104. v-if="workStudent[toolIndex].length > 0"
  3105. >
  3106. <span class="worksTitle">作业预览</span>
  3107. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3108. </div>
  3109. <div
  3110. class="worksDetailBox"
  3111. v-if="workStudent[toolIndex].length > 0"
  3112. >
  3113. <div
  3114. class="works"
  3115. style="
  3116. width: 200px;
  3117. height: 140px;
  3118. margin: 10px 10px 10px 0;
  3119. box-shadow: 0 0 6px 1px #dfdada;
  3120. "
  3121. v-for="(w, wIndex) in workStudent[toolIndex]"
  3122. :key="wIndex"
  3123. >
  3124. <div class="workImg">
  3125. <img
  3126. :src="w.works"
  3127. @click="previewImg(w.works, w)"
  3128. alt
  3129. />
  3130. <img
  3131. class="deleteImg"
  3132. src="../../assets/deleteworks.png"
  3133. v-if="
  3134. w.userid == userid || tType == 1 || tType == 4
  3135. "
  3136. @click.stop="deleteWorks(w.wid)"
  3137. alt
  3138. />
  3139. </div>
  3140. <div class="worksName">
  3141. <div>{{ w.sName }}</div>
  3142. </div>
  3143. </div>
  3144. </div>
  3145. </div>
  3146. <div
  3147. v-if="
  3148. tType &&
  3149. ((tType == 2 && sIsOpen == true) ||
  3150. tType == 1 ||
  3151. tType == 4) &&
  3152. tool.tool.indexOf(16) != -1
  3153. "
  3154. class="worksBox"
  3155. >
  3156. <div
  3157. class="zuoyeYulan"
  3158. style="display: flex;justify-content: space-between;align-items: center;"
  3159. v-if="
  3160. (worksStudent.length &&
  3161. worksStudent[toolIndex].length > 0) ||
  3162. (courseGroup.group && courseGroup.group.length)
  3163. "
  3164. >
  3165. <div class="worksTop">
  3166. <div>作业预览</div>
  3167. <div
  3168. class="corOpen"
  3169. @click="contract(toolIndex)"
  3170. v-if="
  3171. isCloseList[toolIndex].isCloseBoolean &&
  3172. isCloseList[toolIndex].isClose == 0
  3173. "
  3174. >
  3175. 折叠
  3176. </div>
  3177. <div
  3178. class="corOpen"
  3179. @click="contract(toolIndex)"
  3180. v-if="isCloseList[toolIndex].isClose == 1"
  3181. >
  3182. 展开
  3183. </div>
  3184. </div>
  3185. <div
  3186. style="display: flex;"
  3187. v-if="
  3188. (courseDetail.userid == userid ||
  3189. (courseDetail.course_teacher &&
  3190. courseDetail.course_teacher.indexOf(userid) !=
  3191. -1)) &&
  3192. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3193. taskCount
  3194. ].eList &&
  3195. chapInfoList[courseType].chapterInfo[0].taskJson[
  3196. taskCount
  3197. ].eList.length) ||
  3198. (tool.eList && tool.eList.length)) &&
  3199. courseDetail.state == 5
  3200. "
  3201. >
  3202. <!-- <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"> -->
  3203. <div
  3204. style="margin-right:10px"
  3205. class="ScoreBtn"
  3206. @click="
  3207. resetLoopEva(
  3208. worksStudent[toolIndex],
  3209. chapInfoList[courseType].chapterInfo[0].taskJson[
  3210. taskCount
  3211. ].eList,
  3212. courseType,
  3213. taskCount,
  3214. toolIndex,
  3215. tool.toolDetail,
  3216. worksStudent
  3217. )
  3218. "
  3219. >
  3220. 一键重置
  3221. </div>
  3222. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3223. <img
  3224. src="../../assets/icon/newIcons/rootImg.png"
  3225. alt=""
  3226. />
  3227. AI评分
  3228. </div>
  3229. <div
  3230. class="ScoreBtn"
  3231. v-else-if="!loopLoading[toolIndex].loading"
  3232. @click="
  3233. loopEva(
  3234. worksStudent[toolIndex],
  3235. chapInfoList[courseType].chapterInfo[0].taskJson[
  3236. taskCount
  3237. ].eList,
  3238. courseType,
  3239. taskCount,
  3240. toolIndex,
  3241. tool.toolDetail,
  3242. chapInfoList[courseType].chapterInfo[0].taskJson[
  3243. taskCount
  3244. ].taskDetail,
  3245. tool
  3246. )
  3247. "
  3248. >
  3249. <img
  3250. src="../../assets/icon/newIcons/rootImg.png"
  3251. alt=""
  3252. />
  3253. AI评分
  3254. </div>
  3255. <div class="ScoreBtn" v-else>
  3256. <img
  3257. src="../../assets/icon/newIcons/rootImg.png"
  3258. alt=""
  3259. />
  3260. 正在评分
  3261. </div>
  3262. </div>
  3263. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3264. </div>
  3265. <div
  3266. class="group_workBox"
  3267. v-for="(g, gindex) in courseGroup.group"
  3268. :key="gindex"
  3269. >
  3270. <div class="group_box">
  3271. <div class="group_title">
  3272. <el-tooltip
  3273. class="item"
  3274. effect="light"
  3275. :content="g.name"
  3276. placement="top"
  3277. >
  3278. <div class="group_name">{{ g.name }}</div>
  3279. </el-tooltip>
  3280. </div>
  3281. <div
  3282. class="group_work"
  3283. v-if="
  3284. g.works &&
  3285. g.works.length &&
  3286. g.works[toolIndex].length
  3287. "
  3288. >
  3289. <div
  3290. class="works"
  3291. style="
  3292. width: 200px;
  3293. height: 140px;
  3294. margin: 10px 10px 10px 0;
  3295. border-radius: 15px;
  3296. box-shadow: 0 0 6px 1px #dfdada;
  3297. "
  3298. v-for="(w, wIndex) in g.works[toolIndex]"
  3299. :key="wIndex"
  3300. :class="w.type == 1 ? 'isTypeOne' : ''"
  3301. >
  3302. <div class="workImg" v-if="w.type == 0">
  3303. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3304. <img
  3305. :src="w.works"
  3306. @click="previewImg(w.works, w)"
  3307. alt
  3308. />
  3309. <div
  3310. class="answerScore"
  3311. v-if="w.score"
  3312. @click.stop="openScore(w)"
  3313. :class="{
  3314. rightW:
  3315. w.userid == userid ||
  3316. tType == 1 ||
  3317. tType == 4 ||
  3318. w.ateacher == userid
  3319. }"
  3320. >
  3321. {{ JSON.parse(w.score).wScore }}分
  3322. </div>
  3323. <div
  3324. class="answerScore"
  3325. @click.stop="openScore(w)"
  3326. v-else-if="courseDetail.userid == userid"
  3327. :class="{
  3328. rightW:
  3329. w.userid == userid ||
  3330. tType == 1 ||
  3331. tType == 4 ||
  3332. w.ateacher == userid
  3333. }"
  3334. >
  3335. 评分
  3336. </div>
  3337. <img
  3338. class="deleteImg"
  3339. src="../../assets/deleteworks.png"
  3340. v-if="
  3341. w.userid == userid || tType == 1 || tType == 4
  3342. "
  3343. @click.stop="deleteWorks(w.wid)"
  3344. alt
  3345. />
  3346. </div>
  3347. <div class="workImg" v-if="w.type == 1">
  3348. <img :src="word" @click="openFile(w.works)" alt />
  3349. <!-- @click="openFile(w.works)" -->
  3350. <div
  3351. class="answerScore"
  3352. v-if="w.score"
  3353. @click.stop="openScore(w)"
  3354. :class="{
  3355. rightW:
  3356. w.userid == userid ||
  3357. tType == 1 ||
  3358. tType == 4 ||
  3359. w.ateacher == userid
  3360. }"
  3361. >
  3362. {{ JSON.parse(w.score).wScore }}分
  3363. </div>
  3364. <div
  3365. class="answerScore"
  3366. @click.stop="openScore(w)"
  3367. v-else-if="courseDetail.userid == userid"
  3368. :class="{
  3369. rightW:
  3370. w.userid == userid ||
  3371. tType == 1 ||
  3372. tType == 4 ||
  3373. w.ateacher == userid
  3374. }"
  3375. >
  3376. 评分
  3377. </div>
  3378. <img
  3379. class="deleteImg"
  3380. src="../../assets/deleteworks.png"
  3381. v-if="
  3382. w.userid == userid || tType == 1 || tType == 4
  3383. "
  3384. @click.stop="deleteWorks(w.wid)"
  3385. alt
  3386. />
  3387. </div>
  3388. <div class="workImg" v-if="w.type == 3">
  3389. <img
  3390. style="cursor: pointer"
  3391. :src="video"
  3392. @click="openVideo(w)"
  3393. alt
  3394. />
  3395. <!-- @click="openVideo(w.works)" -->
  3396. <div
  3397. class="answerScore"
  3398. v-if="w.score"
  3399. @click.stop="openScore(w)"
  3400. :class="{
  3401. rightW:
  3402. w.userid == userid ||
  3403. tType == 1 ||
  3404. tType == 4 ||
  3405. w.ateacher == userid
  3406. }"
  3407. >
  3408. {{ JSON.parse(w.score).wScore }}分
  3409. </div>
  3410. <div
  3411. class="answerScore"
  3412. @click.stop="openScore(w)"
  3413. v-else-if="courseDetail.userid == userid"
  3414. :class="{
  3415. rightW:
  3416. w.userid == userid ||
  3417. tType == 1 ||
  3418. tType == 4 ||
  3419. w.ateacher == userid
  3420. }"
  3421. >
  3422. 评分
  3423. </div>
  3424. <img
  3425. class="deleteImg"
  3426. src="../../assets/deleteworks.png"
  3427. v-if="
  3428. w.userid == userid || tType == 1 || tType == 4
  3429. "
  3430. @click.stop="deleteWorks(w.wid)"
  3431. alt
  3432. />
  3433. </div>
  3434. <div class="workImg" v-if="w.type == 12">
  3435. <img
  3436. style="cursor: pointer"
  3437. :src="word2"
  3438. @click="downloadFile(w.works,w.userid)"
  3439. alt
  3440. />
  3441. <!-- @click="openVideo(w.works)" -->
  3442. <div
  3443. class="answerScore"
  3444. v-if="w.score"
  3445. @click.stop="openScore(w)"
  3446. :class="{
  3447. rightW:
  3448. w.userid == userid ||
  3449. tType == 1 ||
  3450. tType == 4 ||
  3451. w.ateacher == userid
  3452. }"
  3453. >
  3454. {{ JSON.parse(w.score).wScore }}分
  3455. </div>
  3456. <div
  3457. class="answerScore"
  3458. @click.stop="openScore(w)"
  3459. v-else-if="courseDetail.userid == userid"
  3460. :class="{
  3461. rightW:
  3462. w.userid == userid ||
  3463. tType == 1 ||
  3464. tType == 4 ||
  3465. w.ateacher == userid
  3466. }"
  3467. >
  3468. 评分
  3469. </div>
  3470. <img
  3471. class="deleteImg"
  3472. src="../../assets/deleteworks.png"
  3473. v-if="
  3474. w.userid == userid || tType == 1 || tType == 4
  3475. "
  3476. @click.stop="deleteWorks(w.wid)"
  3477. alt
  3478. />
  3479. </div>
  3480. <div class="comment" style="min-width: 200px">
  3481. <div class="worksName">
  3482. <div>{{ w.sName }}</div>
  3483. </div>
  3484. <div class="commentList">
  3485. <div class="commentList">
  3486. <div
  3487. class="commentImg"
  3488. @click="
  3489. isLikes(
  3490. w.wid,
  3491. userid,
  3492. 1,
  3493. null,
  3494. w.isLikes,
  3495. w.sName
  3496. )
  3497. "
  3498. >
  3499. <img
  3500. :src="w.isLikes == true ? likes : noLikes"
  3501. alt=""
  3502. />
  3503. </div>
  3504. <div>{{ w.likesCount }}</div>
  3505. </div>
  3506. <div
  3507. class="commentList"
  3508. style="margin-right: 15px"
  3509. >
  3510. <div
  3511. class="commentImg"
  3512. @click="
  3513. commentOther(
  3514. w,
  3515. toolIndex,
  3516. wIndex,
  3517. null,
  3518. g.id
  3519. )
  3520. "
  3521. >
  3522. <img
  3523. src="../../assets/icon/comment/comment.png"
  3524. alt=""
  3525. />
  3526. </div>
  3527. <div>{{ w.commentCount }}</div>
  3528. </div>
  3529. </div>
  3530. </div>
  3531. </div>
  3532. </div>
  3533. <div class="group_work" v-else>暂无提交作业</div>
  3534. </div>
  3535. </div>
  3536. <div
  3537. :id="'tool-' + toolIndex"
  3538. :style="{
  3539. height:
  3540. isCloseList[toolIndex].isClose == 1
  3541. ? retrnToolHeight('tool-' + toolIndex)
  3542. : 'auto',
  3543. overflow:
  3544. isCloseList[toolIndex].isClose == 1
  3545. ? 'hidden'
  3546. : 'unset'
  3547. }"
  3548. class="worksDetailBox"
  3549. v-if="
  3550. worksStudent.length &&
  3551. worksStudent[toolIndex].length > 0
  3552. "
  3553. >
  3554. <div
  3555. class="works"
  3556. style="
  3557. width: 200px;
  3558. height: 140px;
  3559. margin: 10px 10px 10px 0;
  3560. border-radius: 15px;
  3561. box-shadow: 0 0 6px 1px #dfdada;
  3562. "
  3563. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3564. :key="wIndex"
  3565. :class="w.type == 1 ? 'isTypeOne' : ''"
  3566. >
  3567. <div class="workImg" v-if="w.type == 0">
  3568. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3569. <img
  3570. :src="w.works"
  3571. @click="previewImg(w.works, w)"
  3572. alt
  3573. />
  3574. <div
  3575. class="answerScore"
  3576. v-if="w.score"
  3577. @click.stop="openScore(w)"
  3578. :class="{
  3579. rightW:
  3580. w.userid == userid ||
  3581. tType == 1 ||
  3582. tType == 4 ||
  3583. w.ateacher == userid
  3584. }"
  3585. >
  3586. {{ JSON.parse(w.score).wScore }}分
  3587. </div>
  3588. <div
  3589. class="answerScore"
  3590. @click.stop="openScore(w)"
  3591. v-else-if="
  3592. courseDetail.userid == userid &&
  3593. courseDetail.state != 5 &&
  3594. chapInfoList[courseType].chapterInfo[0]
  3595. .taskJson[taskCount].eList &&
  3596. chapInfoList[courseType].chapterInfo[0]
  3597. .taskJson[taskCount].eList.length
  3598. "
  3599. :class="{
  3600. rightW:
  3601. w.userid == userid ||
  3602. tType == 1 ||
  3603. tType == 4 ||
  3604. w.ateacher == userid
  3605. }"
  3606. >
  3607. 评分
  3608. </div>
  3609. <!-- <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"> -->
  3610. <div
  3611. v-else-if="
  3612. (courseDetail.userid == userid ||
  3613. (courseDetail.course_teacher &&
  3614. courseDetail.course_teacher.indexOf(userid) !=
  3615. -1) ||
  3616. (w.userid == userid && sIsOpen)) &&
  3617. courseDetail.state == 5 &&
  3618. ((chapInfoList[courseType].chapterInfo[0]
  3619. .taskJson[taskCount].eList &&
  3620. chapInfoList[courseType].chapterInfo[0]
  3621. .taskJson[taskCount].eList.length) ||
  3622. (tool.eList && tool.eList.length))
  3623. "
  3624. >
  3625. <el-popover
  3626. placement="top"
  3627. width="318"
  3628. :disabled="AIloading[toolIndex][wIndex].loading"
  3629. trigger="hover"
  3630. >
  3631. <markScore
  3632. :loading="AIloading[toolIndex][wIndex].loading"
  3633. :markScoreVisible="markScoreVisible"
  3634. :ref="`markSco${toolIndex}${wIndex}`"
  3635. @updateLoading="updateLoading"
  3636. @updateDocSco="updateDocSco"
  3637. @refreshOther="refreshOther"
  3638. @markScoreDig="markScoreDig"
  3639. :tool="tool"
  3640. :wIndex="wIndex"
  3641. :scoCon="w"
  3642. :toolIndex="toolIndex"
  3643. :key="refreshKey"
  3644. :stage="courseType"
  3645. :task="taskCount"
  3646. :scoTit="
  3647. chapInfoList[courseType].chapterInfo[0]
  3648. .taskJson[taskCount].eList
  3649. "
  3650. >
  3651. </markScore>
  3652. <div
  3653. class="answerScore"
  3654. @click="
  3655. markScoreDig2(
  3656. w.sName,
  3657. worksStudent,
  3658. w.userid,
  3659. toolIndex,
  3660. chapInfoList[courseType].chapterInfo[0]
  3661. .taskJson[taskCount].eList,
  3662. AIloading[toolIndex][wIndex].loading,
  3663. tool
  3664. )
  3665. "
  3666. slot="reference"
  3667. :class="{
  3668. rightW:
  3669. w.userid == userid ||
  3670. tType == 1 ||
  3671. tType == 4 ||
  3672. w.ateacher == userid
  3673. }"
  3674. >
  3675. <span v-if="AIloading[toolIndex][wIndex].sco">
  3676. {{
  3677. AIloading[toolIndex][wIndex].loading
  3678. ? "评分中"
  3679. : AIloading[toolIndex][wIndex].sco + "分"
  3680. }}
  3681. </span>
  3682. <span v-else>
  3683. {{
  3684. AIloading[toolIndex][wIndex].loading
  3685. ? "评分中"
  3686. : "评分"
  3687. }}
  3688. </span>
  3689. </div>
  3690. </el-popover>
  3691. </div>
  3692. <img
  3693. class="deleteImg"
  3694. src="../../assets/deleteworks.png"
  3695. v-if="
  3696. w.userid == userid || tType == 1 || tType == 4
  3697. "
  3698. @click.stop="deleteWorks(w.wid)"
  3699. alt
  3700. />
  3701. </div>
  3702. <div class="workImg" v-if="w.type == 1">
  3703. <img :src="word" @click="openFile(w.works)" alt />
  3704. <!-- @click="openFile(w.works)" -->
  3705. <div
  3706. class="answerScore"
  3707. v-if="w.score"
  3708. @click.stop="openScore(w)"
  3709. :class="{
  3710. rightW:
  3711. w.userid == userid ||
  3712. tType == 1 ||
  3713. tType == 4 ||
  3714. w.ateacher == userid
  3715. }"
  3716. >
  3717. {{ JSON.parse(w.score).wScore }}分
  3718. </div>
  3719. <div
  3720. class="answerScore"
  3721. @click.stop="openScore(w)"
  3722. v-else-if="
  3723. courseDetail.userid == userid &&
  3724. courseDetail.state != 5 &&
  3725. chapInfoList[courseType].chapterInfo[0]
  3726. .taskJson[taskCount].eList &&
  3727. chapInfoList[courseType].chapterInfo[0]
  3728. .taskJson[taskCount].eList.length
  3729. "
  3730. :class="{
  3731. rightW:
  3732. w.userid == userid ||
  3733. tType == 1 ||
  3734. tType == 4 ||
  3735. w.ateacher == userid
  3736. }"
  3737. >
  3738. 评分
  3739. </div>
  3740. <!-- <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"> -->
  3741. <div
  3742. v-else-if="
  3743. (courseDetail.userid == userid ||
  3744. (courseDetail.course_teacher &&
  3745. courseDetail.course_teacher.indexOf(userid) !=
  3746. -1) ||
  3747. (w.userid == userid && sIsOpen)) &&
  3748. courseDetail.state == 5 &&
  3749. ((chapInfoList[courseType].chapterInfo[0]
  3750. .taskJson[taskCount].eList &&
  3751. chapInfoList[courseType].chapterInfo[0]
  3752. .taskJson[taskCount].eList.length) ||
  3753. (tool.eList && tool.eList.length))
  3754. "
  3755. >
  3756. <el-popover
  3757. placement="top"
  3758. width="318"
  3759. :disabled="AIloading[toolIndex][wIndex].loading"
  3760. trigger="hover"
  3761. >
  3762. <markScore
  3763. :loading="AIloading[toolIndex][wIndex].loading"
  3764. :markScoreVisible="markScoreVisible"
  3765. :ref="`markSco${toolIndex}${wIndex}`"
  3766. @updateLoading="updateLoading"
  3767. @updateDocSco="updateDocSco"
  3768. @refreshOther="refreshOther"
  3769. @markScoreDig="markScoreDig"
  3770. :tool="tool"
  3771. :wIndex="wIndex"
  3772. :scoCon="w"
  3773. :toolIndex="toolIndex"
  3774. :key="refreshKey"
  3775. :stage="courseType"
  3776. :task="taskCount"
  3777. :scoTit="
  3778. chapInfoList[courseType].chapterInfo[0]
  3779. .taskJson[taskCount].eList
  3780. "
  3781. >
  3782. </markScore>
  3783. <div
  3784. class="answerScore"
  3785. @click="
  3786. markScoreDig2(
  3787. w.sName,
  3788. worksStudent,
  3789. w.userid,
  3790. toolIndex,
  3791. chapInfoList[courseType].chapterInfo[0]
  3792. .taskJson[taskCount].eList,
  3793. AIloading[toolIndex][wIndex].loading,
  3794. tool
  3795. )
  3796. "
  3797. slot="reference"
  3798. :class="{
  3799. rightW:
  3800. w.userid == userid ||
  3801. tType == 1 ||
  3802. tType == 4 ||
  3803. w.ateacher == userid
  3804. }"
  3805. >
  3806. <span v-if="AIloading[toolIndex][wIndex].sco">
  3807. {{
  3808. AIloading[toolIndex][wIndex].loading
  3809. ? "评分中"
  3810. : AIloading[toolIndex][wIndex].sco + "分"
  3811. }}
  3812. </span>
  3813. <span v-else>
  3814. {{
  3815. AIloading[toolIndex][wIndex].loading
  3816. ? "评分中"
  3817. : "评分"
  3818. }}
  3819. </span>
  3820. </div>
  3821. </el-popover>
  3822. </div>
  3823. <img
  3824. class="deleteImg"
  3825. src="../../assets/deleteworks.png"
  3826. v-if="
  3827. w.userid == userid || tType == 1 || tType == 4
  3828. "
  3829. @click.stop="deleteWorks(w.wid)"
  3830. alt
  3831. />
  3832. </div>
  3833. <div class="workImg" v-if="w.type == 3">
  3834. <img
  3835. style="cursor: pointer"
  3836. :src="video"
  3837. @click="openVideo(w)"
  3838. alt
  3839. />
  3840. <!-- @click="openVideo(w.works)" -->
  3841. <div
  3842. class="answerScore"
  3843. v-if="w.score"
  3844. @click.stop="openScore(w)"
  3845. :class="{
  3846. rightW:
  3847. w.userid == userid ||
  3848. tType == 1 ||
  3849. tType == 4 ||
  3850. w.ateacher == userid
  3851. }"
  3852. >
  3853. {{ JSON.parse(w.score).wScore }}分
  3854. </div>
  3855. <div
  3856. class="answerScore"
  3857. @click.stop="openScore(w)"
  3858. v-else-if="
  3859. courseDetail.userid == userid &&
  3860. courseDetail.state != 5 &&
  3861. chapInfoList[courseType].chapterInfo[0]
  3862. .taskJson[taskCount].eList &&
  3863. chapInfoList[courseType].chapterInfo[0]
  3864. .taskJson[taskCount].eList.length
  3865. "
  3866. :class="{
  3867. rightW:
  3868. w.userid == userid ||
  3869. tType == 1 ||
  3870. tType == 4 ||
  3871. w.ateacher == userid
  3872. }"
  3873. >
  3874. 评分
  3875. </div>
  3876. <!-- <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"> -->
  3877. <div
  3878. v-else-if="
  3879. (courseDetail.userid == userid ||
  3880. (courseDetail.course_teacher &&
  3881. courseDetail.course_teacher.indexOf(userid) !=
  3882. -1) ||
  3883. (w.userid == userid && sIsOpen)) &&
  3884. courseDetail.state == 5 &&
  3885. ((chapInfoList[courseType].chapterInfo[0]
  3886. .taskJson[taskCount].eList &&
  3887. chapInfoList[courseType].chapterInfo[0]
  3888. .taskJson[taskCount].eList.length) ||
  3889. (tool.eList && tool.eList.length))
  3890. "
  3891. >
  3892. <el-popover
  3893. placement="top"
  3894. width="318"
  3895. :disabled="AIloading[toolIndex][wIndex].loading"
  3896. trigger="hover"
  3897. >
  3898. <markScore
  3899. :loading="AIloading[toolIndex][wIndex].loading"
  3900. :markScoreVisible="markScoreVisible"
  3901. :ref="`markSco${toolIndex}${wIndex}`"
  3902. @updateLoading="updateLoading"
  3903. @updateDocSco="updateDocSco"
  3904. @refreshOther="refreshOther"
  3905. @markScoreDig="markScoreDig"
  3906. :tool="tool"
  3907. :wIndex="wIndex"
  3908. :scoCon="w"
  3909. :toolIndex="toolIndex"
  3910. :key="refreshKey"
  3911. :stage="courseType"
  3912. :task="taskCount"
  3913. :scoTit="
  3914. chapInfoList[courseType].chapterInfo[0]
  3915. .taskJson[taskCount].eList
  3916. "
  3917. >
  3918. </markScore>
  3919. <div
  3920. class="answerScore"
  3921. @click="
  3922. markScoreDig2(
  3923. w.sName,
  3924. worksStudent,
  3925. w.userid,
  3926. toolIndex,
  3927. chapInfoList[courseType].chapterInfo[0]
  3928. .taskJson[taskCount].eList,
  3929. AIloading[toolIndex][wIndex].loading,
  3930. tool
  3931. )
  3932. "
  3933. slot="reference"
  3934. :class="{
  3935. rightW:
  3936. w.userid == userid ||
  3937. tType == 1 ||
  3938. tType == 4 ||
  3939. w.ateacher == userid
  3940. }"
  3941. >
  3942. <span v-if="AIloading[toolIndex][wIndex].sco">
  3943. {{
  3944. AIloading[toolIndex][wIndex].loading
  3945. ? "评分中"
  3946. : AIloading[toolIndex][wIndex].sco + "分"
  3947. }}
  3948. </span>
  3949. <span v-else>
  3950. {{
  3951. AIloading[toolIndex][wIndex].loading
  3952. ? "评分中"
  3953. : "评分"
  3954. }}
  3955. </span>
  3956. </div>
  3957. </el-popover>
  3958. </div>
  3959. <img
  3960. class="deleteImg"
  3961. src="../../assets/deleteworks.png"
  3962. v-if="
  3963. w.userid == userid || tType == 1 || tType == 4
  3964. "
  3965. @click.stop="deleteWorks(w.wid)"
  3966. alt
  3967. />
  3968. </div>
  3969. <div class="workImg" v-if="w.type == 12">
  3970. <img
  3971. style="cursor: pointer"
  3972. :src="word2"
  3973. @click="downloadFile(w.works,w.userid)"
  3974. alt
  3975. />
  3976. <!-- @click="openVideo(w.works)" -->
  3977. <div
  3978. class="answerScore"
  3979. v-if="w.score"
  3980. @click.stop="openScore(w)"
  3981. :class="{
  3982. rightW:
  3983. w.userid == userid ||
  3984. tType == 1 ||
  3985. tType == 4 ||
  3986. w.ateacher == userid
  3987. }"
  3988. >
  3989. {{ JSON.parse(w.score).wScore }}分
  3990. </div>
  3991. <div
  3992. class="answerScore"
  3993. @click.stop="openScore(w)"
  3994. v-else-if="
  3995. courseDetail.userid == userid &&
  3996. courseDetail.state != 5 &&
  3997. chapInfoList[courseType].chapterInfo[0]
  3998. .taskJson[taskCount].eList &&
  3999. chapInfoList[courseType].chapterInfo[0]
  4000. .taskJson[taskCount].eList.length
  4001. "
  4002. :class="{
  4003. rightW:
  4004. w.userid == userid ||
  4005. tType == 1 ||
  4006. tType == 4 ||
  4007. w.ateacher == userid
  4008. }"
  4009. >
  4010. 评分
  4011. </div>
  4012. <!-- <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"> -->
  4013. <div
  4014. v-else-if="
  4015. (courseDetail.userid == userid ||
  4016. (courseDetail.course_teacher &&
  4017. courseDetail.course_teacher.indexOf(userid) !=
  4018. -1) ||
  4019. (w.userid == userid && sIsOpen)) &&
  4020. courseDetail.state == 5 &&
  4021. ((chapInfoList[courseType].chapterInfo[0]
  4022. .taskJson[taskCount].eList &&
  4023. chapInfoList[courseType].chapterInfo[0]
  4024. .taskJson[taskCount].eList.length) ||
  4025. (tool.eList && tool.eList.length))
  4026. "
  4027. >
  4028. <el-popover
  4029. placement="top"
  4030. width="318"
  4031. :disabled="AIloading[toolIndex][wIndex].loading"
  4032. trigger="hover"
  4033. >
  4034. <markScore
  4035. :loading="AIloading[toolIndex][wIndex].loading"
  4036. :markScoreVisible="markScoreVisible"
  4037. :ref="`markSco${toolIndex}${wIndex}`"
  4038. @updateLoading="updateLoading"
  4039. @updateDocSco="updateDocSco"
  4040. @refreshOther="refreshOther"
  4041. @markScoreDig="markScoreDig"
  4042. :tool="tool"
  4043. :wIndex="wIndex"
  4044. :scoCon="w"
  4045. :toolIndex="toolIndex"
  4046. :key="refreshKey"
  4047. :stage="courseType"
  4048. :task="taskCount"
  4049. :scoTit="
  4050. chapInfoList[courseType].chapterInfo[0]
  4051. .taskJson[taskCount].eList
  4052. "
  4053. >
  4054. </markScore>
  4055. <div
  4056. class="answerScore"
  4057. @click="
  4058. markScoreDig2(
  4059. w.sName,
  4060. worksStudent,
  4061. w.userid,
  4062. toolIndex,
  4063. chapInfoList[courseType].chapterInfo[0]
  4064. .taskJson[taskCount].eList,
  4065. AIloading[toolIndex][wIndex].loading,
  4066. tool
  4067. )
  4068. "
  4069. slot="reference"
  4070. :class="{
  4071. rightW:
  4072. w.userid == userid ||
  4073. tType == 1 ||
  4074. tType == 4 ||
  4075. w.ateacher == userid
  4076. }"
  4077. >
  4078. <span v-if="AIloading[toolIndex][wIndex].sco">
  4079. {{
  4080. AIloading[toolIndex][wIndex].loading
  4081. ? "评分中"
  4082. : AIloading[toolIndex][wIndex].sco + "分"
  4083. }}
  4084. </span>
  4085. <span v-else>
  4086. {{
  4087. AIloading[toolIndex][wIndex].loading
  4088. ? "评分中"
  4089. : "评分"
  4090. }}
  4091. </span>
  4092. </div>
  4093. </el-popover>
  4094. </div>
  4095. <img
  4096. class="deleteImg"
  4097. src="../../assets/deleteworks.png"
  4098. v-if="
  4099. w.userid == userid || tType == 1 || tType == 4
  4100. "
  4101. @click.stop="deleteWorks(w.wid)"
  4102. alt
  4103. />
  4104. </div>
  4105. <div class="comment" style="min-width: 200px">
  4106. <div class="worksName">
  4107. <div>{{ w.sName }}</div>
  4108. </div>
  4109. <div class="commentList">
  4110. <div class="commentList">
  4111. <div
  4112. class="commentImg"
  4113. @click="
  4114. isLikes(
  4115. w.wid,
  4116. userid,
  4117. 1,
  4118. null,
  4119. w.isLikes,
  4120. w.sName
  4121. )
  4122. "
  4123. >
  4124. <img
  4125. :src="w.isLikes == true ? likes : noLikes"
  4126. alt=""
  4127. />
  4128. </div>
  4129. <div>{{ w.likesCount }}</div>
  4130. </div>
  4131. <div class="commentList" style="margin-right: 15px">
  4132. <div
  4133. class="commentImg"
  4134. @click="commentOther(w, toolIndex, wIndex)"
  4135. >
  4136. <img
  4137. src="../../assets/icon/comment/comment.png"
  4138. alt=""
  4139. />
  4140. </div>
  4141. <div>{{ w.commentCount }}</div>
  4142. </div>
  4143. </div>
  4144. </div>
  4145. </div>
  4146. </div>
  4147. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4148. 未提交
  4149. </div>
  4150. <div
  4151. class="noWorksS"
  4152. v-if="noWorksS && noWorksS[toolIndex].length"
  4153. >
  4154. <div
  4155. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4156. :key="sIndex"
  4157. class="noWorksName"
  4158. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4159. >
  4160. <el-tooltip
  4161. effect="dark"
  4162. :content="s.student"
  4163. placement="top"
  4164. >
  4165. <span>{{ s.student }}</span>
  4166. </el-tooltip>
  4167. </div>
  4168. </div>
  4169. </div>
  4170. <div
  4171. v-if="
  4172. tType &&
  4173. ((tType == 2 && sIsOpen == true) ||
  4174. tType == 1 ||
  4175. tType == 4) &&
  4176. tool.tool.indexOf(70) != -1
  4177. "
  4178. class="worksBox"
  4179. >
  4180. <div
  4181. class="zuoyeYulan"
  4182. v-if="
  4183. worksStudent.length &&
  4184. worksStudent[toolIndex].length > 0
  4185. "
  4186. >
  4187. <div class="worksTop">
  4188. <div>作业预览</div>
  4189. <div
  4190. class="corOpen"
  4191. @click="contract(toolIndex)"
  4192. v-if="
  4193. isCloseList[toolIndex].isCloseBoolean &&
  4194. isCloseList[toolIndex].isClose == 0
  4195. "
  4196. >
  4197. 折叠
  4198. </div>
  4199. <div
  4200. class="corOpen"
  4201. @click="contract(toolIndex)"
  4202. v-if="isCloseList[toolIndex].isClose == 1"
  4203. >
  4204. 展开
  4205. </div>
  4206. </div>
  4207. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4208. </div>
  4209. <div
  4210. :id="'tool-' + toolIndex"
  4211. :style="{
  4212. height:
  4213. isCloseList[toolIndex].isClose == 1
  4214. ? retrnToolHeight('tool-' + toolIndex)
  4215. : 'auto',
  4216. overflow:
  4217. isCloseList[toolIndex].isClose == 1
  4218. ? 'hidden'
  4219. : 'unset'
  4220. }"
  4221. class="worksDetailBox"
  4222. v-if="
  4223. worksStudent.length &&
  4224. worksStudent[toolIndex].length > 0
  4225. "
  4226. >
  4227. <div
  4228. class="works"
  4229. style="
  4230. width: 200px;
  4231. height: 140px;
  4232. margin: 10px 10px 10px 0;
  4233. border-radius: 15px;
  4234. box-shadow: 0 0 6px 1px #dfdada;
  4235. "
  4236. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4237. :key="wIndex"
  4238. :class="w.type == 1 ? 'isTypeOne' : ''"
  4239. >
  4240. <div
  4241. class="workImg"
  4242. @click.stop="openScore(w, toolIndex)"
  4243. >
  4244. <img :src="word" alt />
  4245. <img
  4246. class="deleteImg"
  4247. src="../../assets/deleteworks.png"
  4248. v-if="
  4249. w.userid == userid || tType == 1 || tType == 4
  4250. "
  4251. @click.stop="deleteWorks(w.wid)"
  4252. alt
  4253. />
  4254. </div>
  4255. <div class="comment" style="min-width: 200px">
  4256. <div class="worksName">
  4257. <div>{{ w.sName }}</div>
  4258. </div>
  4259. </div>
  4260. </div>
  4261. </div>
  4262. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4263. 未提交
  4264. </div>
  4265. <div
  4266. class="noWorksS"
  4267. v-if="noWorksS && noWorksS[toolIndex].length"
  4268. >
  4269. <div
  4270. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4271. :key="sIndex"
  4272. class="noWorksName"
  4273. >
  4274. <el-tooltip
  4275. effect="dark"
  4276. :content="s.student"
  4277. placement="top"
  4278. >
  4279. <span>{{ s.student }}</span>
  4280. </el-tooltip>
  4281. </div>
  4282. </div>
  4283. </div>
  4284. <div
  4285. v-if="
  4286. tType &&
  4287. tType == 2 &&
  4288. !sIsOpen &&
  4289. tool.tool.indexOf(70) != -1
  4290. "
  4291. class="worksBox"
  4292. >
  4293. <div
  4294. class="zuoyeYulan"
  4295. v-if="workStudent[toolIndex].length > 0"
  4296. >
  4297. <span class="worksTitle">作业预览</span>
  4298. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4299. </div>
  4300. <div
  4301. class="worksDetailBox"
  4302. v-if="workStudent[toolIndex].length > 0"
  4303. >
  4304. <div
  4305. class="works"
  4306. style="
  4307. width: 200px;
  4308. height: 140px;
  4309. margin: 10px 10px 10px 0;
  4310. box-shadow: 0 0 6px 1px #dfdada;
  4311. "
  4312. v-for="(w, wIndex) in workStudent[toolIndex]"
  4313. :key="wIndex"
  4314. >
  4315. <div
  4316. class="workImg"
  4317. @click.stop="openScore(w, toolIndex)"
  4318. >
  4319. <img :src="word" alt />
  4320. <img
  4321. class="deleteImg"
  4322. src="../../assets/deleteworks.png"
  4323. v-if="
  4324. w.userid == userid || tType == 1 || tType == 4
  4325. "
  4326. @click.stop="deleteWorks(w.wid)"
  4327. alt
  4328. />
  4329. </div>
  4330. <div class="worksName">
  4331. <div>{{ w.sName }}</div>
  4332. </div>
  4333. </div>
  4334. </div>
  4335. </div>
  4336. <div
  4337. v-if="
  4338. tType &&
  4339. ((tType == 2 && sIsOpen == true) ||
  4340. tType == 1 ||
  4341. tType == 4) &&
  4342. tool.tool.indexOf(32) != -1
  4343. "
  4344. class="worksBox"
  4345. >
  4346. <div
  4347. class="zuoyeYulan"
  4348. v-if="
  4349. worksStudent.length &&
  4350. worksStudent[toolIndex].length > 0
  4351. "
  4352. >
  4353. <div class="worksTop">
  4354. <div>作业预览</div>
  4355. <div
  4356. class="corOpen"
  4357. @click="contract(toolIndex)"
  4358. v-if="
  4359. isCloseList[toolIndex].isCloseBoolean &&
  4360. isCloseList[toolIndex].isClose == 0
  4361. "
  4362. >
  4363. 折叠
  4364. </div>
  4365. <div
  4366. class="corOpen"
  4367. @click="contract(toolIndex)"
  4368. v-if="isCloseList[toolIndex].isClose == 1"
  4369. >
  4370. 展开
  4371. </div>
  4372. </div>
  4373. </div>
  4374. <div
  4375. :id="'tool-' + toolIndex"
  4376. :style="{
  4377. height:
  4378. isCloseList[toolIndex].isClose == 1
  4379. ? retrnToolHeight('tool-' + toolIndex)
  4380. : 'auto',
  4381. overflow:
  4382. isCloseList[toolIndex].isClose == 1
  4383. ? 'hidden'
  4384. : 'unset'
  4385. }"
  4386. class="worksDetailBox"
  4387. v-if="
  4388. worksStudent.length &&
  4389. worksStudent[toolIndex].length > 0
  4390. "
  4391. >
  4392. <div
  4393. class="works"
  4394. style="
  4395. width: 200px;
  4396. height: 140px;
  4397. margin: 10px 10px 10px 0;
  4398. border-radius: 15px;
  4399. box-shadow: 0 0 6px 1px #dfdada;
  4400. "
  4401. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4402. :key="wIndex"
  4403. :class="w.type == 1 ? 'isTypeOne' : ''"
  4404. >
  4405. <div class="workImg">
  4406. <img
  4407. :src="word2"
  4408. @click="downloadFile(w.works,w.userid)"
  4409. alt
  4410. />
  4411. <div
  4412. class="answerScore"
  4413. v-if="w.score"
  4414. @click.stop="openScore(w)"
  4415. :class="{
  4416. rightW:
  4417. w.userid == userid ||
  4418. tType == 1 ||
  4419. tType == 4 ||
  4420. w.ateacher == userid
  4421. }"
  4422. >
  4423. {{ JSON.parse(w.score).wScore }}分
  4424. </div>
  4425. <div
  4426. class="answerScore"
  4427. @click.stop="openScore(w)"
  4428. v-else-if="courseDetail.userid == userid"
  4429. :class="{
  4430. rightW:
  4431. w.userid == userid ||
  4432. tType == 1 ||
  4433. tType == 4 ||
  4434. w.ateacher == userid
  4435. }"
  4436. >
  4437. 评分
  4438. </div>
  4439. <img
  4440. class="deleteImg"
  4441. src="../../assets/deleteworks.png"
  4442. v-if="
  4443. w.userid == userid || tType == 1 || tType == 4
  4444. "
  4445. @click.stop="deleteWorks(w.wid)"
  4446. alt
  4447. />
  4448. </div>
  4449. <div class="comment" style="min-width: 200px">
  4450. <div class="worksName">
  4451. <div>{{ w.sName }}</div>
  4452. </div>
  4453. <div class="commentList">
  4454. <div class="commentList">
  4455. <div
  4456. class="commentImg"
  4457. @click="
  4458. isLikes(
  4459. w.wid,
  4460. userid,
  4461. 1,
  4462. null,
  4463. w.isLikes,
  4464. w.sName
  4465. )
  4466. "
  4467. >
  4468. <img
  4469. :src="w.isLikes == true ? likes : noLikes"
  4470. alt=""
  4471. />
  4472. </div>
  4473. <div>{{ w.likesCount }}</div>
  4474. </div>
  4475. <div class="commentList" style="margin-right: 15px">
  4476. <div
  4477. class="commentImg"
  4478. @click="commentOther(w, toolIndex, wIndex)"
  4479. >
  4480. <img
  4481. src="../../assets/icon/comment/comment.png"
  4482. alt=""
  4483. />
  4484. </div>
  4485. <div>{{ w.commentCount }}</div>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. </div>
  4490. </div>
  4491. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4492. 未提交
  4493. </div>
  4494. <div
  4495. class="noWorksS"
  4496. v-if="noWorksS && noWorksS[toolIndex].length"
  4497. >
  4498. <div
  4499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4500. :key="sIndex"
  4501. class="noWorksName"
  4502. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4503. >
  4504. <el-tooltip
  4505. effect="dark"
  4506. :content="s.student"
  4507. placement="top"
  4508. >
  4509. <span>{{ s.student }}</span>
  4510. </el-tooltip>
  4511. </div>
  4512. </div>
  4513. </div>
  4514. <div
  4515. v-if="
  4516. tType &&
  4517. ((tType == 2 && sIsOpen == true) ||
  4518. tType == 1 ||
  4519. tType == 4) &&
  4520. tool.tool.indexOf(57) != -1
  4521. "
  4522. class="worksBox"
  4523. >
  4524. <div
  4525. class="zuoyeYulan"
  4526. v-if="
  4527. worksStudent.length &&
  4528. worksStudent[toolIndex].length > 0
  4529. "
  4530. >
  4531. <div class="worksTop">
  4532. <div>作业预览</div>
  4533. <div
  4534. class="corOpen"
  4535. @click="contract(toolIndex)"
  4536. v-if="
  4537. isCloseList[toolIndex].isCloseBoolean &&
  4538. isCloseList[toolIndex].isClose == 0
  4539. "
  4540. >
  4541. 折叠
  4542. </div>
  4543. <div
  4544. class="corOpen"
  4545. @click="contract(toolIndex)"
  4546. v-if="isCloseList[toolIndex].isClose == 1"
  4547. >
  4548. 展开
  4549. </div>
  4550. </div>
  4551. </div>
  4552. <div
  4553. :id="'tool-' + toolIndex"
  4554. :style="{
  4555. height:
  4556. isCloseList[toolIndex].isClose == 1
  4557. ? retrnToolHeight('tool-' + toolIndex)
  4558. : 'auto',
  4559. overflow:
  4560. isCloseList[toolIndex].isClose == 1
  4561. ? 'hidden'
  4562. : 'unset'
  4563. }"
  4564. class="worksDetailBox"
  4565. v-if="
  4566. worksStudent.length &&
  4567. worksStudent[toolIndex].length > 0
  4568. "
  4569. >
  4570. <div
  4571. class="works"
  4572. style="
  4573. width: 200px;
  4574. height: 140px;
  4575. margin: 10px 10px 10px 0;
  4576. border-radius: 15px;
  4577. box-shadow: 0 0 6px 1px #dfdada;
  4578. "
  4579. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4580. :key="wIndex"
  4581. :class="w.type == 1 ? 'isTypeOne' : ''"
  4582. >
  4583. <div class="workImg">
  4584. <img
  4585. :src="word2"
  4586. @click="downloadFile(w.works,w.userid)"
  4587. v-if="w.type == 12"
  4588. alt
  4589. />
  4590. <img
  4591. :src="word2"
  4592. @click="
  4593. openCocoPi(57, toolIndex, w.userid, w.sName)
  4594. "
  4595. v-else-if="w.type == 15"
  4596. alt
  4597. />
  4598. <div
  4599. class="answerScore"
  4600. v-if="w.score"
  4601. @click.stop="openScore(w)"
  4602. :class="{
  4603. rightW:
  4604. w.userid == userid ||
  4605. tType == 1 ||
  4606. tType == 4 ||
  4607. w.ateacher == userid
  4608. }"
  4609. >
  4610. {{ JSON.parse(w.score).wScore }}分
  4611. </div>
  4612. <div
  4613. class="answerScore"
  4614. @click.stop="openScore(w)"
  4615. v-else-if="
  4616. courseDetail.userid == userid &&
  4617. courseDetail.state != 5 &&
  4618. chapInfoList[courseType].chapterInfo[0]
  4619. .taskJson[taskCount].eList &&
  4620. chapInfoList[courseType].chapterInfo[0]
  4621. .taskJson[taskCount].eList.length
  4622. "
  4623. :class="{
  4624. rightW:
  4625. w.userid == userid ||
  4626. tType == 1 ||
  4627. tType == 4 ||
  4628. w.ateacher == userid
  4629. }"
  4630. >
  4631. 评分
  4632. </div>
  4633. <!-- <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"> -->
  4634. <div
  4635. v-else-if="
  4636. (courseDetail.userid == userid ||
  4637. (courseDetail.course_teacher &&
  4638. courseDetail.course_teacher.indexOf(userid) !=
  4639. -1) ||
  4640. (w.userid == userid && sIsOpen)) &&
  4641. courseDetail.state == 5 &&
  4642. ((chapInfoList[courseType].chapterInfo[0]
  4643. .taskJson[taskCount].eList &&
  4644. chapInfoList[courseType].chapterInfo[0]
  4645. .taskJson[taskCount].eList.length) ||
  4646. (tool.eList && tool.eList.length))
  4647. "
  4648. >
  4649. <el-popover
  4650. placement="top"
  4651. width="318"
  4652. :disabled="AIloading[toolIndex][wIndex].loading"
  4653. trigger="hover"
  4654. >
  4655. <markScore
  4656. :loading="AIloading[toolIndex][wIndex].loading"
  4657. :markScoreVisible="markScoreVisible"
  4658. :ref="`markSco${toolIndex}${wIndex}`"
  4659. @updateLoading="updateLoading"
  4660. @updateDocSco="updateDocSco"
  4661. @refreshOther="refreshOther"
  4662. @markScoreDig="markScoreDig"
  4663. :tool="tool"
  4664. :wIndex="wIndex"
  4665. :scoCon="w"
  4666. :toolIndex="toolIndex"
  4667. :key="refreshKey"
  4668. :stage="courseType"
  4669. :task="taskCount"
  4670. :scoTit="
  4671. chapInfoList[courseType].chapterInfo[0]
  4672. .taskJson[taskCount].eList
  4673. "
  4674. >
  4675. </markScore>
  4676. <div
  4677. class="answerScore"
  4678. @click="
  4679. markScoreDig2(
  4680. w.sName,
  4681. worksStudent,
  4682. w.userid,
  4683. toolIndex,
  4684. chapInfoList[courseType].chapterInfo[0]
  4685. .taskJson[taskCount].eList,
  4686. AIloading[toolIndex][wIndex].loading,
  4687. tool
  4688. )
  4689. "
  4690. slot="reference"
  4691. :class="{
  4692. rightW:
  4693. w.userid == userid ||
  4694. tType == 1 ||
  4695. tType == 4 ||
  4696. w.ateacher == userid
  4697. }"
  4698. >
  4699. <span v-if="AIloading[toolIndex][wIndex].sco">
  4700. {{
  4701. AIloading[toolIndex][wIndex].loading
  4702. ? "评分中"
  4703. : AIloading[toolIndex][wIndex].sco + "分"
  4704. }}
  4705. </span>
  4706. <span v-else>
  4707. {{
  4708. AIloading[toolIndex][wIndex].loading
  4709. ? "评分中"
  4710. : "评分"
  4711. }}
  4712. </span>
  4713. </div>
  4714. </el-popover>
  4715. </div>
  4716. <img
  4717. class="deleteImg"
  4718. src="../../assets/deleteworks.png"
  4719. v-if="
  4720. w.userid == userid || tType == 1 || tType == 4
  4721. "
  4722. @click.stop="deleteWorks(w.wid)"
  4723. alt
  4724. />
  4725. </div>
  4726. <div class="comment" style="min-width: 200px">
  4727. <div class="worksName">
  4728. <div>{{ w.sName }}</div>
  4729. </div>
  4730. <div class="commentList">
  4731. <div class="commentList">
  4732. <div
  4733. class="commentImg"
  4734. @click="
  4735. isLikes(
  4736. w.wid,
  4737. userid,
  4738. 1,
  4739. null,
  4740. w.isLikes,
  4741. w.sName
  4742. )
  4743. "
  4744. >
  4745. <img
  4746. :src="w.isLikes == true ? likes : noLikes"
  4747. alt=""
  4748. />
  4749. </div>
  4750. <div>{{ w.likesCount }}</div>
  4751. </div>
  4752. <div class="commentList" style="margin-right: 15px">
  4753. <div
  4754. class="commentImg"
  4755. @click="commentOther(w, toolIndex, wIndex)"
  4756. >
  4757. <img
  4758. src="../../assets/icon/comment/comment.png"
  4759. alt=""
  4760. />
  4761. </div>
  4762. <div>{{ w.commentCount }}</div>
  4763. </div>
  4764. </div>
  4765. </div>
  4766. </div>
  4767. </div>
  4768. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4769. 未提交
  4770. </div>
  4771. <div
  4772. class="noWorksS"
  4773. v-if="noWorksS && noWorksS[toolIndex].length"
  4774. >
  4775. <div
  4776. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4777. :key="sIndex"
  4778. class="noWorksName"
  4779. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4780. >
  4781. <el-tooltip
  4782. effect="dark"
  4783. :content="s.student"
  4784. placement="top"
  4785. >
  4786. <span>{{ s.student }}</span>
  4787. </el-tooltip>
  4788. </div>
  4789. </div>
  4790. </div>
  4791. <div
  4792. v-if="
  4793. tType &&
  4794. ((tType == 2 && sIsOpen == true) ||
  4795. tType == 1 ||
  4796. tType == 4) &&
  4797. tool.tool.indexOf(72) != -1
  4798. "
  4799. class="worksBox"
  4800. >
  4801. <div
  4802. class="zuoyeYulan"
  4803. style="display: flex;justify-content: space-between;align-items: center;"
  4804. v-if="
  4805. worksStudent.length &&
  4806. worksStudent[toolIndex].length > 0
  4807. "
  4808. >
  4809. <div class="worksTop">
  4810. <div>作业预览</div>
  4811. <div
  4812. class="corOpen"
  4813. @click="contract(toolIndex)"
  4814. v-if="
  4815. isCloseList[toolIndex].isCloseBoolean &&
  4816. isCloseList[toolIndex].isClose == 0
  4817. "
  4818. >
  4819. 折叠
  4820. </div>
  4821. <div
  4822. class="corOpen"
  4823. @click="contract(toolIndex)"
  4824. v-if="isCloseList[toolIndex].isClose == 1"
  4825. >
  4826. 展开
  4827. </div>
  4828. </div>
  4829. <div
  4830. style="display: flex;"
  4831. v-if="
  4832. (courseDetail.userid == userid ||
  4833. (courseDetail.course_teacher &&
  4834. courseDetail.course_teacher.indexOf(userid) !=
  4835. -1)) &&
  4836. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4837. taskCount
  4838. ].eList &&
  4839. chapInfoList[courseType].chapterInfo[0].taskJson[
  4840. taskCount
  4841. ].eList.length) ||
  4842. (tool.eList && tool.eList.length)) &&
  4843. courseDetail.state == 5
  4844. "
  4845. >
  4846. <!-- <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"> -->
  4847. <div
  4848. @click="
  4849. resetLoopEva(
  4850. worksStudent[toolIndex],
  4851. chapInfoList[courseType].chapterInfo[0].taskJson[
  4852. taskCount
  4853. ].eList,
  4854. courseType,
  4855. taskCount,
  4856. toolIndex,
  4857. tool.toolDetail,
  4858. tool
  4859. )
  4860. "
  4861. style="margin-right:10px"
  4862. class="ScoreBtn"
  4863. >
  4864. 一键重置
  4865. </div>
  4866. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4867. <img
  4868. src="../../assets/icon/newIcons/rootImg.png"
  4869. alt=""
  4870. />
  4871. AI评分
  4872. </div>
  4873. <div
  4874. class="ScoreBtn"
  4875. v-else-if="!loopLoading[toolIndex].loading"
  4876. @click="
  4877. loopEva(
  4878. worksStudent[toolIndex],
  4879. chapInfoList[courseType].chapterInfo[0].taskJson[
  4880. taskCount
  4881. ].eList,
  4882. courseType,
  4883. taskCount,
  4884. toolIndex,
  4885. tool.toolDetail,
  4886. chapInfoList[courseType].chapterInfo[0].taskJson[
  4887. taskCount
  4888. ].taskDetail,
  4889. tool
  4890. )
  4891. "
  4892. >
  4893. <img
  4894. src="../../assets/icon/newIcons/rootImg.png"
  4895. alt=""
  4896. />
  4897. AI评分
  4898. </div>
  4899. <div class="ScoreBtn" v-else>
  4900. <img
  4901. src="../../assets/icon/newIcons/rootImg.png"
  4902. alt=""
  4903. />
  4904. 正在评分
  4905. </div>
  4906. </div>
  4907. </div>
  4908. <div
  4909. :id="'tool-' + toolIndex"
  4910. :style="{
  4911. height:
  4912. isCloseList[toolIndex].isClose == 1
  4913. ? retrnToolHeight('tool-' + toolIndex)
  4914. : 'auto',
  4915. overflow:
  4916. isCloseList[toolIndex].isClose == 1
  4917. ? 'hidden'
  4918. : 'unset'
  4919. }"
  4920. class="worksDetailBox"
  4921. v-if="
  4922. worksStudent.length &&
  4923. worksStudent[toolIndex].length > 0
  4924. "
  4925. >
  4926. <div
  4927. class="works"
  4928. style="
  4929. width: 200px;
  4930. height: 140px;
  4931. margin: 10px 10px 10px 0;
  4932. border-radius: 15px;
  4933. box-shadow: 0 0 6px 1px #dfdada;
  4934. "
  4935. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4936. :key="wIndex"
  4937. :class="w.type == 1 ? 'isTypeOne' : ''"
  4938. >
  4939. <div class="workImg">
  4940. <!-- <img
  4941. :src="word2"
  4942. @click="downloadFile(w.works)"
  4943. v-if="w.type == 12"
  4944. alt
  4945. /> -->
  4946. <img
  4947. :src="word2"
  4948. @click="
  4949. openCocoFlow(w)
  4950. "
  4951. alt
  4952. />
  4953. <div
  4954. class="answerScore"
  4955. v-if="w.score"
  4956. @click.stop="openScore(w)"
  4957. :class="{
  4958. rightW:
  4959. w.userid == userid ||
  4960. tType == 1 ||
  4961. tType == 4 ||
  4962. w.ateacher == userid
  4963. }"
  4964. >
  4965. {{ JSON.parse(w.score).wScore }}分
  4966. </div>
  4967. <div
  4968. class="answerScore"
  4969. @click.stop="openScore(w)"
  4970. v-else-if="
  4971. courseDetail.userid == userid &&
  4972. courseDetail.state != 5 &&
  4973. chapInfoList[courseType].chapterInfo[0]
  4974. .taskJson[taskCount].eList &&
  4975. chapInfoList[courseType].chapterInfo[0]
  4976. .taskJson[taskCount].eList.length
  4977. "
  4978. :class="{
  4979. rightW:
  4980. w.userid == userid ||
  4981. tType == 1 ||
  4982. tType == 4 ||
  4983. w.ateacher == userid
  4984. }"
  4985. >
  4986. 评分
  4987. </div>
  4988. <div
  4989. v-else-if="
  4990. (courseDetail.userid == userid ||
  4991. (courseDetail.course_teacher &&
  4992. courseDetail.course_teacher.indexOf(userid) !=
  4993. -1) ||
  4994. (w.userid == userid && sIsOpen)) &&
  4995. courseDetail.state == 5 &&
  4996. ((chapInfoList[courseType].chapterInfo[0]
  4997. .taskJson[taskCount].eList &&
  4998. chapInfoList[courseType].chapterInfo[0]
  4999. .taskJson[taskCount].eList.length) ||
  5000. (tool.eList && tool.eList.length))
  5001. "
  5002. >
  5003. <!-- <div
  5004. class="answerScore"
  5005. @click="markScoreDig(w.userid,toolIndex)"
  5006. :class="{
  5007. rightW:
  5008. w.userid == userid ||
  5009. tType == 1 ||
  5010. tType == 4 ||
  5011. w.ateacher == userid,
  5012. }"
  5013. >
  5014. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5015. </div> -->
  5016. <!-- @show="handleShow(toolIndex,wIndex)"
  5017. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5018. <el-popover
  5019. placement="top"
  5020. width="318"
  5021. :disabled="AIloading[toolIndex][wIndex].loading"
  5022. trigger="hover"
  5023. >
  5024. <markScore
  5025. :loading="AIloading[toolIndex][wIndex].loading"
  5026. :markScoreVisible="markScoreVisible"
  5027. :ref="`markSco${toolIndex}${wIndex}`"
  5028. @updateLoading="updateLoading"
  5029. @updateDocSco="updateDocSco"
  5030. @refreshOther="refreshOther"
  5031. @markScoreDig="markScoreDig"
  5032. :tool="tool"
  5033. :wIndex="wIndex"
  5034. :scoCon="w"
  5035. :toolIndex="toolIndex"
  5036. :key="refreshKey"
  5037. :stage="courseType"
  5038. :task="taskCount"
  5039. :scoTit="
  5040. chapInfoList[courseType].chapterInfo[0]
  5041. .taskJson[taskCount].eList
  5042. "
  5043. >
  5044. </markScore>
  5045. <div
  5046. class="answerScore"
  5047. @click="
  5048. markScoreDig2(
  5049. w.sName,
  5050. worksStudent,
  5051. w.userid,
  5052. toolIndex,
  5053. chapInfoList[courseType].chapterInfo[0]
  5054. .taskJson[taskCount].eList,
  5055. AIloading[toolIndex][wIndex].loading,
  5056. tool
  5057. )
  5058. "
  5059. slot="reference"
  5060. :class="{
  5061. rightW:
  5062. w.userid == userid ||
  5063. tType == 1 ||
  5064. tType == 4 ||
  5065. w.ateacher == userid
  5066. }"
  5067. >
  5068. <span v-if="AIloading[toolIndex][wIndex].sco">
  5069. {{
  5070. AIloading[toolIndex][wIndex].loading
  5071. ? "评分中"
  5072. : AIloading[toolIndex][wIndex].sco + "分"
  5073. }}
  5074. </span>
  5075. <span v-else>
  5076. {{
  5077. AIloading[toolIndex][wIndex].loading
  5078. ? "评分中"
  5079. : "评分"
  5080. }}
  5081. </span>
  5082. </div>
  5083. </el-popover>
  5084. </div>
  5085. <img
  5086. class="deleteImg"
  5087. src="../../assets/deleteworks.png"
  5088. v-if="
  5089. w.userid == userid || tType == 1 || tType == 4
  5090. "
  5091. @click.stop="deleteWorks(w.wid)"
  5092. alt
  5093. />
  5094. </div>
  5095. <div class="comment" style="min-width: 200px">
  5096. <div class="worksName">
  5097. <div>{{ w.sName }}</div>
  5098. </div>
  5099. <div class="commentList">
  5100. <div class="commentList">
  5101. <div
  5102. class="commentImg"
  5103. @click="
  5104. isLikes(
  5105. w.wid,
  5106. userid,
  5107. 1,
  5108. null,
  5109. w.isLikes,
  5110. w.sName
  5111. )
  5112. "
  5113. >
  5114. <img
  5115. :src="w.isLikes == true ? likes : noLikes"
  5116. alt=""
  5117. />
  5118. </div>
  5119. <div>{{ w.likesCount }}</div>
  5120. </div>
  5121. <div class="commentList" style="margin-right: 15px">
  5122. <div
  5123. class="commentImg"
  5124. @click="commentOther(w, toolIndex, wIndex)"
  5125. >
  5126. <img
  5127. src="../../assets/icon/comment/comment.png"
  5128. alt=""
  5129. />
  5130. </div>
  5131. <div>{{ w.commentCount }}</div>
  5132. </div>
  5133. </div>
  5134. </div>
  5135. </div>
  5136. </div>
  5137. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5138. 未提交
  5139. </div>
  5140. <div
  5141. class="noWorksS"
  5142. v-if="noWorksS && noWorksS[toolIndex].length"
  5143. >
  5144. <div
  5145. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5146. :key="sIndex"
  5147. class="noWorksName"
  5148. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5149. >
  5150. <el-tooltip
  5151. effect="dark"
  5152. :content="s.student"
  5153. placement="top"
  5154. >
  5155. <span>{{ s.student }}</span>
  5156. </el-tooltip>
  5157. </div>
  5158. </div>
  5159. </div>
  5160. <div
  5161. v-if="
  5162. tType &&
  5163. tType == 2 &&
  5164. !sIsOpen &&
  5165. tool.tool.indexOf(72) != -1
  5166. "
  5167. class="worksBox"
  5168. >
  5169. <div
  5170. class="zuoyeYulan"
  5171. v-if="workStudent[toolIndex].length > 0"
  5172. >
  5173. <span class="worksTitle">作业预览</span>
  5174. </div>
  5175. <div
  5176. class="worksDetailBox"
  5177. v-if="workStudent[toolIndex].length > 0"
  5178. >
  5179. <div
  5180. class="works"
  5181. style="
  5182. width: 200px;
  5183. height: 140px;
  5184. margin: 10px 10px 10px 0;
  5185. box-shadow: 0 0 6px 1px #dfdada;
  5186. "
  5187. v-for="(w, wIndex) in workStudent[toolIndex]"
  5188. :key="wIndex"
  5189. >
  5190. <div class="workImg">
  5191. <!-- <img
  5192. :src="word2"
  5193. @click="downloadFile(w.works)"
  5194. v-if="w.type == 12"
  5195. alt
  5196. /> -->
  5197. <img
  5198. :src="word2"
  5199. @click="
  5200. openCocoFlow(w)
  5201. "
  5202. alt
  5203. />
  5204. <div
  5205. class="answerScore"
  5206. v-if="w.score"
  5207. @click.stop="openScore(w)"
  5208. :class="{
  5209. rightW:
  5210. w.userid == userid || tType == 1 || tType == 4
  5211. }"
  5212. >
  5213. {{ JSON.parse(w.score).wScore }}分
  5214. </div>
  5215. <div
  5216. class="answerScore"
  5217. @click.stop="openScore(w)"
  5218. v-else-if="courseDetail.userid == userid"
  5219. :class="{
  5220. rightW:
  5221. w.userid == userid || tType == 1 || tType == 4
  5222. }"
  5223. >
  5224. 评分
  5225. </div>
  5226. <div
  5227. class="stuLookScore"
  5228. v-if="
  5229. w.userid == userid ||
  5230. (tType == 1 &&
  5231. courseDetail.state == 5 &&
  5232. ((chapInfoList[courseType].chapterInfo[0]
  5233. .taskJson[taskCount].eList &&
  5234. chapInfoList[courseType].chapterInfo[0]
  5235. .taskJson[taskCount].eList.length) ||
  5236. (tool.eList && tool.eList.length)))
  5237. "
  5238. >
  5239. <el-popover
  5240. placement="top"
  5241. width="318"
  5242. trigger="hover"
  5243. >
  5244. <markScore
  5245. :loading="AIloading[toolIndex][wIndex].loading"
  5246. :markScoreVisible="markScoreVisible"
  5247. :ref="`markSco${toolIndex}${wIndex}`"
  5248. @updateLoading="updateLoading"
  5249. @updateDocSco="updateDocSco"
  5250. @refreshOther="refreshOther"
  5251. @markScoreDig="markScoreDig"
  5252. :tool="tool"
  5253. :wIndex="wIndex"
  5254. :scoCon="w"
  5255. :toolIndex="toolIndex"
  5256. :key="refreshKey"
  5257. :stage="courseType"
  5258. :task="taskCount"
  5259. :scoTit="
  5260. chapInfoList[courseType].chapterInfo[0]
  5261. .taskJson[taskCount].eList
  5262. "
  5263. >
  5264. </markScore>
  5265. <div
  5266. @click="
  5267. markScoreDig2(
  5268. w.sName,
  5269. worksStudent,
  5270. w.userid,
  5271. toolIndex,
  5272. chapInfoList[courseType].chapterInfo[0]
  5273. .taskJson[taskCount].eList,
  5274. AIloading[toolIndex][wIndex].loading,
  5275. tool
  5276. )
  5277. "
  5278. slot="reference"
  5279. >
  5280. <span v-if="AIloading[toolIndex][wIndex].sco">
  5281. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5282. </span>
  5283. <span v-else>
  5284. 评分
  5285. </span>
  5286. </div>
  5287. </el-popover>
  5288. </div>
  5289. <img
  5290. class="deleteImg"
  5291. src="../../assets/deleteworks.png"
  5292. v-if="
  5293. w.userid == userid || tType == 1 || tType == 4
  5294. "
  5295. @click.stop="deleteWorks(w.wid)"
  5296. alt
  5297. />
  5298. </div>
  5299. <div class="worksName">
  5300. <div>{{ w.sName }}</div>
  5301. </div>
  5302. </div>
  5303. </div>
  5304. </div>
  5305. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5306. <div
  5307. style="display: flex;justify-content: space-between;align-items: center;"
  5308. >
  5309. <div
  5310. class="zuoyeYulan"
  5311. v-if="
  5312. worksStudent.length &&
  5313. worksStudent[toolIndex].length > 0
  5314. "
  5315. >
  5316. <span class="worksTitle">作业预览</span>
  5317. <div
  5318. class="corOpen"
  5319. @click="contract(toolIndex)"
  5320. v-if="
  5321. isCloseList[toolIndex].isCloseBoolean &&
  5322. isCloseList[toolIndex].isClose == 0
  5323. "
  5324. >
  5325. 折叠
  5326. </div>
  5327. <div
  5328. class="corOpen"
  5329. @click="contract(toolIndex)"
  5330. v-if="isCloseList[toolIndex].isClose == 1"
  5331. >
  5332. 展开
  5333. </div>
  5334. </div>
  5335. <div
  5336. style="display: flex;"
  5337. v-if="
  5338. (courseDetail.userid == userid ||
  5339. (courseDetail.course_teacher &&
  5340. courseDetail.course_teacher.indexOf(userid) !=
  5341. -1)) &&
  5342. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5343. taskCount
  5344. ].eList &&
  5345. chapInfoList[courseType].chapterInfo[0].taskJson[
  5346. taskCount
  5347. ].eList.length) ||
  5348. (tool.eList && tool.eList.length)) &&
  5349. courseDetail.state == 5
  5350. "
  5351. >
  5352. <!-- <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 "> -->
  5353. <div
  5354. style="margin-right:10px"
  5355. class="ScoreBtn"
  5356. @click="
  5357. resetLoopEva(
  5358. worksStudent[toolIndex],
  5359. chapInfoList[courseType].chapterInfo[0].taskJson[
  5360. taskCount
  5361. ].eList,
  5362. courseType,
  5363. taskCount,
  5364. toolIndex,
  5365. tool.toolDetail,
  5366. worksStudent
  5367. )
  5368. "
  5369. >
  5370. 一键重置
  5371. </div>
  5372. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5373. <img
  5374. src="../../assets/icon/newIcons/rootImg.png"
  5375. alt=""
  5376. />
  5377. AI评分
  5378. </div>
  5379. <div
  5380. class="ScoreBtn"
  5381. v-else-if="!loopLoading[toolIndex].loading"
  5382. @click="
  5383. loopEva(
  5384. worksStudent[toolIndex],
  5385. chapInfoList[courseType].chapterInfo[0].taskJson[
  5386. taskCount
  5387. ].eList,
  5388. courseType,
  5389. taskCount,
  5390. toolIndex,
  5391. tool.toolDetail,
  5392. chapInfoList[courseType].chapterInfo[0].taskJson[
  5393. taskCount
  5394. ].taskDetail,
  5395. tool
  5396. )
  5397. "
  5398. >
  5399. <img
  5400. src="../../assets/icon/newIcons/rootImg.png"
  5401. alt=""
  5402. />
  5403. AI评分
  5404. </div>
  5405. <div class="ScoreBtn" v-else>
  5406. <img
  5407. src="../../assets/icon/newIcons/rootImg.png"
  5408. alt=""
  5409. />
  5410. 正在评分
  5411. </div>
  5412. </div>
  5413. </div>
  5414. <div
  5415. :id="'tool-' + toolIndex"
  5416. :style="{
  5417. height:
  5418. isCloseList[toolIndex].isClose == 1
  5419. ? retrnToolHeight('tool-' + toolIndex)
  5420. : 'auto',
  5421. overflow:
  5422. isCloseList[toolIndex].isClose == 1
  5423. ? 'hidden'
  5424. : 'unset'
  5425. }"
  5426. class="worksDetailBox"
  5427. v-if="
  5428. worksStudent.length &&
  5429. worksStudent[toolIndex].length > 0
  5430. "
  5431. >
  5432. <div
  5433. class="works"
  5434. style="
  5435. width: 200px;
  5436. height: 140px;
  5437. margin: 10px 10px 10px 0;
  5438. border-radius: 15px;
  5439. box-shadow: 0 0 6px 1px #dfdada;
  5440. "
  5441. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5442. :key="wIndex"
  5443. :class="w.type == 1 ? 'isTypeOne' : ''"
  5444. >
  5445. <div class="workImg" v-if="w.type == 0">
  5446. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5447. <img
  5448. :src="w.works"
  5449. @click="previewImg(w.works, w)"
  5450. alt
  5451. />
  5452. <div
  5453. class="answerScore"
  5454. v-if="w.score"
  5455. @click.stop="openScore(w)"
  5456. :class="{
  5457. rightW:
  5458. w.userid == userid ||
  5459. tType == 1 ||
  5460. tType == 4 ||
  5461. w.ateacher == userid
  5462. }"
  5463. >
  5464. {{ JSON.parse(w.score).wScore }}分
  5465. </div>
  5466. <div
  5467. class="answerScore"
  5468. @click.stop="openScore(w)"
  5469. v-else-if="
  5470. courseDetail.userid == userid &&
  5471. courseDetail.state != 5 &&
  5472. chapInfoList[courseType].chapterInfo[0]
  5473. .taskJson[taskCount].eList &&
  5474. chapInfoList[courseType].chapterInfo[0]
  5475. .taskJson[taskCount].eList.length
  5476. "
  5477. :class="{
  5478. rightW:
  5479. w.userid == userid ||
  5480. tType == 1 ||
  5481. tType == 4 ||
  5482. w.ateacher == userid
  5483. }"
  5484. >
  5485. 评分
  5486. </div>
  5487. <!-- <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"> -->
  5488. <div
  5489. v-else-if="
  5490. (courseDetail.userid == userid ||
  5491. (courseDetail.course_teacher &&
  5492. courseDetail.course_teacher.indexOf(userid) !=
  5493. -1) ||
  5494. (w.userid == userid && sIsOpen)) &&
  5495. courseDetail.state == 5 &&
  5496. ((chapInfoList[courseType].chapterInfo[0]
  5497. .taskJson[taskCount].eList &&
  5498. chapInfoList[courseType].chapterInfo[0]
  5499. .taskJson[taskCount].eList.length) ||
  5500. (tool.eList && tool.eList.length))
  5501. "
  5502. >
  5503. <el-popover
  5504. placement="top"
  5505. width="318"
  5506. :disabled="AIloading[toolIndex][wIndex].loading"
  5507. trigger="hover"
  5508. >
  5509. <markScore
  5510. :loading="AIloading[toolIndex][wIndex].loading"
  5511. :markScoreVisible="markScoreVisible"
  5512. :ref="`markSco${toolIndex}${wIndex}`"
  5513. @updateLoading="updateLoading"
  5514. @updateDocSco="updateDocSco"
  5515. @refreshOther="refreshOther"
  5516. @markScoreDig="markScoreDig"
  5517. :tool="tool"
  5518. :wIndex="wIndex"
  5519. :scoCon="w"
  5520. :toolIndex="toolIndex"
  5521. :key="refreshKey"
  5522. :stage="courseType"
  5523. :task="taskCount"
  5524. :scoTit="
  5525. chapInfoList[courseType].chapterInfo[0]
  5526. .taskJson[taskCount].eList
  5527. "
  5528. >
  5529. </markScore>
  5530. <div
  5531. class="answerScore"
  5532. @click="
  5533. markScoreDig2(
  5534. w.sName,
  5535. worksStudent,
  5536. w.userid,
  5537. toolIndex,
  5538. chapInfoList[courseType].chapterInfo[0]
  5539. .taskJson[taskCount].eList,
  5540. AIloading[toolIndex][wIndex].loading,
  5541. tool
  5542. )
  5543. "
  5544. slot="reference"
  5545. :class="{
  5546. rightW:
  5547. w.userid == userid ||
  5548. tType == 1 ||
  5549. tType == 4 ||
  5550. w.ateacher == userid
  5551. }"
  5552. >
  5553. <span v-if="AIloading[toolIndex][wIndex].sco">
  5554. {{
  5555. AIloading[toolIndex][wIndex].loading
  5556. ? "评分中"
  5557. : AIloading[toolIndex][wIndex].sco + "分"
  5558. }}
  5559. </span>
  5560. <span v-else>
  5561. {{
  5562. AIloading[toolIndex][wIndex].loading
  5563. ? "评分中"
  5564. : "评分"
  5565. }}
  5566. </span>
  5567. </div>
  5568. </el-popover>
  5569. </div>
  5570. <img
  5571. class="deleteImg"
  5572. src="../../assets/deleteworks.png"
  5573. v-if="
  5574. w.userid == userid || tType == 1 || tType == 4
  5575. "
  5576. @click.stop="deleteWorks(w.wid)"
  5577. alt
  5578. />
  5579. </div>
  5580. <div
  5581. class="workImg"
  5582. style="cursor: pointer"
  5583. v-if="w.type == 1"
  5584. >
  5585. <img :src="word" @click="openFile(w.works)" alt />
  5586. <!-- @click="openFile(w.works)" -->
  5587. <div
  5588. class="answerScore"
  5589. v-if="w.score"
  5590. @click.stop="openScore(w)"
  5591. :class="{
  5592. rightW:
  5593. w.userid == userid ||
  5594. tType == 1 ||
  5595. tType == 4 ||
  5596. w.ateacher == userid
  5597. }"
  5598. >
  5599. {{ JSON.parse(w.score).wScore }}分
  5600. </div>
  5601. <div
  5602. class="answerScore"
  5603. @click.stop="openScore(w)"
  5604. v-else-if="
  5605. courseDetail.userid == userid &&
  5606. courseDetail.state != 5 &&
  5607. chapInfoList[courseType].chapterInfo[0]
  5608. .taskJson[taskCount].eList &&
  5609. chapInfoList[courseType].chapterInfo[0]
  5610. .taskJson[taskCount].eList.length
  5611. "
  5612. :class="{
  5613. rightW:
  5614. w.userid == userid ||
  5615. tType == 1 ||
  5616. tType == 4 ||
  5617. w.ateacher == userid
  5618. }"
  5619. >
  5620. 评分
  5621. </div>
  5622. <!-- <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"> -->
  5623. <div
  5624. v-else-if="
  5625. (courseDetail.userid == userid ||
  5626. (courseDetail.course_teacher &&
  5627. courseDetail.course_teacher.indexOf(userid) !=
  5628. -1) ||
  5629. (w.userid == userid && sIsOpen)) &&
  5630. courseDetail.state == 5 &&
  5631. ((chapInfoList[courseType].chapterInfo[0]
  5632. .taskJson[taskCount].eList &&
  5633. chapInfoList[courseType].chapterInfo[0]
  5634. .taskJson[taskCount].eList.length) ||
  5635. (tool.eList && tool.eList.length))
  5636. "
  5637. >
  5638. <el-popover
  5639. placement="top"
  5640. width="318"
  5641. :disabled="AIloading[toolIndex][wIndex].loading"
  5642. trigger="hover"
  5643. >
  5644. <markScore
  5645. :loading="AIloading[toolIndex][wIndex].loading"
  5646. :markScoreVisible="markScoreVisible"
  5647. :ref="`markSco${toolIndex}${wIndex}`"
  5648. @updateLoading="updateLoading"
  5649. @updateDocSco="updateDocSco"
  5650. @refreshOther="refreshOther"
  5651. @markScoreDig="markScoreDig"
  5652. :tool="tool"
  5653. :wIndex="wIndex"
  5654. :scoCon="w"
  5655. :toolIndex="toolIndex"
  5656. :key="refreshKey"
  5657. :stage="courseType"
  5658. :task="taskCount"
  5659. :scoTit="
  5660. chapInfoList[courseType].chapterInfo[0]
  5661. .taskJson[taskCount].eList
  5662. "
  5663. >
  5664. </markScore>
  5665. <div
  5666. class="answerScore"
  5667. @click="
  5668. markScoreDig2(
  5669. w.sName,
  5670. worksStudent,
  5671. w.userid,
  5672. toolIndex,
  5673. chapInfoList[courseType].chapterInfo[0]
  5674. .taskJson[taskCount].eList,
  5675. AIloading[toolIndex][wIndex].loading,
  5676. tool
  5677. )
  5678. "
  5679. slot="reference"
  5680. :class="{
  5681. rightW:
  5682. w.userid == userid ||
  5683. tType == 1 ||
  5684. tType == 4 ||
  5685. w.ateacher == userid
  5686. }"
  5687. >
  5688. <span v-if="AIloading[toolIndex][wIndex].sco">
  5689. {{
  5690. AIloading[toolIndex][wIndex].loading
  5691. ? "评分中"
  5692. : AIloading[toolIndex][wIndex].sco + "分"
  5693. }}
  5694. </span>
  5695. <span v-else>
  5696. {{
  5697. AIloading[toolIndex][wIndex].loading
  5698. ? "评分中"
  5699. : "评分"
  5700. }}
  5701. </span>
  5702. </div>
  5703. </el-popover>
  5704. </div>
  5705. <img
  5706. class="deleteImg"
  5707. src="../../assets/deleteworks.png"
  5708. v-if="
  5709. w.userid == userid || tType == 1 || tType == 4
  5710. "
  5711. @click.stop="deleteWorks(w.wid)"
  5712. alt
  5713. />
  5714. </div>
  5715. <div class="workImg" v-if="w.type == 3">
  5716. <img
  5717. style="cursor: pointer"
  5718. :src="video"
  5719. @click="openVideo(w)"
  5720. alt
  5721. />
  5722. <!-- @click="openVideo(w.works)" -->
  5723. <div
  5724. class="answerScore"
  5725. v-if="w.score"
  5726. @click.stop="openScore(w)"
  5727. :class="{
  5728. rightW:
  5729. w.userid == userid ||
  5730. tType == 1 ||
  5731. tType == 4 ||
  5732. w.ateacher == userid
  5733. }"
  5734. >
  5735. {{ JSON.parse(w.score).wScore }}分
  5736. </div>
  5737. <div
  5738. class="answerScore"
  5739. @click.stop="openScore(w)"
  5740. v-else-if="
  5741. courseDetail.userid == userid &&
  5742. courseDetail.state != 5 &&
  5743. chapInfoList[courseType].chapterInfo[0]
  5744. .taskJson[taskCount].eList &&
  5745. chapInfoList[courseType].chapterInfo[0]
  5746. .taskJson[taskCount].eList.length
  5747. "
  5748. :class="{
  5749. rightW:
  5750. w.userid == userid ||
  5751. tType == 1 ||
  5752. tType == 4 ||
  5753. w.ateacher == userid
  5754. }"
  5755. >
  5756. 评分
  5757. </div>
  5758. <!-- <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"> -->
  5759. <div
  5760. v-else-if="
  5761. (courseDetail.userid == userid ||
  5762. (courseDetail.course_teacher &&
  5763. courseDetail.course_teacher.indexOf(userid) !=
  5764. -1) ||
  5765. (w.userid == userid && sIsOpen)) &&
  5766. courseDetail.state == 5 &&
  5767. ((chapInfoList[courseType].chapterInfo[0]
  5768. .taskJson[taskCount].eList &&
  5769. chapInfoList[courseType].chapterInfo[0]
  5770. .taskJson[taskCount].eList.length) ||
  5771. (tool.eList && tool.eList.length))
  5772. "
  5773. >
  5774. <el-popover
  5775. placement="top"
  5776. width="318"
  5777. :disabled="AIloading[toolIndex][wIndex].loading"
  5778. trigger="hover"
  5779. >
  5780. <markScore
  5781. :loading="AIloading[toolIndex][wIndex].loading"
  5782. :markScoreVisible="markScoreVisible"
  5783. :ref="`markSco${toolIndex}${wIndex}`"
  5784. @updateLoading="updateLoading"
  5785. @updateDocSco="updateDocSco"
  5786. @refreshOther="refreshOther"
  5787. @markScoreDig="markScoreDig"
  5788. :tool="tool"
  5789. :wIndex="wIndex"
  5790. :scoCon="w"
  5791. :toolIndex="toolIndex"
  5792. :key="refreshKey"
  5793. :stage="courseType"
  5794. :task="taskCount"
  5795. :scoTit="
  5796. chapInfoList[courseType].chapterInfo[0]
  5797. .taskJson[taskCount].eList
  5798. "
  5799. >
  5800. </markScore>
  5801. <div
  5802. class="answerScore"
  5803. @click="
  5804. markScoreDig2(
  5805. w.sName,
  5806. worksStudent,
  5807. w.userid,
  5808. toolIndex,
  5809. chapInfoList[courseType].chapterInfo[0]
  5810. .taskJson[taskCount].eList,
  5811. AIloading[toolIndex][wIndex].loading,
  5812. tool
  5813. )
  5814. "
  5815. slot="reference"
  5816. :class="{
  5817. rightW:
  5818. w.userid == userid ||
  5819. tType == 1 ||
  5820. tType == 4 ||
  5821. w.ateacher == userid
  5822. }"
  5823. >
  5824. <span v-if="AIloading[toolIndex][wIndex].sco">
  5825. {{
  5826. AIloading[toolIndex][wIndex].loading
  5827. ? "评分中"
  5828. : AIloading[toolIndex][wIndex].sco + "分"
  5829. }}
  5830. </span>
  5831. <span v-else>
  5832. {{
  5833. AIloading[toolIndex][wIndex].loading
  5834. ? "评分中"
  5835. : "评分"
  5836. }}
  5837. </span>
  5838. </div>
  5839. </el-popover>
  5840. </div>
  5841. <img
  5842. class="deleteImg"
  5843. src="../../assets/deleteworks.png"
  5844. v-if="
  5845. w.userid == userid || tType == 1 || tType == 4
  5846. "
  5847. @click.stop="deleteWorks(w.wid)"
  5848. alt
  5849. />
  5850. </div>
  5851. <div class="comment" style="min-width: 200px">
  5852. <div class="worksName">
  5853. <div
  5854. style="cursor: pointer"
  5855. @click="
  5856. openSname(w.sName, w.wid, toolIndex, w.userid)
  5857. "
  5858. >
  5859. {{ w.sName }}
  5860. </div>
  5861. </div>
  5862. <div class="commentList">
  5863. <div class="commentList">
  5864. <div
  5865. class="commentImg"
  5866. @click="
  5867. isLikes(
  5868. w.wid,
  5869. userid,
  5870. 1,
  5871. null,
  5872. w.isLikes,
  5873. w.sName
  5874. )
  5875. "
  5876. >
  5877. <img
  5878. :src="w.isLikes == true ? likes : noLikes"
  5879. alt=""
  5880. />
  5881. </div>
  5882. <div>{{ w.likesCount }}</div>
  5883. </div>
  5884. <div class="commentList" style="margin-right: 15px">
  5885. <div
  5886. class="commentImg"
  5887. @click="commentOther(w, toolIndex, wIndex)"
  5888. >
  5889. <img
  5890. src="../../assets/icon/comment/comment.png"
  5891. alt=""
  5892. />
  5893. </div>
  5894. <div>{{ w.commentCount }}</div>
  5895. </div>
  5896. </div>
  5897. </div>
  5898. </div>
  5899. </div>
  5900. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5901. 未提交
  5902. </div>
  5903. <div
  5904. class="noWorksS"
  5905. v-if="noWorksS && noWorksS[toolIndex].length"
  5906. >
  5907. <div
  5908. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5909. :key="sIndex"
  5910. class="noWorksName"
  5911. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5912. >
  5913. <el-tooltip
  5914. effect="dark"
  5915. :content="s.student"
  5916. placement="top"
  5917. >
  5918. <span>{{ s.student }}</span>
  5919. </el-tooltip>
  5920. </div>
  5921. </div>
  5922. </div>
  5923. <div
  5924. v-if="
  5925. tType &&
  5926. ((tType == 2 && sIsOpen == true) ||
  5927. tType == 1 ||
  5928. tType == 4) &&
  5929. tool.tool.indexOf(4) != -1 &&
  5930. (tool.askJson[0].answer ||
  5931. tool.askJson[0].answer === 0) &&
  5932. checkJson[toolIndex].length
  5933. "
  5934. class="xuan_right_box"
  5935. >
  5936. <div
  5937. class="tool_right_box"
  5938. v-for="(item, index) in tool.askJson"
  5939. :key="index"
  5940. >
  5941. <div style="width: calc(100% - 30px);">
  5942. <el-tooltip
  5943. effect="light"
  5944. :content="index + 1 + '、' + item.askstitle"
  5945. placement="top"
  5946. popper-class="text_tooltip"
  5947. >
  5948. <div
  5949. style="
  5950. width: calc(100% - 130px);
  5951. display: block;
  5952. white-space: nowrap;
  5953. overflow: hidden;
  5954. text-overflow: ellipsis;
  5955. word-break: break-word;
  5956. cursor: pointer;
  5957. "
  5958. >
  5959. {{ index + 1 + "、" + item.askstitle }}
  5960. </div>
  5961. </el-tooltip>
  5962. </div>
  5963. <div class="right_box_xuan">
  5964. <span>正确率</span>
  5965. <span>{{
  5966. (checkJson[toolIndex][index].right
  5967. ? checkJson[toolIndex][index].right
  5968. : 0) + "%"
  5969. }}</span>
  5970. </div>
  5971. </div>
  5972. </div>
  5973. <div
  5974. class="xuan_right_box"
  5975. style="background: unset; padding: 0 10px"
  5976. v-if="
  5977. tType &&
  5978. ((tType == 2 && sIsOpen == true) ||
  5979. tType == 1 ||
  5980. tType == 4) &&
  5981. tool.tool.indexOf(4) != -1
  5982. "
  5983. >
  5984. <AskStatic
  5985. v-if="
  5986. worksStudent.length &&
  5987. worksStudent[toolIndex].length > 0
  5988. "
  5989. :askJSON="tool"
  5990. :checkJson="checkJson[toolIndex]"
  5991. ></AskStatic>
  5992. </div>
  5993. <div
  5994. v-if="
  5995. tType &&
  5996. ((tType == 2 && sIsOpen == true) ||
  5997. tType == 1 ||
  5998. tType == 4) &&
  5999. tool.tool.indexOf(4) != -1
  6000. "
  6001. class="worksBox"
  6002. >
  6003. <div
  6004. class="zuoyeYulan"
  6005. v-if="
  6006. worksStudent.length &&
  6007. worksStudent[toolIndex].length > 0
  6008. "
  6009. >
  6010. <div class="worksTop">
  6011. <div>作业预览</div>
  6012. <div
  6013. class="corOpen"
  6014. @click="contract(toolIndex)"
  6015. v-if="
  6016. isCloseList[toolIndex].isCloseBoolean &&
  6017. isCloseList[toolIndex].isClose == 0
  6018. "
  6019. >
  6020. 折叠
  6021. </div>
  6022. <div
  6023. class="corOpen"
  6024. @click="contract(toolIndex)"
  6025. v-if="isCloseList[toolIndex].isClose == 1"
  6026. >
  6027. 展开
  6028. </div>
  6029. </div>
  6030. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6031. </div>
  6032. <div>
  6033. <div
  6034. :id="'tool-' + toolIndex"
  6035. :style="{
  6036. height:
  6037. isCloseList[toolIndex].isClose == 1
  6038. ? retrnToolHeight('tool-' + toolIndex)
  6039. : 'auto',
  6040. overflow:
  6041. isCloseList[toolIndex].isClose == 1
  6042. ? 'hidden'
  6043. : 'unset'
  6044. }"
  6045. class="worksDetailBox"
  6046. v-if="
  6047. worksStudent.length &&
  6048. worksStudent[toolIndex].length > 0
  6049. "
  6050. >
  6051. <div
  6052. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6053. :key="wIndex"
  6054. class="isWorksName2"
  6055. @click="
  6056. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6057. "
  6058. >
  6059. {{ w.sName }}
  6060. <img
  6061. class="deleteImg deleteImg2"
  6062. src="../../assets/deleteworks.png"
  6063. v-if="
  6064. w.userid == userid || tType == 1 || tType == 4
  6065. "
  6066. @click.stop="deleteWorks(w.wid)"
  6067. alt
  6068. />
  6069. </div>
  6070. <!-- <div class="works" style="
  6071. width: 200px;
  6072. height: 140px;
  6073. border-radius: 10px;
  6074. box-shadow: 0 0 6px 1px #dfdada;
  6075. overflow: hidden;
  6076. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6077. <div class="workImg">
  6078. <img src="../../assets/icon/works/noImg.png" @click="
  6079. openTools(
  6080. 4,
  6081. toolIndex,
  6082. taskCount,
  6083. w.works,
  6084. w.sName
  6085. )
  6086. " alt />
  6087. </div>
  6088. <div class="worksName">
  6089. <div>{{ w.sName }}</div>
  6090. <div>{{ w.time }}</div>
  6091. </div>
  6092. </div> -->
  6093. </div>
  6094. </div>
  6095. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6096. 未提交
  6097. </div>
  6098. <div
  6099. class="noWorksS"
  6100. v-if="noWorksS && noWorksS[toolIndex].length"
  6101. >
  6102. <div
  6103. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6104. :key="sIndex"
  6105. class="noWorksName"
  6106. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6107. >
  6108. <el-tooltip
  6109. effect="dark"
  6110. :content="s.student"
  6111. placement="top"
  6112. >
  6113. <span>{{ s.student }}</span>
  6114. </el-tooltip>
  6115. </div>
  6116. </div>
  6117. </div>
  6118. <div
  6119. v-if="
  6120. tType &&
  6121. ((tType == 2 && sIsOpen == true) ||
  6122. tType == 1 ||
  6123. tType == 4) &&
  6124. tool.tool.indexOf(45) != -1 &&
  6125. (tool.testJson.testJson[0].answer ||
  6126. tool.testJson.testJson[0].answer === 0) &&
  6127. checkJson[toolIndex].length
  6128. "
  6129. class="xuan_right_box"
  6130. >
  6131. <div
  6132. class="tool_right_box"
  6133. v-for="(item, index) in tool.testJson.testJson"
  6134. :key="index"
  6135. >
  6136. <div class="right_box_xuan" style="margin-right: 10px">
  6137. <span>正确率</span>
  6138. <span>{{
  6139. (checkJson[toolIndex][index].right
  6140. ? checkJson[toolIndex][index].right
  6141. : 0) + "%"
  6142. }}</span>
  6143. </div>
  6144. <div style="width: calc(100% - 30px);">
  6145. <el-tooltip
  6146. effect="light"
  6147. :content="index + 1 + '、' + item.teststitle"
  6148. placement="top"
  6149. popper-class="text_tooltip"
  6150. >
  6151. <div
  6152. style="
  6153. width: calc(100% - 130px);
  6154. display: flex;
  6155. white-space: nowrap;
  6156. overflow: hidden;
  6157. text-overflow: ellipsis;
  6158. word-break: break-word;
  6159. cursor: pointer;
  6160. "
  6161. class="renderedFor"
  6162. >
  6163. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  6164. </div>
  6165. </el-tooltip>
  6166. </div>
  6167. </div>
  6168. </div>
  6169. <div
  6170. class="xuan_right_box"
  6171. style="background: unset; padding: 0 10px; width: 91.5%"
  6172. v-if="
  6173. tType &&
  6174. ((tType == 2 && sIsOpen == true) ||
  6175. tType == 1 ||
  6176. tType == 4) &&
  6177. tool.tool.indexOf(45) != -1
  6178. "
  6179. >
  6180. <AskStatic2
  6181. v-if="
  6182. worksStudent.length &&
  6183. worksStudent[toolIndex].length > 0
  6184. "
  6185. :askJSON="tool"
  6186. :checkJson="checkJson[toolIndex]"
  6187. ></AskStatic2>
  6188. </div>
  6189. <div
  6190. v-if="
  6191. tType &&
  6192. ((tType == 2 && sIsOpen == true) ||
  6193. tType == 1 ||
  6194. tType == 4) &&
  6195. tool.tool.indexOf(45) != -1
  6196. "
  6197. class="worksBox"
  6198. >
  6199. <div
  6200. class="zuoyeYulan"
  6201. v-if="
  6202. worksStudent.length &&
  6203. worksStudent[toolIndex].length > 0
  6204. "
  6205. >
  6206. <div class="worksTop">
  6207. <div>作业预览</div>
  6208. <div
  6209. class="corOpen"
  6210. @click="contract(toolIndex)"
  6211. v-if="
  6212. isCloseList[toolIndex].isCloseBoolean &&
  6213. isCloseList[toolIndex].isClose == 0
  6214. "
  6215. >
  6216. 折叠
  6217. </div>
  6218. <div
  6219. class="corOpen"
  6220. @click="contract(toolIndex)"
  6221. v-if="isCloseList[toolIndex].isClose == 1"
  6222. >
  6223. 展开
  6224. </div>
  6225. </div>
  6226. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6227. </div>
  6228. <div>
  6229. <div
  6230. :id="'tool-' + toolIndex"
  6231. :style="{
  6232. height:
  6233. isCloseList[toolIndex].isClose == 1
  6234. ? retrnToolHeight('tool-' + toolIndex)
  6235. : 'auto',
  6236. overflow:
  6237. isCloseList[toolIndex].isClose == 1
  6238. ? 'hidden'
  6239. : 'unset'
  6240. }"
  6241. class="worksDetailBox"
  6242. v-if="
  6243. worksStudent.length &&
  6244. worksStudent[toolIndex].length > 0
  6245. "
  6246. >
  6247. <div
  6248. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6249. :key="wIndex"
  6250. class="isWorksName2"
  6251. @click="
  6252. openTools(
  6253. 45,
  6254. toolIndex,
  6255. taskCount,
  6256. w.works,
  6257. w.sName
  6258. )
  6259. "
  6260. >
  6261. {{ w.sName }}
  6262. <img
  6263. class="deleteImg deleteImg2"
  6264. src="../../assets/deleteworks.png"
  6265. v-if="
  6266. w.userid == userid || tType == 1 || tType == 4
  6267. "
  6268. @click.stop="deleteWorks(w.wid)"
  6269. alt
  6270. />
  6271. </div>
  6272. </div>
  6273. </div>
  6274. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6275. 未提交
  6276. </div>
  6277. <div
  6278. class="noWorksS"
  6279. v-if="noWorksS && noWorksS[toolIndex].length"
  6280. >
  6281. <div
  6282. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6283. :key="sIndex"
  6284. class="noWorksName"
  6285. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6286. >
  6287. <el-tooltip
  6288. effect="dark"
  6289. :content="s.student"
  6290. placement="top"
  6291. >
  6292. <span>{{ s.student }}</span>
  6293. </el-tooltip>
  6294. </div>
  6295. </div>
  6296. </div>
  6297. <div
  6298. v-if="
  6299. tType &&
  6300. ((tType == 2 && sIsOpen == true) ||
  6301. tType == 1 ||
  6302. tType == 4) &&
  6303. tool.tool.indexOf(69) != -1
  6304. "
  6305. class="worksBox"
  6306. >
  6307. <div
  6308. class="zuoyeYulan"
  6309. v-if="
  6310. worksStudent.length &&
  6311. worksStudent[toolIndex].length > 0
  6312. "
  6313. >
  6314. <div class="worksTop">
  6315. <div>作业预览</div>
  6316. <div
  6317. class="corOpen"
  6318. @click="contract(toolIndex)"
  6319. v-if="
  6320. isCloseList[toolIndex].isCloseBoolean &&
  6321. isCloseList[toolIndex].isClose == 0
  6322. "
  6323. >
  6324. 折叠
  6325. </div>
  6326. <div
  6327. class="corOpen"
  6328. @click="contract(toolIndex)"
  6329. v-if="isCloseList[toolIndex].isClose == 1"
  6330. >
  6331. 展开
  6332. </div>
  6333. </div>
  6334. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6335. </div>
  6336. <div>
  6337. <div
  6338. :id="'tool-' + toolIndex"
  6339. :style="{
  6340. height:
  6341. isCloseList[toolIndex].isClose == 1
  6342. ? retrnToolHeight('tool-' + toolIndex)
  6343. : 'auto',
  6344. overflow:
  6345. isCloseList[toolIndex].isClose == 1
  6346. ? 'hidden'
  6347. : 'unset'
  6348. }"
  6349. class="worksDetailBox"
  6350. v-if="
  6351. worksStudent.length &&
  6352. worksStudent[toolIndex].length > 0
  6353. "
  6354. >
  6355. <div
  6356. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6357. :key="wIndex"
  6358. class="isWorksName2"
  6359. style="width: 160px;height: 65px;line-height: 65px;"
  6360. @click="
  6361. openTools(
  6362. 69,
  6363. toolIndex,
  6364. taskCount,
  6365. w.works,
  6366. w.sName,
  6367. w.wid
  6368. )
  6369. "
  6370. >
  6371. {{ w.sName }}
  6372. <img
  6373. class="deleteImg1"
  6374. src="../../assets/evaEnglish.png"
  6375. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6376. alt
  6377. v-if="
  6378. (courseDetail &&
  6379. (courseDetail.userid == userid ||
  6380. (courseDetail.course_teacher &&
  6381. courseDetail.course_teacher.indexOf(
  6382. userid
  6383. ) != -1))) ||
  6384. w.aiCode || w.teacherCode
  6385. "
  6386. />
  6387. <img
  6388. class="deleteImg deleteImg2"
  6389. src="../../assets/deleteworks.png"
  6390. v-if="
  6391. w.userid == userid || tType == 1 || tType == 4
  6392. "
  6393. @click.stop="deleteWorks(w.wid)"
  6394. alt
  6395. />
  6396. </div>
  6397. </div>
  6398. </div>
  6399. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6400. 未提交
  6401. </div>
  6402. <div
  6403. class="noWorksS"
  6404. v-if="noWorksS && noWorksS[toolIndex].length"
  6405. >
  6406. <div
  6407. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6408. :key="sIndex"
  6409. class="noWorksName"
  6410. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6411. >
  6412. <el-tooltip
  6413. effect="dark"
  6414. :content="s.student"
  6415. placement="top"
  6416. >
  6417. <span>{{ s.student }}</span>
  6418. </el-tooltip>
  6419. </div>
  6420. </div>
  6421. </div>
  6422. <div
  6423. v-if="
  6424. tType &&
  6425. ((tType == 2 && sIsOpen == true) ||
  6426. tType == 1 ||
  6427. tType == 4) &&
  6428. tool.tool.indexOf(15) != -1
  6429. "
  6430. class="worksBox"
  6431. >
  6432. <div
  6433. class="zuoyeYulan"
  6434. v-if="
  6435. (worksStudent.length &&
  6436. worksStudent[toolIndex].length > 0) ||
  6437. (courseGroup.group && courseGroup.group.length)
  6438. "
  6439. >
  6440. <div class="worksTop">
  6441. <div>作业预览</div>
  6442. <div
  6443. class="corOpen"
  6444. @click="contract(toolIndex)"
  6445. v-if="
  6446. isCloseList[toolIndex].isCloseBoolean &&
  6447. isCloseList[toolIndex].isClose == 0
  6448. "
  6449. >
  6450. 折叠
  6451. </div>
  6452. <div
  6453. class="corOpen"
  6454. @click="contract(toolIndex)"
  6455. v-if="isCloseList[toolIndex].isClose == 1"
  6456. >
  6457. 展开
  6458. </div>
  6459. </div>
  6460. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6461. </div>
  6462. <div
  6463. class="group_workBox"
  6464. v-for="(g, gindex) in courseGroup.group"
  6465. :key="gindex"
  6466. >
  6467. <div class="group_box">
  6468. <div class="group_title">
  6469. <el-tooltip
  6470. class="item"
  6471. effect="light"
  6472. :content="g.name"
  6473. placement="top"
  6474. >
  6475. <div class="group_name">{{ g.name }}</div>
  6476. </el-tooltip>
  6477. </div>
  6478. <div
  6479. class="group_work"
  6480. v-if="
  6481. g.works &&
  6482. g.works.length &&
  6483. g.works[toolIndex].length
  6484. "
  6485. >
  6486. <div
  6487. class="works"
  6488. v-for="(w, wIndex) in g.works[toolIndex]"
  6489. :key="wIndex"
  6490. >
  6491. <div
  6492. class="workImg"
  6493. style="
  6494. border-radius: 15px;
  6495. box-shadow: 0px 0px 5px 5px #eee;
  6496. "
  6497. >
  6498. <div
  6499. class="answerBg"
  6500. style="border-radius: 15px 15px 0 0"
  6501. @click="
  6502. commentOther(w, toolIndex, wIndex, null, g.id)
  6503. "
  6504. >
  6505. <div class="answerContent">
  6506. {{ JSON.parse(w.works)[0].answer }}
  6507. </div>
  6508. <div
  6509. class="answerScore"
  6510. v-if="w.score"
  6511. @click.stop="openScore(w)"
  6512. :class="{
  6513. rightW:
  6514. w.userid == userid ||
  6515. tType == 1 ||
  6516. tType == 4
  6517. }"
  6518. >
  6519. {{ JSON.parse(w.score).wScore }}分
  6520. </div>
  6521. <div
  6522. class="answerScore"
  6523. @click.stop="openScore(w)"
  6524. v-else-if="
  6525. courseDetail.userid == userid &&
  6526. courseDetail.state != 5 &&
  6527. chapInfoList[courseType].chapterInfo[0]
  6528. .taskJson[taskCount].eList &&
  6529. chapInfoList[courseType].chapterInfo[0]
  6530. .taskJson[taskCount].eList.length
  6531. "
  6532. :class="{
  6533. rightW:
  6534. w.userid == userid ||
  6535. tType == 1 ||
  6536. tType == 4
  6537. }"
  6538. >
  6539. 评分
  6540. </div>
  6541. <!-- <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"> -->
  6542. <div
  6543. v-else-if="
  6544. (courseDetail.userid == userid ||
  6545. (courseDetail.course_teacher &&
  6546. courseDetail.course_teacher.indexOf(
  6547. userid
  6548. ) != -1) ||
  6549. (w.userid == userid && sIsOpen)) &&
  6550. courseDetail.state == 5 &&
  6551. ((chapInfoList[courseType].chapterInfo[0]
  6552. .taskJson[taskCount].eList &&
  6553. chapInfoList[courseType].chapterInfo[0]
  6554. .taskJson[taskCount].eList.length) ||
  6555. (tool.eList && tool.eList.length))
  6556. "
  6557. >
  6558. <el-popover
  6559. placement="top"
  6560. width="318"
  6561. :disabled="
  6562. AIloading[toolIndex][wIndex].loading
  6563. "
  6564. trigger="hover"
  6565. >
  6566. <markScore
  6567. :loading="
  6568. AIloading[toolIndex][wIndex].loading
  6569. "
  6570. :markScoreVisible="markScoreVisible"
  6571. :ref="`markSco${toolIndex}${wIndex}`"
  6572. @updateLoading="updateLoading"
  6573. @updateDocSco="updateDocSco"
  6574. @refreshOther="refreshOther"
  6575. @markScoreDig="markScoreDig"
  6576. :tool="tool"
  6577. :wIndex="wIndex"
  6578. :scoCon="w"
  6579. :toolIndex="toolIndex"
  6580. :key="refreshKey"
  6581. :stage="courseType"
  6582. :task="taskCount"
  6583. :scoTit="
  6584. chapInfoList[courseType].chapterInfo[0]
  6585. .taskJson[taskCount].eList
  6586. "
  6587. >
  6588. </markScore>
  6589. <div
  6590. class="answerScore"
  6591. @click.stop="
  6592. markScoreDig2(
  6593. w.sName,
  6594. worksStudent,
  6595. w.userid,
  6596. toolIndex,
  6597. chapInfoList[courseType]
  6598. .chapterInfo[0].taskJson[taskCount]
  6599. .eList,
  6600. AIloading[toolIndex][wIndex].loading,
  6601. tool
  6602. )
  6603. "
  6604. slot="reference"
  6605. :class="{
  6606. rightW:
  6607. w.userid == userid ||
  6608. tType == 1 ||
  6609. tType == 4 ||
  6610. w.ateacher == userid
  6611. }"
  6612. >
  6613. <span
  6614. v-if="AIloading[toolIndex][wIndex].sco"
  6615. >
  6616. {{
  6617. AIloading[toolIndex][wIndex].loading
  6618. ? "评分中"
  6619. : AIloading[toolIndex][wIndex].sco +
  6620. "分"
  6621. }}
  6622. </span>
  6623. <span v-else>
  6624. {{
  6625. AIloading[toolIndex][wIndex].loading
  6626. ? "评分中"
  6627. : "评分"
  6628. }}
  6629. </span>
  6630. </div>
  6631. </el-popover>
  6632. </div>
  6633. <img
  6634. class="deleteImg"
  6635. src="../../assets/deleteworks.png"
  6636. v-if="
  6637. w.userid == userid ||
  6638. tType == 1 ||
  6639. tType == 4
  6640. "
  6641. @click.stop="deleteWorks(w.wid)"
  6642. alt
  6643. />
  6644. </div>
  6645. <div class="comment">
  6646. <div class="worksName">
  6647. <div>{{ w.sName }}</div>
  6648. </div>
  6649. <div class="commentList">
  6650. <div
  6651. class="commentImg"
  6652. @click="
  6653. isLikes(
  6654. w.wid,
  6655. userid,
  6656. 1,
  6657. null,
  6658. w.isLikes,
  6659. w.sName
  6660. )
  6661. "
  6662. >
  6663. <img
  6664. :src="w.isLikes == true ? likes : noLikes"
  6665. alt=""
  6666. />
  6667. </div>
  6668. <div>{{ w.likesCount }}</div>
  6669. </div>
  6670. <div
  6671. class="commentList"
  6672. style="margin-right: 15px"
  6673. >
  6674. <div
  6675. class="commentImg"
  6676. @click="
  6677. commentOther(
  6678. w,
  6679. toolIndex,
  6680. wIndex,
  6681. null,
  6682. g.id
  6683. )
  6684. "
  6685. >
  6686. <img
  6687. src="../../assets/icon/comment/comment.png"
  6688. alt=""
  6689. />
  6690. </div>
  6691. <div>{{ w.commentCount }}</div>
  6692. </div>
  6693. </div>
  6694. </div>
  6695. </div>
  6696. </div>
  6697. <div class="group_work" v-else>暂无提交作业</div>
  6698. </div>
  6699. </div>
  6700. <div
  6701. :id="'tool-' + toolIndex"
  6702. :style="{
  6703. height:
  6704. isCloseList[toolIndex].isClose == 1
  6705. ? retrnToolHeight('tool-' + toolIndex)
  6706. : 'auto',
  6707. overflow:
  6708. isCloseList[toolIndex].isClose == 1
  6709. ? 'hidden'
  6710. : 'unset'
  6711. }"
  6712. class="worksDetailBox"
  6713. v-if="
  6714. worksStudent.length &&
  6715. worksStudent[toolIndex].length > 0
  6716. "
  6717. >
  6718. <div
  6719. class="works"
  6720. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6721. :key="wIndex"
  6722. >
  6723. <div
  6724. class="workImg"
  6725. style="
  6726. border-radius: 15px;
  6727. box-shadow: 0px 0px 5px 5px #eee;
  6728. "
  6729. >
  6730. <!-- <img
  6731. src="../../assets/icon/works/noImg.png"
  6732. @click="openTools(15, toolIndex, taskCount, w.works)"
  6733. alt=""
  6734. />-->
  6735. <div
  6736. class="answerBg"
  6737. style="border-radius: 15px 15px 0 0"
  6738. @click="commentOther(w, toolIndex, wIndex)"
  6739. >
  6740. <!-- <div>{{ w.sName }}</div> -->
  6741. <div class="answerContent">
  6742. {{ JSON.parse(w.works)[0].answer }}
  6743. </div>
  6744. <div
  6745. class="answerScore"
  6746. v-if="w.score"
  6747. @click.stop="openScore(w)"
  6748. :class="{
  6749. rightW:
  6750. w.userid == userid || tType == 1 || tType == 4
  6751. }"
  6752. >
  6753. {{ JSON.parse(w.score).wScore }}分
  6754. </div>
  6755. <div
  6756. class="answerScore"
  6757. @click.stop="openScore(w)"
  6758. v-else-if="
  6759. courseDetail.userid == userid &&
  6760. courseDetail.state != 5 &&
  6761. chapInfoList[courseType].chapterInfo[0]
  6762. .taskJson[taskCount].eList &&
  6763. chapInfoList[courseType].chapterInfo[0]
  6764. .taskJson[taskCount].eList.length
  6765. "
  6766. :class="{
  6767. rightW:
  6768. w.userid == userid || tType == 1 || tType == 4
  6769. }"
  6770. >
  6771. 评分
  6772. </div>
  6773. <!-- <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"> -->
  6774. <div
  6775. v-else-if="
  6776. (courseDetail.userid == userid ||
  6777. (courseDetail.course_teacher &&
  6778. courseDetail.course_teacher.indexOf(
  6779. userid
  6780. ) != -1) ||
  6781. (w.userid == userid && sIsOpen)) &&
  6782. courseDetail.state == 5 &&
  6783. ((chapInfoList[courseType].chapterInfo[0]
  6784. .taskJson[taskCount].eList &&
  6785. chapInfoList[courseType].chapterInfo[0]
  6786. .taskJson[taskCount].eList.length) ||
  6787. (tool.eList && tool.eList.length))
  6788. "
  6789. >
  6790. <el-popover
  6791. placement="top"
  6792. width="318"
  6793. :disabled="AIloading[toolIndex][wIndex].loading"
  6794. trigger="hover"
  6795. >
  6796. <markScore
  6797. :loading="
  6798. AIloading[toolIndex][wIndex].loading
  6799. "
  6800. :markScoreVisible="markScoreVisible"
  6801. :ref="`markSco${toolIndex}${wIndex}`"
  6802. @updateLoading="updateLoading"
  6803. @updateDocSco="updateDocSco"
  6804. @refreshOther="refreshOther"
  6805. @markScoreDig="markScoreDig"
  6806. :tool="tool"
  6807. :wIndex="wIndex"
  6808. :scoCon="w"
  6809. :toolIndex="toolIndex"
  6810. :key="refreshKey"
  6811. :stage="courseType"
  6812. :task="taskCount"
  6813. :scoTit="
  6814. chapInfoList[courseType].chapterInfo[0]
  6815. .taskJson[taskCount].eList
  6816. "
  6817. >
  6818. </markScore>
  6819. <div
  6820. class="answerScore"
  6821. @click.stop="
  6822. markScoreDig2(
  6823. w.sName,
  6824. worksStudent,
  6825. w.userid,
  6826. toolIndex,
  6827. chapInfoList[courseType].chapterInfo[0]
  6828. .taskJson[taskCount].eList,
  6829. AIloading[toolIndex][wIndex].loading,
  6830. tool
  6831. )
  6832. "
  6833. slot="reference"
  6834. :class="{
  6835. rightW:
  6836. w.userid == userid ||
  6837. tType == 1 ||
  6838. tType == 4 ||
  6839. w.ateacher == userid
  6840. }"
  6841. >
  6842. <span v-if="AIloading[toolIndex][wIndex].sco">
  6843. {{
  6844. AIloading[toolIndex][wIndex].loading
  6845. ? "评分中"
  6846. : AIloading[toolIndex][wIndex].sco +
  6847. "分"
  6848. }}
  6849. </span>
  6850. <span v-else>
  6851. {{
  6852. AIloading[toolIndex][wIndex].loading
  6853. ? "评分中"
  6854. : "评分"
  6855. }}
  6856. </span>
  6857. </div>
  6858. </el-popover>
  6859. </div>
  6860. <img
  6861. class="deleteImg"
  6862. src="../../assets/deleteworks.png"
  6863. v-if="
  6864. w.userid == userid || tType == 1 || tType == 4
  6865. "
  6866. @click.stop="deleteWorks(w.wid)"
  6867. alt
  6868. />
  6869. </div>
  6870. <div class="comment">
  6871. <div class="worksName">
  6872. <div>{{ w.sName }}</div>
  6873. </div>
  6874. <div class="commentList">
  6875. <div
  6876. class="commentImg"
  6877. @click="
  6878. isLikes(
  6879. w.wid,
  6880. userid,
  6881. 1,
  6882. null,
  6883. w.isLikes,
  6884. w.sName
  6885. )
  6886. "
  6887. >
  6888. <img
  6889. :src="w.isLikes == true ? likes : noLikes"
  6890. alt=""
  6891. />
  6892. </div>
  6893. <div>{{ w.likesCount }}</div>
  6894. </div>
  6895. <div class="commentList" style="margin-right: 15px">
  6896. <div
  6897. class="commentImg"
  6898. @click="commentOther(w, toolIndex, wIndex)"
  6899. >
  6900. <img
  6901. src="../../assets/icon/comment/comment.png"
  6902. alt=""
  6903. />
  6904. </div>
  6905. <div>{{ w.commentCount }}</div>
  6906. </div>
  6907. </div>
  6908. </div>
  6909. </div>
  6910. </div>
  6911. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6912. 未提交
  6913. </div>
  6914. <div
  6915. class="noWorksS"
  6916. v-if="noWorksS && noWorksS[toolIndex].length"
  6917. >
  6918. <div
  6919. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6920. :key="sIndex"
  6921. class="noWorksName"
  6922. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6923. >
  6924. <el-tooltip
  6925. effect="dark"
  6926. :content="s.student"
  6927. placement="top"
  6928. >
  6929. <span>{{ s.student }}</span>
  6930. </el-tooltip>
  6931. </div>
  6932. </div>
  6933. </div>
  6934. <div
  6935. v-if="
  6936. tType &&
  6937. ((tType == 2 && sIsOpen == true) ||
  6938. tType == 1 ||
  6939. tType == 4) &&
  6940. tool.tool.indexOf(1) != -1
  6941. "
  6942. class="worksBox"
  6943. >
  6944. <div
  6945. class="zuoyeYulan"
  6946. style="display: flex;justify-content: space-between;align-items: center;"
  6947. v-if="
  6948. (worksStudent.length &&
  6949. worksStudent[toolIndex].length > 0) ||
  6950. (courseGroup.group && courseGroup.group.length)
  6951. "
  6952. >
  6953. <div class="worksTop">
  6954. <div>作业预览</div>
  6955. <div
  6956. class="corOpen"
  6957. @click="contract(toolIndex)"
  6958. v-if="
  6959. isCloseList[toolIndex].isCloseBoolean &&
  6960. isCloseList[toolIndex].isClose == 0
  6961. "
  6962. >
  6963. 折叠
  6964. </div>
  6965. <div
  6966. class="corOpen"
  6967. @click="contract(toolIndex)"
  6968. v-if="isCloseList[toolIndex].isClose == 1"
  6969. >
  6970. 展开
  6971. </div>
  6972. </div>
  6973. <div
  6974. style="display: flex;"
  6975. v-if="
  6976. (courseDetail.userid == userid ||
  6977. (courseDetail.course_teacher &&
  6978. courseDetail.course_teacher.indexOf(userid) !=
  6979. -1)) &&
  6980. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6981. taskCount
  6982. ].eList &&
  6983. chapInfoList[courseType].chapterInfo[0].taskJson[
  6984. taskCount
  6985. ].eList.length) ||
  6986. (tool.eList && tool.eList.length)) &&
  6987. courseDetail.state == 5
  6988. "
  6989. >
  6990. <div
  6991. style="margin-right:10px"
  6992. class="ScoreBtn"
  6993. @click="
  6994. resetLoopEva(
  6995. worksStudent[toolIndex],
  6996. chapInfoList[courseType].chapterInfo[0].taskJson[
  6997. taskCount
  6998. ].eList,
  6999. courseType,
  7000. taskCount,
  7001. toolIndex,
  7002. tool.toolDetail,
  7003. worksStudent
  7004. )
  7005. "
  7006. >
  7007. 一键重置
  7008. </div>
  7009. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7010. <img
  7011. src="../../assets/icon/newIcons/rootImg.png"
  7012. alt=""
  7013. />
  7014. AI评分
  7015. </div>
  7016. <div
  7017. class="ScoreBtn"
  7018. v-else-if="!loopLoading[toolIndex].loading"
  7019. @click="
  7020. loopEva(
  7021. worksStudent[toolIndex],
  7022. chapInfoList[courseType].chapterInfo[0].taskJson[
  7023. taskCount
  7024. ].eList,
  7025. courseType,
  7026. taskCount,
  7027. toolIndex,
  7028. tool.toolDetail,
  7029. chapInfoList[courseType].chapterInfo[0].taskJson[
  7030. taskCount
  7031. ].taskDetail,
  7032. tool
  7033. )
  7034. "
  7035. >
  7036. <img
  7037. src="../../assets/icon/newIcons/rootImg.png"
  7038. alt=""
  7039. />
  7040. AI评分
  7041. </div>
  7042. <div class="ScoreBtn" v-else>
  7043. <img
  7044. src="../../assets/icon/newIcons/rootImg.png"
  7045. alt=""
  7046. />
  7047. 正在评分
  7048. </div>
  7049. </div>
  7050. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7051. </div>
  7052. <div
  7053. class="group_workBox"
  7054. v-for="(g, gindex) in courseGroup.group"
  7055. :key="gindex"
  7056. >
  7057. <div class="group_box">
  7058. <div class="group_title">
  7059. <el-tooltip
  7060. class="item"
  7061. effect="light"
  7062. :content="g.name"
  7063. placement="top"
  7064. >
  7065. <div class="group_name">{{ g.name }}</div>
  7066. </el-tooltip>
  7067. </div>
  7068. <div
  7069. class="group_work"
  7070. v-if="
  7071. g.works &&
  7072. g.works.length &&
  7073. g.works[toolIndex].length
  7074. "
  7075. >
  7076. <div
  7077. class="works"
  7078. style="
  7079. width: 200px;
  7080. height: 140px;
  7081. margin: 10px 10px 10px 0;
  7082. border-radius: 15px;
  7083. box-shadow: 0 0 6px 1px #dfdada;
  7084. "
  7085. v-for="(w, wIndex) in g.works[toolIndex]"
  7086. :key="wIndex"
  7087. :class="w.type == 1 ? 'isTypeOne' : ''"
  7088. >
  7089. <div class="workImg">
  7090. <img
  7091. :src="w.works"
  7092. @click="previewImg(w.works, w)"
  7093. alt
  7094. />
  7095. <div
  7096. class="answerScore"
  7097. v-if="w.score"
  7098. @click.stop="openScore(w)"
  7099. :class="{
  7100. rightW:
  7101. w.userid == userid ||
  7102. tType == 1 ||
  7103. tType == 4
  7104. }"
  7105. >
  7106. {{ JSON.parse(w.score).wScore }}分
  7107. </div>
  7108. <div
  7109. class="answerScore"
  7110. @click.stop="openScore(w)"
  7111. v-else-if="courseDetail.userid == userid"
  7112. :class="{
  7113. rightW:
  7114. w.userid == userid ||
  7115. tType == 1 ||
  7116. tType == 4
  7117. }"
  7118. >
  7119. 评分
  7120. </div>
  7121. <img
  7122. class="deleteImg"
  7123. src="../../assets/deleteworks.png"
  7124. v-if="
  7125. w.userid == userid || tType == 1 || tType == 4
  7126. "
  7127. @click.stop="deleteWorks(w.wid)"
  7128. alt
  7129. />
  7130. </div>
  7131. <div class="comment" style="min-width: 200px">
  7132. <div class="worksName">
  7133. <div>{{ w.sName }}</div>
  7134. </div>
  7135. <div class="commentList">
  7136. <div class="commentList">
  7137. <div
  7138. class="commentImg"
  7139. @click="
  7140. isLikes(
  7141. w.wid,
  7142. userid,
  7143. 1,
  7144. null,
  7145. w.isLikes,
  7146. w.sName
  7147. )
  7148. "
  7149. >
  7150. <img
  7151. :src="w.isLikes == true ? likes : noLikes"
  7152. alt=""
  7153. />
  7154. </div>
  7155. <div>{{ w.likesCount }}</div>
  7156. </div>
  7157. <div
  7158. class="commentList"
  7159. style="margin-right: 15px"
  7160. >
  7161. <div
  7162. class="commentImg"
  7163. @click="
  7164. commentOther(
  7165. w,
  7166. toolIndex,
  7167. wIndex,
  7168. null,
  7169. g.id
  7170. )
  7171. "
  7172. >
  7173. <img
  7174. src="../../assets/icon/comment/comment.png"
  7175. alt=""
  7176. />
  7177. </div>
  7178. <div>{{ w.commentCount }}</div>
  7179. </div>
  7180. </div>
  7181. </div>
  7182. </div>
  7183. </div>
  7184. <div class="group_work" v-else>暂无提交作业</div>
  7185. </div>
  7186. </div>
  7187. <div
  7188. :id="'tool-' + toolIndex"
  7189. :style="{
  7190. height:
  7191. isCloseList[toolIndex].isClose == 1
  7192. ? retrnToolHeight('tool-' + toolIndex)
  7193. : 'auto',
  7194. overflow:
  7195. isCloseList[toolIndex].isClose == 1
  7196. ? 'hidden'
  7197. : 'unset'
  7198. }"
  7199. class="worksDetailBox"
  7200. v-if="
  7201. worksStudent.length &&
  7202. worksStudent[toolIndex].length > 0
  7203. "
  7204. >
  7205. <div
  7206. class="works"
  7207. style="
  7208. width: 200px;
  7209. height: 140px;
  7210. margin: 10px 10px 10px 0;
  7211. border-radius: 15px;
  7212. box-shadow: 0 0 6px 1px #dfdada;
  7213. "
  7214. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7215. :key="wIndex"
  7216. >
  7217. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7218. <div class="workImg">
  7219. <img
  7220. :src="w.works"
  7221. @click="previewImg(w.works, w)"
  7222. alt
  7223. />
  7224. <div
  7225. class="answerScore"
  7226. v-if="w.score"
  7227. @click.stop="openScore(w)"
  7228. :class="{
  7229. rightW:
  7230. w.userid == userid || tType == 1 || tType == 4
  7231. }"
  7232. >
  7233. {{ JSON.parse(w.score).wScore }}分
  7234. </div>
  7235. <div
  7236. class="answerScore"
  7237. @click.stop="openScore(w)"
  7238. v-else-if="
  7239. courseDetail.userid == userid &&
  7240. courseDetail.state != 5 &&
  7241. chapInfoList[courseType].chapterInfo[0]
  7242. .taskJson[taskCount].eList &&
  7243. chapInfoList[courseType].chapterInfo[0]
  7244. .taskJson[taskCount].eList.length
  7245. "
  7246. :class="{
  7247. rightW:
  7248. w.userid == userid || tType == 1 || tType == 4
  7249. }"
  7250. >
  7251. 评分
  7252. </div>
  7253. <div
  7254. v-else-if="
  7255. (courseDetail.userid == userid ||
  7256. (courseDetail.course_teacher &&
  7257. courseDetail.course_teacher.indexOf(userid) !=
  7258. -1) ||
  7259. (courseDetail.course_teacher &&
  7260. courseDetail.course_teacher.indexOf(userid) !=
  7261. -1) ||
  7262. (courseDetail.course_teacher &&
  7263. courseDetail.course_teacher.indexOf(userid) !=
  7264. -1) ||
  7265. (w.userid == userid && sIsOpen)) &&
  7266. courseDetail.state == 5 &&
  7267. ((chapInfoList[courseType].chapterInfo[0]
  7268. .taskJson[taskCount].eList &&
  7269. chapInfoList[courseType].chapterInfo[0]
  7270. .taskJson[taskCount].eList.length) ||
  7271. (tool.eList && tool.eList.length))
  7272. "
  7273. >
  7274. <el-popover
  7275. placement="top"
  7276. width="318"
  7277. :disabled="AIloading[toolIndex][wIndex].loading"
  7278. trigger="hover"
  7279. >
  7280. <markScore
  7281. :loading="AIloading[toolIndex][wIndex].loading"
  7282. :markScoreVisible="markScoreVisible"
  7283. :ref="`markSco${toolIndex}${wIndex}`"
  7284. @updateLoading="updateLoading"
  7285. @updateDocSco="updateDocSco"
  7286. @refreshOther="refreshOther"
  7287. @markScoreDig="markScoreDig"
  7288. :tool="tool"
  7289. :wIndex="wIndex"
  7290. :scoCon="w"
  7291. :toolIndex="toolIndex"
  7292. :key="refreshKey"
  7293. :stage="courseType"
  7294. :task="taskCount"
  7295. :scoTit="
  7296. chapInfoList[courseType].chapterInfo[0]
  7297. .taskJson[taskCount].eList
  7298. "
  7299. >
  7300. </markScore>
  7301. <div
  7302. class="answerScore"
  7303. @click="
  7304. markScoreDig2(
  7305. w.sName,
  7306. worksStudent,
  7307. w.userid,
  7308. toolIndex,
  7309. chapInfoList[courseType].chapterInfo[0]
  7310. .taskJson[taskCount].eList,
  7311. AIloading[toolIndex][wIndex].loading,
  7312. tool
  7313. )
  7314. "
  7315. slot="reference"
  7316. :class="{
  7317. rightW:
  7318. w.userid == userid ||
  7319. tType == 1 ||
  7320. tType == 4 ||
  7321. w.ateacher == userid
  7322. }"
  7323. >
  7324. <span v-if="AIloading[toolIndex][wIndex].sco">
  7325. {{
  7326. AIloading[toolIndex][wIndex].loading
  7327. ? "评分中"
  7328. : AIloading[toolIndex][wIndex].sco + "分"
  7329. }}
  7330. </span>
  7331. <span v-else>
  7332. {{
  7333. AIloading[toolIndex][wIndex].loading
  7334. ? "评分中"
  7335. : "评分"
  7336. }}
  7337. </span>
  7338. </div>
  7339. </el-popover>
  7340. </div>
  7341. <img
  7342. class="deleteImg"
  7343. src="../../assets/deleteworks.png"
  7344. v-if="
  7345. w.userid == userid || tType == 1 || tType == 4
  7346. "
  7347. @click.stop="deleteWorks(w.wid)"
  7348. alt
  7349. />
  7350. </div>
  7351. <div class="comment" style="min-width: 200px">
  7352. <div class="worksName">
  7353. <div>{{ w.sName }}</div>
  7354. </div>
  7355. <div class="commentList">
  7356. <div class="commentList">
  7357. <div
  7358. class="commentImg"
  7359. @click="
  7360. isLikes(
  7361. w.wid,
  7362. userid,
  7363. 1,
  7364. null,
  7365. w.isLikes,
  7366. w.sName
  7367. )
  7368. "
  7369. >
  7370. <img
  7371. :src="w.isLikes == true ? likes : noLikes"
  7372. alt=""
  7373. />
  7374. </div>
  7375. <div>{{ w.likesCount }}</div>
  7376. </div>
  7377. <div class="commentList" style="margin-right: 15px">
  7378. <div
  7379. class="commentImg"
  7380. @click="commentOther(w, toolIndex, wIndex)"
  7381. >
  7382. <img
  7383. src="../../assets/icon/comment/comment.png"
  7384. alt=""
  7385. />
  7386. </div>
  7387. <div>{{ w.commentCount }}</div>
  7388. </div>
  7389. </div>
  7390. </div>
  7391. </div>
  7392. </div>
  7393. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7394. 未提交
  7395. </div>
  7396. <div
  7397. class="noWorksS"
  7398. v-if="noWorksS && noWorksS[toolIndex].length"
  7399. >
  7400. <div
  7401. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7402. :key="sIndex"
  7403. class="noWorksName"
  7404. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7405. >
  7406. <el-tooltip
  7407. effect="dark"
  7408. :content="s.student"
  7409. placement="top"
  7410. >
  7411. <span>{{ s.student }}</span>
  7412. </el-tooltip>
  7413. </div>
  7414. </div>
  7415. </div>
  7416. <div
  7417. v-if="
  7418. tType &&
  7419. ((tType == 2 && sIsOpen == true) ||
  7420. tType == 1 ||
  7421. tType == 4) &&
  7422. tool.tool.indexOf(3) != -1
  7423. "
  7424. class="worksBox"
  7425. >
  7426. <div
  7427. class="zuoyeYulan"
  7428. style="display: flex;justify-content: space-between;align-items: center;"
  7429. v-if="
  7430. (worksStudent.length &&
  7431. worksStudent[toolIndex].length > 0) ||
  7432. (courseGroup.group && courseGroup.group.length)
  7433. "
  7434. >
  7435. <div class="worksTop">
  7436. <div>作业预览</div>
  7437. <div
  7438. class="corOpen"
  7439. @click="contract(toolIndex)"
  7440. v-if="
  7441. isCloseList[toolIndex].isCloseBoolean &&
  7442. isCloseList[toolIndex].isClose == 0
  7443. "
  7444. >
  7445. 折叠
  7446. </div>
  7447. <div
  7448. class="corOpen"
  7449. @click="contract(toolIndex)"
  7450. v-if="isCloseList[toolIndex].isClose == 1"
  7451. >
  7452. 展开
  7453. </div>
  7454. </div>
  7455. <div
  7456. style="display: flex;"
  7457. v-if="
  7458. (courseDetail.userid == userid ||
  7459. (courseDetail.course_teacher &&
  7460. courseDetail.course_teacher.indexOf(userid) !=
  7461. -1)) &&
  7462. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7463. taskCount
  7464. ].eList &&
  7465. chapInfoList[courseType].chapterInfo[0].taskJson[
  7466. taskCount
  7467. ].eList.length) ||
  7468. (tool.eList && tool.eList.length)) &&
  7469. courseDetail.state == 5
  7470. "
  7471. >
  7472. <div
  7473. style="margin-right:10px"
  7474. class="ScoreBtn"
  7475. @click="
  7476. resetLoopEva(
  7477. worksStudent[toolIndex],
  7478. chapInfoList[courseType].chapterInfo[0].taskJson[
  7479. taskCount
  7480. ].eList,
  7481. courseType,
  7482. taskCount,
  7483. toolIndex,
  7484. tool.toolDetail,
  7485. worksStudent
  7486. )
  7487. "
  7488. >
  7489. 一键重置
  7490. </div>
  7491. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7492. <img
  7493. src="../../assets/icon/newIcons/rootImg.png"
  7494. alt=""
  7495. />
  7496. AI评分
  7497. </div>
  7498. <div
  7499. class="ScoreBtn"
  7500. v-else-if="!loopLoading[toolIndex].loading"
  7501. @click="
  7502. loopEva(
  7503. worksStudent[toolIndex],
  7504. chapInfoList[courseType].chapterInfo[0].taskJson[
  7505. taskCount
  7506. ].eList,
  7507. courseType,
  7508. taskCount,
  7509. toolIndex,
  7510. tool.toolDetail,
  7511. chapInfoList[courseType].chapterInfo[0].taskJson[
  7512. taskCount
  7513. ].taskDetail,
  7514. tool
  7515. )
  7516. "
  7517. >
  7518. <img
  7519. src="../../assets/icon/newIcons/rootImg.png"
  7520. alt=""
  7521. />
  7522. AI评分
  7523. </div>
  7524. <div class="ScoreBtn" v-else>
  7525. <img
  7526. src="../../assets/icon/newIcons/rootImg.png"
  7527. alt=""
  7528. />
  7529. 正在评分
  7530. </div>
  7531. </div>
  7532. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7533. </div>
  7534. <div
  7535. class="group_workBox"
  7536. v-for="(g, gindex) in courseGroup.group"
  7537. :key="gindex"
  7538. >
  7539. <div class="group_box">
  7540. <div class="group_title">
  7541. <el-tooltip
  7542. class="item"
  7543. effect="light"
  7544. :content="g.name"
  7545. placement="top"
  7546. >
  7547. <div class="group_name">{{ g.name }}</div>
  7548. </el-tooltip>
  7549. </div>
  7550. <div
  7551. class="group_work"
  7552. v-if="
  7553. g.works &&
  7554. g.works.length &&
  7555. g.works[toolIndex].length
  7556. "
  7557. >
  7558. <div
  7559. class="works"
  7560. style="
  7561. width: 200px;
  7562. height: 140px;
  7563. margin: 10px 10px 10px 0;
  7564. border-radius: 15px;
  7565. box-shadow: 0 0 6px 1px #dfdada;
  7566. "
  7567. v-for="(w, wIndex) in g.works[toolIndex]"
  7568. :key="wIndex"
  7569. :class="w.type == 1 ? 'isTypeOne' : ''"
  7570. >
  7571. <div class="workImg">
  7572. <img
  7573. :src="w.works"
  7574. @click="previewImg(w.works, w)"
  7575. alt
  7576. />
  7577. <div
  7578. class="answerScore"
  7579. v-if="w.score"
  7580. @click.stop="openScore(w)"
  7581. :class="{
  7582. rightW:
  7583. w.userid == userid ||
  7584. tType == 1 ||
  7585. tType == 4
  7586. }"
  7587. >
  7588. {{ JSON.parse(w.score).wScore }}分
  7589. </div>
  7590. <div
  7591. class="answerScore"
  7592. @click.stop="openScore(w)"
  7593. v-else-if="courseDetail.userid == userid"
  7594. :class="{
  7595. rightW:
  7596. w.userid == userid ||
  7597. tType == 1 ||
  7598. tType == 4
  7599. }"
  7600. >
  7601. 评分
  7602. </div>
  7603. <img
  7604. class="deleteImg"
  7605. src="../../assets/deleteworks.png"
  7606. v-if="
  7607. w.userid == userid || tType == 1 || tType == 4
  7608. "
  7609. @click.stop="deleteWorks(w.wid)"
  7610. alt
  7611. />
  7612. </div>
  7613. <div class="comment" style="min-width: 200px">
  7614. <div class="worksName">
  7615. <div>{{ w.sName }}</div>
  7616. </div>
  7617. <div class="commentList">
  7618. <div class="commentList">
  7619. <div
  7620. class="commentImg"
  7621. @click="
  7622. isLikes(
  7623. w.wid,
  7624. userid,
  7625. 1,
  7626. null,
  7627. w.isLikes,
  7628. w.sName
  7629. )
  7630. "
  7631. >
  7632. <img
  7633. :src="w.isLikes == true ? likes : noLikes"
  7634. alt=""
  7635. />
  7636. </div>
  7637. <div>{{ w.likesCount }}</div>
  7638. </div>
  7639. <div
  7640. class="commentList"
  7641. style="margin-right: 15px"
  7642. >
  7643. <div
  7644. class="commentImg"
  7645. @click="
  7646. commentOther(
  7647. w,
  7648. toolIndex,
  7649. wIndex,
  7650. null,
  7651. g.id
  7652. )
  7653. "
  7654. >
  7655. <img
  7656. src="../../assets/icon/comment/comment.png"
  7657. alt=""
  7658. />
  7659. </div>
  7660. <div>{{ w.commentCount }}</div>
  7661. </div>
  7662. </div>
  7663. </div>
  7664. </div>
  7665. </div>
  7666. <div class="group_work" v-else>暂无提交作业</div>
  7667. </div>
  7668. </div>
  7669. <div
  7670. :id="'tool-' + toolIndex"
  7671. :style="{
  7672. height:
  7673. isCloseList[toolIndex].isClose == 1
  7674. ? retrnToolHeight('tool-' + toolIndex)
  7675. : 'auto',
  7676. overflow:
  7677. isCloseList[toolIndex].isClose == 1
  7678. ? 'hidden'
  7679. : 'unset'
  7680. }"
  7681. class="worksDetailBox"
  7682. v-if="
  7683. worksStudent.length &&
  7684. worksStudent[toolIndex].length > 0
  7685. "
  7686. >
  7687. <div
  7688. class="works"
  7689. style="
  7690. width: 200px;
  7691. height: 140px;
  7692. margin: 10px 10px 10px 0;
  7693. border-radius: 15px;
  7694. box-shadow: 0 0 6px 1px #dfdada;
  7695. "
  7696. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7697. :key="wIndex"
  7698. >
  7699. <!-- @click="previewImg(w.works)" -->
  7700. <div class="workImg">
  7701. <img
  7702. :src="w.works"
  7703. @click="previewImg(w.works, w)"
  7704. alt
  7705. />
  7706. <div
  7707. class="answerScore"
  7708. v-if="w.score"
  7709. @click.stop="openScore(w)"
  7710. :class="{
  7711. rightW:
  7712. w.userid == userid || tType == 1 || tType == 4
  7713. }"
  7714. >
  7715. {{ JSON.parse(w.score).wScore }}分
  7716. </div>
  7717. <div
  7718. class="answerScore"
  7719. @click.stop="openScore(w)"
  7720. v-else-if="
  7721. courseDetail.userid == userid &&
  7722. courseDetail.state != 5 &&
  7723. chapInfoList[courseType].chapterInfo[0]
  7724. .taskJson[taskCount].eList &&
  7725. chapInfoList[courseType].chapterInfo[0]
  7726. .taskJson[taskCount].eList.length
  7727. "
  7728. :class="{
  7729. rightW:
  7730. w.userid == userid || tType == 1 || tType == 4
  7731. }"
  7732. >
  7733. 评分
  7734. </div>
  7735. <!-- <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"> -->
  7736. <div
  7737. v-else-if="
  7738. (courseDetail.userid == userid ||
  7739. (courseDetail.course_teacher &&
  7740. courseDetail.course_teacher.indexOf(userid) !=
  7741. -1) ||
  7742. (w.userid == userid && sIsOpen)) &&
  7743. courseDetail.state == 5 &&
  7744. ((chapInfoList[courseType].chapterInfo[0]
  7745. .taskJson[taskCount].eList &&
  7746. chapInfoList[courseType].chapterInfo[0]
  7747. .taskJson[taskCount].eList.length) ||
  7748. (tool.eList && tool.eList.length))
  7749. "
  7750. >
  7751. <el-popover
  7752. placement="top"
  7753. width="318"
  7754. :disabled="AIloading[toolIndex][wIndex].loading"
  7755. trigger="hover"
  7756. >
  7757. <markScore
  7758. :loading="AIloading[toolIndex][wIndex].loading"
  7759. :markScoreVisible="markScoreVisible"
  7760. :ref="`markSco${toolIndex}${wIndex}`"
  7761. @updateLoading="updateLoading"
  7762. @updateDocSco="updateDocSco"
  7763. @refreshOther="refreshOther"
  7764. @markScoreDig="markScoreDig"
  7765. :tool="tool"
  7766. :wIndex="wIndex"
  7767. :scoCon="w"
  7768. :toolIndex="toolIndex"
  7769. :key="refreshKey"
  7770. :stage="courseType"
  7771. :task="taskCount"
  7772. :scoTit="
  7773. chapInfoList[courseType].chapterInfo[0]
  7774. .taskJson[taskCount].eList
  7775. "
  7776. >
  7777. </markScore>
  7778. <div
  7779. class="answerScore"
  7780. @click="
  7781. markScoreDig2(
  7782. w.sName,
  7783. worksStudent,
  7784. w.userid,
  7785. toolIndex,
  7786. chapInfoList[courseType].chapterInfo[0]
  7787. .taskJson[taskCount].eList,
  7788. AIloading[toolIndex][wIndex].loading,
  7789. tool
  7790. )
  7791. "
  7792. slot="reference"
  7793. :class="{
  7794. rightW:
  7795. w.userid == userid ||
  7796. tType == 1 ||
  7797. tType == 4 ||
  7798. w.ateacher == userid
  7799. }"
  7800. >
  7801. <span v-if="AIloading[toolIndex][wIndex].sco">
  7802. {{
  7803. AIloading[toolIndex][wIndex].loading
  7804. ? "评分中"
  7805. : AIloading[toolIndex][wIndex].sco + "分"
  7806. }}
  7807. </span>
  7808. <span v-else>
  7809. {{
  7810. AIloading[toolIndex][wIndex].loading
  7811. ? "评分中"
  7812. : "评分"
  7813. }}
  7814. </span>
  7815. </div>
  7816. </el-popover>
  7817. </div>
  7818. <img
  7819. class="deleteImg"
  7820. src="../../assets/deleteworks.png"
  7821. v-if="
  7822. w.userid == userid || tType == 1 || tType == 4
  7823. "
  7824. @click.stop="deleteWorks(w.wid)"
  7825. alt
  7826. />
  7827. </div>
  7828. <div class="comment" style="min-width: 200px">
  7829. <div class="worksName">
  7830. <div>{{ w.sName }}</div>
  7831. </div>
  7832. <div class="commentList">
  7833. <div class="commentList">
  7834. <div
  7835. class="commentImg"
  7836. @click="
  7837. isLikes(
  7838. w.wid,
  7839. userid,
  7840. 1,
  7841. null,
  7842. w.isLikes,
  7843. w.sName
  7844. )
  7845. "
  7846. >
  7847. <img
  7848. :src="w.isLikes == true ? likes : noLikes"
  7849. alt=""
  7850. />
  7851. </div>
  7852. <div>{{ w.likesCount }}</div>
  7853. </div>
  7854. <div class="commentList" style="margin-right: 15px">
  7855. <div
  7856. class="commentImg"
  7857. @click="commentOther(w, toolIndex, wIndex)"
  7858. >
  7859. <img
  7860. src="../../assets/icon/comment/comment.png"
  7861. alt=""
  7862. />
  7863. </div>
  7864. <div>{{ w.commentCount }}</div>
  7865. </div>
  7866. </div>
  7867. </div>
  7868. </div>
  7869. </div>
  7870. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7871. 未提交
  7872. </div>
  7873. <div
  7874. class="noWorksS"
  7875. v-if="noWorksS && noWorksS[toolIndex].length"
  7876. >
  7877. <div
  7878. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7879. :key="sIndex"
  7880. class="noWorksName"
  7881. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7882. >
  7883. <el-tooltip
  7884. effect="dark"
  7885. :content="s.student"
  7886. placement="top"
  7887. >
  7888. <span>{{ s.student }}</span>
  7889. </el-tooltip>
  7890. </div>
  7891. </div>
  7892. </div>
  7893. <div
  7894. v-if="
  7895. tType &&
  7896. ((tType == 2 && sIsOpen == true) ||
  7897. tType == 1 ||
  7898. tType == 4) &&
  7899. tool.tool.indexOf(6) != -1
  7900. "
  7901. class="worksBox"
  7902. >
  7903. <div
  7904. class="zuoyeYulan"
  7905. v-if="
  7906. (worksStudent.length &&
  7907. worksStudent[toolIndex].length > 0) ||
  7908. (courseGroup.group && courseGroup.group.length)
  7909. "
  7910. >
  7911. <div class="worksTop">
  7912. <div>作业预览</div>
  7913. <div
  7914. class="corOpen"
  7915. @click="contract(toolIndex)"
  7916. v-if="
  7917. isCloseList[toolIndex].isCloseBoolean &&
  7918. isCloseList[toolIndex].isClose == 0
  7919. "
  7920. >
  7921. 折叠
  7922. </div>
  7923. <div
  7924. class="corOpen"
  7925. @click="contract(toolIndex)"
  7926. v-if="isCloseList[toolIndex].isClose == 1"
  7927. >
  7928. 展开
  7929. </div>
  7930. </div>
  7931. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7932. </div>
  7933. <div
  7934. class="group_workBox"
  7935. v-for="(g, gindex) in courseGroup.group"
  7936. :key="gindex"
  7937. >
  7938. <div class="group_box">
  7939. <div class="group_title">
  7940. <el-tooltip
  7941. class="item"
  7942. effect="light"
  7943. :content="g.name"
  7944. placement="top"
  7945. >
  7946. <div class="group_name">{{ g.name }}</div>
  7947. </el-tooltip>
  7948. </div>
  7949. <div
  7950. class="group_work"
  7951. v-if="
  7952. g.works &&
  7953. g.works.length &&
  7954. g.works[toolIndex].length
  7955. "
  7956. >
  7957. <div
  7958. class="works"
  7959. style="
  7960. width: 200px;
  7961. height: 140px;
  7962. margin: 10px 10px 10px 0;
  7963. border-radius: 15px;
  7964. box-shadow: 0 0 6px 1px #dfdada;
  7965. "
  7966. v-for="(w, wIndex) in g.works[toolIndex]"
  7967. :key="wIndex"
  7968. :class="w.type == 1 ? 'isTypeOne' : ''"
  7969. >
  7970. <div class="workImg">
  7971. <img
  7972. :src="w.works"
  7973. @click="previewImg(w.works, w)"
  7974. alt
  7975. />
  7976. <div
  7977. class="answerScore"
  7978. v-if="w.score"
  7979. @click.stop="openScore(w)"
  7980. :class="{
  7981. rightW:
  7982. w.userid == userid ||
  7983. tType == 1 ||
  7984. tType == 4
  7985. }"
  7986. >
  7987. {{ JSON.parse(w.score).wScore }}分
  7988. </div>
  7989. <div
  7990. class="answerScore"
  7991. @click.stop="openScore(w)"
  7992. v-else-if="courseDetail.userid == userid"
  7993. :class="{
  7994. rightW:
  7995. w.userid == userid ||
  7996. tType == 1 ||
  7997. tType == 4
  7998. }"
  7999. >
  8000. 评分
  8001. </div>
  8002. <img
  8003. class="deleteImg"
  8004. src="../../assets/deleteworks.png"
  8005. v-if="
  8006. w.userid == userid || tType == 1 || tType == 4
  8007. "
  8008. @click.stop="deleteWorks(w.wid)"
  8009. alt
  8010. />
  8011. </div>
  8012. <div class="comment" style="min-width: 200px">
  8013. <div class="worksName">
  8014. <div>{{ w.sName }}</div>
  8015. </div>
  8016. <div class="commentList">
  8017. <div class="commentList">
  8018. <div
  8019. class="commentImg"
  8020. @click="
  8021. isLikes(
  8022. w.wid,
  8023. userid,
  8024. 1,
  8025. null,
  8026. w.isLikes,
  8027. w.sName
  8028. )
  8029. "
  8030. >
  8031. <img
  8032. :src="w.isLikes == true ? likes : noLikes"
  8033. alt=""
  8034. />
  8035. </div>
  8036. <div>{{ w.likesCount }}</div>
  8037. </div>
  8038. <div
  8039. class="commentList"
  8040. style="margin-right: 15px"
  8041. >
  8042. <div
  8043. class="commentImg"
  8044. @click="
  8045. commentOther(
  8046. w,
  8047. toolIndex,
  8048. wIndex,
  8049. null,
  8050. g.id
  8051. )
  8052. "
  8053. >
  8054. <img
  8055. src="../../assets/icon/comment/comment.png"
  8056. alt=""
  8057. />
  8058. </div>
  8059. <div>{{ w.commentCount }}</div>
  8060. </div>
  8061. </div>
  8062. </div>
  8063. </div>
  8064. </div>
  8065. <div class="group_work" v-else>暂无提交作业</div>
  8066. </div>
  8067. </div>
  8068. <div
  8069. :id="'tool-' + toolIndex"
  8070. :style="{
  8071. height:
  8072. isCloseList[toolIndex].isClose == 1
  8073. ? retrnToolHeight('tool-' + toolIndex)
  8074. : 'auto',
  8075. overflow:
  8076. isCloseList[toolIndex].isClose == 1
  8077. ? 'hidden'
  8078. : 'unset'
  8079. }"
  8080. class="worksDetailBox"
  8081. v-if="
  8082. worksStudent.length &&
  8083. worksStudent[toolIndex].length > 0
  8084. "
  8085. >
  8086. <div
  8087. class="works"
  8088. style="
  8089. width: 200px;
  8090. height: 140px;
  8091. margin: 10px 10px 10px 0;
  8092. border-radius: 15px;
  8093. box-shadow: 0 0 6px 1px #dfdada;
  8094. "
  8095. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8096. :key="wIndex"
  8097. >
  8098. <!-- @click="previewImg(w.works)" -->
  8099. <div class="workImg">
  8100. <img
  8101. :src="w.works"
  8102. @click="previewImg(w.works, w)"
  8103. alt
  8104. />
  8105. <div
  8106. class="answerScore"
  8107. v-if="w.score"
  8108. @click.stop="openScore(w)"
  8109. :class="{
  8110. rightW:
  8111. w.userid == userid || tType == 1 || tType == 4
  8112. }"
  8113. >
  8114. {{ JSON.parse(w.score).wScore }}分
  8115. </div>
  8116. <div
  8117. class="answerScore"
  8118. @click.stop="openScore(w)"
  8119. v-else-if="courseDetail.userid == userid"
  8120. :class="{
  8121. rightW:
  8122. w.userid == userid || tType == 1 || tType == 4
  8123. }"
  8124. >
  8125. 评分
  8126. </div>
  8127. <img
  8128. class="deleteImg"
  8129. src="../../assets/deleteworks.png"
  8130. v-if="
  8131. w.userid == userid || tType == 1 || tType == 4
  8132. "
  8133. @click.stop="deleteWorks(w.wid)"
  8134. alt
  8135. />
  8136. </div>
  8137. <div class="comment" style="min-width: 200px">
  8138. <div class="worksName">
  8139. <div>{{ w.sName }}</div>
  8140. </div>
  8141. <div class="commentList">
  8142. <div class="commentList">
  8143. <div
  8144. class="commentImg"
  8145. @click="
  8146. isLikes(
  8147. w.wid,
  8148. userid,
  8149. 1,
  8150. null,
  8151. w.isLikes,
  8152. w.sName
  8153. )
  8154. "
  8155. >
  8156. <img
  8157. :src="w.isLikes == true ? likes : noLikes"
  8158. alt=""
  8159. />
  8160. </div>
  8161. <div>{{ w.likesCount }}</div>
  8162. </div>
  8163. <div class="commentList" style="margin-right: 15px">
  8164. <div
  8165. class="commentImg"
  8166. @click="commentOther(w, toolIndex, wIndex)"
  8167. >
  8168. <img
  8169. src="../../assets/icon/comment/comment.png"
  8170. alt=""
  8171. />
  8172. </div>
  8173. <div>{{ w.commentCount }}</div>
  8174. </div>
  8175. </div>
  8176. </div>
  8177. </div>
  8178. </div>
  8179. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8180. 未提交
  8181. </div>
  8182. <div
  8183. class="noWorksS"
  8184. v-if="noWorksS && noWorksS[toolIndex].length"
  8185. >
  8186. <div
  8187. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8188. :key="sIndex"
  8189. class="noWorksName"
  8190. >
  8191. <el-tooltip
  8192. effect="dark"
  8193. :content="s.student"
  8194. placement="top"
  8195. >
  8196. <span>{{ s.student }}</span>
  8197. </el-tooltip>
  8198. </div>
  8199. </div>
  8200. </div>
  8201. <div
  8202. v-if="
  8203. tType &&
  8204. ((tType == 2 && sIsOpen == true) ||
  8205. tType == 1 ||
  8206. tType == 4) &&
  8207. tool.tool.indexOf(7) != -1
  8208. "
  8209. class="worksBox"
  8210. >
  8211. <div
  8212. class="zuoyeYulan"
  8213. style="display: flex;justify-content: space-between;align-items: center;"
  8214. v-if="
  8215. (worksStudent.length &&
  8216. worksStudent[toolIndex].length > 0) ||
  8217. (courseGroup.group && courseGroup.group.length)
  8218. "
  8219. >
  8220. <div class="worksTop">
  8221. <div>作业预览</div>
  8222. <div
  8223. class="corOpen"
  8224. @click="contract(toolIndex)"
  8225. v-if="
  8226. isCloseList[toolIndex].isCloseBoolean &&
  8227. isCloseList[toolIndex].isClose == 0
  8228. "
  8229. >
  8230. 折叠
  8231. </div>
  8232. <div
  8233. class="corOpen"
  8234. @click="contract(toolIndex)"
  8235. v-if="isCloseList[toolIndex].isClose == 1"
  8236. >
  8237. 展开
  8238. </div>
  8239. </div>
  8240. <div
  8241. style="display: flex;"
  8242. v-if="
  8243. (courseDetail.userid == userid ||
  8244. (courseDetail.course_teacher &&
  8245. courseDetail.course_teacher.indexOf(userid) !=
  8246. -1)) &&
  8247. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8248. taskCount
  8249. ].eList &&
  8250. chapInfoList[courseType].chapterInfo[0].taskJson[
  8251. taskCount
  8252. ].eList.length) ||
  8253. (tool.eList && tool.eList.length)) &&
  8254. courseDetail.state == 5
  8255. "
  8256. >
  8257. <div
  8258. style="margin-right:10px"
  8259. class="ScoreBtn"
  8260. @click="
  8261. resetLoopEva(
  8262. worksStudent[toolIndex],
  8263. chapInfoList[courseType].chapterInfo[0].taskJson[
  8264. taskCount
  8265. ].eList,
  8266. courseType,
  8267. taskCount,
  8268. toolIndex,
  8269. tool.toolDetail,
  8270. worksStudent
  8271. )
  8272. "
  8273. >
  8274. 一键重置
  8275. </div>
  8276. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8277. <img
  8278. src="../../assets/icon/newIcons/rootImg.png"
  8279. alt=""
  8280. />
  8281. AI评分
  8282. </div>
  8283. <div
  8284. class="ScoreBtn"
  8285. v-else-if="!loopLoading[toolIndex].loading"
  8286. @click="
  8287. loopEva(
  8288. worksStudent[toolIndex],
  8289. chapInfoList[courseType].chapterInfo[0].taskJson[
  8290. taskCount
  8291. ].eList,
  8292. courseType,
  8293. taskCount,
  8294. toolIndex,
  8295. tool.toolDetail,
  8296. chapInfoList[courseType].chapterInfo[0].taskJson[
  8297. taskCount
  8298. ].taskDetail,
  8299. tool
  8300. )
  8301. "
  8302. >
  8303. <img
  8304. src="../../assets/icon/newIcons/rootImg.png"
  8305. alt=""
  8306. />
  8307. AI评分
  8308. </div>
  8309. <div class="ScoreBtn" v-else>
  8310. <img
  8311. src="../../assets/icon/newIcons/rootImg.png"
  8312. alt=""
  8313. />
  8314. 正在评分
  8315. </div>
  8316. </div>
  8317. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8318. </div>
  8319. <div
  8320. class="group_workBox"
  8321. v-for="(g, gindex) in courseGroup.group"
  8322. :key="gindex"
  8323. >
  8324. <div class="group_box">
  8325. <div class="group_title">
  8326. <el-tooltip
  8327. class="item"
  8328. effect="light"
  8329. :content="g.name"
  8330. placement="top"
  8331. >
  8332. <div class="group_name">{{ g.name }}</div>
  8333. </el-tooltip>
  8334. </div>
  8335. <div
  8336. class="group_work"
  8337. v-if="
  8338. g.works &&
  8339. g.works.length &&
  8340. g.works[toolIndex].length
  8341. "
  8342. >
  8343. <div
  8344. class="works"
  8345. style="
  8346. width: 200px;
  8347. height: 140px;
  8348. margin: 10px 10px 10px 0;
  8349. border-radius: 15px;
  8350. box-shadow: 0 0 6px 1px #dfdada;
  8351. "
  8352. v-for="(w, wIndex) in g.works[toolIndex]"
  8353. :key="wIndex"
  8354. :class="w.type == 1 ? 'isTypeOne' : ''"
  8355. >
  8356. <div class="workImg">
  8357. <img
  8358. :src="w.works"
  8359. @click="previewImg(w.works, w)"
  8360. alt
  8361. />
  8362. <div
  8363. class="answerScore"
  8364. v-if="w.score"
  8365. @click.stop="openScore(w)"
  8366. :class="{
  8367. rightW:
  8368. w.userid == userid ||
  8369. tType == 1 ||
  8370. tType == 4
  8371. }"
  8372. >
  8373. {{ JSON.parse(w.score).wScore }}分
  8374. </div>
  8375. <div
  8376. class="answerScore"
  8377. @click.stop="openScore(w)"
  8378. v-else-if="courseDetail.userid == userid"
  8379. :class="{
  8380. rightW:
  8381. w.userid == userid ||
  8382. tType == 1 ||
  8383. tType == 4
  8384. }"
  8385. >
  8386. 评分
  8387. </div>
  8388. <img
  8389. class="deleteImg"
  8390. src="../../assets/deleteworks.png"
  8391. v-if="
  8392. w.userid == userid || tType == 1 || tType == 4
  8393. "
  8394. @click.stop="deleteWorks(w.wid)"
  8395. alt
  8396. />
  8397. </div>
  8398. <div class="comment" style="min-width: 200px">
  8399. <div class="worksName">
  8400. <div>{{ w.sName }}</div>
  8401. </div>
  8402. <div class="commentList">
  8403. <div class="commentList">
  8404. <div
  8405. class="commentImg"
  8406. @click="
  8407. isLikes(
  8408. w.wid,
  8409. userid,
  8410. 1,
  8411. null,
  8412. w.isLikes,
  8413. w.sName
  8414. )
  8415. "
  8416. >
  8417. <img
  8418. :src="w.isLikes == true ? likes : noLikes"
  8419. alt=""
  8420. />
  8421. </div>
  8422. <div>{{ w.likesCount }}</div>
  8423. </div>
  8424. <div
  8425. class="commentList"
  8426. style="margin-right: 15px"
  8427. >
  8428. <div
  8429. class="commentImg"
  8430. @click="
  8431. commentOther(
  8432. w,
  8433. toolIndex,
  8434. wIndex,
  8435. null,
  8436. g.id
  8437. )
  8438. "
  8439. >
  8440. <img
  8441. src="../../assets/icon/comment/comment.png"
  8442. alt=""
  8443. />
  8444. </div>
  8445. <div>{{ w.commentCount }}</div>
  8446. </div>
  8447. </div>
  8448. </div>
  8449. </div>
  8450. </div>
  8451. <div class="group_work" v-else>暂无提交作业</div>
  8452. </div>
  8453. </div>
  8454. <div
  8455. :id="'tool-' + toolIndex"
  8456. :style="{
  8457. height:
  8458. isCloseList[toolIndex].isClose == 1
  8459. ? retrnToolHeight('tool-' + toolIndex)
  8460. : 'auto',
  8461. overflow:
  8462. isCloseList[toolIndex].isClose == 1
  8463. ? 'hidden'
  8464. : 'unset'
  8465. }"
  8466. class="worksDetailBox"
  8467. v-if="
  8468. worksStudent.length &&
  8469. worksStudent[toolIndex].length > 0
  8470. "
  8471. >
  8472. <div
  8473. class="works"
  8474. style="
  8475. width: 200px;
  8476. height: 140px;
  8477. margin: 10px 10px 10px 0;
  8478. border-radius: 15px;
  8479. box-shadow: 0 0 6px 1px #dfdada;
  8480. "
  8481. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8482. :key="wIndex"
  8483. >
  8484. <!-- @click="previewImg(w.works)" -->
  8485. <div class="workImg">
  8486. <img
  8487. :src="w.works"
  8488. @click="previewImg(w.works, w)"
  8489. alt
  8490. />
  8491. <div
  8492. class="answerScore"
  8493. v-if="w.score"
  8494. @click.stop="openScore(w)"
  8495. :class="{
  8496. rightW:
  8497. w.userid == userid || tType == 1 || tType == 4
  8498. }"
  8499. >
  8500. {{ JSON.parse(w.score).wScore }}分
  8501. </div>
  8502. <div
  8503. class="answerScore"
  8504. @click.stop="openScore(w)"
  8505. v-else-if="
  8506. courseDetail.userid == userid &&
  8507. courseDetail.state != 5 &&
  8508. chapInfoList[courseType].chapterInfo[0]
  8509. .taskJson[taskCount].eList &&
  8510. chapInfoList[courseType].chapterInfo[0]
  8511. .taskJson[taskCount].eList.length
  8512. "
  8513. :class="{
  8514. rightW:
  8515. w.userid == userid || tType == 1 || tType == 4
  8516. }"
  8517. >
  8518. 评分
  8519. </div>
  8520. <!-- <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"> -->
  8521. <div
  8522. v-else-if="
  8523. (courseDetail.userid == userid ||
  8524. (courseDetail.course_teacher &&
  8525. courseDetail.course_teacher.indexOf(userid) !=
  8526. -1) ||
  8527. (w.userid == userid && sIsOpen)) &&
  8528. courseDetail.state == 5 &&
  8529. ((chapInfoList[courseType].chapterInfo[0]
  8530. .taskJson[taskCount].eList &&
  8531. chapInfoList[courseType].chapterInfo[0]
  8532. .taskJson[taskCount].eList.length) ||
  8533. (tool.eList && tool.eList.length))
  8534. "
  8535. >
  8536. <el-popover
  8537. placement="top"
  8538. width="318"
  8539. :disabled="AIloading[toolIndex][wIndex].loading"
  8540. trigger="hover"
  8541. >
  8542. <markScore
  8543. :loading="AIloading[toolIndex][wIndex].loading"
  8544. :markScoreVisible="markScoreVisible"
  8545. :ref="`markSco${toolIndex}${wIndex}`"
  8546. @updateLoading="updateLoading"
  8547. @updateDocSco="updateDocSco"
  8548. @refreshOther="refreshOther"
  8549. @markScoreDig="markScoreDig"
  8550. :tool="tool"
  8551. :wIndex="wIndex"
  8552. :scoCon="w"
  8553. :toolIndex="toolIndex"
  8554. :key="refreshKey"
  8555. :stage="courseType"
  8556. :task="taskCount"
  8557. :scoTit="
  8558. chapInfoList[courseType].chapterInfo[0]
  8559. .taskJson[taskCount].eList
  8560. "
  8561. >
  8562. </markScore>
  8563. <div
  8564. class="answerScore"
  8565. @click="
  8566. markScoreDig2(
  8567. w.sName,
  8568. worksStudent,
  8569. w.userid,
  8570. toolIndex,
  8571. chapInfoList[courseType].chapterInfo[0]
  8572. .taskJson[taskCount].eList,
  8573. AIloading[toolIndex][wIndex].loading,
  8574. tool
  8575. )
  8576. "
  8577. slot="reference"
  8578. :class="{
  8579. rightW:
  8580. w.userid == userid ||
  8581. tType == 1 ||
  8582. tType == 4 ||
  8583. w.ateacher == userid
  8584. }"
  8585. >
  8586. <span v-if="AIloading[toolIndex][wIndex].sco">
  8587. {{
  8588. AIloading[toolIndex][wIndex].loading
  8589. ? "评分中"
  8590. : AIloading[toolIndex][wIndex].sco + "分"
  8591. }}
  8592. </span>
  8593. <span v-else>
  8594. {{
  8595. AIloading[toolIndex][wIndex].loading
  8596. ? "评分中"
  8597. : "评分"
  8598. }}
  8599. </span>
  8600. </div>
  8601. </el-popover>
  8602. </div>
  8603. <img
  8604. class="deleteImg"
  8605. src="../../assets/deleteworks.png"
  8606. v-if="
  8607. w.userid == userid || tType == 1 || tType == 4
  8608. "
  8609. @click.stop="deleteWorks(w.wid)"
  8610. alt
  8611. />
  8612. </div>
  8613. <div class="comment" style="min-width: 200px">
  8614. <div class="worksName">
  8615. <div>{{ w.sName }}</div>
  8616. </div>
  8617. <div class="commentList">
  8618. <div class="commentList">
  8619. <div
  8620. class="commentImg"
  8621. @click="
  8622. isLikes(
  8623. w.wid,
  8624. userid,
  8625. 1,
  8626. null,
  8627. w.isLikes,
  8628. w.sName
  8629. )
  8630. "
  8631. >
  8632. <img
  8633. :src="w.isLikes == true ? likes : noLikes"
  8634. alt=""
  8635. />
  8636. </div>
  8637. <div>{{ w.likesCount }}</div>
  8638. </div>
  8639. <div class="commentList" style="margin-right: 15px">
  8640. <div
  8641. class="commentImg"
  8642. @click="commentOther(w, toolIndex, wIndex)"
  8643. >
  8644. <img
  8645. src="../../assets/icon/comment/comment.png"
  8646. alt=""
  8647. />
  8648. </div>
  8649. <div>{{ w.commentCount }}</div>
  8650. </div>
  8651. </div>
  8652. </div>
  8653. </div>
  8654. </div>
  8655. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8656. 未提交
  8657. </div>
  8658. <div
  8659. class="noWorksS"
  8660. v-if="noWorksS && noWorksS[toolIndex].length"
  8661. >
  8662. <div
  8663. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8664. :key="sIndex"
  8665. class="noWorksName"
  8666. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8667. >
  8668. <el-tooltip
  8669. effect="dark"
  8670. :content="s.student"
  8671. placement="top"
  8672. >
  8673. <span>{{ s.student }}</span>
  8674. </el-tooltip>
  8675. </div>
  8676. </div>
  8677. </div>
  8678. <div
  8679. v-if="
  8680. tType &&
  8681. ((tType == 2 && sIsOpen == true) ||
  8682. tType == 1 ||
  8683. tType == 4) &&
  8684. tool.tool.indexOf(26) != -1
  8685. "
  8686. class="worksBox"
  8687. >
  8688. <div
  8689. class="zuoyeYulan"
  8690. v-if="
  8691. worksStudent.length &&
  8692. worksStudent[toolIndex].length > 0
  8693. "
  8694. >
  8695. <div class="worksTop">
  8696. <div>作业预览</div>
  8697. <div
  8698. class="corOpen"
  8699. @click="contract(toolIndex)"
  8700. v-if="
  8701. isCloseList[toolIndex].isCloseBoolean &&
  8702. isCloseList[toolIndex].isClose == 0
  8703. "
  8704. >
  8705. 折叠
  8706. </div>
  8707. <div
  8708. class="corOpen"
  8709. @click="contract(toolIndex)"
  8710. v-if="isCloseList[toolIndex].isClose == 1"
  8711. >
  8712. 展开
  8713. </div>
  8714. </div>
  8715. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8716. </div>
  8717. <div
  8718. :id="'tool-' + toolIndex"
  8719. :style="{
  8720. height:
  8721. isCloseList[toolIndex].isClose == 1
  8722. ? retrnToolHeight('tool-' + toolIndex)
  8723. : 'auto',
  8724. overflow:
  8725. isCloseList[toolIndex].isClose == 1
  8726. ? 'hidden'
  8727. : 'unset'
  8728. }"
  8729. class="worksDetailBox"
  8730. v-if="
  8731. worksStudent.length &&
  8732. worksStudent[toolIndex].length > 0
  8733. "
  8734. >
  8735. <div
  8736. class="works"
  8737. style="width: 240px; height: 140px; overflow: hidden"
  8738. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8739. :key="wIndex"
  8740. :class="w.type == 1 ? 'isTypeOne' : ''"
  8741. >
  8742. <div class="workImg" v-if="w.type == 0">
  8743. <img
  8744. :src="w.works"
  8745. @click="previewImg(w.works, w)"
  8746. alt
  8747. />
  8748. <img
  8749. class="deleteImg"
  8750. src="../../assets/deleteworks.png"
  8751. v-if="
  8752. w.userid == userid || tType == 1 || tType == 4
  8753. "
  8754. @click.stop="deleteWorks(w.wid)"
  8755. alt
  8756. />
  8757. </div>
  8758. <div class="workImg" v-if="w.type == 1">
  8759. <img :src="word" @click="openFile(w.works)" alt />
  8760. <img
  8761. class="deleteImg"
  8762. src="../../assets/deleteworks.png"
  8763. v-if="
  8764. w.userid == userid || tType == 1 || tType == 4
  8765. "
  8766. @click.stop="deleteWorks(w.wid)"
  8767. alt
  8768. />
  8769. </div>
  8770. <div class="worksName">
  8771. <div>{{ w.sName }}</div>
  8772. </div>
  8773. </div>
  8774. </div>
  8775. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8776. 未提交
  8777. </div>
  8778. <div
  8779. class="noWorksS"
  8780. v-if="noWorksS && noWorksS[toolIndex].length"
  8781. >
  8782. <div
  8783. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8784. :key="sIndex"
  8785. class="noWorksName"
  8786. >
  8787. <el-tooltip
  8788. effect="dark"
  8789. :content="s.student"
  8790. placement="top"
  8791. >
  8792. <span>{{ s.student }}</span>
  8793. </el-tooltip>
  8794. </div>
  8795. </div>
  8796. </div>
  8797. <div
  8798. v-if="
  8799. tType &&
  8800. ((tType == 2 && sIsOpen == true) ||
  8801. tType == 1 ||
  8802. tType == 4) &&
  8803. tool.tool.indexOf(40) != -1
  8804. "
  8805. class="worksBox"
  8806. >
  8807. <div
  8808. class="zuoyeYulan"
  8809. v-if="
  8810. worksStudent.length &&
  8811. worksStudent[toolIndex].length > 0
  8812. "
  8813. >
  8814. <div class="worksTop">
  8815. <div>作业预览</div>
  8816. <div
  8817. class="corOpen"
  8818. @click="contract(toolIndex)"
  8819. v-if="
  8820. isCloseList[toolIndex].isCloseBoolean &&
  8821. isCloseList[toolIndex].isClose == 0
  8822. "
  8823. >
  8824. 折叠
  8825. </div>
  8826. <div
  8827. class="corOpen"
  8828. @click="contract(toolIndex)"
  8829. v-if="isCloseList[toolIndex].isClose == 1"
  8830. >
  8831. 展开
  8832. </div>
  8833. </div>
  8834. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8835. </div>
  8836. <div
  8837. :id="'tool-' + toolIndex"
  8838. :style="{
  8839. height:
  8840. isCloseList[toolIndex].isClose == 1
  8841. ? retrnToolHeight('tool-' + toolIndex)
  8842. : 'auto',
  8843. overflow:
  8844. isCloseList[toolIndex].isClose == 1
  8845. ? 'hidden'
  8846. : 'unset'
  8847. }"
  8848. class="worksDetailBox"
  8849. v-if="
  8850. worksStudent.length &&
  8851. worksStudent[toolIndex].length > 0
  8852. "
  8853. >
  8854. <div
  8855. class="works"
  8856. style="
  8857. width: 200px;
  8858. height: 140px;
  8859. margin: 10px 10px 10px 0;
  8860. border-radius: 15px;
  8861. box-shadow: 0 0 6px 1px #dfdada;
  8862. "
  8863. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8864. :key="wIndex"
  8865. :class="w.type == 1 ? 'isTypeOne' : ''"
  8866. >
  8867. <div class="workImg">
  8868. <img
  8869. src="../../assets/icon/works/noImg.png"
  8870. @click="openPj(w.works, toolIndex)"
  8871. alt
  8872. />
  8873. <img
  8874. class="deleteImg"
  8875. src="../../assets/deleteworks.png"
  8876. v-if="
  8877. w.userid == userid || tType == 1 || tType == 4
  8878. "
  8879. @click.stop="deleteWorks(w.wid)"
  8880. alt
  8881. />
  8882. </div>
  8883. <div class="comment" style="min-width: 200px">
  8884. <div class="worksName">
  8885. <div>{{ w.sName }}</div>
  8886. </div>
  8887. <div class="commentList">
  8888. <div class="commentList">
  8889. <div
  8890. class="commentImg"
  8891. @click="
  8892. isLikes(
  8893. w.wid,
  8894. userid,
  8895. 1,
  8896. null,
  8897. w.isLikes,
  8898. w.sName
  8899. )
  8900. "
  8901. >
  8902. <img
  8903. :src="w.isLikes == true ? likes : noLikes"
  8904. alt=""
  8905. />
  8906. </div>
  8907. <div>{{ w.likesCount }}</div>
  8908. </div>
  8909. <div class="commentList" style="margin-right: 15px">
  8910. <div
  8911. class="commentImg"
  8912. @click="commentOther(w, toolIndex, wIndex)"
  8913. >
  8914. <img
  8915. src="../../assets/icon/comment/comment.png"
  8916. alt=""
  8917. />
  8918. </div>
  8919. <div>{{ w.commentCount }}</div>
  8920. </div>
  8921. </div>
  8922. </div>
  8923. </div>
  8924. </div>
  8925. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8926. 未提交
  8927. </div>
  8928. <div
  8929. class="noWorksS"
  8930. v-if="noWorksS && noWorksS[toolIndex].length"
  8931. >
  8932. <div
  8933. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8934. :key="sIndex"
  8935. class="noWorksName"
  8936. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8937. >
  8938. <el-tooltip
  8939. effect="dark"
  8940. :content="s.student"
  8941. placement="top"
  8942. >
  8943. <span>{{ s.student }}</span>
  8944. </el-tooltip>
  8945. </div>
  8946. </div>
  8947. </div>
  8948. <div
  8949. v-if="
  8950. tType &&
  8951. tType == 2 &&
  8952. !sIsOpen &&
  8953. tool.tool.indexOf(40) != -1
  8954. "
  8955. class="worksBox"
  8956. >
  8957. <div
  8958. class="zuoyeYulan"
  8959. v-if="workStudent[toolIndex].length > 0"
  8960. >
  8961. <span class="worksTitle">作业预览</span>
  8962. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8963. </div>
  8964. <div
  8965. class="worksDetailBox"
  8966. v-if="workStudent[toolIndex].length > 0"
  8967. >
  8968. <div
  8969. class="works"
  8970. style="
  8971. width: 200px;
  8972. height: 140px;
  8973. margin: 10px 10px 10px 0;
  8974. "
  8975. v-for="(w, wIndex) in workStudent[toolIndex]"
  8976. :key="wIndex"
  8977. >
  8978. <div class="workImg">
  8979. <img
  8980. src="../../assets/icon/works/noImg.png"
  8981. @click="openPj(w.works, toolIndex)"
  8982. alt
  8983. />
  8984. <img
  8985. class="deleteImg"
  8986. src="../../assets/deleteworks.png"
  8987. v-if="
  8988. w.userid == userid || tType == 1 || tType == 4
  8989. "
  8990. @click.stop="deleteWorks(w.wid)"
  8991. alt
  8992. />
  8993. </div>
  8994. <div class="worksName">
  8995. <div>{{ w.sName }}</div>
  8996. </div>
  8997. </div>
  8998. </div>
  8999. </div>
  9000. <div
  9001. v-if="
  9002. tType &&
  9003. ((tType == 2 && sIsOpen == true) ||
  9004. tType == 1 ||
  9005. tType == 4) &&
  9006. tool.tool.indexOf(41) != -1
  9007. "
  9008. >
  9009. <AnswerData2
  9010. v-if="
  9011. worksStudent.length &&
  9012. worksStudent[toolIndex].length > 0
  9013. "
  9014. :problemJson="tool.selectJson.answer"
  9015. :people="worksStudent[toolIndex]"
  9016. ></AnswerData2>
  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. class="worksBox"
  9027. >
  9028. <div
  9029. class="zuoyeYulan"
  9030. v-if="
  9031. worksStudent.length &&
  9032. worksStudent[toolIndex].length > 0
  9033. "
  9034. >
  9035. <div class="worksTop">
  9036. <div>作业预览</div>
  9037. <div
  9038. class="corOpen"
  9039. @click="contract(toolIndex)"
  9040. v-if="
  9041. isCloseList[toolIndex].isCloseBoolean &&
  9042. isCloseList[toolIndex].isClose == 0
  9043. "
  9044. >
  9045. 折叠
  9046. </div>
  9047. <div
  9048. class="corOpen"
  9049. @click="contract(toolIndex)"
  9050. v-if="isCloseList[toolIndex].isClose == 1"
  9051. >
  9052. 展开
  9053. </div>
  9054. </div>
  9055. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9056. </div>
  9057. <div
  9058. :id="'tool-' + toolIndex"
  9059. :style="{
  9060. height:
  9061. isCloseList[toolIndex].isClose == 1
  9062. ? retrnToolHeight('tool-' + toolIndex)
  9063. : 'auto',
  9064. overflow:
  9065. isCloseList[toolIndex].isClose == 1
  9066. ? 'hidden'
  9067. : 'unset'
  9068. }"
  9069. class="worksDetailBox"
  9070. v-if="
  9071. worksStudent.length &&
  9072. worksStudent[toolIndex].length > 0
  9073. "
  9074. >
  9075. <div
  9076. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9077. :key="wIndex"
  9078. class="isWorksName2"
  9079. @click="openXz(w, toolIndex)"
  9080. >
  9081. {{ w.sName }}
  9082. <img
  9083. class="deleteImg deleteImg2"
  9084. src="../../assets/deleteworks.png"
  9085. v-if="w.userid == userid || tType == 1 || tType == 4"
  9086. @click.stop="deleteWorks(w.wid)"
  9087. alt
  9088. />
  9089. </div>
  9090. <!-- <div
  9091. class="works"
  9092. style="
  9093. width: 200px;
  9094. height: 140px;
  9095. margin: 10px 10px 10px 0;
  9096. border-radius: 15px;
  9097. box-shadow: 0 0 6px 1px #dfdada;
  9098. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9099. :class="w.type == 5 ? 'isTypeOne' : ''">
  9100. <div class="workImg">
  9101. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9102. </div>
  9103. <div class="worksName">
  9104. <div>{{ w.sName }}</div>
  9105. </div>
  9106. </div> -->
  9107. </div>
  9108. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9109. 未提交
  9110. </div>
  9111. <div
  9112. class="noWorksS"
  9113. v-if="noWorksS && noWorksS[toolIndex].length"
  9114. >
  9115. <div
  9116. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9117. :key="sIndex"
  9118. class="noWorksName"
  9119. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9120. >
  9121. <el-tooltip
  9122. effect="dark"
  9123. :content="s.student"
  9124. placement="top"
  9125. >
  9126. <span>{{ s.student }}</span>
  9127. </el-tooltip>
  9128. </div>
  9129. </div>
  9130. </div>
  9131. <div
  9132. v-if="
  9133. tType &&
  9134. tType == 2 &&
  9135. !sIsOpen &&
  9136. tool.tool.indexOf(41) != -1
  9137. "
  9138. class="worksBox"
  9139. >
  9140. <div
  9141. class="zuoyeYulan"
  9142. v-if="workStudent[toolIndex].length > 0"
  9143. >
  9144. <span class="worksTitle">作业预览</span>
  9145. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9146. </div>
  9147. <div
  9148. class="worksDetailBox"
  9149. v-if="workStudent[toolIndex].length > 0"
  9150. >
  9151. <div
  9152. class="works"
  9153. style="
  9154. width: 200px;
  9155. height: 140px;
  9156. margin: 10px 10px 10px 0;
  9157. "
  9158. v-for="(w, wIndex) in workStudent[toolIndex]"
  9159. :key="wIndex"
  9160. >
  9161. <div class="workImg">
  9162. <img
  9163. src="../../assets/icon/works/noImg.png"
  9164. @click="openXz(w, toolIndex)"
  9165. alt
  9166. />
  9167. <img
  9168. class="deleteImg"
  9169. src="../../assets/deleteworks.png"
  9170. v-if="
  9171. w.userid == userid || tType == 1 || tType == 4
  9172. "
  9173. @click.stop="deleteWorks(w.wid)"
  9174. alt
  9175. />
  9176. </div>
  9177. <div class="worksName">
  9178. <div>{{ w.sName }}</div>
  9179. </div>
  9180. </div>
  9181. </div>
  9182. </div>
  9183. <div v-if="false" class="xuan_right_box">
  9184. <div
  9185. class="tool_right_box"
  9186. v-for="(item, index) in tool.sentenceList"
  9187. :key="index"
  9188. >
  9189. <div>
  9190. <span
  9191. style="word-break: break-all; white-space: normal"
  9192. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9193. >
  9194. </div>
  9195. <div class="right_box_xuan">
  9196. <span>正确率</span>
  9197. <span>{{
  9198. (checkJson[toolIndex][index].right
  9199. ? checkJson[toolIndex][index].right
  9200. : 0) + "%"
  9201. }}</span>
  9202. </div>
  9203. <div class="right_box_xuan">
  9204. <span>答对人数</span>
  9205. <span>{{
  9206. checkJson[toolIndex][index].rightPerson.length
  9207. }}</span>
  9208. </div>
  9209. </div>
  9210. </div>
  9211. <div
  9212. v-if="
  9213. tType &&
  9214. ((tType == 2 && sIsOpen == true) ||
  9215. tType == 1 ||
  9216. tType == 4) &&
  9217. tool.tool.indexOf(47) != -1
  9218. "
  9219. >
  9220. <!-- <AnswerData
  9221. v-if="
  9222. checkJson[toolIndex].length &&
  9223. (tool.sentenceList || tool.sentenceList.length > 0)
  9224. "
  9225. :people="checkJson[toolIndex]"
  9226. ></AnswerData> -->
  9227. <sortToolWorkShow v-if="
  9228. worksStudent[toolIndex].length
  9229. "
  9230. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  9231. </div>
  9232. <div
  9233. v-if="
  9234. tType &&
  9235. tType == 2 &&
  9236. !sIsOpen &&
  9237. tool.tool.indexOf(47) != -1
  9238. "
  9239. class="worksBox"
  9240. >
  9241. <div
  9242. class="zuoyeYulan"
  9243. v-if="workStudent[toolIndex].length > 0"
  9244. >
  9245. <span class="worksTitle">作业预览</span>
  9246. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9247. </div>
  9248. <div
  9249. class="worksDetailBox"
  9250. v-if="workStudent[toolIndex].length > 0"
  9251. >
  9252. <div
  9253. class="works"
  9254. style="
  9255. width: 200px;
  9256. height: 140px;
  9257. margin: 10px 10px 10px 0;
  9258. "
  9259. v-for="(w, wIndex) in workStudent[toolIndex]"
  9260. :key="wIndex"
  9261. >
  9262. <!-- @click="openXz(w, toolIndex)" -->
  9263. <div class="workImg" @click="openSen(w, toolIndex)">
  9264. <img src="../../assets/icon/works/noImg.png" alt />
  9265. <img
  9266. class="deleteImg"
  9267. src="../../assets/deleteworks.png"
  9268. v-if="
  9269. w.userid == userid || tType == 1 || tType == 4
  9270. "
  9271. @click.stop="deleteWorks(w.wid)"
  9272. alt
  9273. />
  9274. </div>
  9275. <div class="worksName">
  9276. <div>
  9277. {{ w.sName }}
  9278. </div>
  9279. </div>
  9280. </div>
  9281. </div>
  9282. </div>
  9283. <div
  9284. v-if="
  9285. tType &&
  9286. ((tType == 2 && sIsOpen == true) ||
  9287. tType == 1 ||
  9288. tType == 4) &&
  9289. tool.tool.indexOf(47) != -1
  9290. "
  9291. class="worksBox"
  9292. >
  9293. <div
  9294. class="zuoyeYulan"
  9295. v-if="
  9296. worksStudent.length &&
  9297. worksStudent[toolIndex].length > 0
  9298. "
  9299. >
  9300. <div class="worksTop">
  9301. <div>作业预览</div>
  9302. <div
  9303. class="corOpen"
  9304. @click="contract(toolIndex)"
  9305. v-if="
  9306. isCloseList[toolIndex].isCloseBoolean &&
  9307. isCloseList[toolIndex].isClose == 0
  9308. "
  9309. >
  9310. 折叠
  9311. </div>
  9312. <div
  9313. class="corOpen"
  9314. @click="contract(toolIndex)"
  9315. v-if="isCloseList[toolIndex].isClose == 1"
  9316. >
  9317. 展开
  9318. </div>
  9319. </div>
  9320. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9321. </div>
  9322. <div
  9323. :id="'tool-' + toolIndex"
  9324. :style="{
  9325. height:
  9326. isCloseList[toolIndex].isClose == 1
  9327. ? retrnToolHeight('tool-' + toolIndex)
  9328. : 'auto',
  9329. overflow:
  9330. isCloseList[toolIndex].isClose == 1
  9331. ? 'hidden'
  9332. : 'unset'
  9333. }"
  9334. class="worksDetailBox"
  9335. v-if="
  9336. worksStudent.length &&
  9337. worksStudent[toolIndex].length > 0
  9338. "
  9339. >
  9340. <!-- @click="openXz(w, toolIndex)" -->
  9341. <div
  9342. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9343. :key="wIndex"
  9344. class="isWorksName2"
  9345. @click="openSen(w, toolIndex)"
  9346. >
  9347. {{ w.sName }}
  9348. <img
  9349. class="deleteImg deleteImg2"
  9350. src="../../assets/deleteworks.png"
  9351. v-if="w.userid == userid || tType == 1 || tType == 4"
  9352. @click.stop="deleteWorks(w.wid)"
  9353. alt
  9354. />
  9355. </div>
  9356. </div>
  9357. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9358. 未提交
  9359. </div>
  9360. <div
  9361. class="noWorksS"
  9362. v-if="noWorksS && noWorksS[toolIndex].length"
  9363. >
  9364. <div
  9365. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9366. :key="sIndex"
  9367. class="noWorksName"
  9368. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9369. >
  9370. <el-tooltip
  9371. effect="dark"
  9372. :content="s.student"
  9373. placement="top"
  9374. >
  9375. <span>{{ s.student }}</span>
  9376. </el-tooltip>
  9377. </div>
  9378. </div>
  9379. </div>
  9380. <div
  9381. v-if="
  9382. tType &&
  9383. ((tType == 2 && sIsOpen == true) ||
  9384. tType == 1 ||
  9385. tType == 4) &&
  9386. tool.tool.indexOf(48) != -1
  9387. "
  9388. class="worksBox"
  9389. >
  9390. <div
  9391. class="zuoyeYulan"
  9392. style="display: flex;justify-content: space-between;align-items: center;"
  9393. v-if="
  9394. worksStudent.length &&
  9395. worksStudent[toolIndex].length > 0
  9396. "
  9397. >
  9398. <div class="worksTop">
  9399. <div>作业预览</div>
  9400. <div
  9401. class="corOpen"
  9402. @click="contract(toolIndex)"
  9403. v-if="
  9404. isCloseList[toolIndex].isCloseBoolean &&
  9405. isCloseList[toolIndex].isClose == 0
  9406. "
  9407. >
  9408. 折叠
  9409. </div>
  9410. <div
  9411. class="corOpen"
  9412. @click="contract(toolIndex)"
  9413. v-if="isCloseList[toolIndex].isClose == 1"
  9414. >
  9415. 展开
  9416. </div>
  9417. </div>
  9418. <div
  9419. style="display: flex;"
  9420. v-if="
  9421. (courseDetail.userid == userid ||
  9422. (courseDetail.course_teacher &&
  9423. courseDetail.course_teacher.indexOf(userid) !=
  9424. -1)) &&
  9425. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9426. taskCount
  9427. ].eList &&
  9428. chapInfoList[courseType].chapterInfo[0].taskJson[
  9429. taskCount
  9430. ].eList.length) ||
  9431. (tool.eList && tool.eList.length)) &&
  9432. courseDetail.state == 5
  9433. "
  9434. >
  9435. <div
  9436. style="margin-right:10px"
  9437. class="ScoreBtn"
  9438. @click="
  9439. resetLoopEva(
  9440. worksStudent[toolIndex],
  9441. chapInfoList[courseType].chapterInfo[0].taskJson[
  9442. taskCount
  9443. ].eList,
  9444. courseType,
  9445. taskCount,
  9446. toolIndex,
  9447. tool.toolDetail,
  9448. worksStudent
  9449. )
  9450. "
  9451. >
  9452. 一键重置
  9453. </div>
  9454. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9455. <img
  9456. src="../../assets/icon/newIcons/rootImg.png"
  9457. alt=""
  9458. />
  9459. AI评分
  9460. </div>
  9461. <div
  9462. class="ScoreBtn"
  9463. v-else-if="!loopLoading[toolIndex].loading"
  9464. @click="
  9465. loopEva(
  9466. worksStudent[toolIndex],
  9467. chapInfoList[courseType].chapterInfo[0].taskJson[
  9468. taskCount
  9469. ].eList,
  9470. courseType,
  9471. taskCount,
  9472. toolIndex,
  9473. tool.toolDetail,
  9474. chapInfoList[courseType].chapterInfo[0].taskJson[
  9475. taskCount
  9476. ].taskDetail,
  9477. tool
  9478. )
  9479. "
  9480. >
  9481. <img
  9482. src="../../assets/icon/newIcons/rootImg.png"
  9483. alt=""
  9484. />
  9485. AI评分
  9486. </div>
  9487. <div class="ScoreBtn" v-else>
  9488. <img
  9489. src="../../assets/icon/newIcons/rootImg.png"
  9490. alt=""
  9491. />
  9492. 正在评分
  9493. </div>
  9494. </div>
  9495. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9496. </div>
  9497. <div
  9498. :id="'tool-' + toolIndex"
  9499. :style="{
  9500. height:
  9501. isCloseList[toolIndex].isClose == 1
  9502. ? retrnToolHeight('tool-' + toolIndex)
  9503. : 'auto',
  9504. overflow:
  9505. isCloseList[toolIndex].isClose == 1
  9506. ? 'hidden'
  9507. : 'unset'
  9508. }"
  9509. class="worksDetailBox"
  9510. v-if="
  9511. worksStudent.length &&
  9512. worksStudent[toolIndex].length > 0
  9513. "
  9514. >
  9515. <div
  9516. class="works"
  9517. style="
  9518. width: 200px;
  9519. height: 140px;
  9520. margin: 10px 10px 10px 0;
  9521. border-radius: 15px;
  9522. box-shadow: 0 0 6px 1px #dfdada;
  9523. "
  9524. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9525. :key="wIndex"
  9526. :class="w.type == 1 ? 'isTypeOne' : ''"
  9527. >
  9528. <div class="workImg">
  9529. <img :src="word" @click="openTable(w)" alt />
  9530. <!-- @click="openFile(w.works)" -->
  9531. <div
  9532. class="answerScore"
  9533. v-if="w.score"
  9534. @click.stop="openScore(w)"
  9535. :class="{
  9536. rightW:
  9537. w.userid == userid ||
  9538. tType == 1 ||
  9539. tType == 4 ||
  9540. w.ateacher == userid
  9541. }"
  9542. >
  9543. {{ JSON.parse(w.score).wScore }}分
  9544. </div>
  9545. <div
  9546. class="answerScore"
  9547. @click.stop="openScore(w)"
  9548. v-else-if="
  9549. courseDetail.userid == userid &&
  9550. courseDetail.state != 5 &&
  9551. chapInfoList[courseType].chapterInfo[0]
  9552. .taskJson[taskCount].eList &&
  9553. chapInfoList[courseType].chapterInfo[0]
  9554. .taskJson[taskCount].eList.length
  9555. "
  9556. :class="{
  9557. rightW:
  9558. w.userid == userid ||
  9559. tType == 1 ||
  9560. tType == 4 ||
  9561. w.ateacher == userid
  9562. }"
  9563. >
  9564. 评分
  9565. </div>
  9566. <!-- <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"> -->
  9567. <div
  9568. v-else-if="
  9569. (courseDetail.userid == userid ||
  9570. (courseDetail.course_teacher &&
  9571. courseDetail.course_teacher.indexOf(userid) !=
  9572. -1) ||
  9573. (w.userid == userid && sIsOpen)) &&
  9574. courseDetail.state == 5 &&
  9575. ((chapInfoList[courseType].chapterInfo[0]
  9576. .taskJson[taskCount].eList &&
  9577. chapInfoList[courseType].chapterInfo[0]
  9578. .taskJson[taskCount].eList.length) ||
  9579. (tool.eList && tool.eList.length))
  9580. "
  9581. >
  9582. <el-popover
  9583. placement="top"
  9584. width="318"
  9585. :disabled="AIloading[toolIndex][wIndex].loading"
  9586. trigger="hover"
  9587. >
  9588. <markScore
  9589. :loading="AIloading[toolIndex][wIndex].loading"
  9590. :markScoreVisible="markScoreVisible"
  9591. :ref="`markSco${toolIndex}${wIndex}`"
  9592. @updateLoading="updateLoading"
  9593. @updateDocSco="updateDocSco"
  9594. @refreshOther="refreshOther"
  9595. @markScoreDig="markScoreDig"
  9596. :tool="tool"
  9597. :wIndex="wIndex"
  9598. :scoCon="w"
  9599. :toolIndex="toolIndex"
  9600. :key="refreshKey"
  9601. :stage="courseType"
  9602. :task="taskCount"
  9603. :scoTit="
  9604. chapInfoList[courseType].chapterInfo[0]
  9605. .taskJson[taskCount].eList
  9606. "
  9607. >
  9608. </markScore>
  9609. <div
  9610. class="answerScore"
  9611. @click="
  9612. markScoreDig2(
  9613. w.sName,
  9614. worksStudent,
  9615. w.userid,
  9616. toolIndex,
  9617. chapInfoList[courseType].chapterInfo[0]
  9618. .taskJson[taskCount].eList,
  9619. AIloading[toolIndex][wIndex].loading,
  9620. tool
  9621. )
  9622. "
  9623. slot="reference"
  9624. :class="{
  9625. rightW:
  9626. w.userid == userid ||
  9627. tType == 1 ||
  9628. tType == 4 ||
  9629. w.ateacher == userid
  9630. }"
  9631. >
  9632. <span v-if="AIloading[toolIndex][wIndex].sco">
  9633. {{
  9634. AIloading[toolIndex][wIndex].loading
  9635. ? "评分中"
  9636. : AIloading[toolIndex][wIndex].sco + "分"
  9637. }}
  9638. </span>
  9639. <span v-else>
  9640. {{
  9641. AIloading[toolIndex][wIndex].loading
  9642. ? "评分中"
  9643. : "评分"
  9644. }}
  9645. </span>
  9646. </div>
  9647. </el-popover>
  9648. </div>
  9649. <img
  9650. class="deleteImg"
  9651. src="../../assets/deleteworks.png"
  9652. v-if="
  9653. w.userid == userid || tType == 1 || tType == 4
  9654. "
  9655. @click.stop="deleteWorks(w.wid)"
  9656. alt
  9657. />
  9658. </div>
  9659. <div class="comment" style="min-width: 200px">
  9660. <div class="worksName">
  9661. <div>{{ w.sName }}</div>
  9662. </div>
  9663. <div class="commentList">
  9664. <div class="commentList">
  9665. <div
  9666. class="commentImg"
  9667. @click="
  9668. isLikes(
  9669. w.wid,
  9670. userid,
  9671. 1,
  9672. null,
  9673. w.isLikes,
  9674. w.sName
  9675. )
  9676. "
  9677. >
  9678. <img
  9679. :src="w.isLikes == true ? likes : noLikes"
  9680. alt=""
  9681. />
  9682. </div>
  9683. <div>{{ w.likesCount }}</div>
  9684. </div>
  9685. <div class="commentList" style="margin-right: 15px">
  9686. <div
  9687. class="commentImg"
  9688. @click="commentOther(w, toolIndex, wIndex)"
  9689. >
  9690. <img
  9691. src="../../assets/icon/comment/comment.png"
  9692. alt=""
  9693. />
  9694. </div>
  9695. <div>{{ w.commentCount }}</div>
  9696. </div>
  9697. </div>
  9698. </div>
  9699. </div>
  9700. </div>
  9701. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9702. 未提交
  9703. </div>
  9704. <div
  9705. class="noWorksS"
  9706. v-if="noWorksS && noWorksS[toolIndex].length"
  9707. >
  9708. <div
  9709. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9710. :key="sIndex"
  9711. class="noWorksName"
  9712. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9713. >
  9714. <el-tooltip
  9715. effect="dark"
  9716. :content="s.student"
  9717. placement="top"
  9718. >
  9719. <span>{{ s.student }}</span>
  9720. </el-tooltip>
  9721. </div>
  9722. </div>
  9723. </div>
  9724. <div
  9725. v-if="
  9726. tType &&
  9727. tType == 2 &&
  9728. !sIsOpen &&
  9729. tool.tool.indexOf(48) != -1
  9730. "
  9731. class="worksBox"
  9732. >
  9733. <div
  9734. class="zuoyeYulan"
  9735. v-if="workStudent[toolIndex].length > 0"
  9736. >
  9737. <span class="worksTitle">作业预览</span>
  9738. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9739. </div>
  9740. <div
  9741. class="worksDetailBox"
  9742. v-if="workStudent[toolIndex].length > 0"
  9743. >
  9744. <div
  9745. class="works"
  9746. style="
  9747. width: 200px;
  9748. height: 140px;
  9749. margin: 10px 10px 10px 0;
  9750. box-shadow: 0 0 6px 1px #dfdada;
  9751. "
  9752. v-for="(w, wIndex) in workStudent[toolIndex]"
  9753. :key="wIndex"
  9754. >
  9755. <div class="workImg">
  9756. <img :src="word" @click="openTable(w)" alt />
  9757. <div
  9758. class="answerScore"
  9759. v-if="w.score"
  9760. @click.stop="openScore(w)"
  9761. :class="{
  9762. rightW:
  9763. w.userid == userid || tType == 1 || tType == 4
  9764. }"
  9765. >
  9766. {{ JSON.parse(w.score).wScore }}分
  9767. </div>
  9768. <div
  9769. class="answerScore"
  9770. @click.stop="openScore(w)"
  9771. v-else-if="courseDetail.userid == userid"
  9772. :class="{
  9773. rightW:
  9774. w.userid == userid || tType == 1 || tType == 4
  9775. }"
  9776. >
  9777. 评分
  9778. </div>
  9779. <div
  9780. class="stuLookScore"
  9781. v-if="
  9782. w.userid == userid ||
  9783. (tType == 1 &&
  9784. courseDetail.state == 5 &&
  9785. ((chapInfoList[courseType].chapterInfo[0]
  9786. .taskJson[taskCount].eList &&
  9787. chapInfoList[courseType].chapterInfo[0]
  9788. .taskJson[taskCount].eList.length) ||
  9789. (tool.eList && tool.eList.length)))
  9790. "
  9791. >
  9792. <el-popover
  9793. placement="top"
  9794. width="318"
  9795. trigger="hover"
  9796. >
  9797. <markScore
  9798. :loading="AIloading[toolIndex][wIndex].loading"
  9799. :markScoreVisible="markScoreVisible"
  9800. :ref="`markSco${toolIndex}${wIndex}`"
  9801. @updateLoading="updateLoading"
  9802. @updateDocSco="updateDocSco"
  9803. @refreshOther="refreshOther"
  9804. @markScoreDig="markScoreDig"
  9805. :tool="tool"
  9806. :wIndex="wIndex"
  9807. :scoCon="w"
  9808. :toolIndex="toolIndex"
  9809. :key="refreshKey"
  9810. :stage="courseType"
  9811. :task="taskCount"
  9812. :scoTit="
  9813. chapInfoList[courseType].chapterInfo[0]
  9814. .taskJson[taskCount].eList
  9815. "
  9816. >
  9817. </markScore>
  9818. <div
  9819. @click="
  9820. markScoreDig2(
  9821. w.sName,
  9822. worksStudent,
  9823. w.userid,
  9824. toolIndex,
  9825. chapInfoList[courseType].chapterInfo[0]
  9826. .taskJson[taskCount].eList,
  9827. AIloading[toolIndex][wIndex].loading,
  9828. tool
  9829. )
  9830. "
  9831. slot="reference"
  9832. >
  9833. <span v-if="AIloading[toolIndex][wIndex].sco">
  9834. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9835. </span>
  9836. <span v-else>
  9837. 评分
  9838. </span>
  9839. </div>
  9840. </el-popover>
  9841. </div>
  9842. <img
  9843. class="deleteImg"
  9844. src="../../assets/deleteworks.png"
  9845. v-if="
  9846. w.userid == userid || tType == 1 || tType == 4
  9847. "
  9848. @click.stop="deleteWorks(w.wid)"
  9849. alt
  9850. />
  9851. </div>
  9852. <div class="worksName">
  9853. <div>{{ w.sName }}</div>
  9854. </div>
  9855. </div>
  9856. </div>
  9857. </div>
  9858. <div
  9859. v-if="
  9860. tType &&
  9861. ((tType == 2 && sIsOpen == true) ||
  9862. tType == 1 ||
  9863. tType == 4) &&
  9864. tool.tool.indexOf(52) != -1
  9865. "
  9866. class="worksBox"
  9867. >
  9868. <div
  9869. class="zuoyeYulan"
  9870. style="display: flex;justify-content: space-between;align-items: center;"
  9871. v-if="
  9872. worksStudent.length &&
  9873. worksStudent[toolIndex].length > 0
  9874. "
  9875. >
  9876. <div class="worksTop">
  9877. <div>作业预览</div>
  9878. <div
  9879. class="corOpen"
  9880. @click="contract(toolIndex)"
  9881. v-if="
  9882. isCloseList[toolIndex].isCloseBoolean &&
  9883. isCloseList[toolIndex].isClose == 0
  9884. "
  9885. >
  9886. 折叠
  9887. </div>
  9888. <div
  9889. class="corOpen"
  9890. @click="contract(toolIndex)"
  9891. v-if="isCloseList[toolIndex].isClose == 1"
  9892. >
  9893. 展开
  9894. </div>
  9895. </div>
  9896. <div
  9897. style="display: flex;"
  9898. v-if="
  9899. (courseDetail.userid == userid ||
  9900. (courseDetail.course_teacher &&
  9901. courseDetail.course_teacher.indexOf(userid) !=
  9902. -1)) &&
  9903. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9904. taskCount
  9905. ].eList &&
  9906. chapInfoList[courseType].chapterInfo[0].taskJson[
  9907. taskCount
  9908. ].eList.length) ||
  9909. (tool.eList && tool.eList.length)) &&
  9910. courseDetail.state == 5
  9911. "
  9912. >
  9913. <!-- <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"> -->
  9914. <div
  9915. @click="
  9916. resetLoopEva(
  9917. worksStudent[toolIndex],
  9918. chapInfoList[courseType].chapterInfo[0].taskJson[
  9919. taskCount
  9920. ].eList,
  9921. courseType,
  9922. taskCount,
  9923. toolIndex,
  9924. tool.toolDetail,
  9925. tool
  9926. )
  9927. "
  9928. style="margin-right:10px"
  9929. class="ScoreBtn"
  9930. >
  9931. 一键重置
  9932. </div>
  9933. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9934. <img
  9935. src="../../assets/icon/newIcons/rootImg.png"
  9936. alt=""
  9937. />
  9938. AI评分
  9939. </div>
  9940. <div
  9941. class="ScoreBtn"
  9942. v-else-if="!loopLoading[toolIndex].loading"
  9943. @click="
  9944. loopEva(
  9945. worksStudent[toolIndex],
  9946. chapInfoList[courseType].chapterInfo[0].taskJson[
  9947. taskCount
  9948. ].eList,
  9949. courseType,
  9950. taskCount,
  9951. toolIndex,
  9952. tool.toolDetail,
  9953. chapInfoList[courseType].chapterInfo[0].taskJson[
  9954. taskCount
  9955. ].taskDetail,
  9956. tool
  9957. )
  9958. "
  9959. >
  9960. <img
  9961. src="../../assets/icon/newIcons/rootImg.png"
  9962. alt=""
  9963. />
  9964. AI评分
  9965. </div>
  9966. <div class="ScoreBtn" v-else>
  9967. <img
  9968. src="../../assets/icon/newIcons/rootImg.png"
  9969. alt=""
  9970. />
  9971. 正在评分
  9972. </div>
  9973. </div>
  9974. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9975. </div>
  9976. <div
  9977. :id="'tool-' + toolIndex"
  9978. :style="{
  9979. height:
  9980. isCloseList[toolIndex].isClose == 1
  9981. ? retrnToolHeight('tool-' + toolIndex)
  9982. : 'auto',
  9983. overflow:
  9984. isCloseList[toolIndex].isClose == 1
  9985. ? 'hidden'
  9986. : 'unset'
  9987. }"
  9988. class="worksDetailBox"
  9989. v-if="
  9990. worksStudent.length &&
  9991. worksStudent[toolIndex].length > 0
  9992. "
  9993. >
  9994. <div
  9995. class="works"
  9996. style="
  9997. width: 200px;
  9998. height: 140px;
  9999. margin: 10px 10px 10px 0;
  10000. border-radius: 15px;
  10001. box-shadow: 0 0 6px 1px #dfdada;
  10002. "
  10003. v-for="(w, wIndex) in worksStudent[toolIndex]"
  10004. :key="wIndex"
  10005. :class="w.type == 1 ? 'isTypeOne' : ''"
  10006. >
  10007. <div class="workImg">
  10008. <img :src="word" @click="openWord(w)" alt />
  10009. <!-- @click="openFile(w.works)" -->
  10010. <div
  10011. class="answerScore"
  10012. v-if="w.score"
  10013. @click.stop="openScore(w)"
  10014. :class="{
  10015. rightW:
  10016. w.userid == userid ||
  10017. tType == 1 ||
  10018. tType == 4 ||
  10019. w.ateacher == userid
  10020. }"
  10021. >
  10022. {{ JSON.parse(w.score).wScore }}分
  10023. </div>
  10024. <div
  10025. class="answerScore"
  10026. @click.stop="openScore(w)"
  10027. v-else-if="
  10028. courseDetail.userid == userid &&
  10029. courseDetail.state != 5 &&
  10030. chapInfoList[courseType].chapterInfo[0]
  10031. .taskJson[taskCount].eList &&
  10032. chapInfoList[courseType].chapterInfo[0]
  10033. .taskJson[taskCount].eList.length
  10034. "
  10035. :class="{
  10036. rightW:
  10037. w.userid == userid ||
  10038. tType == 1 ||
  10039. tType == 4 ||
  10040. w.ateacher == userid
  10041. }"
  10042. >
  10043. 评分
  10044. </div>
  10045. <!-- <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"> -->
  10046. <div
  10047. v-else-if="
  10048. (courseDetail.userid == userid ||
  10049. (courseDetail.course_teacher &&
  10050. courseDetail.course_teacher.indexOf(userid) !=
  10051. -1) ||
  10052. (w.userid == userid && sIsOpen)) &&
  10053. courseDetail.state == 5 &&
  10054. ((chapInfoList[courseType].chapterInfo[0]
  10055. .taskJson[taskCount].eList &&
  10056. chapInfoList[courseType].chapterInfo[0]
  10057. .taskJson[taskCount].eList.length) ||
  10058. (tool.eList && tool.eList.length))
  10059. "
  10060. >
  10061. <!-- <div
  10062. class="answerScore"
  10063. @click="markScoreDig(w.userid,toolIndex)"
  10064. :class="{
  10065. rightW:
  10066. w.userid == userid ||
  10067. tType == 1 ||
  10068. tType == 4 ||
  10069. w.ateacher == userid,
  10070. }"
  10071. >
  10072. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10073. </div> -->
  10074. <!-- @show="handleShow(toolIndex,wIndex)"
  10075. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10076. <el-popover
  10077. placement="top"
  10078. width="318"
  10079. :disabled="AIloading[toolIndex][wIndex].loading"
  10080. trigger="hover"
  10081. >
  10082. <markScore
  10083. :loading="AIloading[toolIndex][wIndex].loading"
  10084. :markScoreVisible="markScoreVisible"
  10085. :ref="`markSco${toolIndex}${wIndex}`"
  10086. @updateLoading="updateLoading"
  10087. @updateDocSco="updateDocSco"
  10088. @refreshOther="refreshOther"
  10089. @markScoreDig="markScoreDig"
  10090. :tool="tool"
  10091. :wIndex="wIndex"
  10092. :scoCon="w"
  10093. :toolIndex="toolIndex"
  10094. :key="refreshKey"
  10095. :stage="courseType"
  10096. :task="taskCount"
  10097. :scoTit="
  10098. chapInfoList[courseType].chapterInfo[0]
  10099. .taskJson[taskCount].eList
  10100. "
  10101. >
  10102. </markScore>
  10103. <div
  10104. class="answerScore"
  10105. @click="
  10106. markScoreDig2(
  10107. w.sName,
  10108. worksStudent,
  10109. w.userid,
  10110. toolIndex,
  10111. chapInfoList[courseType].chapterInfo[0]
  10112. .taskJson[taskCount].eList,
  10113. AIloading[toolIndex][wIndex].loading,
  10114. tool
  10115. )
  10116. "
  10117. slot="reference"
  10118. :class="{
  10119. rightW:
  10120. w.userid == userid ||
  10121. tType == 1 ||
  10122. tType == 4 ||
  10123. w.ateacher == userid
  10124. }"
  10125. >
  10126. <span v-if="AIloading[toolIndex][wIndex].sco">
  10127. {{
  10128. AIloading[toolIndex][wIndex].loading
  10129. ? "评分中"
  10130. : AIloading[toolIndex][wIndex].sco + "分"
  10131. }}
  10132. </span>
  10133. <span v-else>
  10134. {{
  10135. AIloading[toolIndex][wIndex].loading
  10136. ? "评分中"
  10137. : "评分"
  10138. }}
  10139. </span>
  10140. </div>
  10141. </el-popover>
  10142. </div>
  10143. <img
  10144. class="deleteImg"
  10145. src="../../assets/deleteworks.png"
  10146. v-if="
  10147. w.userid == userid || tType == 1 || tType == 4
  10148. "
  10149. @click.stop="deleteWorks(w.wid)"
  10150. alt
  10151. />
  10152. </div>
  10153. <div class="comment" style="min-width: 200px">
  10154. <div class="worksName">
  10155. <div>{{ w.sName }}</div>
  10156. </div>
  10157. <div class="commentList">
  10158. <div class="commentList">
  10159. <div
  10160. class="commentImg"
  10161. @click="
  10162. isLikes(
  10163. w.wid,
  10164. userid,
  10165. 1,
  10166. null,
  10167. w.isLikes,
  10168. w.sName
  10169. )
  10170. "
  10171. >
  10172. <img
  10173. :src="w.isLikes == true ? likes : noLikes"
  10174. alt=""
  10175. />
  10176. </div>
  10177. <div>{{ w.likesCount }}</div>
  10178. </div>
  10179. <div class="commentList" style="margin-right: 15px">
  10180. <div
  10181. class="commentImg"
  10182. @click="commentOther(w, toolIndex, wIndex)"
  10183. >
  10184. <img
  10185. src="../../assets/icon/comment/comment.png"
  10186. alt=""
  10187. />
  10188. </div>
  10189. <div>{{ w.commentCount }}</div>
  10190. </div>
  10191. </div>
  10192. </div>
  10193. </div>
  10194. </div>
  10195. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10196. 未提交
  10197. </div>
  10198. <div
  10199. class="noWorksS"
  10200. v-if="noWorksS && noWorksS[toolIndex].length"
  10201. >
  10202. <div
  10203. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10204. :key="sIndex"
  10205. class="noWorksName"
  10206. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10207. >
  10208. <el-tooltip
  10209. effect="dark"
  10210. :content="s.student"
  10211. placement="top"
  10212. >
  10213. <span>{{ s.student }}</span>
  10214. </el-tooltip>
  10215. </div>
  10216. </div>
  10217. </div>
  10218. <div
  10219. v-if="
  10220. tType &&
  10221. tType == 2 &&
  10222. !sIsOpen &&
  10223. tool.tool.indexOf(52) != -1
  10224. "
  10225. class="worksBox"
  10226. >
  10227. <div
  10228. class="zuoyeYulan"
  10229. v-if="workStudent[toolIndex].length > 0"
  10230. >
  10231. <span class="worksTitle">作业预览</span>
  10232. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10233. </div>
  10234. <div
  10235. class="worksDetailBox"
  10236. v-if="workStudent[toolIndex].length > 0"
  10237. >
  10238. <div
  10239. class="works"
  10240. style="
  10241. width: 200px;
  10242. height: 140px;
  10243. margin: 10px 10px 10px 0;
  10244. box-shadow: 0 0 6px 1px #dfdada;
  10245. "
  10246. v-for="(w, wIndex) in workStudent[toolIndex]"
  10247. :key="wIndex"
  10248. >
  10249. <div class="workImg">
  10250. <img :src="word" @click="openWord(w)" alt />
  10251. <div
  10252. class="answerScore"
  10253. v-if="w.score"
  10254. @click.stop="openScore(w)"
  10255. :class="{
  10256. rightW:
  10257. w.userid == userid || tType == 1 || tType == 4
  10258. }"
  10259. >
  10260. {{ JSON.parse(w.score).wScore }}分
  10261. </div>
  10262. <div
  10263. class="answerScore"
  10264. @click.stop="openScore(w)"
  10265. v-else-if="courseDetail.userid == userid"
  10266. :class="{
  10267. rightW:
  10268. w.userid == userid || tType == 1 || tType == 4
  10269. }"
  10270. >
  10271. 评分
  10272. </div>
  10273. <div
  10274. class="stuLookScore"
  10275. v-if="
  10276. w.userid == userid ||
  10277. (tType == 1 &&
  10278. courseDetail.state == 5 &&
  10279. ((chapInfoList[courseType].chapterInfo[0]
  10280. .taskJson[taskCount].eList &&
  10281. chapInfoList[courseType].chapterInfo[0]
  10282. .taskJson[taskCount].eList.length) ||
  10283. (tool.eList && tool.eList.length)))
  10284. "
  10285. >
  10286. <el-popover
  10287. placement="top"
  10288. width="318"
  10289. trigger="hover"
  10290. >
  10291. <markScore
  10292. :loading="AIloading[toolIndex][wIndex].loading"
  10293. :markScoreVisible="markScoreVisible"
  10294. :ref="`markSco${toolIndex}${wIndex}`"
  10295. @updateLoading="updateLoading"
  10296. @updateDocSco="updateDocSco"
  10297. @refreshOther="refreshOther"
  10298. @markScoreDig="markScoreDig"
  10299. :tool="tool"
  10300. :wIndex="wIndex"
  10301. :scoCon="w"
  10302. :toolIndex="toolIndex"
  10303. :key="refreshKey"
  10304. :stage="courseType"
  10305. :task="taskCount"
  10306. :scoTit="
  10307. chapInfoList[courseType].chapterInfo[0]
  10308. .taskJson[taskCount].eList
  10309. "
  10310. >
  10311. </markScore>
  10312. <div
  10313. @click="
  10314. markScoreDig2(
  10315. w.sName,
  10316. worksStudent,
  10317. w.userid,
  10318. toolIndex,
  10319. chapInfoList[courseType].chapterInfo[0]
  10320. .taskJson[taskCount].eList,
  10321. AIloading[toolIndex][wIndex].loading,
  10322. tool
  10323. )
  10324. "
  10325. slot="reference"
  10326. >
  10327. <span v-if="AIloading[toolIndex][wIndex].sco">
  10328. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10329. </span>
  10330. <span v-else>
  10331. 评分
  10332. </span>
  10333. </div>
  10334. </el-popover>
  10335. </div>
  10336. <img
  10337. class="deleteImg"
  10338. src="../../assets/deleteworks.png"
  10339. v-if="
  10340. w.userid == userid || tType == 1 || tType == 4
  10341. "
  10342. @click.stop="deleteWorks(w.wid)"
  10343. alt
  10344. />
  10345. </div>
  10346. <div class="worksName">
  10347. <div>{{ w.sName }}</div>
  10348. </div>
  10349. </div>
  10350. </div>
  10351. </div>
  10352. <div
  10353. v-if="tool.tool.indexOf(49) != -1"
  10354. class="xuan_right_box"
  10355. style="margin: 0 15px 0 25px; width: 93%"
  10356. >
  10357. <div
  10358. v-if="courseDetail.userid == userid"
  10359. style="
  10360. display: flex;
  10361. justify-content: flex-end;
  10362. margin-right: 10px;
  10363. "
  10364. >
  10365. <el-button
  10366. type="primary"
  10367. size="small"
  10368. @click="addTools(49, toolIndex, taskCount)"
  10369. >分组设置</el-button
  10370. >
  10371. </div>
  10372. <div
  10373. v-if="groupStudentUid[toolIndex]"
  10374. class="group_staic_box"
  10375. >
  10376. <div
  10377. v-for="(gp, gd) in tool.groupJson.group"
  10378. :key="gd"
  10379. class="group_staic"
  10380. >
  10381. <span> {{ gp.name }}</span>
  10382. <span>
  10383. 目前人数{{
  10384. groupStudentUid[toolIndex][gd].length
  10385. }}人</span
  10386. >
  10387. </div>
  10388. </div>
  10389. </div>
  10390. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10391. <div
  10392. class="zuoyeYulan"
  10393. v-if="
  10394. worksStudent.length &&
  10395. worksStudent[toolIndex].length > 0
  10396. "
  10397. >
  10398. <span class="worksTitle">作业预览</span>
  10399. </div>
  10400. <div>
  10401. <div
  10402. class="group_workBox"
  10403. v-for="(g, gindex) in tool.groupJson.group"
  10404. :key="gindex"
  10405. >
  10406. <div
  10407. class="group_box"
  10408. v-if="
  10409. groupStudentUid[toolIndex] &&
  10410. worksStudent[toolIndex] &&
  10411. (worksStudent[toolIndex][gindex].length ||
  10412. groupStudentUid[toolIndex][gindex].indexOf(
  10413. userid
  10414. ) != -1)
  10415. "
  10416. >
  10417. <div class="group_title">
  10418. <el-tooltip
  10419. class="item"
  10420. effect="light"
  10421. :content="g.name"
  10422. placement="top"
  10423. >
  10424. <div class="group_name">{{ g.name }}</div>
  10425. </el-tooltip>
  10426. <el-button
  10427. type="primary"
  10428. v-if="
  10429. groupStudentUid[toolIndex][gindex].indexOf(
  10430. userid
  10431. ) != -1
  10432. "
  10433. @click="groupUpload(toolIndex, taskCount, gindex)"
  10434. >上传作业</el-button
  10435. >
  10436. </div>
  10437. <div class="group_work">
  10438. <div
  10439. class="works"
  10440. style="
  10441. width: 200px;
  10442. height: 140px;
  10443. margin: 10px 10px 10px 0;
  10444. border-radius: 15px;
  10445. box-shadow: 0 0 6px 1px #dfdada;
  10446. "
  10447. v-for="(w, wIndex) in worksStudent[toolIndex][
  10448. gindex
  10449. ]"
  10450. :key="wIndex"
  10451. :class="w.type == 1 ? 'isTypeOne' : ''"
  10452. >
  10453. <div class="workImg" v-if="w.type == 0">
  10454. <img
  10455. :src="w.works"
  10456. @click="previewImg(w.works, w)"
  10457. alt
  10458. />
  10459. <div
  10460. class="answerScore"
  10461. v-if="w.score"
  10462. @click.stop="openScore(w)"
  10463. :class="{
  10464. rightW:
  10465. w.userid == userid ||
  10466. tType == 1 ||
  10467. tType == 4 ||
  10468. w.ateacher == userid
  10469. }"
  10470. >
  10471. {{ JSON.parse(w.score).wScore }}分
  10472. </div>
  10473. <div
  10474. class="answerScore"
  10475. @click.stop="openScore(w)"
  10476. v-else-if="courseDetail.userid == userid"
  10477. :class="{
  10478. rightW:
  10479. w.userid == userid ||
  10480. tType == 1 ||
  10481. tType == 4 ||
  10482. w.ateacher == userid
  10483. }"
  10484. >
  10485. 评分
  10486. </div>
  10487. <img
  10488. class="deleteImg"
  10489. src="../../assets/deleteworks.png"
  10490. v-if="
  10491. w.userid == userid ||
  10492. tType == 1 ||
  10493. tType == 4
  10494. "
  10495. @click.stop="deleteWorks(w.wid)"
  10496. alt
  10497. />
  10498. </div>
  10499. <div class="workImg" v-if="w.type == 1">
  10500. <img
  10501. :src="word"
  10502. @click="openFile(w.works)"
  10503. alt
  10504. />
  10505. <!-- @click="openFile(w.works)" -->
  10506. <div
  10507. class="answerScore"
  10508. v-if="w.score"
  10509. @click.stop="openScore(w)"
  10510. :class="{
  10511. rightW:
  10512. w.userid == userid ||
  10513. tType == 1 ||
  10514. tType == 4 ||
  10515. w.ateacher == userid
  10516. }"
  10517. >
  10518. {{ JSON.parse(w.score).wScore }}分
  10519. </div>
  10520. <div
  10521. class="answerScore"
  10522. @click.stop="openScore(w)"
  10523. v-else-if="courseDetail.userid == userid"
  10524. :class="{
  10525. rightW:
  10526. w.userid == userid ||
  10527. tType == 1 ||
  10528. tType == 4 ||
  10529. w.ateacher == userid
  10530. }"
  10531. >
  10532. 评分
  10533. </div>
  10534. <img
  10535. class="deleteImg"
  10536. src="../../assets/deleteworks.png"
  10537. v-if="
  10538. w.userid == userid ||
  10539. tType == 1 ||
  10540. tType == 4
  10541. "
  10542. @click.stop="deleteWorks(w.wid)"
  10543. alt
  10544. />
  10545. </div>
  10546. <div class="workImg" v-if="w.type == 3">
  10547. <img
  10548. style="cursor: pointer"
  10549. :src="video"
  10550. @click="openVideo(w)"
  10551. alt
  10552. />
  10553. <!-- @click="openVideo(w.works)" -->
  10554. <div
  10555. class="answerScore"
  10556. v-if="w.score"
  10557. @click.stop="openScore(w)"
  10558. :class="{
  10559. rightW:
  10560. w.userid == userid ||
  10561. tType == 1 ||
  10562. tType == 4 ||
  10563. w.ateacher == userid
  10564. }"
  10565. >
  10566. {{ JSON.parse(w.score).wScore }}分
  10567. </div>
  10568. <div
  10569. class="answerScore"
  10570. @click.stop="openScore(w)"
  10571. v-else-if="courseDetail.userid == userid"
  10572. :class="{
  10573. rightW:
  10574. w.userid == userid ||
  10575. tType == 1 ||
  10576. tType == 4 ||
  10577. w.ateacher == userid
  10578. }"
  10579. >
  10580. 评分
  10581. </div>
  10582. <img
  10583. class="deleteImg"
  10584. src="../../assets/deleteworks.png"
  10585. v-if="
  10586. w.userid == userid ||
  10587. tType == 1 ||
  10588. tType == 4
  10589. "
  10590. @click.stop="deleteWorks(w.wid)"
  10591. alt
  10592. />
  10593. </div>
  10594. <div class="workImg" v-if="w.type == 12">
  10595. <img
  10596. style="cursor: pointer"
  10597. :src="word2"
  10598. @click="downloadFile(w.works,w.userid)"
  10599. alt
  10600. />
  10601. <!-- @click="openVideo(w.works)" -->
  10602. <div
  10603. class="answerScore"
  10604. v-if="w.score"
  10605. @click.stop="openScore(w)"
  10606. :class="{
  10607. rightW:
  10608. w.userid == userid ||
  10609. tType == 1 ||
  10610. tType == 4 ||
  10611. w.ateacher == userid
  10612. }"
  10613. >
  10614. {{ JSON.parse(w.score).wScore }}分
  10615. </div>
  10616. <div
  10617. class="answerScore"
  10618. @click.stop="openScore(w)"
  10619. v-else-if="courseDetail.userid == userid"
  10620. :class="{
  10621. rightW:
  10622. w.userid == userid ||
  10623. tType == 1 ||
  10624. tType == 4 ||
  10625. w.ateacher == userid
  10626. }"
  10627. >
  10628. 评分
  10629. </div>
  10630. <img
  10631. class="deleteImg"
  10632. src="../../assets/deleteworks.png"
  10633. v-if="
  10634. w.userid == userid ||
  10635. tType == 1 ||
  10636. tType == 4
  10637. "
  10638. @click.stop="deleteWorks(w.wid)"
  10639. alt
  10640. />
  10641. </div>
  10642. <div class="comment" style="min-width: 200px">
  10643. <div class="worksName">
  10644. <div>{{ w.sName }}</div>
  10645. </div>
  10646. <div class="commentList">
  10647. <div class="commentList">
  10648. <div
  10649. class="commentImg"
  10650. @click="
  10651. isLikes(
  10652. w.wid,
  10653. userid,
  10654. 1,
  10655. null,
  10656. w.isLikes,
  10657. w.sName
  10658. )
  10659. "
  10660. >
  10661. <img
  10662. :src="
  10663. w.isLikes == true ? likes : noLikes
  10664. "
  10665. alt=""
  10666. />
  10667. </div>
  10668. <div>{{ w.likesCount }}</div>
  10669. </div>
  10670. <div
  10671. class="commentList"
  10672. style="margin-right: 15px"
  10673. >
  10674. <div
  10675. class="commentImg"
  10676. @click="
  10677. commentOther(
  10678. w,
  10679. toolIndex,
  10680. wIndex,
  10681. gindex
  10682. )
  10683. "
  10684. >
  10685. <img
  10686. src="../../assets/icon/comment/comment.png"
  10687. alt=""
  10688. />
  10689. </div>
  10690. <div>{{ w.commentCount }}</div>
  10691. </div>
  10692. </div>
  10693. </div>
  10694. </div>
  10695. </div>
  10696. </div>
  10697. </div>
  10698. </div>
  10699. </div>
  10700. <div
  10701. style="width:92%;margin: 0 0 0 40px;"
  10702. v-if="
  10703. courseDetail.state == 5 && tool.eList && tool.eList.length
  10704. "
  10705. >
  10706. <evaTable :eList="tool.eList"></evaTable>
  10707. </div>
  10708. </div>
  10709. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10710. 上传文件
  10711. <input
  10712. type="file"
  10713. accept="image/png, image/gif, image/jpeg"
  10714. style="display: none"
  10715. @change="beforeUpload1($event, 2, index)"
  10716. />
  10717. </div>-->
  10718. </div>
  10719. </div>
  10720. <!-- <div
  10721. class="vedioBox"
  10722. style="margin-top: 10px"
  10723. v-if="
  10724. courseDetail.userid == userid ||
  10725. (courseDetail.course_teacher &&
  10726. courseDetail.course_teacher.indexOf(userid) != -1)
  10727. "
  10728. :style="{
  10729. borderRadius:
  10730. !(
  10731. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10732. .toolChoose[0].tool &&
  10733. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10734. .toolChoose[0].tool.length > 0
  10735. ) &&
  10736. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10737. .taskDetail == '' &&
  10738. vChapterData[taskCount].length == 0 &&
  10739. fileC[taskCount].length == 0
  10740. ? '0 0 20px 20px'
  10741. : '20px',
  10742. }"
  10743. >
  10744. <div
  10745. class="queTop"
  10746. @click="isClose = !isClose"
  10747. style="
  10748. padding: 15px 0 15px 37px;
  10749. justify-content: space-between;
  10750. "
  10751. >
  10752. <div class="queTopTitle">新增工具</div>
  10753. <div class="queTopRight">
  10754. <div class="queTopClose" v-if="isClose == 0">
  10755. 展开
  10756. <div class="closeImg">
  10757. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10758. </div>
  10759. </div>
  10760. <div class="queTopClose" v-if="isClose == 1">
  10761. 折叠
  10762. <div class="openImg">
  10763. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10764. </div>
  10765. </div>
  10766. <el-button
  10767. style="margin: 0 30px 0 auto"
  10768. type="primary"
  10769. size="small"
  10770. v-if="isClose == 1 && checktoolArray.length > 0"
  10771. @click.stop="addToolChoose"
  10772. >确定</el-button
  10773. >
  10774. </div>
  10775. </div>
  10776. <div
  10777. class="tool_work_box"
  10778. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10779. >
  10780. <div class="tool_box">
  10781. <div class="tool_type_box">
  10782. <div class="chooseWho">
  10783. <div
  10784. :class="toolType == 0 ? 'isChooseActive' : ''"
  10785. @click="(toolType = 0), $forceUpdate()"
  10786. >
  10787. 互动类
  10788. </div>
  10789. <div
  10790. :class="toolType == 1 ? 'isChooseActive' : ''"
  10791. @click="(toolType = 1), $forceUpdate()"
  10792. >
  10793. 思维类
  10794. </div>
  10795. <div
  10796. :class="toolType == 2 ? 'isChooseActive' : ''"
  10797. @click="(toolType = 2), $forceUpdate()"
  10798. >
  10799. 测评类
  10800. </div>
  10801. <div
  10802. :class="toolType == 3 ? 'isChooseActive' : ''"
  10803. @click="(toolType = 3), $forceUpdate()"
  10804. >
  10805. 编程类
  10806. </div>
  10807. <div
  10808. :class="toolType == 5 ? 'isChooseActive' : ''"
  10809. @click="(toolType = 5), $forceUpdate()"
  10810. >
  10811. 学科类
  10812. </div>
  10813. </div>
  10814. </div>
  10815. <div>
  10816. <div class="toolSort" v-if="toolType == 0">
  10817. <div class="tool">
  10818. <div class="whiteBIcon" @click="addTools2(10)">
  10819. <img
  10820. src="../../assets/icon/thirdToolList/time.png"
  10821. alt
  10822. />
  10823. <div style="margin: 5px 0">倒计时</div>
  10824. </div>
  10825. <div class="check" @click="addTools2(10)">
  10826. <img
  10827. src="../../assets/icon/checkNo.png"
  10828. alt
  10829. v-if="checktoolArray.indexOf(10) == -1"
  10830. />
  10831. <div class="checkDiv" v-else>
  10832. <img src="../../assets/icon/checkedIs.png" alt /><span
  10833. >已选择</span
  10834. >
  10835. </div>
  10836. </div>
  10837. </div>
  10838. <div class="tool">
  10839. <div class="whiteBIcon" @click="addTools2(65)">
  10840. <img
  10841. src="../../assets/icon/firstToolList/pickPeople.png"
  10842. alt
  10843. />
  10844. <div style="margin: 5px 0">挑人</div>
  10845. </div>
  10846. <div class="check" @click="addTools2(65)">
  10847. <img
  10848. src="../../assets/icon/checkNo.png"
  10849. alt
  10850. v-if="checktoolArray.indexOf(65) == -1"
  10851. />
  10852. <div class="checkDiv" v-else>
  10853. <img src="../../assets/icon/checkedIs.png" alt /><span
  10854. >已选择</span
  10855. >
  10856. </div>
  10857. </div>
  10858. </div>
  10859. </div>
  10860. <div class="toolSort" v-if="toolType == 1">
  10861. <div class="tool">
  10862. <div class="whiteBIcon" @click="addTools2(7)">
  10863. <img
  10864. src="../../assets/icon/secondToolList/mindNetwork.png"
  10865. alt
  10866. />
  10867. <div style="margin: 5px 0">思维网格</div>
  10868. </div>
  10869. <div class="check" @click="addTools2(7)">
  10870. <img
  10871. src="../../assets/icon/checkNo.png"
  10872. alt
  10873. v-if="checktoolArray.indexOf(7) == -1"
  10874. />
  10875. <div class="checkDiv" v-else>
  10876. <img src="../../assets/icon/checkedIs.png" alt /><span
  10877. >已选择</span
  10878. >
  10879. </div>
  10880. </div>
  10881. </div>
  10882. <div class="tool">
  10883. <div class="whiteBIcon" @click="addTools2(1)">
  10884. <img
  10885. src="../../assets/icon/secondToolList/whiteBoard.png"
  10886. alt
  10887. />
  10888. <div style="margin: 5px 0">电子白板</div>
  10889. </div>
  10890. <div class="check" @click="addTools2(1)">
  10891. <img
  10892. src="../../assets/icon/checkNo.png"
  10893. alt
  10894. v-if="checktoolArray.indexOf(1) == -1"
  10895. />
  10896. <div class="checkDiv" v-else>
  10897. <img src="../../assets/icon/checkedIs.png" alt /><span
  10898. >已选择</span
  10899. >
  10900. </div>
  10901. </div>
  10902. </div>
  10903. <div class="tool">
  10904. <div class="whiteBIcon" @click="addTools2(52)">
  10905. <img
  10906. src="../../assets/icon/fourthToolList/text.png"
  10907. alt
  10908. />
  10909. <div style="margin: 5px 0">文档</div>
  10910. </div>
  10911. <div class="check" @click="addTools2(52)">
  10912. <img
  10913. src="../../assets/icon/checkNo.png"
  10914. alt
  10915. v-if="checktoolArray.indexOf(52) == -1"
  10916. />
  10917. <div class="checkDiv" v-else>
  10918. <img src="../../assets/icon/checkedIs.png" alt /><span
  10919. >已选择</span
  10920. >
  10921. </div>
  10922. </div>
  10923. </div>
  10924. <div class="tool">
  10925. <div class="whiteBIcon" @click="addTools2(3)">
  10926. <img
  10927. src="../../assets/icon/secondToolList/mindMapping.png"
  10928. alt
  10929. />
  10930. <div style="margin: 5px 0">思维导图</div>
  10931. </div>
  10932. <div class="check" @click="addTools2(3)">
  10933. <img
  10934. src="../../assets/icon/checkNo.png"
  10935. alt
  10936. v-if="checktoolArray.indexOf(3) == -1"
  10937. />
  10938. <div class="checkDiv" v-else>
  10939. <img src="../../assets/icon/checkedIs.png" alt /><span
  10940. >已选择</span
  10941. >
  10942. </div>
  10943. </div>
  10944. </div>
  10945. <div class="tool">
  10946. <div class="whiteBIcon" @click="addTools2(48)">
  10947. <img
  10948. src="../../assets/icon/fourthToolList/table.png"
  10949. alt
  10950. />
  10951. <div style="margin: 5px 0">表格</div>
  10952. </div>
  10953. <div class="check" @click="addTools2(48)">
  10954. <img
  10955. src="../../assets/icon/checkNo.png"
  10956. alt
  10957. v-if="checktoolArray.indexOf(48) == -1"
  10958. />
  10959. <div class="checkDiv" v-else>
  10960. <img src="../../assets/icon/checkedIs.png" alt /><span
  10961. >已选择</span
  10962. >
  10963. </div>
  10964. </div>
  10965. </div>
  10966. </div>
  10967. <div class="toolSort" v-if="toolType == 6">
  10968. <div v-show="tooC == 49">
  10969. <img
  10970. @click="addTools(tooC, toolIndex, taskCount)"
  10971. src="../../assets/icon/fourthToolList/group.png"
  10972. alt
  10973. />
  10974. <div style="margin: 5px 0">学生分组</div>
  10975. </div>
  10976. </div>
  10977. <div class="toolSort" v-if="toolType == 2">
  10978. <div class="tool">
  10979. <div class="whiteBIcon" @click="addTools2(16)">
  10980. <img
  10981. src="../../assets/icon/thirdToolList/work.png"
  10982. alt
  10983. />
  10984. <div style="margin: 5px 0">作业提交</div>
  10985. </div>
  10986. <div class="check" @click="addTools2(16)">
  10987. <img
  10988. src="../../assets/icon/checkNo.png"
  10989. alt
  10990. v-if="checktoolArray.indexOf(16) == -1"
  10991. />
  10992. <div class="checkDiv" v-else>
  10993. <img src="../../assets/icon/checkedIs.png" alt /><span
  10994. >已选择</span
  10995. >
  10996. </div>
  10997. </div>
  10998. </div>
  10999. <div class="tool">
  11000. <div class="whiteBIcon" @click="addTools2(50)">
  11001. <img
  11002. src="../../assets/icon/thirdToolList/plwork.png"
  11003. alt
  11004. />
  11005. <div style="margin: 5px 0">批量上传</div>
  11006. </div>
  11007. <div class="check" @click="addTools2(50)">
  11008. <img
  11009. src="../../assets/icon/checkNo.png"
  11010. alt
  11011. v-if="checktoolArray.indexOf(50) == -1"
  11012. />
  11013. <div class="checkDiv" v-else>
  11014. <img src="../../assets/icon/checkedIs.png" alt /><span
  11015. >已选择</span
  11016. >
  11017. </div>
  11018. </div>
  11019. </div>
  11020. </div>
  11021. <div class="toolSort" v-if="toolType == 3">
  11022. <div class="tool">
  11023. <div class="whiteBIcon" @click="addTools2(18)">
  11024. <img
  11025. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11026. alt
  11027. />
  11028. <div style="margin: 5px 0">训练平台</div>
  11029. </div>
  11030. <div class="check" @click="addTools2(18)">
  11031. <img
  11032. src="../../assets/icon/checkNo.png"
  11033. alt
  11034. v-if="checktoolArray.indexOf(18) == -1"
  11035. />
  11036. <div class="checkDiv" v-else>
  11037. <img src="../../assets/icon/checkedIs.png" alt /><span
  11038. >已选择</span
  11039. >
  11040. </div>
  11041. </div>
  11042. </div>
  11043. <div class="tool">
  11044. <div class="whiteBIcon" @click="addTools2(21)">
  11045. <img
  11046. src="../../assets/icon/fourthToolList/program.png"
  11047. alt
  11048. />
  11049. <div style="margin: 5px 0">AIoT Blockly</div>
  11050. </div>
  11051. <div class="check" @click="addTools2(21)">
  11052. <img
  11053. src="../../assets/icon/checkNo.png"
  11054. alt
  11055. v-if="checktoolArray.indexOf(21) == -1"
  11056. />
  11057. <div class="checkDiv" v-else>
  11058. <img src="../../assets/icon/checkedIs.png" alt /><span
  11059. >已选择</span
  11060. >
  11061. </div>
  11062. </div>
  11063. </div>
  11064. <div class="tool">
  11065. <div class="whiteBIcon" @click="addTools2(23)">
  11066. <img
  11067. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11068. alt
  11069. />
  11070. <div style="margin: 5px 0">AI Python</div>
  11071. </div>
  11072. <div class="check" @click="addTools2(23)">
  11073. <img
  11074. src="../../assets/icon/checkNo.png"
  11075. alt
  11076. v-if="checktoolArray.indexOf(23) == -1"
  11077. />
  11078. <div class="checkDiv" v-else>
  11079. <img src="../../assets/icon/checkedIs.png" alt /><span
  11080. >已选择</span
  11081. >
  11082. </div>
  11083. </div>
  11084. </div>
  11085. <div class="tool">
  11086. <div class="whiteBIcon" @click="addTools2(24)">
  11087. <img
  11088. src="../../assets/icon/fourthToolList/AIprogram.png"
  11089. alt
  11090. />
  11091. <div style="margin: 5px 0">AI Blockly</div>
  11092. </div>
  11093. <div class="check" @click="addTools2(24)">
  11094. <img
  11095. src="../../assets/icon/checkNo.png"
  11096. alt
  11097. v-if="checktoolArray.indexOf(24) == -1"
  11098. />
  11099. <div class="checkDiv" v-else>
  11100. <img src="../../assets/icon/checkedIs.png" alt /><span
  11101. >已选择</span
  11102. >
  11103. </div>
  11104. </div>
  11105. </div>
  11106. <div class="tool">
  11107. <div class="whiteBIcon" @click="addTools2(32)">
  11108. <img
  11109. src="../../assets/icon/thirdToolList/code.png"
  11110. alt
  11111. />
  11112. <div style="margin: 5px 0">源码编辑</div>
  11113. </div>
  11114. <div class="check" @click="addTools2(32)">
  11115. <img
  11116. src="../../assets/icon/checkNo.png"
  11117. alt
  11118. v-if="checktoolArray.indexOf(32) == -1"
  11119. />
  11120. <div class="checkDiv" v-else>
  11121. <img src="../../assets/icon/checkedIs.png" alt /><span
  11122. >已选择</span
  11123. >
  11124. </div>
  11125. </div>
  11126. </div>
  11127. <div class="tool">
  11128. <div class="whiteBIcon" @click="addTools2(57)">
  11129. <img
  11130. src="../../assets/icon/fourthToolList/cocopi.png"
  11131. alt
  11132. />
  11133. <div style="margin: 5px 0">CocoPi</div>
  11134. </div>
  11135. <div class="check" @click="addTools2(57)">
  11136. <img
  11137. src="../../assets/icon/checkNo.png"
  11138. alt
  11139. v-if="checktoolArray.indexOf(57) == -1"
  11140. />
  11141. <div class="checkDiv" v-else>
  11142. <img src="../../assets/icon/checkedIs.png" alt /><span
  11143. >已选择</span
  11144. >
  11145. </div>
  11146. </div>
  11147. </div>
  11148. <div class="tool">
  11149. <div class="whiteBIcon" @click="addTools2(63)">
  11150. <img
  11151. src="../../assets/icon/fourthToolList/Wood.png"
  11152. alt
  11153. />
  11154. <div style="margin: 5px 0">海龟编程</div>
  11155. </div>
  11156. <div class="check" @click="addTools2(63)">
  11157. <img
  11158. src="../../assets/icon/checkNo.png"
  11159. alt
  11160. v-if="checktoolArray.indexOf(63) == -1"
  11161. />
  11162. <div class="checkDiv" v-else>
  11163. <img src="../../assets/icon/checkedIs.png" alt /><span
  11164. >已选择</span
  11165. >
  11166. </div>
  11167. </div>
  11168. </div>
  11169. </div>
  11170. <div class="toolSort" v-if="toolType == 5">
  11171. <div class="tool">
  11172. <div class="whiteBIcon" @click="addTools2(28)">
  11173. <img
  11174. src="../../assets/icon/secondToolList/translation.png"
  11175. alt
  11176. />
  11177. <div style="margin: 5px 0">翻译</div>
  11178. </div>
  11179. <div class="check" @click="addTools2(28)">
  11180. <img
  11181. src="../../assets/icon/checkNo.png"
  11182. alt
  11183. v-if="checktoolArray.indexOf(28) == -1"
  11184. />
  11185. <div class="checkDiv" v-else>
  11186. <img src="../../assets/icon/checkedIs.png" alt /><span
  11187. >已选择</span
  11188. >
  11189. </div>
  11190. </div>
  11191. </div>
  11192. <div class="tool">
  11193. <div class="whiteBIcon" @click="addTools2(31)">
  11194. <img
  11195. src="../../assets/icon/secondToolList/networkPanel.png"
  11196. alt
  11197. />
  11198. <div style="margin: 5px 0">数字画板</div>
  11199. </div>
  11200. <div class="check" @click="addTools2(31)">
  11201. <img
  11202. src="../../assets/icon/checkNo.png"
  11203. alt
  11204. v-if="checktoolArray.indexOf(31) == -1"
  11205. />
  11206. <div class="checkDiv" v-else>
  11207. <img src="../../assets/icon/checkedIs.png" alt /><span
  11208. >已选择</span
  11209. >
  11210. </div>
  11211. </div>
  11212. </div>
  11213. <div class="tool">
  11214. <div class="whiteBIcon" @click="addTools2(39)">
  11215. <img
  11216. src="../../assets/icon/secondToolList/GeoGebra.png"
  11217. alt
  11218. />
  11219. <div style="margin: 5px 0">GeoGebra</div>
  11220. </div>
  11221. <div class="check" @click="addTools2(39)">
  11222. <img
  11223. src="../../assets/icon/checkNo.png"
  11224. alt
  11225. v-if="checktoolArray.indexOf(39) == -1"
  11226. />
  11227. <div class="checkDiv" v-else>
  11228. <img src="../../assets/icon/checkedIs.png" alt /><span
  11229. >已选择</span
  11230. >
  11231. </div>
  11232. </div>
  11233. </div>
  11234. <div class="tool">
  11235. <div class="whiteBIcon" @click="addTools2(66)">
  11236. <img
  11237. src="../../assets/icon/secondToolList/formulaEdi.png"
  11238. alt
  11239. />
  11240. <div style="margin: 5px 0">公式编辑</div>
  11241. </div>
  11242. <div class="check" @click="addTools2(66)">
  11243. <img
  11244. src="../../assets/icon/checkNo.png"
  11245. alt
  11246. v-if="checktoolArray.indexOf(66) == -1"
  11247. />
  11248. <div class="checkDiv" v-else>
  11249. <img src="../../assets/icon/checkedIs.png" alt /><span
  11250. >已选择</span
  11251. >
  11252. </div>
  11253. </div>
  11254. </div>
  11255. <div class="tool">
  11256. <div class="whiteBIcon" @click="addTools2(67)">
  11257. <img
  11258. src="../../assets/icon/secondToolList/molStr.png"
  11259. alt
  11260. />
  11261. <div style="margin: 5px 0">分子结构</div>
  11262. </div>
  11263. <div class="check" @click="addTools2(67)">
  11264. <img
  11265. src="../../assets/icon/checkNo.png"
  11266. alt
  11267. v-if="checktoolArray.indexOf(67) == -1"
  11268. />
  11269. <div class="checkDiv" v-else>
  11270. <img src="../../assets/icon/checkedIs.png" alt /><span
  11271. >已选择</span
  11272. >
  11273. </div>
  11274. </div>
  11275. </div>
  11276. <div class="tool">
  11277. <div class="whiteBIcon" @click="addTools2(68)">
  11278. <img
  11279. src="../../assets/icon/secondToolList/timeAxis.png"
  11280. alt
  11281. />
  11282. <div style="margin: 5px 0">时间轴</div>
  11283. </div>
  11284. <div class="check" @click="addTools2(68)">
  11285. <img
  11286. src="../../assets/icon/checkNo.png"
  11287. alt
  11288. v-if="checktoolArray.indexOf(68) == -1"
  11289. />
  11290. <div class="checkDiv" v-else>
  11291. <img src="../../assets/icon/checkedIs.png" alt /><span
  11292. >已选择</span
  11293. >
  11294. </div>
  11295. </div>
  11296. </div>
  11297. </div>
  11298. <div class="toolSort" v-if="toolType == 7">
  11299. <div class="tool">
  11300. <div class="whiteBIcon" @click="addTools2(40)">
  11301. <img
  11302. src="../../assets/icon/secondToolList/eval.png"
  11303. alt
  11304. />
  11305. <div style="margin: 5px 0">个人评价</div>
  11306. </div>
  11307. <div class="check" @click="addTools2(40)">
  11308. <img
  11309. src="../../assets/icon/checkNo.png"
  11310. alt
  11311. v-if="checktoolArray.indexOf(40) == -1"
  11312. />
  11313. <div class="checkDiv" v-else>
  11314. <img src="../../assets/icon/checkedIs.png" alt /><span
  11315. >已选择</span
  11316. >
  11317. </div>
  11318. </div>
  11319. </div>
  11320. </div>
  11321. <div class="toolSort" v-if="toolType == 4">
  11322. <div class="tool">
  11323. <div class="whiteBIcon" @click="addTools2(26)">
  11324. <img
  11325. src="../../assets/icon/thirdToolList/courseDesign.png"
  11326. alt
  11327. />
  11328. <div style="margin: 5px 0">课程设计</div>
  11329. </div>
  11330. <div class="check" @click="addTools2(26)">
  11331. <img
  11332. src="../../assets/icon/checkNo.png"
  11333. alt
  11334. v-if="checktoolArray.indexOf(26) == -1"
  11335. />
  11336. <div class="checkDiv" v-else>
  11337. <img src="../../assets/icon/checkedIs.png" alt /><span
  11338. >已选择</span
  11339. >
  11340. </div>
  11341. </div>
  11342. </div>
  11343. <div class="tool">
  11344. <div class="whiteBIcon" @click="addTools2(25)">
  11345. <img
  11346. src="../../assets/icon/thirdToolList/evalua.png"
  11347. alt
  11348. />
  11349. <div style="margin: 5px 0">目标管理</div>
  11350. </div>
  11351. <div class="check" @click="addTools2(25)">
  11352. <img
  11353. src="../../assets/icon/checkNo.png"
  11354. alt
  11355. v-if="checktoolArray.indexOf(25) == -1"
  11356. />
  11357. <div class="checkDiv" v-else>
  11358. <img src="../../assets/icon/checkedIs.png" alt /><span
  11359. >已选择</span
  11360. >
  11361. </div>
  11362. </div>
  11363. </div>
  11364. </div>
  11365. </div>
  11366. </div>
  11367. </div>
  11368. </div> -->
  11369. <div
  11370. class="vedioBox"
  11371. style="margin-top: 10px; border-radius: 20px"
  11372. v-if="
  11373. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11374. .eList &&
  11375. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11376. .eList.length &&
  11377. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11378. .eList.length > 0 &&
  11379. tType != 2
  11380. "
  11381. >
  11382. <div
  11383. class="queTop"
  11384. style="
  11385. font-size: 20px;
  11386. padding: 15px 0 15px 37px;
  11387. font-weight: bold;
  11388. "
  11389. >
  11390. <!-- <div class="question" style="width: 30px">
  11391. <img src="../assets/icon/toolIcon.png" alt />
  11392. </div>
  11393. <div class="queTitle">
  11394. <div>工具</div>
  11395. </div>-->
  11396. 评一评
  11397. </div>
  11398. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11399. <div
  11400. class="elist_input"
  11401. :style="{
  11402. marginLeft: '20px',
  11403. width: evalua
  11404. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  11405. taskCount
  11406. ].isEvaFold2
  11407. ? '45%'
  11408. : 'calc(100% - 180px)'
  11409. : 'calc(100% - 20px)'
  11410. }"
  11411. >
  11412. <el-table
  11413. :data="
  11414. chapInfoList[courseType].chapterInfo[0].taskJson[
  11415. taskCount
  11416. ].eList
  11417. "
  11418. :header-cell-style="{ background: '#F0F4FA' }"
  11419. :row-class-name="tableRowClassName"
  11420. border
  11421. stripe
  11422. style="width: 100%"
  11423. >
  11424. <el-table-column
  11425. :width="courseDetail.state == 5 ? '230' : '150'"
  11426. label="目标"
  11427. align="center"
  11428. >
  11429. <template slot-scope="scope">
  11430. <div
  11431. style="display:flex;justify-content: center;align-items: center;"
  11432. >
  11433. <img
  11434. class="blueRootCss"
  11435. v-if="
  11436. scope.row.isai == 1 ||
  11437. (!scope.row.isai && courseDetail.state == 5)
  11438. "
  11439. src="../../assets/icon/newIcons/blueRoot.png"
  11440. alt=""
  11441. />
  11442. <div v-if="courseDetail.state == 5">
  11443. {{ scope.row.target ? scope.row.target : "-" }}
  11444. </div>
  11445. <div v-else>
  11446. {{
  11447. scope.row.target
  11448. ? scope.row.target[scope.row.target.length - 1]
  11449. : "-"
  11450. }}
  11451. </div>
  11452. </div>
  11453. </template></el-table-column
  11454. >
  11455. <el-table-column
  11456. label="评价维度"
  11457. align="center"
  11458. v-if="courseDetail.state != 5"
  11459. >
  11460. <template slot-scope="scope"
  11461. ><div>{{ scope.row.value }}</div></template
  11462. >
  11463. </el-table-column>
  11464. <el-table-column
  11465. :label="courseDetail.state == 5 ? '评价标准' : '维度描述'"
  11466. align="center"
  11467. >
  11468. <template slot-scope="scope"
  11469. ><div>
  11470. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11471. </div></template
  11472. >
  11473. </el-table-column>
  11474. <el-table-column
  11475. label="细则"
  11476. align="center"
  11477. v-if="courseDetail.state == 5"
  11478. >
  11479. <template slot-scope="scope"
  11480. ><div
  11481. style="display:flex;justify-content: space-around;margin:auto"
  11482. v-if="scope.row.rule"
  11483. >
  11484. <el-popover
  11485. placement="top"
  11486. width="350"
  11487. trigger="hover"
  11488. >
  11489. <div
  11490. v-html="scope.row.rule"
  11491. style="white-space:pre-wrap"
  11492. ></div>
  11493. <div
  11494. slot="reference"
  11495. style="color:#4383FF;cursor: pointer;"
  11496. >
  11497. 查看
  11498. </div>
  11499. </el-popover>
  11500. </div>
  11501. <div v-else>-</div>
  11502. </template>
  11503. </el-table-column>
  11504. </el-table>
  11505. <!-- <div
  11506. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11507. .chapterInfo[0].taskJson[taskCount].eList"
  11508. :key="eIndex"
  11509. class="elist_input_box"
  11510. >
  11511. <div style="width: 95%">
  11512. <div
  11513. style="
  11514. display: flex;
  11515. flex-direction: row;
  11516. flex-wrap: nowrap;
  11517. align-items: center;
  11518. "
  11519. >
  11520. <div style="max-width: calc(100% - 285px)">
  11521. <span>{{ eItem.value }}</span>
  11522. </div>
  11523. <div
  11524. style="
  11525. padding-left: 25px;
  11526. display: flex;
  11527. flex-direction: row;
  11528. align-items: center;
  11529. "
  11530. >
  11531. <el-rate
  11532. v-model="eItem.score"
  11533. :colors="colors"
  11534. disabled
  11535. ></el-rate>
  11536. </div>
  11537. </div>
  11538. <div class="elist_inptu_text" style="padding-left: 10px">
  11539. <span v-if="eItem.detail != ''">{{
  11540. eItem.detail
  11541. }}</span>
  11542. <span v-else style="color: #b2b1b3; font-size: 14px"
  11543. >暂无描述...</span
  11544. >
  11545. </div>
  11546. </div>
  11547. </div> -->
  11548. </div>
  11549. <div
  11550. v-if="evalua"
  11551. style="
  11552. border: 1px solid #e5e5e5;
  11553. max-width: 650px;
  11554. width: 100%;
  11555. margin-top: 20px;
  11556. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11557. "
  11558. :style="{
  11559. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  11560. taskCount
  11561. ].isEvaFold2
  11562. ? '100%'
  11563. : '116px'
  11564. }"
  11565. >
  11566. <div class="e_add_top">
  11567. <div class="e_add_title" style="width: 100%">
  11568. <!-- <span>目标管理名称</span> -->
  11569. <span
  11570. v-if="
  11571. chapInfoList[courseType].chapterInfo[0].taskJson[
  11572. taskCount
  11573. ].isEvaFold2
  11574. "
  11575. >{{ eTitle }}</span
  11576. >
  11577. <img
  11578. v-if="
  11579. chapInfoList[courseType].chapterInfo[0].taskJson[
  11580. taskCount
  11581. ].isEvaFold2
  11582. "
  11583. src="../../assets/line.png"
  11584. class="cru_line"
  11585. style="
  11586. width: 125px;
  11587. height: 20px;
  11588. bottom: -10px;
  11589. left: 5px;
  11590. "
  11591. />
  11592. <!-- <el-input
  11593. v-model="eTitle"
  11594. placeholder="请输入名称"
  11595. @change="setMindData"
  11596. ></el-input>-->
  11597. <div
  11598. v-show="
  11599. chapInfoList[courseType].chapterInfo[0].taskJson[
  11600. taskCount
  11601. ].isEvaFold2
  11602. "
  11603. class="show_taskD show"
  11604. style="margin:0 0 0 auto"
  11605. @click="foldEva()"
  11606. >
  11607. <img
  11608. src="../../assets/icon/newIcon/icon-slide.png"
  11609. />收起目标
  11610. </div>
  11611. <div
  11612. v-show="
  11613. !chapInfoList[courseType].chapterInfo[0].taskJson[
  11614. taskCount
  11615. ].isEvaFold2
  11616. "
  11617. style="margin:0 0 0 auto"
  11618. class="show_taskD"
  11619. @click="foldEva()"
  11620. >
  11621. <img
  11622. src="../../assets/icon/newIcon/icon-slide.png"
  11623. />展开目标
  11624. </div>
  11625. </div>
  11626. </div>
  11627. <div
  11628. class="e_add_content"
  11629. v-if="
  11630. chapInfoList[courseType].chapterInfo[0].taskJson[
  11631. taskCount
  11632. ].isEvaFold2
  11633. "
  11634. >
  11635. <div class="e_add_list_pbox">
  11636. <div class="e_add_list_pbox_title">
  11637. <!-- <span class="type_title">切换模式</span> -->
  11638. <div class="type_content">
  11639. <span
  11640. :class="{ active: typeMode == 1 }"
  11641. @click="typeMode = 1"
  11642. >目标树</span
  11643. >
  11644. <span
  11645. :class="{ active: typeMode == 2 }"
  11646. @click="typeMode = 2"
  11647. >目标罗盘</span
  11648. >
  11649. <!-- <span
  11650. :class="{ active: typeMode == 3 }"
  11651. @click="typeMode = 3"
  11652. >目标看板</span
  11653. > -->
  11654. </div>
  11655. </div>
  11656. <div
  11657. class="e_add_list_pbox_content"
  11658. style="min-height: 200px;"
  11659. >
  11660. <Mind
  11661. :showBar="false"
  11662. :mindData="data"
  11663. style="width: 100%"
  11664. v-show="typeMode == 1"
  11665. ></Mind>
  11666. <Sunburst
  11667. :Josn="eJson"
  11668. :num="eJSONNum"
  11669. style="width: 100%"
  11670. v-if="typeMode == 2"
  11671. ></Sunburst>
  11672. <SeeBoard
  11673. :Josn="eJson"
  11674. :num="eJSONNum"
  11675. :ename="eTitle"
  11676. style="width: 100%"
  11677. v-if="typeMode == 3"
  11678. >
  11679. </SeeBoard>
  11680. </div>
  11681. </div>
  11682. </div>
  11683. </div>
  11684. </div>
  11685. </div>
  11686. <!-- <div
  11687. class="project_box"
  11688. style="margin-top: 15px; padding-bottom: 30px"
  11689. >
  11690. <div
  11691. style="
  11692. display: flex;
  11693. flex-wrap: nowrap;
  11694. flex-direction: column;
  11695. position: relative;
  11696. "
  11697. >
  11698. <div class="queTop">
  11699. <div class="question">
  11700. <img src="../../assets/icon/homeWork.png" alt="" />
  11701. </div>
  11702. <div class="queTitle">
  11703. <div>作业提交<span>(提交图文视频等)</span></div>
  11704. <div>:任务:{{ task.task }}</div>
  11705. </div>
  11706. </div>
  11707. <div class="ediBottom">
  11708. <div
  11709. class="addEditor"
  11710. style="margin-top: 23px"
  11711. @click="openAddWork"
  11712. v-if="!isNoHomeWork"
  11713. >
  11714. 选择文件
  11715. </div>
  11716. <div
  11717. class="addEditor"
  11718. style="margin-top: 23px"
  11719. @click="openAddWork"
  11720. v-else
  11721. >
  11722. 已提交
  11723. </div>
  11724. </div>
  11725. </div>
  11726. </div>-->
  11727. </div>
  11728. </div>
  11729. <el-dialog
  11730. title="作业提交"
  11731. :visible.sync="dialogVisible"
  11732. :append-to-body="true"
  11733. width="500px"
  11734. :before-close="handleClose"
  11735. class="dialog_change"
  11736. >
  11737. <div class="marginT">
  11738. <div>上传文件</div>
  11739. <div style="display: flex; gap: 10px">
  11740. <div
  11741. class="chapter_add"
  11742. @click="addImg($event)"
  11743. v-if="studyJuri[0].cover.length == 0"
  11744. >
  11745. <div class="up_photo">
  11746. <img src="../../assets/icon/uploadImg.png" alt />
  11747. </div>
  11748. <!-- <input
  11749. type="file"
  11750. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11751. style="display: none"
  11752. @change="beforeUpload1($event, 1)"
  11753. /> -->
  11754. <input
  11755. type="file"
  11756. accept="*"
  11757. style="display: none"
  11758. @change="beforeUpload1($event, 1)"
  11759. />
  11760. <!-- <input
  11761. type="file"
  11762. accept="image/*"
  11763. capture="camera"
  11764. style="display: none"
  11765. @change="beforeUpload1($event, 1)"
  11766. /> -->
  11767. </div>
  11768. <div
  11769. class="chapter_add"
  11770. @click="addImg($event)"
  11771. v-if="studyJuri[0].cover.length == 0"
  11772. >
  11773. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11774. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11775. </div>
  11776. <input
  11777. type="file"
  11778. accept="image/*"
  11779. capture="camera"
  11780. style="display: none"
  11781. @change="beforeUpload1($event, 1)"
  11782. />
  11783. </div>
  11784. </div>
  11785. <div
  11786. class="chapter_add"
  11787. style="
  11788. display: flex;
  11789. width: 100%;
  11790. flex-direction: row;
  11791. flex-wrap: wrap;
  11792. justify-content: flex-start;
  11793. padding: 15px 0;
  11794. "
  11795. v-if="studyJuri[0].cover.length > 0"
  11796. >
  11797. <div class="upCover">
  11798. <img
  11799. :src="studyJuri[0].cover[0].url"
  11800. alt
  11801. v-if="fileType == 0"
  11802. />
  11803. <img :src="word" alt v-else-if="fileType == 1" />
  11804. <img :src="video" alt v-else-if="fileType == 2" />
  11805. <img :src="word2" alt v-else-if="fileType == 3" />
  11806. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11807. <div class="deleteWord" @click="clean(1)">
  11808. <img src="../../assets/icon/deleteWorks.png" alt />
  11809. </div>
  11810. </div>
  11811. </div>
  11812. </div>
  11813. <div
  11814. class="upload_send"
  11815. @click="addCourseWorksCopy(taskCount)"
  11816. v-if="!proVisible"
  11817. >
  11818. 提交
  11819. </div>
  11820. </el-dialog>
  11821. </div>
  11822. </div>
  11823. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11824. <classRoomHelper
  11825. v-if="!['2'].includes(tType)"
  11826. @studentFreePreview="studentFreePreview"
  11827. @OpenJobPreview="OpenJobPreview"
  11828. :videoStart="videoStart"
  11829. :IsFollow="IsFollow"
  11830. :sIsOpen="sIsOpen"
  11831. :IsLookOpen="IsLookOpen"
  11832. :splitScreenData="splitScreenData"
  11833. @splitScreenBehavior="splitScreenBehavior"
  11834. @startRecording="startRecording"
  11835. @stopRecording="stopRecording"
  11836. :fileList="vChapterData[taskCount]"
  11837. :worksStudent="worksStudent"
  11838. :courseType="parseInt(courseType)"
  11839. :taskCount="taskCount"
  11840. :tcid="tcid"
  11841. :navList="navList"
  11842. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11843. ref="classRoomHelperRef"
  11844. :courseDetail="courseDetail"
  11845. :tType="tType"
  11846. @setWidth="setClassRoomHelperWidth"
  11847. @refresh="refreshCourse"
  11848. @goStep="nextOrpreSteps"
  11849. @authority="juriVisible = true"
  11850. @review="setPz"
  11851. @backPage="
  11852. goTo(
  11853. '/courseDetail?userid=' +
  11854. userid +
  11855. '&oid=' +
  11856. oid +
  11857. '&org=' +
  11858. org +
  11859. '&cid=' +
  11860. classId +
  11861. '&courseId=' +
  11862. id +
  11863. '&tType=' +
  11864. tType +
  11865. '&screenType=' +
  11866. screenType+
  11867. '&role=' +
  11868. role
  11869. )
  11870. "
  11871. ></classRoomHelper>
  11872. <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(
  11873. '/courseDetail?userid=' +
  11874. userid +
  11875. '&oid=' +
  11876. oid +
  11877. '&org=' +
  11878. org +
  11879. '&cid=' +
  11880. classId +
  11881. '&courseId=' +
  11882. id +
  11883. '&tType=' +
  11884. tType +
  11885. '&screenType=' +
  11886. screenType+
  11887. '&role=' +
  11888. role
  11889. )"></studentClassRoomHelper>
  11890. <div
  11891. class="pButton"
  11892. @click="(pzDialog = true), selectPz()"
  11893. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11894. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11895. >
  11896. <!-- 批 -->
  11897. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11898. </div>
  11899. <div
  11900. v-if="pzDialog == true"
  11901. class="newDialogCss"
  11902. :style="`right:${commentRight}`"
  11903. >
  11904. <div class="pzTop2">
  11905. <!-- <div>评论</div>
  11906. <div @click="pzDialog = false">
  11907. <img src="../../assets/close1.png" alt="" />
  11908. </div> -->
  11909. <div class="checkbox">
  11910. <!-- <div class="check" style="font-size: 25px; position: unset">
  11911. 评论
  11912. </div> -->
  11913. <div class="cb-tabList">
  11914. <div
  11915. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11916. @click="commentTagShow = 0"
  11917. >
  11918. 评论
  11919. </div>
  11920. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11921. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11922. <div
  11923. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11924. @click="commentTagShow = 2"
  11925. >
  11926. 总评
  11927. </div>
  11928. </div>
  11929. <el-select
  11930. v-model="pzStype"
  11931. @change="selectPz"
  11932. class="selectBox"
  11933. v-show="commentTagShow == 0"
  11934. >
  11935. <el-option label="时间降序" :value="1"></el-option>
  11936. <el-option label="时间升序" :value="2"></el-option>
  11937. <el-option label="我的评课" :value="3"></el-option>
  11938. </el-select>
  11939. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11940. </div>
  11941. </div>
  11942. <div
  11943. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11944. v-if="commentTagShow == 0"
  11945. >
  11946. <div class="pzListBox" v-if="pzList && pzList.length">
  11947. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11948. <div class="pzNavTop">
  11949. <div>评</div>
  11950. <div>
  11951. {{
  11952. pz.username && pz.username.length > 5
  11953. ? pz.username.substring(0, 5) + "..."
  11954. : pz.username
  11955. }}的评论
  11956. </div>
  11957. <div
  11958. class="pzDelete"
  11959. v-if="pz.userid == userid"
  11960. @click="deletePz(pz.id)"
  11961. >
  11962. 删除
  11963. </div>
  11964. </div>
  11965. <div
  11966. @click="checkImg(getImgList(pz.content))"
  11967. class="pzContent cont"
  11968. v-html="pz.content"
  11969. v-if="pz.type == '1'"
  11970. ></div>
  11971. <div class="pzContent" v-if="pz.type == '2'">
  11972. <audio :src="pz.content" controls="controls" ref="audio">
  11973. Your browser does not support the audio element.
  11974. </audio>
  11975. </div>
  11976. <div class="pzContent" v-if="pz.type == '3'">
  11977. <img
  11978. :src="pz.content"
  11979. style="width: 90%; margin: 0 auto; display: block"
  11980. @click="previewImg(pz.content)"
  11981. />
  11982. </div>
  11983. <div class="timeAndReply">
  11984. <div class="time">
  11985. {{ pz.time }}
  11986. </div>
  11987. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11988. </div>
  11989. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11990. <div
  11991. v-for="(h, hIndex) in pz.hfList"
  11992. :key="hIndex"
  11993. class="hfItem"
  11994. >
  11995. <div class="whoReplyWho">
  11996. <div class="hfName">{{ h.username }}</div>
  11997. <div class="hfImg">
  11998. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11999. </div>
  12000. <div class="hfName">{{ pz.username }}</div>
  12001. </div>
  12002. <div class="hfContent" v-html="h.content"></div>
  12003. <div class="hfBottom">
  12004. <div class="hfTime">{{ h.time }}</div>
  12005. <div
  12006. class="deleteHfItem"
  12007. @click="deleteReply(h.id)"
  12008. v-if="userid == h.userid"
  12009. >
  12010. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  12011. </div>
  12012. </div>
  12013. </div>
  12014. </div>
  12015. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  12016. <div class="replyInput">
  12017. <el-input v-model="reply[pzIndex]"></el-input>
  12018. </div>
  12019. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  12020. </div> -->
  12021. </div>
  12022. </div>
  12023. <div class="noPz" v-else>
  12024. <img src="../../assets/icon/noPz.png" alt="" />
  12025. </div>
  12026. <div class="addPzButton">
  12027. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  12028. 添加评论
  12029. </div>
  12030. <!-- <div class="img1">
  12031. <div @click="(addPzDialog = true), (pzType = 2)">
  12032. <img src="../../assets/audio.png" /><span>音频</span>
  12033. </div>
  12034. </div> -->
  12035. </div>
  12036. </div>
  12037. <div class="scoreList" v-if="commentTagShow == 1">
  12038. <scoreItem
  12039. v-for="item in scoreList.datalist"
  12040. @refresh="getScoreList"
  12041. :data="item"
  12042. :isScore="
  12043. scoreList.isScoreList.filter(
  12044. i => i.userid == item.userid && i.courseid == item.courseId
  12045. )
  12046. "
  12047. :key="item.courseId"
  12048. />
  12049. </div>
  12050. <div
  12051. class="scoreList"
  12052. v-if="commentTagShow == 2"
  12053. style="position: relative"
  12054. >
  12055. <scoreZong
  12056. :courseid="id"
  12057. :userid="userid"
  12058. @insertMemorandum="insertMemorandum"
  12059. ></scoreZong>
  12060. </div>
  12061. </div>
  12062. <div
  12063. v-if="toolDialogVisible == true"
  12064. class="toolMask"
  12065. @click="toolDialogVisible = false"
  12066. ></div>
  12067. <div v-if="toolDialogVisible == true" class="addToolCss">
  12068. <div class="toolTop">
  12069. <div style="font-weight: bold">新增工具</div>
  12070. <div @click="toolDialogVisible = false">
  12071. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  12072. </div>
  12073. </div>
  12074. <div class="tool_box">
  12075. <div class="tool_type_box">
  12076. <div class="chooseWho">
  12077. <div
  12078. :class="toolType == 0 ? 'isChooseActive' : ''"
  12079. @click="(toolType = 0), $forceUpdate()"
  12080. >
  12081. 互动类
  12082. </div>
  12083. <div
  12084. :class="toolType == 1 ? 'isChooseActive' : ''"
  12085. @click="(toolType = 1), $forceUpdate()"
  12086. >
  12087. 思维类
  12088. </div>
  12089. <div
  12090. :class="toolType == 2 ? 'isChooseActive' : ''"
  12091. @click="(toolType = 2), $forceUpdate()"
  12092. >
  12093. 测评类
  12094. </div>
  12095. <div
  12096. :class="toolType == 3 ? 'isChooseActive' : ''"
  12097. @click="(toolType = 3), $forceUpdate()"
  12098. >
  12099. 编程类
  12100. </div>
  12101. <div
  12102. :class="toolType == 5 ? 'isChooseActive' : ''"
  12103. @click="(toolType = 5), $forceUpdate()"
  12104. >
  12105. 学科类
  12106. </div>
  12107. </div>
  12108. </div>
  12109. <div>
  12110. <div class="toolSort" v-if="toolType == 0">
  12111. <div
  12112. class="tool"
  12113. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  12114. @click="addTools2(10)"
  12115. >
  12116. <div class="whiteBIcon">
  12117. <img src="../../assets/icon/thirdToolList/time.png" alt />
  12118. <div style="margin: 5px 0">倒计时</div>
  12119. </div>
  12120. <div class="check">
  12121. <div
  12122. v-if="checktoolArray.indexOf(10) == -1"
  12123. class="noChoose"
  12124. ></div>
  12125. <div v-else class="isChoose"></div>
  12126. </div>
  12127. </div>
  12128. <div
  12129. class="tool"
  12130. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  12131. @click="addTools2(65)"
  12132. >
  12133. <div class="whiteBIcon">
  12134. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  12135. <div style="margin: 5px 0">挑人</div>
  12136. </div>
  12137. <div class="check">
  12138. <div
  12139. v-if="checktoolArray.indexOf(65) == -1"
  12140. class="noChoose"
  12141. ></div>
  12142. <div v-else class="isChoose"></div>
  12143. </div>
  12144. </div>
  12145. </div>
  12146. <div class="toolSort" v-if="toolType == 1">
  12147. <div
  12148. class="tool"
  12149. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  12150. @click="addTools2(7)"
  12151. >
  12152. <div class="whiteBIcon">
  12153. <img
  12154. src="../../assets/icon/secondToolList/mindNetwork.png"
  12155. alt
  12156. />
  12157. <div style="margin: 5px 0">思维网格</div>
  12158. </div>
  12159. <div class="check">
  12160. <div
  12161. v-if="checktoolArray.indexOf(7) == -1"
  12162. class="noChoose"
  12163. ></div>
  12164. <div v-else class="isChoose"></div>
  12165. </div>
  12166. </div>
  12167. <div
  12168. class="tool"
  12169. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  12170. @click="addTools2(1)"
  12171. >
  12172. <div class="whiteBIcon">
  12173. <img
  12174. src="../../assets/icon/secondToolList/whiteBoard.png"
  12175. alt
  12176. />
  12177. <div style="margin: 5px 0">电子白板</div>
  12178. </div>
  12179. <div class="check">
  12180. <div
  12181. v-if="checktoolArray.indexOf(1) == -1"
  12182. class="noChoose"
  12183. ></div>
  12184. <div v-else class="isChoose"></div>
  12185. </div>
  12186. </div>
  12187. <div
  12188. class="tool"
  12189. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  12190. @click="addTools2(52)"
  12191. >
  12192. <div class="whiteBIcon">
  12193. <img src="../../assets/icon/fourthToolList/text.png" alt />
  12194. <div style="margin: 5px 0">文档</div>
  12195. </div>
  12196. <div class="check">
  12197. <div
  12198. v-if="checktoolArray.indexOf(52) == -1"
  12199. class="noChoose"
  12200. ></div>
  12201. <div v-else class="isChoose"></div>
  12202. </div>
  12203. </div>
  12204. <div
  12205. class="tool"
  12206. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12207. @click="addTools2(3)"
  12208. >
  12209. <div class="whiteBIcon">
  12210. <img
  12211. src="../../assets/icon/secondToolList/mindMapping.png"
  12212. alt
  12213. />
  12214. <div style="margin: 5px 0">思维导图</div>
  12215. </div>
  12216. <div class="check">
  12217. <div
  12218. v-if="checktoolArray.indexOf(3) == -1"
  12219. class="noChoose"
  12220. ></div>
  12221. <div v-else class="isChoose"></div>
  12222. </div>
  12223. </div>
  12224. <div
  12225. class="tool"
  12226. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  12227. @click="addTools2(48)"
  12228. >
  12229. <div class="whiteBIcon">
  12230. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12231. <div style="margin: 5px 0">表格</div>
  12232. </div>
  12233. <div class="check">
  12234. <div
  12235. v-if="checktoolArray.indexOf(48) == -1"
  12236. class="noChoose"
  12237. ></div>
  12238. <div v-else class="isChoose"></div>
  12239. </div>
  12240. </div>
  12241. </div>
  12242. <div class="toolSort" v-if="toolType == 6">
  12243. <div v-show="tooC == 49">
  12244. <img
  12245. @click="addTools(tooC, toolIndex, taskCount)"
  12246. src="../../assets/icon/fourthToolList/group.png"
  12247. alt
  12248. />
  12249. <div style="margin: 5px 0">学生分组</div>
  12250. </div>
  12251. </div>
  12252. <div class="toolSort" v-if="toolType == 2">
  12253. <div
  12254. class="tool"
  12255. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12256. @click="addTools2(16)"
  12257. >
  12258. <div class="whiteBIcon">
  12259. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12260. <div style="margin: 5px 0">作业提交</div>
  12261. </div>
  12262. <div class="check">
  12263. <div
  12264. v-if="checktoolArray.indexOf(16) == -1"
  12265. class="noChoose"
  12266. ></div>
  12267. <div v-else class="isChoose"></div>
  12268. </div>
  12269. </div>
  12270. <div
  12271. class="tool"
  12272. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12273. @click="addTools2(50)"
  12274. >
  12275. <div class="whiteBIcon">
  12276. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12277. <div style="margin: 5px 0">批量上传</div>
  12278. </div>
  12279. <div class="check">
  12280. <div
  12281. v-if="checktoolArray.indexOf(50) == -1"
  12282. class="noChoose"
  12283. ></div>
  12284. <div v-else class="isChoose"></div>
  12285. </div>
  12286. </div>
  12287. </div>
  12288. <div class="toolSort" v-if="toolType == 3">
  12289. <div
  12290. class="tool"
  12291. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12292. @click="addTools2(18)"
  12293. >
  12294. <div class="whiteBIcon">
  12295. <img
  12296. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12297. alt
  12298. />
  12299. <div style="margin: 5px 0">训练平台</div>
  12300. </div>
  12301. <div class="check">
  12302. <div
  12303. v-if="checktoolArray.indexOf(18) == -1"
  12304. class="noChoose"
  12305. ></div>
  12306. <div v-else class="isChoose"></div>
  12307. </div>
  12308. </div>
  12309. <div
  12310. class="tool"
  12311. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12312. @click="addTools2(21)"
  12313. >
  12314. <div class="whiteBIcon">
  12315. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12316. <div style="margin: 5px 0">AIoT Blockly</div>
  12317. </div>
  12318. <div class="check">
  12319. <div
  12320. v-if="checktoolArray.indexOf(21) == -1"
  12321. class="noChoose"
  12322. ></div>
  12323. <div v-else class="isChoose"></div>
  12324. </div>
  12325. </div>
  12326. <div
  12327. class="tool"
  12328. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12329. @click="addTools2(23)"
  12330. >
  12331. <div class="whiteBIcon">
  12332. <img
  12333. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12334. alt
  12335. />
  12336. <div style="margin: 5px 0">AI Python</div>
  12337. </div>
  12338. <div class="check">
  12339. <div
  12340. v-if="checktoolArray.indexOf(23) == -1"
  12341. class="noChoose"
  12342. ></div>
  12343. <div v-else class="isChoose"></div>
  12344. </div>
  12345. </div>
  12346. <div
  12347. class="tool"
  12348. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  12349. @click="addTools2(24)"
  12350. >
  12351. <div class="whiteBIcon">
  12352. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12353. <div style="margin: 5px 0">AI Blockly</div>
  12354. </div>
  12355. <div class="check">
  12356. <div
  12357. v-if="checktoolArray.indexOf(24) == -1"
  12358. class="noChoose"
  12359. ></div>
  12360. <div v-else class="isChoose"></div>
  12361. </div>
  12362. </div>
  12363. <div
  12364. class="tool"
  12365. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12366. @click="addTools2(32)"
  12367. >
  12368. <div class="whiteBIcon">
  12369. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12370. <div style="margin: 5px 0">源码编辑</div>
  12371. </div>
  12372. <div class="check">
  12373. <div
  12374. v-if="checktoolArray.indexOf(32) == -1"
  12375. class="noChoose"
  12376. ></div>
  12377. <div v-else class="isChoose"></div>
  12378. </div>
  12379. </div>
  12380. <div
  12381. class="tool"
  12382. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12383. @click="addTools2(57)"
  12384. >
  12385. <div class="whiteBIcon">
  12386. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12387. <div style="margin: 5px 0">CocoPi</div>
  12388. </div>
  12389. <div class="check">
  12390. <div
  12391. v-if="checktoolArray.indexOf(57) == -1"
  12392. class="noChoose"
  12393. ></div>
  12394. <div v-else class="isChoose"></div>
  12395. </div>
  12396. </div>
  12397. <div
  12398. class="tool"
  12399. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12400. @click="addTools2(63)"
  12401. >
  12402. <div class="whiteBIcon">
  12403. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12404. <div style="margin: 5px 0">海龟编程</div>
  12405. </div>
  12406. <div class="check">
  12407. <div
  12408. v-if="checktoolArray.indexOf(63) == -1"
  12409. class="noChoose"
  12410. ></div>
  12411. <div v-else class="isChoose"></div>
  12412. </div>
  12413. </div>
  12414. <div
  12415. class="tool"
  12416. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12417. @click="addTools2(71)"
  12418. >
  12419. <div class="whiteBIcon">
  12420. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12421. <div style="margin: 5px 0">AI智能体</div>
  12422. </div>
  12423. <div class="check">
  12424. <div
  12425. v-if="checktoolArray.indexOf(71) == -1"
  12426. class="noChoose"
  12427. ></div>
  12428. <div v-else class="isChoose"></div>
  12429. </div>
  12430. </div>
  12431. </div>
  12432. <div class="toolSort" v-if="toolType == 7">
  12433. <div
  12434. class="tool"
  12435. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12436. @click="addTools2(40)"
  12437. >
  12438. <div class="whiteBIcon">
  12439. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12440. <div style="margin: 5px 0">个人评价</div>
  12441. </div>
  12442. <div class="check">
  12443. <div
  12444. v-if="checktoolArray.indexOf(40) == -1"
  12445. class="noChoose"
  12446. ></div>
  12447. <div v-else class="isChoose"></div>
  12448. </div>
  12449. </div>
  12450. </div>
  12451. <div class="toolSort" v-if="toolType == 5">
  12452. <div
  12453. class="tool"
  12454. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12455. @click="addTools2(28)"
  12456. >
  12457. <div class="whiteBIcon">
  12458. <img
  12459. src="../../assets/icon/secondToolList/translation.png"
  12460. alt
  12461. />
  12462. <div style="margin: 5px 0">翻译</div>
  12463. </div>
  12464. <div class="check">
  12465. <div
  12466. v-if="checktoolArray.indexOf(28) == -1"
  12467. class="noChoose"
  12468. ></div>
  12469. <div v-else class="isChoose"></div>
  12470. </div>
  12471. </div>
  12472. <div
  12473. class="tool"
  12474. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12475. @click="addTools2(31)"
  12476. >
  12477. <div class="whiteBIcon">
  12478. <img
  12479. src="../../assets/icon/secondToolList/networkPanel.png"
  12480. alt
  12481. />
  12482. <div style="margin: 5px 0">数字画板</div>
  12483. </div>
  12484. <div class="check">
  12485. <div
  12486. v-if="checktoolArray.indexOf(31) == -1"
  12487. class="noChoose"
  12488. ></div>
  12489. <div v-else class="isChoose"></div>
  12490. </div>
  12491. </div>
  12492. <div
  12493. class="tool"
  12494. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  12495. @click="addTools2(39)"
  12496. >
  12497. <div class="whiteBIcon">
  12498. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12499. <div style="margin: 5px 0">GeoGebra</div>
  12500. </div>
  12501. <div class="check">
  12502. <div
  12503. v-if="checktoolArray.indexOf(39) == -1"
  12504. class="noChoose"
  12505. ></div>
  12506. <div v-else class="isChoose"></div>
  12507. </div>
  12508. </div>
  12509. <div
  12510. class="tool"
  12511. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12512. @click="addTools2(66)"
  12513. >
  12514. <div class="whiteBIcon">
  12515. <img
  12516. src="../../assets/icon/secondToolList/formulaEdi.png"
  12517. alt
  12518. />
  12519. <div style="margin: 5px 0">公式编辑</div>
  12520. </div>
  12521. <div class="check">
  12522. <div
  12523. v-if="checktoolArray.indexOf(66) == -1"
  12524. class="noChoose"
  12525. ></div>
  12526. <div v-else class="isChoose"></div>
  12527. </div>
  12528. </div>
  12529. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12530. <div class="whiteBIcon" @click="addTools2(67)">
  12531. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12532. <div style="margin: 5px 0">分子结构</div>
  12533. </div>
  12534. <div class="check" @click="addTools2(67)">
  12535. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12536. <div v-else class="isChoose"></div>
  12537. </div>
  12538. </div> -->
  12539. <div
  12540. class="tool"
  12541. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12542. @click="addTools2(68)"
  12543. >
  12544. <div class="whiteBIcon">
  12545. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12546. <div style="margin: 5px 0">时间轴</div>
  12547. </div>
  12548. <div class="check">
  12549. <div
  12550. v-if="checktoolArray.indexOf(68) == -1"
  12551. class="noChoose"
  12552. ></div>
  12553. <div v-else class="isChoose"></div>
  12554. </div>
  12555. </div>
  12556. <!-- <div
  12557. class="tool"
  12558. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12559. @click="addTools2(69)"
  12560. >
  12561. <div class="whiteBIcon">
  12562. <img src="../../assets/icon/secondToolList/english.png" alt />
  12563. <div style="margin: 5px 0">英语写作</div>
  12564. </div>
  12565. <div class="check">
  12566. <div
  12567. v-if="checktoolArray.indexOf(69) == -1"
  12568. class="noChoose"
  12569. ></div>
  12570. <div v-else class="isChoose"></div>
  12571. </div>
  12572. </div> -->
  12573. </div>
  12574. <div class="toolSort" v-if="toolType == 4">
  12575. <div
  12576. class="tool"
  12577. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12578. @click="addTools2(26)"
  12579. >
  12580. <div class="whiteBIcon">
  12581. <img
  12582. src="../../assets/icon/thirdToolList/courseDesign.png"
  12583. alt
  12584. />
  12585. <div style="margin: 5px 0">课程设计</div>
  12586. </div>
  12587. <div class="check">
  12588. <div
  12589. v-if="checktoolArray.indexOf(26) == -1"
  12590. class="noChoose"
  12591. ></div>
  12592. <div v-else class="isChoose"></div>
  12593. </div>
  12594. </div>
  12595. <div
  12596. class="tool"
  12597. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12598. @click="addTools2(25)"
  12599. >
  12600. <div class="whiteBIcon">
  12601. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12602. <div style="margin: 5px 0">目标管理</div>
  12603. </div>
  12604. <div class="check">
  12605. <div
  12606. v-if="checktoolArray.indexOf(25) == -1"
  12607. class="noChoose"
  12608. ></div>
  12609. <div v-else class="isChoose"></div>
  12610. </div>
  12611. </div>
  12612. </div>
  12613. </div>
  12614. </div>
  12615. <span
  12616. slot="footer"
  12617. class="dialog-footer"
  12618. style="display: block; text-align: center; padding: 0 0 10px 0"
  12619. >
  12620. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12621. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12622. </span>
  12623. </div>
  12624. <div
  12625. v-if="replyDialogVisible == true"
  12626. class="addDialogCss"
  12627. v-el-drag-dialog
  12628. >
  12629. <div class="pzTop">
  12630. <div class="teacherPz">
  12631. <div class="teacherPzImg">
  12632. <img src="../../assets/icon/teacherPz.png" alt="" />
  12633. </div>
  12634. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12635. </div>
  12636. <div @click="replyDialogVisible = false">
  12637. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12638. </div>
  12639. </div>
  12640. <div class="addPzBox">
  12641. <!-- <div class="addPzCheck">
  12642. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12643. >文本</span
  12644. >
  12645. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12646. >音频</span
  12647. >
  12648. </div> -->
  12649. <div style="height: calc(100% - 50px)">
  12650. <editor-bar
  12651. class="binfo_input pzConText"
  12652. style="width: 100% !important; margin: 0 auto"
  12653. placeholder="请输入回复描述"
  12654. v-model="reply"
  12655. @change="change"
  12656. ></editor-bar>
  12657. </div>
  12658. <div class="addTextCss" @click="addHf">确定</div>
  12659. </div>
  12660. </div>
  12661. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12662. <div class="pzTop">
  12663. <div class="teacherPz">
  12664. <div class="teacherPzImg">
  12665. <img src="../../assets/icon/teacherPz.png" alt="" />
  12666. </div>
  12667. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12668. </div>
  12669. <div @click="addPzDialog = false">
  12670. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12671. </div>
  12672. </div>
  12673. <div class="addPzBox">
  12674. <div class="addPzCheck">
  12675. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12676. >文本</span
  12677. >
  12678. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12679. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12680. >音频</span
  12681. >
  12682. </div>
  12683. <div style="height: calc(100% - 95px)">
  12684. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12685. v-if="pzType == 1"></textarea> -->
  12686. <editor-bar
  12687. class="binfo_input pzConText"
  12688. style="width: 100% !important"
  12689. placeholder="请输入任务描述"
  12690. v-model="pzConText"
  12691. @change="change"
  12692. v-if="pzType == 1"
  12693. ></editor-bar>
  12694. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12695. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12696. <div @click="addImg($event)">
  12697. <el-button type="primary">上传图片</el-button>
  12698. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12699. @change="beforeUpload1($event, 4)" />
  12700. </div>
  12701. </div> -->
  12702. </div>
  12703. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12704. 确定
  12705. </div>
  12706. </div>
  12707. </div>
  12708. <div v-if="proVisible" class="mask">
  12709. <div class="progressBox">
  12710. <!-- <div id="closePro" class="closeCss">
  12711. <img src="../../assets/icon/close.png" alt />
  12712. </div> -->
  12713. <div class="lbox">
  12714. <img src="../../assets/loading.gif" />上传中,请稍后
  12715. </div>
  12716. <div style="margin-bottom: 10px">
  12717. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12718. </div>
  12719. <el-progress
  12720. :text-inside="true"
  12721. :stroke-width="20"
  12722. :percentage="progress"
  12723. style="width: 80%"
  12724. ></el-progress>
  12725. </div>
  12726. </div>
  12727. <div v-if="proVisible2" class="mask">
  12728. <div class="progressBox">
  12729. <div class="lbox">
  12730. <img src="../../assets/loading.gif" />上传中,请稍后
  12731. </div>
  12732. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12733. </div>
  12734. </div>
  12735. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12736. <img width="100%" :src="dialogImageUrl" alt />
  12737. </el-dialog>
  12738. <el-dialog
  12739. :title="noteName != '' ? noteName : '查看问卷'"
  12740. :visible.sync="dialogVisible5"
  12741. :append-to-body="true"
  12742. width="1000px"
  12743. :before-close="handleClose"
  12744. class="dialog_diy dialog_diy3"
  12745. >
  12746. <div>
  12747. <div
  12748. class="a_add_title"
  12749. style="
  12750. display: flex;
  12751. flex-direction: row;
  12752. align-items: center;
  12753. justify-content: center;
  12754. "
  12755. >
  12756. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12757. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12758. </div>
  12759. <div class="a_addBox">
  12760. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12761. 题目内容
  12762. </div>
  12763. <div
  12764. class="a_add_box"
  12765. v-for="(item1, index1) in askJson.askCount"
  12766. :key="index1"
  12767. >
  12768. <div class="a_add_head">
  12769. <div style="display: flex">
  12770. <span class="askIndex"> {{ index1 + 1 }}</span>
  12771. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12772. </div>
  12773. <img
  12774. v-if="askJson.askJson[index1].img"
  12775. :src="askJson.askJson[index1].img"
  12776. style="height: 300px; margin-top: 10px; max-width: 100%"
  12777. />
  12778. </div>
  12779. <div class="a_add_body">
  12780. <div class="a_add_input">
  12781. <el-radio-group
  12782. v-model="radio[index1]"
  12783. v-if="
  12784. askJson.askJson[index1].type == '1' ||
  12785. !askJson.askJson[index1].type
  12786. "
  12787. >
  12788. <el-radio
  12789. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12790. .checkList"
  12791. :key="checkIndex"
  12792. :label="checkIndex"
  12793. :disabled="isAnswer"
  12794. class="redioStyle"
  12795. ><span v-html="item2"></span
  12796. ></el-radio>
  12797. </el-radio-group>
  12798. <el-checkbox-group
  12799. v-model="radio[index1]"
  12800. v-if="askJson.askJson[index1].type == '2'"
  12801. >
  12802. <el-checkbox
  12803. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12804. .checkList"
  12805. :key="checkIndex1"
  12806. :label="checkIndex1"
  12807. :disabled="isAnswer"
  12808. class="redioStyle"
  12809. ><span v-html="item2"></span>
  12810. </el-checkbox>
  12811. </el-checkbox-group>
  12812. </div>
  12813. </div>
  12814. </div>
  12815. </div>
  12816. </div>
  12817. <span slot="footer" class="dialog-footer">
  12818. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12819. >取 消</el-button
  12820. >
  12821. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12822. >确 定</el-button
  12823. >
  12824. </span>
  12825. </el-dialog>
  12826. <el-dialog
  12827. :title="noteName != '' ? noteName : '查看问卷'"
  12828. :visible.sync="dialogVisible5Teacher"
  12829. :append-to-body="true"
  12830. width="1000px"
  12831. :before-close="handleClose"
  12832. class="dialog_diy dialog_diy3"
  12833. >
  12834. <div>
  12835. <div class="w_name">
  12836. 学生姓名:<span>{{ sStudent.student }}</span>
  12837. </div>
  12838. <div
  12839. class="a_add_title"
  12840. style="
  12841. display: flex;
  12842. flex-direction: row;
  12843. align-items: center;
  12844. justify-content: center;
  12845. "
  12846. >
  12847. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12848. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12849. </div>
  12850. <div class="a_addBox">
  12851. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12852. 题目内容
  12853. </div>
  12854. <div
  12855. class="a_add_box"
  12856. v-for="(item1, index1) in askJson.askCount"
  12857. :key="index1"
  12858. >
  12859. <div class="a_add_head">
  12860. <div style="display: flex">
  12861. <span class="askIndex">{{ index1 + 1 }}</span>
  12862. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12863. </div>
  12864. <img
  12865. v-if="askJson.askJson[index1].img"
  12866. :src="askJson.askJson[index1].img"
  12867. style="height: 300px; margin-top: 10px; max-width: 100%"
  12868. />
  12869. </div>
  12870. <div class="a_add_body">
  12871. <div class="a_add_input">
  12872. <el-radio-group
  12873. v-model="radio[index1]"
  12874. v-if="
  12875. askJson.askJson[index1].type == '1' ||
  12876. !askJson.askJson[index1].type
  12877. "
  12878. >
  12879. <el-radio
  12880. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12881. .checkList"
  12882. :key="checkIndex"
  12883. :label="checkIndex"
  12884. :disabled="isAnswer"
  12885. class="redioStyle"
  12886. ><span v-html="item2"></span
  12887. ></el-radio>
  12888. </el-radio-group>
  12889. <el-checkbox-group
  12890. v-model="radio[index1]"
  12891. v-if="askJson.askJson[index1].type == '2'"
  12892. >
  12893. <el-checkbox
  12894. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12895. .checkList"
  12896. :key="checkIndex1"
  12897. :label="checkIndex1"
  12898. :disabled="isAnswer"
  12899. class="redioStyle"
  12900. ><span v-html="item2"></span>
  12901. </el-checkbox>
  12902. </el-checkbox-group>
  12903. </div>
  12904. </div>
  12905. </div>
  12906. </div>
  12907. </div>
  12908. <span slot="footer" class="dialog-footer">
  12909. <el-button
  12910. @click="dialogVisible5Teacher = false"
  12911. v-show="noteName == ''"
  12912. >取 消</el-button
  12913. >
  12914. <el-button
  12915. type="primary"
  12916. @click="addStudentAskTeacher"
  12917. v-show="noteName == ''"
  12918. >确 定</el-button
  12919. >
  12920. </span>
  12921. </el-dialog>
  12922. <el-dialog
  12923. :title="noteName != '' ? noteName : '查看选择题'"
  12924. :visible.sync="dialogVisibleChoice"
  12925. :append-to-body="true"
  12926. width="1000px"
  12927. :before-close="handleClose"
  12928. class="dialog_diy dialog_diy3"
  12929. >
  12930. <div>
  12931. <!-- <div class="a_add_title" style="
  12932. display: flex;
  12933. flex-direction: row;
  12934. align-items: center;
  12935. justify-content: center;
  12936. ">
  12937. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12938. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12939. </div> -->
  12940. <div class="a_addBox">
  12941. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12942. 题目内容
  12943. </div>
  12944. <div
  12945. class="a_add_box"
  12946. v-for="(item1, index1) in testJson.testCount"
  12947. :key="index1"
  12948. >
  12949. <div class="a_add_head">
  12950. <div style="display: flex;align-items: center;">
  12951. <span class="askIndex">{{ index1 + 1 }}</span>
  12952. <div
  12953. v-if="testJson.testJson[index1].type == '1'"
  12954. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12955. >
  12956. (单选题)
  12957. </div>
  12958. <div
  12959. v-if="testJson.testJson[index1].type == '2'"
  12960. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12961. >
  12962. (多选题)
  12963. </div>
  12964. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  12965. </div>
  12966. <img
  12967. v-if="testJson.testJson[index1].img"
  12968. :src="testJson.testJson[index1].img"
  12969. style="height: 300px; margin-top: 10px; max-width: 100%"
  12970. />
  12971. </div>
  12972. <div
  12973. class="timuImgBox"
  12974. v-if="
  12975. testJson.testJson[index1].timuList &&
  12976. testJson.testJson[index1].timuList.length
  12977. "
  12978. >
  12979. <div
  12980. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12981. :key="tIndex"
  12982. class="timuImg"
  12983. @click.stop="previewImg(timg.src)"
  12984. >
  12985. <img :src="timg.src" alt="" />
  12986. </div>
  12987. </div>
  12988. <div class="a_add_body">
  12989. <div class="a_add_input">
  12990. <el-radio-group
  12991. v-model="radio[index1]"
  12992. v-if="testJson.testJson[index1].type == '1'"
  12993. >
  12994. <div class="radioBox">
  12995. <el-radio
  12996. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12997. .checkList"
  12998. :key="checkIndex"
  12999. :label="checkIndex"
  13000. :disabled="isAnswer"
  13001. class="redioStyle"
  13002. >
  13003. <div
  13004. style="margin-right: 10px"
  13005. v-if="item2 && item2.imgType && item2.imgType == 1"
  13006. >
  13007. <div class="inImg" @click.stop="previewImg(item2.src)">
  13008. <img :src="item2.src" alt="" />
  13009. </div>
  13010. </div>
  13011. <span v-else v-html="item2"></span>
  13012. </el-radio>
  13013. </div>
  13014. </el-radio-group>
  13015. <el-checkbox-group
  13016. v-model="radio[index1]"
  13017. v-if="testJson.testJson[index1].type == '2'"
  13018. >
  13019. <div class="radioBox">
  13020. <el-checkbox
  13021. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13022. .checkList"
  13023. :key="checkIndex"
  13024. :label="checkIndex"
  13025. :disabled="isAnswer"
  13026. class="redioStyle"
  13027. >
  13028. <div
  13029. style="margin-right: 10px"
  13030. v-if="item2 && item2.imgType && item2.imgType == 1"
  13031. >
  13032. <div class="inImg" @click.stop="previewImg(item2.src)">
  13033. <img :src="item2.src" alt="" />
  13034. </div>
  13035. </div>
  13036. <span v-else v-html="item2"></span>
  13037. </el-checkbox>
  13038. </div>
  13039. </el-checkbox-group>
  13040. </div>
  13041. </div>
  13042. </div>
  13043. </div>
  13044. </div>
  13045. <span slot="footer" class="dialog-footer">
  13046. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  13047. >取 消</el-button
  13048. >
  13049. <el-button
  13050. type="primary"
  13051. @click="addStudentTest"
  13052. v-show="noteName == ''"
  13053. >确 定</el-button
  13054. >
  13055. </span>
  13056. </el-dialog>
  13057. <el-dialog
  13058. :title="noteName != '' ? noteName : '查看选择题'"
  13059. :visible.sync="dialogVisibleChoiceTeacher"
  13060. :append-to-body="true"
  13061. width="1000px"
  13062. :before-close="handleClose"
  13063. class="dialog_diy dialog_diy3"
  13064. >
  13065. <div>
  13066. <div class="w_name">
  13067. 学生姓名:<span>{{ sStudent.student }}</span>
  13068. </div>
  13069. <div class="a_addBox">
  13070. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  13071. 题目内容
  13072. </div>
  13073. <div
  13074. class="a_add_box"
  13075. v-for="(item1, index1) in testJson.testCount"
  13076. :key="index1"
  13077. >
  13078. <div class="a_add_head">
  13079. <div style="display: flex">
  13080. <span class="askIndex">{{ index1 + 1 }}</span>
  13081. <div
  13082. v-if="testJson.testJson[index1].type == '1'"
  13083. style="margin-right: 5px; min-width: 70px"
  13084. >
  13085. (单选题)
  13086. </div>
  13087. <div
  13088. v-if="testJson.testJson[index1].type == '2'"
  13089. style="margin-right: 5px; min-width: 70px"
  13090. >
  13091. (多选题)
  13092. </div>
  13093. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  13094. </div>
  13095. <img
  13096. v-if="testJson.testJson[index1].img"
  13097. :src="testJson.testJson[index1].img"
  13098. style="height: 300px; margin-top: 10px; max-width: 100%"
  13099. />
  13100. </div>
  13101. <div
  13102. class="timuImgBox"
  13103. v-if="
  13104. testJson.testJson[index1].timuList &&
  13105. testJson.testJson[index1].timuList.length
  13106. "
  13107. >
  13108. <div
  13109. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  13110. :key="tIndex"
  13111. class="timuImg"
  13112. @click.stop="previewImg(timg.src)"
  13113. >
  13114. <img :src="timg.src" alt="" />
  13115. </div>
  13116. </div>
  13117. <div class="a_add_body">
  13118. <div class="a_add_input">
  13119. <el-radio-group
  13120. v-model="radio[index1]"
  13121. v-if="testJson.testJson[index1].type == '1'"
  13122. >
  13123. <div class="radioBox">
  13124. <el-radio
  13125. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13126. .checkList"
  13127. :key="checkIndex"
  13128. :label="checkIndex"
  13129. :disabled="isAnswer"
  13130. class="redioStyle"
  13131. >
  13132. <div
  13133. style="margin-right: 10px"
  13134. v-if="item2 && item2.imgType && item2.imgType == 1"
  13135. >
  13136. <div class="inImg" @click.stop="previewImg(item2.src)">
  13137. <img :src="item2.src" alt="" />
  13138. </div>
  13139. </div>
  13140. <span v-else v-html="item2"></span>
  13141. </el-radio>
  13142. </div>
  13143. </el-radio-group>
  13144. <el-checkbox-group
  13145. v-model="radio[index1]"
  13146. v-if="testJson.testJson[index1].type == '2'"
  13147. >
  13148. <div class="radioBox">
  13149. <el-checkbox
  13150. v-for="(item2, checkIndex) in testJson.testJson[index1]
  13151. .checkList"
  13152. :key="checkIndex"
  13153. :label="checkIndex"
  13154. :disabled="isAnswer"
  13155. class="redioStyle"
  13156. >
  13157. <div
  13158. style="margin-right: 10px"
  13159. v-if="item2 && item2.imgType && item2.imgType == 1"
  13160. >
  13161. <div class="inImg" @click.stop="previewImg(item2.src)">
  13162. <img :src="item2.src" alt="" />
  13163. </div>
  13164. </div>
  13165. <span v-else v-html="item2"></span>
  13166. </el-checkbox>
  13167. </div>
  13168. </el-checkbox-group>
  13169. </div>
  13170. </div>
  13171. </div>
  13172. </div>
  13173. </div>
  13174. <span slot="footer" class="dialog-footer">
  13175. <el-button
  13176. @click="dialogVisibleChoiceTeacher = false"
  13177. v-show="noteName == ''"
  13178. >取 消</el-button
  13179. >
  13180. <el-button
  13181. type="primary"
  13182. @click="addStudentTestTeacher"
  13183. v-show="noteName == ''"
  13184. >确 定</el-button
  13185. >
  13186. </span>
  13187. </el-dialog>
  13188. <el-dialog
  13189. title="查看富文本"
  13190. :visible.sync="dialogVisible1"
  13191. :append-to-body="true"
  13192. width="500px"
  13193. :before-close="handleClose"
  13194. class="dialog_diy textCss"
  13195. >
  13196. <el-form style="font-size: 20px">
  13197. <el-form-item label="文本标题" class="textTitle">
  13198. <div style="font-size: 20px">{{ text.name }}</div>
  13199. </el-form-item>
  13200. <div>富文本内容</div>
  13201. <div
  13202. v-html="text.url"
  13203. style="font-size: 18px; padding: 40px 0 0 0"
  13204. ></div>
  13205. </el-form>
  13206. <span slot="footer" class="dialog-footer">
  13207. <el-button type="primary" @click="dialogVisible1 = false"
  13208. >确定</el-button
  13209. >
  13210. </span>
  13211. </el-dialog>
  13212. <el-dialog
  13213. title="文件预览"
  13214. :visible.sync="dialogVisible3"
  13215. width="50%"
  13216. :before-close="handleClose"
  13217. class="dialog_diy"
  13218. :class="{ fullStyle: full }"
  13219. >
  13220. <div slot="title" class="header-title">
  13221. <div style="color: #fff">文件预览</div>
  13222. <div style="position: absolute; top: 19px; right: 50px">
  13223. <img
  13224. src="../../assets/full.png"
  13225. style="height: 16px; cursor: pointer"
  13226. alt=""
  13227. @click="fullTools"
  13228. />
  13229. </div>
  13230. </div>
  13231. <pdf
  13232. v-if="showPDF"
  13233. :pdfUrl="pptImgUrl"
  13234. style="width: 100%; height: 520px; overflow: auto"
  13235. :class="{ fullStyle: full }"
  13236. ></pdf>
  13237. <iframe
  13238. v-else
  13239. :src="pptImgUrl"
  13240. frameborder="0"
  13241. width="100%"
  13242. height="600"
  13243. :class="{ fullStyle: full }"
  13244. ></iframe>
  13245. </el-dialog>
  13246. <el-dialog
  13247. title="文件预览"
  13248. :visible.sync="dialogVisible6"
  13249. width="50%"
  13250. :before-close="handleClose"
  13251. class="dialog_diy"
  13252. >
  13253. <iframe
  13254. :src="pptImgUrl1"
  13255. frameborder="0"
  13256. width="100%"
  13257. height="600"
  13258. ></iframe>
  13259. </el-dialog>
  13260. <el-dialog
  13261. title="提示"
  13262. :visible.sync="dialogVisible4"
  13263. :append-to-body="true"
  13264. width="800px"
  13265. :before-close="handleClose"
  13266. class="dialog_diy notice"
  13267. >
  13268. <div>此功能暂未开放!</div>
  13269. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13270. </el-dialog>
  13271. <el-dialog
  13272. title="问答"
  13273. :visible.sync="answerDialogVisible"
  13274. :append-to-body="true"
  13275. width="800px"
  13276. :before-close="handleClose"
  13277. class="dialog_diy"
  13278. >
  13279. <div>
  13280. <div
  13281. style="
  13282. display: flex;
  13283. flex-wrap: nowrap;
  13284. flex-direction: column;
  13285. position: relative;
  13286. "
  13287. >
  13288. <div class="queTop" style="padding: 20px 0 20px 0">
  13289. <div class="question">
  13290. <img src="../../assets/icon/question.png" alt />
  13291. </div>
  13292. <div class="queTitle">
  13293. <div style="width: 90px; min-width: 90px">提问:</div>
  13294. <div>{{ answerQ }}</div>
  13295. </div>
  13296. </div>
  13297. <div class="ediBottom">
  13298. <textarea
  13299. rows="6"
  13300. class="binfo_input"
  13301. cols
  13302. style="width: 95%; height: 120px"
  13303. v-model="questionAnswer"
  13304. ></textarea>
  13305. </div>
  13306. </div>
  13307. </div>
  13308. <div slot="footer">
  13309. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13310. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13311. </div>
  13312. </el-dialog>
  13313. <el-dialog
  13314. title="问答"
  13315. :visible.sync="answerDialogVisibleTeacher"
  13316. :append-to-body="true"
  13317. width="800px"
  13318. :before-close="handleClose"
  13319. class="dialog_diy"
  13320. >
  13321. <div>
  13322. <div class="w_name">
  13323. 学生姓名:<span>{{ sStudent.student }}</span>
  13324. </div>
  13325. <div
  13326. style="
  13327. display: flex;
  13328. flex-wrap: nowrap;
  13329. flex-direction: column;
  13330. position: relative;
  13331. "
  13332. >
  13333. <div class="queTop" style="padding: 20px 0 20px 0">
  13334. <div class="question">
  13335. <img src="../../assets/icon/question.png" alt />
  13336. </div>
  13337. <div class="queTitle">
  13338. <div style="width: 90px; min-width: 90px">提问:</div>
  13339. <div>{{ answerQ }}</div>
  13340. </div>
  13341. </div>
  13342. <div class="ediBottom">
  13343. <textarea
  13344. rows="6"
  13345. class="binfo_input"
  13346. cols
  13347. style="width: 95%; height: 120px"
  13348. v-model="questionAnswer"
  13349. ></textarea>
  13350. </div>
  13351. </div>
  13352. </div>
  13353. <div slot="footer">
  13354. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13355. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13356. </div>
  13357. </el-dialog>
  13358. <el-dialog
  13359. title="倒计时"
  13360. :visible.sync="timeDialogVisible"
  13361. :append-to-body="true"
  13362. width="800px"
  13363. :before-close="handleClose"
  13364. class="dialog_diy"
  13365. >
  13366. <div>
  13367. <div style="margin-bottom: 20px; color: #999">
  13368. 提示:点击“+”或“-”修改倒计时时长。
  13369. </div>
  13370. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13371. </div>
  13372. <div slot="footer">
  13373. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13374. </div>
  13375. </el-dialog>
  13376. <el-dialog
  13377. title="权限设置"
  13378. :visible.sync="juriVisible"
  13379. :append-to-body="true"
  13380. width="400px"
  13381. :before-close="handleClose"
  13382. class="dialog_diy"
  13383. >
  13384. <div>
  13385. <div class="open_box">
  13386. <div class="switch_box">
  13387. <span>允许学生查看所有作业</span>
  13388. <el-switch
  13389. v-model="sIsOpen"
  13390. active-text=""
  13391. class="switchCss"
  13392. @change="updateSLook"
  13393. ></el-switch>
  13394. </div>
  13395. <div
  13396. class="switch_box"
  13397. v-if="
  13398. (courseDetail.userid == userid ||
  13399. (courseDetail.course_teacher &&
  13400. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13401. "
  13402. >
  13403. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13404. <span>禁止学生查看阶段</span>
  13405. <el-switch
  13406. v-model="IsLookOpen"
  13407. active-text=""
  13408. class="switchCss"
  13409. @change="updateLookOpen"
  13410. ></el-switch>
  13411. </div>
  13412. <div class="switch_box" v-if="courseDetail.userid == userid">
  13413. <span>开启跟随模式</span>
  13414. <el-switch
  13415. v-model="IsFollow"
  13416. active-text=""
  13417. class="switchCss"
  13418. @change="updateFollow"
  13419. ></el-switch>
  13420. </div>
  13421. <div class="switch_box" v-if="courseDetail.userid == userid">
  13422. <span>允许学生查看内容资料</span>
  13423. <el-switch
  13424. v-model="IsStulook"
  13425. active-text=""
  13426. class="switchCss"
  13427. @change="updateIsStulook"
  13428. ></el-switch>
  13429. </div>
  13430. </div>
  13431. </div>
  13432. <div slot="footer">
  13433. <el-button
  13434. style="background: #409efe; color: #fff"
  13435. @click="juriVisible = false"
  13436. >关 闭</el-button
  13437. >
  13438. </div>
  13439. </el-dialog>
  13440. <el-dialog
  13441. title="查看视频"
  13442. :visible.sync="videoVisible"
  13443. :append-to-body="true"
  13444. width="1000px"
  13445. :before-close="handleClose"
  13446. class="dialog_diy1"
  13447. >
  13448. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13449. <video-player
  13450. class="video-player vjs-custom-skin"
  13451. :playsinline="true"
  13452. :options="videoDetail"
  13453. @play="onPlayerPlay($event)"
  13454. style="width: 100%; height: 100%"
  13455. ></video-player>
  13456. </div>
  13457. <div slot="footer">
  13458. <el-button
  13459. style="background: #409efe; color: #fff"
  13460. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13461. >
  13462. 关 闭</el-button
  13463. >
  13464. </div>
  13465. </el-dialog>
  13466. <el-dialog
  13467. title="查看详情"
  13468. :visible.sync="commentDialogVisible"
  13469. :append-to-body="true"
  13470. width="800px"
  13471. :before-close="handleClose"
  13472. class="dialog_diy"
  13473. >
  13474. <div class="commentTop">
  13475. <div class="studentDetail">
  13476. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13477. <div class="nameAndTime">
  13478. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13479. <div>{{ commentDetail.time }}</div>
  13480. </div>
  13481. <div
  13482. class="returnBtn"
  13483. style="margin-left: auto; width: 80px"
  13484. v-if="
  13485. commentDetail.works &&
  13486. commentDetail.type == 0 &&
  13487. (tType == 1 || tType == 4)
  13488. "
  13489. @click="
  13490. showPicturePaint(
  13491. commentDetail.img ? commentDetail.img : commentDetail.works
  13492. )
  13493. "
  13494. >
  13495. 教师批注
  13496. </div>
  13497. </div>
  13498. <div
  13499. class="worksAnswer"
  13500. v-if="commentDetail.works && commentDetail.type == 2"
  13501. >
  13502. {{ JSON.parse(commentDetail.works)[0].answer }}
  13503. </div>
  13504. <div
  13505. class="worksAnswer"
  13506. v-if="commentDetail.works && commentDetail.type == 1"
  13507. >
  13508. <img
  13509. src="../../assets/teacherWork.png"
  13510. v-if="commentDetail.ateacher"
  13511. class="w_teachert"
  13512. />
  13513. <pdf
  13514. v-if="showPDF"
  13515. :pdfUrl="pptImgUrl"
  13516. style="width: 100%; height: 520px; overflow: auto"
  13517. :class="{ fullStyle: full }"
  13518. ></pdf>
  13519. <iframe
  13520. v-else
  13521. :src="pptImgUrl"
  13522. frameborder="0"
  13523. width="100%"
  13524. height="600"
  13525. :class="{ fullStyle: full }"
  13526. ></iframe>
  13527. </div>
  13528. <div
  13529. class="worksAnswer"
  13530. v-if="commentDetail.works && commentDetail.type == 0"
  13531. >
  13532. <img
  13533. src="../../assets/teacherWork.png"
  13534. v-if="commentDetail.ateacher"
  13535. class="w_teachert"
  13536. style="right: 105px"
  13537. />
  13538. <img
  13539. :src="commentDetail.works"
  13540. alt=""
  13541. @click="previewImg(commentDetail.works)"
  13542. />
  13543. </div>
  13544. <div
  13545. class="worksAnswer"
  13546. v-if="commentDetail.works && commentDetail.type == 3"
  13547. >
  13548. <img
  13549. src="../../assets/teacherWork.png"
  13550. v-if="commentDetail.ateacher"
  13551. class="w_teachert"
  13552. />
  13553. <video-player
  13554. class="video-player vjs-custom-skin"
  13555. :playsinline="true"
  13556. :options="videoDetail"
  13557. @play="onPlayerPlay($event)"
  13558. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13559. ></video-player>
  13560. </div>
  13561. <div
  13562. class="worksAnswer"
  13563. v-if="commentDetail.works && commentDetail.type == 10"
  13564. >
  13565. <div class="cont" v-html="commentDetail.works.text"></div>
  13566. </div>
  13567. <div v-if="commentDetail.works && commentDetail.type == 12">
  13568. <!-- class="worksAnswer codeFileBox" -->
  13569. <!-- @click="downloadFile(commentDetail.works)" -->
  13570. <!-- <img src="../../assets/icon/codeFile.png" />
  13571. <div>点击下载文件</div> -->
  13572. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  13573. </div>
  13574. <div
  13575. class="worksAnswer codeFileBox"
  13576. v-if="commentDetail.works && commentDetail.type == 15"
  13577. @click="
  13578. openCocoPi(
  13579. 57,
  13580. commentIndexJson.toolIndex,
  13581. commentDetail.userid,
  13582. commentDetail.sName
  13583. )
  13584. "
  13585. >
  13586. <img src="../../assets/icon/codeFile.png" />
  13587. <div>点击打开CocoPi</div>
  13588. </div>
  13589. <div
  13590. class="worksAnswer"
  13591. v-if="commentDetail.works && commentDetail.type == 13"
  13592. >
  13593. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13594. </div>
  13595. <div
  13596. class="worksAnswer"
  13597. v-if="commentDetail.works && commentDetail.type == 4"
  13598. >
  13599. <div class="evalCss">
  13600. <div class="nav">请选择星星进行评分</div>
  13601. <div class="middleBox" v-if="eScore.eStar">
  13602. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13603. <div class="nameAndrate">
  13604. <div>{{ e.value }}</div>
  13605. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13606. </div>
  13607. <div v-if="e.detail">{{ e.detail }}</div>
  13608. </div>
  13609. <div class="bz">
  13610. <textarea
  13611. disabled
  13612. rows="4"
  13613. class="pj"
  13614. style="
  13615. padding: 10px 5px;
  13616. width: 70%;
  13617. background: #f7f6f9;
  13618. font-size: 14px;
  13619. text-indent: 10px;
  13620. color: #000;
  13621. "
  13622. cols
  13623. v-model="eScore.eBzText"
  13624. placeholder="请输入评价内容..."
  13625. ></textarea>
  13626. </div>
  13627. </div>
  13628. </div>
  13629. </div>
  13630. <div class="comment">
  13631. <div class="commentList">
  13632. <div class="commentImg">
  13633. <img
  13634. @click="
  13635. isLikes(
  13636. commentDetail.wid,
  13637. userid,
  13638. 1,
  13639. null,
  13640. commentDetail.isLikes,
  13641. commentDetail.sName
  13642. )
  13643. "
  13644. :src="commentDetail.isLikes == true ? likes : noLikes"
  13645. alt=""
  13646. />
  13647. </div>
  13648. <div>{{ commentDetail.likesCount }}</div>
  13649. </div>
  13650. <div class="commentList">
  13651. <div class="commentImg">
  13652. <img src="../../assets/icon/comment/comment.png" alt="" />
  13653. </div>
  13654. <div>{{ commentDetail.commentCount }}</div>
  13655. </div>
  13656. </div>
  13657. <div class="drawPBox" v-if="commentDetail.img">
  13658. <span>教师批注</span>
  13659. <img
  13660. :src="commentDetail.img"
  13661. alt=""
  13662. @click="previewImg(commentDetail.img)"
  13663. />
  13664. <span
  13665. class="deleteImg"
  13666. v-if="tType == 1 || tType == 4"
  13667. @click.stop="deletePicturePaint(commentDetail.wid)"
  13668. style="
  13669. font-size: 14px;
  13670. width: auto !important;
  13671. color: #b4b4b4;
  13672. top: unset;
  13673. bottom: 0;
  13674. border: none;
  13675. padding: 0;
  13676. height: auto !important;
  13677. margin: 0;
  13678. "
  13679. >删除</span
  13680. >
  13681. </div>
  13682. </div>
  13683. <div class="commentBox">
  13684. <div class="pl">评论:</div>
  13685. <div style="max-height: 200px; overflow: auto">
  13686. <div
  13687. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13688. style="padding: 10px 0 0 0"
  13689. >
  13690. <div
  13691. class="studentDetail"
  13692. style="padding-top: 10px"
  13693. v-for="(co, coIndex) in commentDetail.commentJson"
  13694. :key="coIndex"
  13695. >
  13696. <div class="tx" style="min-width: 50px">
  13697. <img src="../../assets/avatar.png" alt="" />
  13698. </div>
  13699. <div class="plPerson">
  13700. <div class="plName">
  13701. <div>{{ co.commentPeople }}</div>
  13702. <div style="margin-left: 5px">
  13703. {{ co.commentTime }}
  13704. </div>
  13705. <div
  13706. class="deleteComment"
  13707. v-if="userid == co.userid"
  13708. @click="deleteComment(co.wid)"
  13709. >
  13710. 删除
  13711. </div>
  13712. </div>
  13713. <div class="plContent">{{ co.commentText }}</div>
  13714. </div>
  13715. </div>
  13716. </div>
  13717. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13718. </div>
  13719. </div>
  13720. <div style="margin-top: 10px">
  13721. <div class="displayBox">
  13722. <div
  13723. style="
  13724. color: #556db4;
  13725. font-size: 14px;
  13726. font-weight: bold;
  13727. padding-bottom: 10px;
  13728. "
  13729. >
  13730. 评价
  13731. </div>
  13732. <div class="easy_comment" v-if="false">
  13733. <div
  13734. v-for="(p, pIndex) in PlTextList"
  13735. :key="pIndex"
  13736. @click="fastText(p, 1)"
  13737. >
  13738. {{ p }}
  13739. </div>
  13740. </div>
  13741. </div>
  13742. <div>
  13743. <textarea
  13744. rows="3"
  13745. class="pj"
  13746. style="padding: 10px 5px"
  13747. cols
  13748. v-model="commentText"
  13749. placeholder="请输入评论"
  13750. ></textarea>
  13751. </div>
  13752. </div>
  13753. <div slot="footer">
  13754. <el-button
  13755. @click="
  13756. (commentDialogVisible = false),
  13757. (commentIndexJson = {}),
  13758. videoDetail.sources && videoDetail.sources[0]
  13759. ? (videoDetail.sources[0].src = '')
  13760. : ''
  13761. "
  13762. >取 消</el-button
  13763. >
  13764. <el-button
  13765. type="primary"
  13766. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13767. >确 定</el-button
  13768. >
  13769. </div>
  13770. </el-dialog>
  13771. <el-dialog
  13772. :visible.sync="fullDialogVisible"
  13773. :append-to-body="true"
  13774. width="100%"
  13775. :before-close="handleClose"
  13776. :show-close="false"
  13777. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13778. >
  13779. <div slot="title" class="header-title">
  13780. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13781. <div v-else style="color: #fff">查看文档</div>
  13782. <div
  13783. @click="
  13784. () => {
  13785. (fullDialogVisible = false),
  13786. changeSplitScreenBehavior({ code: 99 });
  13787. }
  13788. "
  13789. style="
  13790. cursor: pointer;
  13791. position: absolute;
  13792. top: 20px;
  13793. right: 20px;
  13794. color: #fff;
  13795. "
  13796. >
  13797. 退出全屏
  13798. </div>
  13799. </div>
  13800. <div style="height: 100%;position: relative;">
  13801. <el-button
  13802. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13803. size="medium"
  13804. type="primary"
  13805. @click="
  13806. () => {
  13807. (fullDialogVisible = false),
  13808. changeSplitScreenBehavior({ code: 99 });
  13809. }
  13810. "
  13811. style="
  13812. cursor: pointer;
  13813. position: absolute;
  13814. top: 10px;
  13815. right: 20px;
  13816. color: #fff;
  13817. "
  13818. >
  13819. 退出全屏
  13820. </el-button>
  13821. <div
  13822. class="wheel"
  13823. v-if="fulltype == 1"
  13824. style="
  13825. box-shadow: 0 0 6px 1px #f2f2f2;
  13826. height:100%;
  13827. width: 100%;
  13828. background: #f1f1f1;
  13829. "
  13830. >
  13831. <div class="title" style="width: 100%; box-sizing: border-box">
  13832. 查看文档
  13833. </div>
  13834. <el-form class="textBox" style="height: 90%">
  13835. <el-form-item class="textTitle">
  13836. <div style="font-size: 22px">
  13837. {{ fullUrl.name }}
  13838. </div>
  13839. </el-form-item>
  13840. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13841. <div
  13842. v-html="fullUrl.url"
  13843. class="textContent"
  13844. style="height: auto"
  13845. ></div>
  13846. </el-form>
  13847. </div>
  13848. <div
  13849. class="wheel"
  13850. v-else-if="
  13851. (fulltype == 2 || fulltype == 4) &&
  13852. fullUrl.indexOf(
  13853. 'https://view.officeapps.live.com/op/view.aspx?src='
  13854. ) != -1
  13855. "
  13856. style="width: 100%;height:100%; margin: 0 auto"
  13857. >
  13858. <iframe
  13859. style="width: 100%; height: 100%; border: none"
  13860. :src="fullUrl"
  13861. ></iframe>
  13862. </div>
  13863. <iframe
  13864. style="width: 100%; height: 100%; border: none"
  13865. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13866. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  13867. :src="fullUrl"
  13868. ></iframe>
  13869. <iframe
  13870. style="width: 100%; height: 100%; border: none"
  13871. security="restricted"
  13872. v-else-if="(fulltype == 2 || fulltype == 4)"
  13873. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13874. :src="fullUrl"
  13875. ></iframe>
  13876. <pdf
  13877. v-else-if="fulltype == 3"
  13878. :pdfUrl="fullUrl"
  13879. style="width: 100%; height: 100%; overflow: auto"
  13880. ></pdf>
  13881. <iframe
  13882. style="width: 100%; height: 100%; border: none"
  13883. security="restricted"
  13884. v-if="(fulltype == 16)"
  13885. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13886. :src="fullUrl"
  13887. ></iframe>
  13888. </div>
  13889. <!-- <div slot="footer">
  13890. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13891. </div> -->
  13892. </el-dialog>
  13893. <el-dialog
  13894. title="个人评价"
  13895. :visible.sync="studentEvalDialogVisible"
  13896. :append-to-body="true"
  13897. width="800px"
  13898. :before-close="handleClose"
  13899. class="dialog_diy"
  13900. >
  13901. <div class="evalCss">
  13902. <div class="nav">请选择星星进行评分</div>
  13903. <div class="middleBox" v-if="eScore.eStar">
  13904. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13905. <div class="nameAndrate">
  13906. <div>{{ e.value }}</div>
  13907. <el-rate
  13908. v-model="eScore.eStar[eIndex]"
  13909. :disabled="isStar"
  13910. ></el-rate>
  13911. </div>
  13912. <div v-if="e.detail">{{ e.detail }}</div>
  13913. </div>
  13914. <div class="easy_comment" v-if="false">
  13915. <div
  13916. v-for="(p, pIndex) in PlTextList"
  13917. :key="pIndex"
  13918. @click="fastText(p, 2)"
  13919. >
  13920. {{ p }}
  13921. </div>
  13922. </div>
  13923. <div class="bz">
  13924. <textarea
  13925. :disabled="isStar"
  13926. rows="4"
  13927. class="pj"
  13928. style="
  13929. padding: 10px 5px;
  13930. width: 70%;
  13931. background: #f7f6f9;
  13932. font-size: 14px;
  13933. text-indent: 10px;
  13934. "
  13935. cols
  13936. v-model="eScore.eBzText"
  13937. placeholder="请输入评价内容..."
  13938. ></textarea>
  13939. </div>
  13940. </div>
  13941. </div>
  13942. <div slot="footer">
  13943. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13944. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13945. >确 定</el-button
  13946. >
  13947. </div>
  13948. </el-dialog>
  13949. <el-dialog
  13950. title="个人评价"
  13951. :visible.sync="studentEvalDialogVisibleTeacher"
  13952. :append-to-body="true"
  13953. width="800px"
  13954. :before-close="handleClose"
  13955. class="dialog_diy"
  13956. >
  13957. <div class="w_name">
  13958. 学生姓名:<span>{{ sStudent.student }}</span>
  13959. </div>
  13960. <div class="evalCss">
  13961. <div class="nav">请选择星星进行评分</div>
  13962. <div class="middleBox" v-if="eScore.eStar">
  13963. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13964. <div class="nameAndrate">
  13965. <div>{{ e.value }}</div>
  13966. <el-rate
  13967. v-model="eScore.eStar[eIndex]"
  13968. :disabled="isStar"
  13969. ></el-rate>
  13970. </div>
  13971. <div v-if="e.detail">{{ e.detail }}</div>
  13972. </div>
  13973. <div class="easy_comment" v-if="false">
  13974. <div
  13975. v-for="(p, pIndex) in PlTextList"
  13976. :key="pIndex"
  13977. @click="fastText(p, 2)"
  13978. >
  13979. {{ p }}
  13980. </div>
  13981. </div>
  13982. <div class="bz">
  13983. <textarea
  13984. :disabled="isStar"
  13985. rows="4"
  13986. class="pj"
  13987. style="
  13988. padding: 10px 5px;
  13989. width: 70%;
  13990. background: #f7f6f9;
  13991. font-size: 14px;
  13992. text-indent: 10px;
  13993. "
  13994. cols
  13995. v-model="eScore.eBzText"
  13996. placeholder="请输入评价内容..."
  13997. ></textarea>
  13998. </div>
  13999. </div>
  14000. </div>
  14001. <div slot="footer">
  14002. <el-button @click="studentEvalDialogVisibleTeacher = false"
  14003. >取 消</el-button
  14004. >
  14005. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  14006. >确 定</el-button
  14007. >
  14008. </div>
  14009. </el-dialog>
  14010. <el-dialog
  14011. title="选择匹配"
  14012. :visible.sync="dialogVisibleSelect"
  14013. :append-to-body="true"
  14014. width="90%"
  14015. :before-close="handleClose"
  14016. class="dialog_diy dialog_diy3"
  14017. >
  14018. <div v-if="selectJson">
  14019. <div class="select_box2">
  14020. <div class="select_box2_title">
  14021. <div>选择匹配</div>
  14022. <div>请选择对应的答案进行答题!</div>
  14023. </div>
  14024. <div class="select_box2_box">
  14025. <div class="select_box2_img">
  14026. <img
  14027. :src="selectJson.url"
  14028. @click="previewImg(selectJson.url)"
  14029. alt=""
  14030. />
  14031. </div>
  14032. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  14033. <div style="padding-top: 15px">
  14034. <div class="select_answer_title" v-if="isSelect">
  14035. {{ selectAnswer.stu }}
  14036. </div>
  14037. <div class="select_answer_title" v-else>
  14038. 根据题目选择对应答案
  14039. </div>
  14040. <div
  14041. class="select_box2_answer_box"
  14042. v-for="(item2, checkIndex) in selectJson.select"
  14043. :key="checkIndex"
  14044. >
  14045. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  14046. <el-select
  14047. :disabled="isSelect"
  14048. v-model="selectAnswer.answer[checkIndex]"
  14049. placeholder="请选择正确答案"
  14050. >
  14051. <el-option
  14052. v-for="(e, eIndex) in selectJson.select"
  14053. :key="eIndex"
  14054. :label="e"
  14055. :value="eIndex"
  14056. >
  14057. </el-option>
  14058. </el-select>
  14059. </div>
  14060. </div>
  14061. <div
  14062. class="rightAnswerCss"
  14063. v-if="isSelect && (tType == 1 || tType == 4)"
  14064. >
  14065. <div
  14066. v-for="(a, aIndex) in selectJson.answer"
  14067. :key="aIndex"
  14068. class="rightAnswer"
  14069. >
  14070. <div
  14071. v-if="selectAnswer.answer[aIndex] === a"
  14072. style="color: #767de1"
  14073. >
  14074. 回答正确
  14075. </div>
  14076. <div v-else>回答错误</div>
  14077. <div
  14078. style="margin-left: 10px"
  14079. v-if="selectAnswer.answer[aIndex] !== a"
  14080. >
  14081. 正确答案:
  14082. </div>
  14083. <div
  14084. :class="
  14085. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14086. "
  14087. >
  14088. {{ selectJson.select[a] }}
  14089. </div>
  14090. </div>
  14091. </div>
  14092. </div>
  14093. <div class="upAnswerCss">
  14094. <el-button
  14095. type="primary"
  14096. @click="addSelectAnswer"
  14097. v-if="!isSelect"
  14098. >提交答案</el-button
  14099. >
  14100. </div>
  14101. </div>
  14102. </div>
  14103. </div>
  14104. </el-dialog>
  14105. <el-dialog
  14106. title="选择匹配"
  14107. :visible.sync="dialogVisibleSelectTeacher"
  14108. :append-to-body="true"
  14109. width="90%"
  14110. :before-close="handleClose"
  14111. class="dialog_diy dialog_diy3"
  14112. >
  14113. <div v-if="selectJson">
  14114. <div class="w_name">
  14115. 学生姓名:<span>{{ sStudent.student }}</span>
  14116. </div>
  14117. <div class="select_box2">
  14118. <div class="select_box2_title">
  14119. <div>选择匹配</div>
  14120. <div>请选择对应的答案进行答题!</div>
  14121. </div>
  14122. <div class="select_box2_box">
  14123. <div class="select_box2_img">
  14124. <img
  14125. :src="selectJson.url"
  14126. @click="previewImg(selectJson.url)"
  14127. alt=""
  14128. />
  14129. </div>
  14130. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  14131. <div style="padding-top: 15px">
  14132. <div class="select_answer_title" v-if="isSelect">
  14133. {{ selectAnswer.stu }}
  14134. </div>
  14135. <div class="select_answer_title" v-else>
  14136. 根据题目选择对应答案
  14137. </div>
  14138. <div
  14139. class="select_box2_answer_box"
  14140. v-for="(item2, checkIndex) in selectJson.select"
  14141. :key="checkIndex"
  14142. >
  14143. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  14144. <el-select
  14145. :disabled="isSelect"
  14146. v-model="selectAnswer.answer[checkIndex]"
  14147. placeholder="请选择正确答案"
  14148. >
  14149. <el-option
  14150. v-for="(e, eIndex) in selectJson.select"
  14151. :key="eIndex"
  14152. :label="e"
  14153. :value="eIndex"
  14154. >
  14155. </el-option>
  14156. </el-select>
  14157. </div>
  14158. </div>
  14159. <div
  14160. class="rightAnswerCss"
  14161. v-if="isSelect && (tType == 1 || tType == 4)"
  14162. >
  14163. <div
  14164. v-for="(a, aIndex) in selectJson.answer"
  14165. :key="aIndex"
  14166. class="rightAnswer"
  14167. >
  14168. <div
  14169. v-if="selectAnswer.answer[aIndex] === a"
  14170. style="color: #767de1"
  14171. >
  14172. 回答正确
  14173. </div>
  14174. <div v-else>回答错误</div>
  14175. <div
  14176. style="margin-left: 10px"
  14177. v-if="selectAnswer.answer[aIndex] !== a"
  14178. >
  14179. 正确答案:
  14180. </div>
  14181. <div
  14182. :class="
  14183. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14184. "
  14185. >
  14186. {{ selectJson.select[a] }}
  14187. </div>
  14188. </div>
  14189. </div>
  14190. </div>
  14191. <div class="upAnswerCss">
  14192. <el-button
  14193. type="primary"
  14194. @click="addSelectAnswerTeacher"
  14195. v-if="!isSelect"
  14196. >提交答案</el-button
  14197. >
  14198. </div>
  14199. </div>
  14200. </div>
  14201. </div>
  14202. </el-dialog>
  14203. <el-dialog
  14204. title="教师评分"
  14205. :visible.sync="dialogVisibleScore"
  14206. :append-to-body="true"
  14207. width="800px"
  14208. :before-close="handleClose"
  14209. class="dialog_diy"
  14210. >
  14211. <div>
  14212. <div class="studentDetail">
  14213. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14214. <div class="nameAndTime">
  14215. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14216. <div>{{ commentDetail.time }}</div>
  14217. </div>
  14218. </div>
  14219. <div
  14220. class="worksAnswer"
  14221. v-if="commentDetail.works && commentDetail.type == 2"
  14222. >
  14223. {{ JSON.parse(commentDetail.works)[0].answer }}
  14224. </div>
  14225. <div
  14226. class="worksAnswer"
  14227. v-if="commentDetail.works && commentDetail.type == 1"
  14228. >
  14229. <pdf
  14230. v-if="showPDF"
  14231. :pdfUrl="pptImgUrl"
  14232. style="width: 100%; height: 520px; overflow: auto"
  14233. :class="{ fullStyle: full }"
  14234. ></pdf>
  14235. <iframe
  14236. v-else
  14237. :src="pptImgUrl"
  14238. frameborder="0"
  14239. width="100%"
  14240. height="600"
  14241. :class="{ fullStyle: full }"
  14242. ></iframe>
  14243. </div>
  14244. <div
  14245. class="worksAnswer"
  14246. v-if="commentDetail.works && commentDetail.type == 0"
  14247. >
  14248. <img
  14249. :src="commentDetail.works"
  14250. alt=""
  14251. @click="previewImg(commentDetail.works)"
  14252. />
  14253. </div>
  14254. <div
  14255. class="worksAnswer"
  14256. v-if="commentDetail.works && commentDetail.type == 3"
  14257. >
  14258. <video-player
  14259. class="video-player vjs-custom-skin"
  14260. :playsinline="true"
  14261. :options="videoDetail"
  14262. @play="onPlayerPlay($event)"
  14263. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14264. ></video-player>
  14265. </div>
  14266. <div
  14267. class="worksAnswer codeFileBox"
  14268. v-if="commentDetail.works && commentDetail.type == 12"
  14269. @click="downloadFile(commentDetail.works,w.userid)"
  14270. >
  14271. <img src="../../assets/icon/codeFile.png" />
  14272. <div>点击下载文件</div>
  14273. </div>
  14274. <div
  14275. class="worksAnswer codeFileBox"
  14276. v-if="commentDetail.works && commentDetail.type == 15"
  14277. @click="
  14278. openCocoPi(
  14279. 57,
  14280. commentIndexJson.toolIndex,
  14281. commentDetail.userid,
  14282. commentDetail.sName
  14283. )
  14284. "
  14285. >
  14286. <img src="../../assets/icon/codeFile.png" />
  14287. <div>点击打开CocoPi</div>
  14288. </div>
  14289. <div
  14290. class="worksAnswer"
  14291. v-if="commentDetail.works && commentDetail.type == 13"
  14292. >
  14293. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14294. </div>
  14295. <div class="scoreBox">
  14296. <span class="t">请输入分数</span>
  14297. <el-input-number
  14298. :disabled="courseDetail.userid != userid"
  14299. v-model="wScore"
  14300. :controls="false"
  14301. :min="0"
  14302. :max="100"
  14303. ></el-input-number>
  14304. </div>
  14305. <div class="scoreDetailBox">
  14306. <span class="t">评分评论</span>
  14307. <el-input
  14308. type="textarea"
  14309. :rows="5"
  14310. :disabled="courseDetail.userid != userid"
  14311. resize="none"
  14312. v-model="scoreDetail"
  14313. placeholder="请输入对学生的评价"
  14314. >
  14315. </el-input>
  14316. </div>
  14317. </div>
  14318. <span slot="footer" class="dialog-footer">
  14319. <el-button
  14320. @click="
  14321. (dialogVisibleScore = false),
  14322. (commentIndexJson = {}),
  14323. videoDetail.sources && videoDetail.sources[0]
  14324. ? (videoDetail.sources[0].src = '')
  14325. : ''
  14326. "
  14327. >取 消</el-button
  14328. >
  14329. <el-button
  14330. type="primary"
  14331. v-if="courseDetail.userid == userid"
  14332. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  14333. >确 定
  14334. </el-button>
  14335. </span>
  14336. </el-dialog>
  14337. <el-dialog
  14338. title="排序"
  14339. :visible.sync="dialogVisibleSentence"
  14340. :append-to-body="true"
  14341. width="1000px"
  14342. :before-close="handleClose"
  14343. class="dialog_diy dialog_diy3"
  14344. >
  14345. <div>
  14346. <div class="sentenBox">
  14347. <div
  14348. v-for="(st, stIndex) in sentenceList"
  14349. :key="stIndex"
  14350. style="padding-bottom: 20px"
  14351. >
  14352. <div
  14353. style="padding: 15px 0 10px 20px"
  14354. class="sentenceTitle"
  14355. :index="stIndex + 1"
  14356. >
  14357. 题目{{ stIndex + 1 }}:请选择正确顺序
  14358. </div>
  14359. <div class="cardList" v-if="st.chooseSenList">
  14360. <div class="cardBox">
  14361. <div
  14362. v-for="(r, rIndex) in st.chooseSenList"
  14363. :key="rIndex"
  14364. @click="returnCard(r, stIndex, rIndex)"
  14365. >
  14366. <el-tooltip
  14367. class="item"
  14368. effect="light"
  14369. :content="r"
  14370. placement="top"
  14371. v-if="r != '' && r != undefined"
  14372. >
  14373. <div
  14374. :class="{
  14375. isCard: r,
  14376. isChooseCard: r == '' || r == undefined
  14377. }"
  14378. >
  14379. <div>{{ r }}</div>
  14380. </div>
  14381. </el-tooltip>
  14382. <div
  14383. :class="{
  14384. isCard: r,
  14385. isChooseCard: r == '' || r == undefined
  14386. }"
  14387. v-else
  14388. >
  14389. <div>{{ r }}</div>
  14390. </div>
  14391. </div>
  14392. </div>
  14393. </div>
  14394. <div class="cardList" v-if="st.addChangeSen">
  14395. <div class="cardBox">
  14396. <div
  14397. v-for="(s, sIndex) in st.addChangeSen"
  14398. :key="sIndex"
  14399. @click="setRightAnswer(s, stIndex, sIndex)"
  14400. >
  14401. <el-tooltip
  14402. class="item"
  14403. effect="light"
  14404. :content="s"
  14405. placement="top"
  14406. v-if="s != '' && s != undefined"
  14407. >
  14408. <div
  14409. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14410. >
  14411. <div>{{ s }}</div>
  14412. </div>
  14413. </el-tooltip>
  14414. <div
  14415. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14416. v-else
  14417. >
  14418. <div>{{ s }}</div>
  14419. </div>
  14420. </div>
  14421. </div>
  14422. </div>
  14423. </div>
  14424. </div>
  14425. </div>
  14426. <span slot="footer" class="dialog-footer">
  14427. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14428. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14429. </span>
  14430. </el-dialog>
  14431. <el-dialog
  14432. title="排序"
  14433. :visible.sync="dialogVisibleSentenceTeacher"
  14434. :append-to-body="true"
  14435. width="1000px"
  14436. :before-close="handleClose"
  14437. class="dialog_diy dialog_diy3"
  14438. >
  14439. <div>
  14440. <div class="w_name">
  14441. 学生姓名:<span>{{ sStudent.student }}</span>
  14442. </div>
  14443. <div class="sentenBox">
  14444. <div
  14445. v-for="(st, stIndex) in sentenceList"
  14446. :key="stIndex"
  14447. style="padding-bottom: 20px"
  14448. >
  14449. <div
  14450. style="padding: 15px 0 10px 20px"
  14451. class="sentenceTitle"
  14452. :index="stIndex + 1"
  14453. >
  14454. 题目{{ stIndex + 1 }}:请选择正确顺序
  14455. </div>
  14456. <div class="cardList" v-if="st.chooseSenList">
  14457. <div class="cardBox">
  14458. <div
  14459. v-for="(r, rIndex) in st.chooseSenList"
  14460. :key="rIndex"
  14461. @click="returnCard(r, stIndex, rIndex)"
  14462. >
  14463. <el-tooltip
  14464. class="item"
  14465. effect="light"
  14466. :content="r"
  14467. placement="top"
  14468. v-if="r != '' && r != undefined"
  14469. >
  14470. <div
  14471. :class="{
  14472. isCard: r,
  14473. isChooseCard: r == '' || r == undefined
  14474. }"
  14475. >
  14476. <div>{{ r }}</div>
  14477. </div>
  14478. </el-tooltip>
  14479. <div
  14480. :class="{
  14481. isCard: r,
  14482. isChooseCard: r == '' || r == undefined
  14483. }"
  14484. v-else
  14485. >
  14486. <div>{{ r }}</div>
  14487. </div>
  14488. </div>
  14489. </div>
  14490. </div>
  14491. <div class="cardList" v-if="st.addChangeSen">
  14492. <div class="cardBox">
  14493. <div
  14494. v-for="(s, sIndex) in st.addChangeSen"
  14495. :key="sIndex"
  14496. @click="setRightAnswer(s, stIndex, sIndex)"
  14497. >
  14498. <el-tooltip
  14499. class="item"
  14500. effect="light"
  14501. :content="s"
  14502. placement="top"
  14503. v-if="s != '' && s != undefined"
  14504. >
  14505. <div
  14506. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14507. >
  14508. <div>{{ s }}</div>
  14509. </div>
  14510. </el-tooltip>
  14511. <div
  14512. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14513. v-else
  14514. >
  14515. <div>{{ s }}</div>
  14516. </div>
  14517. </div>
  14518. </div>
  14519. </div>
  14520. </div>
  14521. </div>
  14522. </div>
  14523. <span slot="footer" class="dialog-footer">
  14524. <el-button @click="dialogVisibleSentenceTeacher = false"
  14525. >取 消</el-button
  14526. >
  14527. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14528. </span>
  14529. </el-dialog>
  14530. <el-dialog
  14531. title="排序"
  14532. :visible.sync="dialogVisibleSentence1"
  14533. :append-to-body="true"
  14534. width="1000px"
  14535. :before-close="handleClose"
  14536. class="dialog_diy dialog_diy3"
  14537. >
  14538. <div>
  14539. <div class="sentenBox">
  14540. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14541. {{ sentenceList1.stuName }}的作业
  14542. </div>
  14543. <div
  14544. v-for="(st, stIndex) in sentenceList1"
  14545. :key="stIndex"
  14546. style="padding-bottom: 20px"
  14547. >
  14548. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14549. 第{{ stIndex + 1 }}题
  14550. </div>
  14551. <div class="isWrong">
  14552. <div class="cardList1" v-if="st.chooseSenList">
  14553. <div class="cardBox">
  14554. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14555. <el-tooltip
  14556. class="item"
  14557. effect="light"
  14558. :content="s"
  14559. placement="top"
  14560. >
  14561. <div class="isCard">
  14562. <div>{{ s }}</div>
  14563. </div>
  14564. </el-tooltip>
  14565. </div>
  14566. </div>
  14567. <div class="cardAnswerBox">
  14568. 组成句子:{{ st.chooseSenList.join(" ") }}
  14569. </div>
  14570. </div>
  14571. <div v-if="tType == 2" class="isTj">
  14572. <div class="isTjImg">
  14573. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14574. </div>
  14575. <div>已提交</div>
  14576. </div>
  14577. <div
  14578. class="answerRight isTj"
  14579. v-if="
  14580. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14581. (tType == 1 || tType == 4)
  14582. "
  14583. >
  14584. <div class="isTjImg">
  14585. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14586. </div>
  14587. <div>回答正确</div>
  14588. </div>
  14589. <div
  14590. class="answerRight isTj"
  14591. v-if="
  14592. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14593. (tType == 1 || tType == 4)
  14594. "
  14595. >
  14596. <div class="isTjImg">
  14597. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14598. </div>
  14599. <div>回答错误</div>
  14600. </div>
  14601. </div>
  14602. <div
  14603. v-if="
  14604. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14605. (tType == 1 || tType == 4)
  14606. "
  14607. >
  14608. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14609. <div
  14610. class="cardList"
  14611. v-if="st.rightAnswer"
  14612. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14613. >
  14614. <div class="cardBox">
  14615. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14616. <el-tooltip
  14617. class="item"
  14618. effect="light"
  14619. :content="r"
  14620. placement="top"
  14621. >
  14622. <div class="isCard1">
  14623. <div>{{ r }}</div>
  14624. </div>
  14625. </el-tooltip>
  14626. </div>
  14627. </div>
  14628. <div class="cardAnswerBox">
  14629. 组成句子:{{ st.rightAnswer.join(" ") }}
  14630. </div>
  14631. </div>
  14632. </div>
  14633. </div>
  14634. </div>
  14635. </div>
  14636. <span slot="footer" class="dialog-footer">
  14637. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14638. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14639. >确 定</el-button
  14640. >
  14641. </span>
  14642. </el-dialog>
  14643. <el-dialog
  14644. title="教师提交作业"
  14645. :visible.sync="dialogVisibleWorks"
  14646. :append-to-body="true"
  14647. width="500px"
  14648. :before-close="handleClose"
  14649. class="dialog_change"
  14650. >
  14651. <div class="marginT">
  14652. <div class="w_name">
  14653. 学生姓名:<span>{{ sStudent.student }}</span>
  14654. </div>
  14655. <div>上传文件</div>
  14656. <div style="display: flex; gap: 10px">
  14657. <div
  14658. class="chapter_add"
  14659. @click="addImg($event)"
  14660. v-if="studyJuri[0].cover.length == 0"
  14661. >
  14662. <div class="up_photo">
  14663. <img src="../../assets/icon/uploadImg.png" alt />
  14664. </div>
  14665. <!-- <input
  14666. type="file"
  14667. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14668. style="display: none"
  14669. @change="beforeUpload1($event, 1)"
  14670. /> -->
  14671. <input
  14672. type="file"
  14673. accept="*"
  14674. style="display: none"
  14675. @change="beforeUpload1($event, 1)"
  14676. />
  14677. <!-- <input
  14678. type="file"
  14679. accept="image/*"
  14680. capture="camera"
  14681. style="display: none"
  14682. @change="beforeUpload1($event, 1)"
  14683. /> -->
  14684. </div>
  14685. <div
  14686. class="chapter_add"
  14687. @click="addImg($event)"
  14688. v-if="studyJuri[0].cover.length == 0"
  14689. >
  14690. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14691. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14692. </div>
  14693. <input
  14694. type="file"
  14695. accept="image/*"
  14696. capture="camera"
  14697. style="display: none"
  14698. @change="beforeUpload1($event, 1)"
  14699. />
  14700. </div>
  14701. </div>
  14702. <!-- capture="camera" -->
  14703. <div
  14704. class="chapter_add"
  14705. style="
  14706. display: flex;
  14707. width: 100%;
  14708. flex-direction: row;
  14709. flex-wrap: wrap;
  14710. justify-content: flex-start;
  14711. padding: 15px 0;
  14712. "
  14713. v-if="studyJuri[0].cover.length > 0"
  14714. >
  14715. <div class="upCover">
  14716. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14717. <img :src="word" alt v-else-if="fileType == 1" />
  14718. <img :src="video" alt v-else-if="fileType == 2" />
  14719. <img :src="word2" alt v-else-if="fileType == 3" />
  14720. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14721. <div class="deleteWord" @click="clean(1)">
  14722. <img src="../../assets/icon/deleteWorks.png" alt />
  14723. </div>
  14724. </div>
  14725. </div>
  14726. </div>
  14727. <div
  14728. class="upload_send"
  14729. @click="addCourseWorksTeacher(taskCount)"
  14730. v-if="!proVisible"
  14731. >
  14732. 提交
  14733. </div>
  14734. </el-dialog>
  14735. <ImgDraw
  14736. :drawShow="drawShow"
  14737. @closeDraw="closeDraw"
  14738. @addImgDraw="addImgDraw"
  14739. :bg="bg"
  14740. ></ImgDraw>
  14741. <el-dialog
  14742. title="表格"
  14743. :visible.sync="dialogVisibleTable"
  14744. :append-to-body="true"
  14745. width="95%"
  14746. :before-close="handleClose"
  14747. class="dialog_diy"
  14748. >
  14749. <el-form>
  14750. <div
  14751. style="
  14752. display: flex;
  14753. align-items: center;
  14754. justify-content: space-between;
  14755. "
  14756. >
  14757. <span>表格内容</span>
  14758. <el-button type="primary" size="small" @click="returnTableText"
  14759. >还原模板</el-button
  14760. >
  14761. </div>
  14762. <Table
  14763. v-model="tableJson.text"
  14764. @change="change"
  14765. v-if="dialogVisibleTable"
  14766. ></Table>
  14767. </el-form>
  14768. <span slot="footer" class="dialog-footer">
  14769. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14770. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14771. </span>
  14772. </el-dialog>
  14773. <el-dialog
  14774. title="表格"
  14775. :visible.sync="dialogVisibleTableTeacher"
  14776. :append-to-body="true"
  14777. width="95%"
  14778. :before-close="handleClose"
  14779. class="dialog_diy"
  14780. >
  14781. <el-form>
  14782. <div class="w_name">
  14783. 学生姓名:<span>{{ sStudent.student }}</span>
  14784. </div>
  14785. <div>表格内容</div>
  14786. <Table
  14787. v-model="tableJson.text"
  14788. @change="change"
  14789. v-if="dialogVisibleTableTeacher"
  14790. ></Table>
  14791. </el-form>
  14792. <span slot="footer" class="dialog-footer">
  14793. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14794. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14795. </span>
  14796. </el-dialog>
  14797. <el-dialog
  14798. title="文档"
  14799. :visible.sync="dialogVisibleWord"
  14800. :append-to-body="true"
  14801. width="95%"
  14802. :before-close="handleClose"
  14803. class="dialog_diy"
  14804. >
  14805. <el-form>
  14806. <div
  14807. style="
  14808. display: flex;
  14809. align-items: center;
  14810. justify-content: space-between;
  14811. "
  14812. >
  14813. <span>文档内容</span>
  14814. <el-button type="primary" size="small" @click="returnWordText"
  14815. >还原模板</el-button
  14816. >
  14817. </div>
  14818. <editor-bar
  14819. v-model="wordJson.text"
  14820. v-if="dialogVisibleWord"
  14821. ></editor-bar>
  14822. </el-form>
  14823. <span slot="footer" class="dialog-footer">
  14824. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14825. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14826. </span>
  14827. </el-dialog>
  14828. <el-dialog
  14829. title="文档"
  14830. :visible.sync="dialogVisibleWordTeacher"
  14831. :append-to-body="true"
  14832. width="95%"
  14833. :before-close="handleClose"
  14834. class="dialog_diy"
  14835. >
  14836. <el-form>
  14837. <div class="w_name">
  14838. 学生姓名:<span>{{ sStudent.student }}</span>
  14839. </div>
  14840. <div>文档内容</div>
  14841. <editor-bar
  14842. v-model="wordJson.text"
  14843. v-if="dialogVisibleWordTeacher"
  14844. ></editor-bar>
  14845. </el-form>
  14846. <span slot="footer" class="dialog-footer">
  14847. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14848. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14849. </span>
  14850. </el-dialog>
  14851. <el-dialog
  14852. title="表格"
  14853. :visible.sync="dialogVisibleTable2"
  14854. :append-to-body="true"
  14855. width="95%"
  14856. :before-close="handleClose"
  14857. class="dialog_diy"
  14858. >
  14859. <el-form>
  14860. <div class="cont" v-html="tableJson.text"></div>
  14861. </el-form>
  14862. <span slot="footer" class="dialog-footer">
  14863. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14864. </span>
  14865. </el-dialog>
  14866. <el-dialog
  14867. title="文档"
  14868. :visible.sync="dialogVisibleTable3"
  14869. :append-to-body="true"
  14870. width="95%"
  14871. :before-close="handleClose"
  14872. class="dialog_diy"
  14873. >
  14874. <el-form>
  14875. <div class="cont" v-html="tableJson.text"></div>
  14876. </el-form>
  14877. <span slot="footer" class="dialog-footer">
  14878. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14879. </span>
  14880. </el-dialog>
  14881. <el-dialog
  14882. title="分组设置"
  14883. :visible.sync="dialogVisibleGroup"
  14884. :append-to-body="true"
  14885. width="95%"
  14886. :before-close="handleClose"
  14887. class="dialog_diy"
  14888. >
  14889. <div v-if="dialogVisibleGroup">
  14890. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14891. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14892. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14893. </div>
  14894. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14895. @click="lockChair">
  14896. 锁定位置
  14897. </div>
  14898. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14899. 解锁位置
  14900. </div> -->
  14901. <div class="group_switch">
  14902. <span>开放选座</span>
  14903. <el-switch
  14904. v-model="islock"
  14905. active-text=""
  14906. class="switchCss"
  14907. @change="lockChair"
  14908. ></el-switch>
  14909. </div>
  14910. <div
  14911. type="primary"
  14912. @click="updateGroup"
  14913. class="returnBtn"
  14914. style="background-color: #225bc7"
  14915. >
  14916. 分组设置
  14917. </div>
  14918. </div>
  14919. <div>
  14920. <div
  14921. class="g_d_box"
  14922. v-if="groupJson.group && groupStudent[toolindex]"
  14923. >
  14924. <div
  14925. class="g_d_group"
  14926. v-for="(g, gindex) in groupJson.group"
  14927. :key="gindex"
  14928. >
  14929. <div class="g_d_group_chair">
  14930. <div v-if="groupJson.number > 1">
  14931. <span
  14932. :class="{
  14933. isChair:
  14934. groupStudent[toolindex][gindex] &&
  14935. groupStudent[toolindex][gindex][0],
  14936. updateChair:
  14937. courseDetail.userid == userid &&
  14938. groupStudent[toolindex][gindex] &&
  14939. groupStudent[toolindex][gindex][0] &&
  14940. groupJson.islock == 2
  14941. }"
  14942. ><span
  14943. class="updateChairBtn"
  14944. @click="
  14945. updateGroupChair(
  14946. groupStudent[toolindex][gindex] &&
  14947. groupStudent[toolindex][gindex][0]
  14948. )
  14949. "
  14950. >修改</span
  14951. ></span
  14952. ><span>{{
  14953. groupStudent[toolindex][gindex] &&
  14954. groupStudent[toolindex][gindex][0]
  14955. ? groupStudent[toolindex][gindex] &&
  14956. groupStudent[toolindex][gindex][0].name
  14957. : "空位置"
  14958. }}</span>
  14959. </div>
  14960. <div v-if="groupJson.number > 4">
  14961. <span
  14962. :class="{
  14963. isChair:
  14964. groupStudent[toolindex][gindex] &&
  14965. groupStudent[toolindex][gindex][4],
  14966. updateChair:
  14967. courseDetail.userid == userid &&
  14968. groupStudent[toolindex][gindex] &&
  14969. groupStudent[toolindex][gindex][4] &&
  14970. groupJson.islock == 2
  14971. }"
  14972. ><span
  14973. class="updateChairBtn"
  14974. @click="
  14975. updateGroupChair(
  14976. groupStudent[toolindex][gindex] &&
  14977. groupStudent[toolindex][gindex][4]
  14978. )
  14979. "
  14980. >修改</span
  14981. ></span
  14982. ><span>{{
  14983. groupStudent[toolindex][gindex] &&
  14984. groupStudent[toolindex][gindex][4]
  14985. ? groupStudent[toolindex][gindex] &&
  14986. groupStudent[toolindex][gindex][4].name
  14987. : "空位置"
  14988. }}</span>
  14989. </div>
  14990. <div v-if="groupJson.number > 8">
  14991. <span
  14992. :class="{
  14993. isChair:
  14994. groupStudent[toolindex][gindex] &&
  14995. groupStudent[toolindex][gindex][8],
  14996. updateChair:
  14997. courseDetail.userid == userid &&
  14998. groupStudent[toolindex][gindex] &&
  14999. groupStudent[toolindex][gindex][8] &&
  15000. groupJson.islock == 2
  15001. }"
  15002. ><span
  15003. class="updateChairBtn"
  15004. @click="
  15005. updateGroupChair(
  15006. groupStudent[toolindex][gindex] &&
  15007. groupStudent[toolindex][gindex][8]
  15008. )
  15009. "
  15010. >修改</span
  15011. ></span
  15012. ><span>{{
  15013. groupStudent[toolindex][gindex] &&
  15014. groupStudent[toolindex][gindex][8]
  15015. ? groupStudent[toolindex][gindex] &&
  15016. groupStudent[toolindex][gindex][8].name
  15017. : "空位置"
  15018. }}</span>
  15019. </div>
  15020. </div>
  15021. <div class="g_d_group_tableBox">
  15022. <div class="g_d_group_chair2">
  15023. <div v-if="groupJson.number > 2">
  15024. <span
  15025. :class="{
  15026. isChair:
  15027. groupStudent[toolindex][gindex] &&
  15028. groupStudent[toolindex][gindex][2],
  15029. updateChair:
  15030. courseDetail.userid == userid &&
  15031. groupStudent[toolindex][gindex] &&
  15032. groupStudent[toolindex][gindex][2] &&
  15033. groupJson.islock == 2
  15034. }"
  15035. ><span
  15036. class="updateChairBtn"
  15037. @click="
  15038. updateGroupChair(
  15039. groupStudent[toolindex][gindex] &&
  15040. groupStudent[toolindex][gindex][2]
  15041. )
  15042. "
  15043. >修改</span
  15044. ></span
  15045. ><span>{{
  15046. groupStudent[toolindex][gindex] &&
  15047. groupStudent[toolindex][gindex][2]
  15048. ? groupStudent[toolindex][gindex] &&
  15049. groupStudent[toolindex][gindex][2].name
  15050. : "空位置"
  15051. }}</span>
  15052. </div>
  15053. <div v-if="groupJson.number > 6">
  15054. <span
  15055. :class="{
  15056. isChair:
  15057. groupStudent[toolindex][gindex] &&
  15058. groupStudent[toolindex][gindex][6],
  15059. updateChair:
  15060. courseDetail.userid == userid &&
  15061. groupStudent[toolindex][gindex] &&
  15062. groupStudent[toolindex][gindex][6] &&
  15063. groupJson.islock == 2
  15064. }"
  15065. ><span
  15066. class="updateChairBtn"
  15067. @click="
  15068. updateGroupChair(
  15069. groupStudent[toolindex][gindex] &&
  15070. groupStudent[toolindex][gindex][6]
  15071. )
  15072. "
  15073. >修改</span
  15074. ></span
  15075. ><span>{{
  15076. groupStudent[toolindex][gindex] &&
  15077. groupStudent[toolindex][gindex][6]
  15078. ? groupStudent[toolindex][gindex] &&
  15079. groupStudent[toolindex][gindex][6].name
  15080. : "空位置"
  15081. }}</span>
  15082. </div>
  15083. </div>
  15084. <div class="g_d_group_table">
  15085. <div>
  15086. {{ g.name }}
  15087. </div>
  15088. <div>
  15089. <div
  15090. v-if="
  15091. courseDetail.userid == userid && groupJson.islock == 2
  15092. "
  15093. @click="deleteGroupChair(gindex)"
  15094. >
  15095. 移除组员
  15096. </div>
  15097. <div
  15098. @click="selectGroup(gindex)"
  15099. v-else-if="
  15100. groupStudentUid[toolindex] &&
  15101. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  15102. -1
  15103. "
  15104. >
  15105. 加入分组
  15106. </div>
  15107. <div
  15108. @click="
  15109. exitGroup(
  15110. groupStudent[toolindex][gindex] &&
  15111. groupStudent[toolindex][gindex][
  15112. groupStudentUid[toolindex][gindex].indexOf(userid)
  15113. ].id
  15114. )
  15115. "
  15116. v-else-if="
  15117. groupStudentUid[toolindex] &&
  15118. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  15119. -1
  15120. "
  15121. >
  15122. 退出分组
  15123. </div>
  15124. </div>
  15125. </div>
  15126. <div class="g_d_group_chair2">
  15127. <div v-if="groupJson.number > 3">
  15128. <span
  15129. :class="{
  15130. isChair:
  15131. groupStudent[toolindex][gindex] &&
  15132. groupStudent[toolindex][gindex][3],
  15133. updateChair:
  15134. courseDetail.userid == userid &&
  15135. groupStudent[toolindex][gindex] &&
  15136. groupStudent[toolindex][gindex][3] &&
  15137. groupJson.islock == 2
  15138. }"
  15139. ><span
  15140. class="updateChairBtn"
  15141. @click="
  15142. updateGroupChair(
  15143. groupStudent[toolindex][gindex] &&
  15144. groupStudent[toolindex][gindex][3]
  15145. )
  15146. "
  15147. >修改</span
  15148. ></span
  15149. ><span>{{
  15150. groupStudent[toolindex][gindex] &&
  15151. groupStudent[toolindex][gindex][3]
  15152. ? groupStudent[toolindex][gindex] &&
  15153. groupStudent[toolindex][gindex][3].name
  15154. : "空位置"
  15155. }}</span>
  15156. </div>
  15157. <div v-if="groupJson.number > 7">
  15158. <span
  15159. :class="{
  15160. isChair:
  15161. groupStudent[toolindex][gindex] &&
  15162. groupStudent[toolindex][gindex][7],
  15163. updateChair:
  15164. courseDetail.userid == userid &&
  15165. groupStudent[toolindex][gindex] &&
  15166. groupStudent[toolindex][gindex][7] &&
  15167. groupJson.islock == 2
  15168. }"
  15169. ><span
  15170. class="updateChairBtn"
  15171. @click="
  15172. updateGroupChair(
  15173. groupStudent[toolindex][gindex] &&
  15174. groupStudent[toolindex][gindex][7]
  15175. )
  15176. "
  15177. >修改</span
  15178. ></span
  15179. ><span>{{
  15180. groupStudent[toolindex][gindex] &&
  15181. groupStudent[toolindex][gindex][7]
  15182. ? groupStudent[toolindex][gindex] &&
  15183. groupStudent[toolindex][gindex][7].name
  15184. : "空位置"
  15185. }}</span>
  15186. </div>
  15187. </div>
  15188. </div>
  15189. <div class="g_d_group_chair">
  15190. <div v-if="groupJson.number > 1">
  15191. <span
  15192. :class="{
  15193. isChair:
  15194. groupStudent[toolindex][gindex] &&
  15195. groupStudent[toolindex][gindex][1],
  15196. updateChair:
  15197. courseDetail.userid == userid &&
  15198. groupStudent[toolindex][gindex] &&
  15199. groupStudent[toolindex][gindex][1] &&
  15200. groupJson.islock == 2
  15201. }"
  15202. ><span
  15203. class="updateChairBtn"
  15204. @click="
  15205. updateGroupChair(
  15206. groupStudent[toolindex][gindex] &&
  15207. groupStudent[toolindex][gindex][1]
  15208. )
  15209. "
  15210. >修改</span
  15211. ></span
  15212. ><span>{{
  15213. groupStudent[toolindex][gindex] &&
  15214. groupStudent[toolindex][gindex][1]
  15215. ? groupStudent[toolindex][gindex] &&
  15216. groupStudent[toolindex][gindex][1].name
  15217. : "空位置"
  15218. }}</span>
  15219. </div>
  15220. <div v-if="groupJson.number > 5">
  15221. <span
  15222. :class="{
  15223. isChair:
  15224. groupStudent[toolindex][gindex] &&
  15225. groupStudent[toolindex][gindex][5],
  15226. updateChair:
  15227. courseDetail.userid == userid &&
  15228. groupStudent[toolindex][gindex] &&
  15229. groupStudent[toolindex][gindex][5] &&
  15230. groupJson.islock == 2
  15231. }"
  15232. ><span
  15233. class="updateChairBtn"
  15234. @click="
  15235. updateGroupChair(
  15236. groupStudent[toolindex][gindex] &&
  15237. groupStudent[toolindex][gindex][5]
  15238. )
  15239. "
  15240. >修改</span
  15241. ></span
  15242. ><span>{{
  15243. groupStudent[toolindex][gindex] &&
  15244. groupStudent[toolindex][gindex][5]
  15245. ? groupStudent[toolindex][gindex] &&
  15246. groupStudent[toolindex][gindex][5].name
  15247. : "空位置"
  15248. }}</span>
  15249. </div>
  15250. <div v-if="groupJson.number > 9">
  15251. <span
  15252. :class="{
  15253. isChair:
  15254. groupStudent[toolindex][gindex] &&
  15255. groupStudent[toolindex][gindex][9],
  15256. updateChair:
  15257. courseDetail.userid == userid &&
  15258. groupStudent[toolindex][gindex] &&
  15259. groupStudent[toolindex][gindex][9] &&
  15260. groupJson.islock == 2
  15261. }"
  15262. ><span
  15263. class="updateChairBtn"
  15264. @click="
  15265. updateGroupChair(
  15266. groupStudent[toolindex][gindex] &&
  15267. groupStudent[toolindex][gindex][9]
  15268. )
  15269. "
  15270. >修改</span
  15271. ></span
  15272. ><span>{{
  15273. groupStudent[toolindex][gindex] &&
  15274. groupStudent[toolindex][gindex][9]
  15275. ? groupStudent[toolindex][gindex] &&
  15276. groupStudent[toolindex][gindex][9].name
  15277. : "空位置"
  15278. }}</span>
  15279. </div>
  15280. </div>
  15281. </div>
  15282. </div>
  15283. </div>
  15284. </div>
  15285. <span slot="footer" class="dialog-footer">
  15286. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15287. </span>
  15288. </el-dialog>
  15289. <el-dialog
  15290. title="分组设置"
  15291. :visible.sync="dialogVisibleGroup2"
  15292. :append-to-body="true"
  15293. width="650px"
  15294. :before-close="handleClose"
  15295. class="dialog_diy"
  15296. >
  15297. <div class="groupBox">
  15298. <div v-if="groupJson2.group" class="groupContent">
  15299. <div class="groupTitle">请设置小组数量及名称</div>
  15300. <div
  15301. v-for="(item, index) in groupJson2.group"
  15302. :key="index"
  15303. class="groupName"
  15304. >
  15305. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15306. <el-input
  15307. v-model="item.name"
  15308. placeholder="请输入名称..."
  15309. style="width: 250px"
  15310. ></el-input>
  15311. <!-- <div class="groupBtn">
  15312. <el-button type="primary" size="small" @click="addGroup(index)">
  15313. 添加</el-button>
  15314. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15315. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15316. </div> -->
  15317. </div>
  15318. </div>
  15319. <div class="groupContent">
  15320. <div class="groupTitle">请设置每组人数</div>
  15321. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15322. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15323. <el-input
  15324. v-model="groupJson2.number"
  15325. style="width: 150px"
  15326. placeholder="请输入2-10的数字"
  15327. @change="numberPan"
  15328. ></el-input>
  15329. </div>
  15330. </div>
  15331. <span slot="footer" class="dialog-footer">
  15332. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15333. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15334. </span>
  15335. </el-dialog>
  15336. <el-dialog
  15337. title="作业提交"
  15338. :visible.sync="dialogVisibleGroupWork"
  15339. :append-to-body="true"
  15340. width="500px"
  15341. :before-close="handleClose"
  15342. class="dialog_change"
  15343. >
  15344. <div class="marginT">
  15345. <div>上传文件</div>
  15346. <div
  15347. class="chapter_add"
  15348. @click="addImg($event)"
  15349. v-if="studyJuri[0].cover.length == 0"
  15350. >
  15351. <div class="up_photo">
  15352. <img src="../../assets/icon/uploadImg.png" alt />
  15353. </div>
  15354. <!-- <input
  15355. type="file"
  15356. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15357. style="display: none"
  15358. @change="beforeUpload1($event, 1)"
  15359. /> -->
  15360. <input
  15361. type="file"
  15362. accept="*"
  15363. style="display: none"
  15364. @change="beforeUpload1($event, 1)"
  15365. />
  15366. </div>
  15367. <!-- capture="camera" -->
  15368. <div
  15369. class="chapter_add"
  15370. style="
  15371. display: flex;
  15372. width: 100%;
  15373. flex-direction: row;
  15374. flex-wrap: wrap;
  15375. justify-content: flex-start;
  15376. padding: 15px 0;
  15377. "
  15378. v-if="studyJuri[0].cover.length > 0"
  15379. >
  15380. <div class="upCover">
  15381. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15382. <img :src="word" alt v-else-if="fileType == 1" />
  15383. <img :src="video" alt v-else-if="fileType == 2" />
  15384. <img :src="word2" alt v-else-if="fileType == 3" />
  15385. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15386. <div class="deleteWord" @click="clean(1)">
  15387. <img src="../../assets/icon/deleteWorks.png" alt />
  15388. </div>
  15389. </div>
  15390. </div>
  15391. </div>
  15392. <div
  15393. class="upload_send"
  15394. @click="addCourseWorks2(taskCount)"
  15395. v-if="!proVisible"
  15396. >
  15397. 提交
  15398. </div>
  15399. </el-dialog>
  15400. <el-dialog
  15401. title="修改分组"
  15402. :visible.sync="dialogVisibleUpdateGroup"
  15403. :append-to-body="true"
  15404. width="350px"
  15405. :before-close="handleClose"
  15406. class="dialog_diy"
  15407. >
  15408. <div>
  15409. <h2>
  15410. {{ this.updateGroupUser.name }}
  15411. </h2>
  15412. <div style="color: rgb(171 171 171); margin-top: 10px">
  15413. 请选择要进入的分组
  15414. </div>
  15415. <el-radio-group v-model="checkChair">
  15416. <el-radio
  15417. style="display: block; margin-top: 20px"
  15418. v-for="(item, index) in updateGroupArray"
  15419. :label="item.label"
  15420. :key="index"
  15421. >{{ item.name }}</el-radio
  15422. >
  15423. </el-radio-group>
  15424. </div>
  15425. <span slot="footer" class="dialog-footer">
  15426. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15427. <el-button type="primary" @click="updateChair">确定</el-button>
  15428. </span>
  15429. </el-dialog>
  15430. <el-dialog
  15431. title="移除组员"
  15432. :visible.sync="dialogVisibleDeleteGroup"
  15433. :append-to-body="true"
  15434. width="350px"
  15435. :before-close="handleClose"
  15436. class="dialog_diy"
  15437. >
  15438. <div>
  15439. <h2>
  15440. {{ this.deleteGroupArray.name }}
  15441. </h2>
  15442. <div style="color: rgb(171 171 171); margin-top: 10px">
  15443. 请选择要删除的组员
  15444. </div>
  15445. <el-checkbox-group v-model="checkDeleteGroup">
  15446. <el-checkbox
  15447. style="display: flex; margin-top: 20px"
  15448. v-for="(item, index) in deleteGroupUser"
  15449. :label="item.userid"
  15450. :key="index"
  15451. >{{ item.name }}</el-checkbox
  15452. >
  15453. </el-checkbox-group>
  15454. </div>
  15455. <span slot="footer" class="dialog-footer">
  15456. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15457. <el-button type="primary" @click="deleteChair">确定</el-button>
  15458. </span>
  15459. </el-dialog>
  15460. <el-dialog
  15461. title="批量上传"
  15462. :visible.sync="dialogVisiblePl"
  15463. :append-to-body="true"
  15464. width="700px"
  15465. :before-close="handleClose"
  15466. class="dialog_change"
  15467. >
  15468. <div class="marginT">
  15469. <div class="plworkBox">
  15470. <div
  15471. class="chapter_add"
  15472. style="
  15473. display: flex;
  15474. width: 150px;
  15475. flex-direction: row;
  15476. flex-wrap: wrap;
  15477. justify-content: flex-start;
  15478. margin: 0 10px 10px 0;
  15479. "
  15480. v-for="(item, index) in plworkFile"
  15481. :key="index"
  15482. >
  15483. <div class="upCover2">
  15484. <img
  15485. :src="item.url"
  15486. alt
  15487. v-if="item.fileType == 1"
  15488. @click="previewImg(item.url)"
  15489. />
  15490. <img :src="word" alt v-else-if="item.fileType == 4" />
  15491. <img :src="video" alt v-else />
  15492. <!-- <span class="picName">{{ item.name }}</span> -->
  15493. <!-- <el-input
  15494. v-model="item.username"
  15495. placeholder="请输入学生名字"
  15496. style="margin-top: 10px"
  15497. ></el-input> -->
  15498. <div
  15499. class="pl_select_box"
  15500. @click="
  15501. getUpdateMore(true, checkUpload(), item.username, index)
  15502. "
  15503. >
  15504. {{ getSName(item.username) }}
  15505. </div>
  15506. <!-- <el-select
  15507. style="margin-top: 10px"
  15508. v-model="item.username"
  15509. filterable
  15510. allow-create
  15511. placeholder="请选择学生"
  15512. >
  15513. <el-option
  15514. v-for="item1 in checkUpload()"
  15515. :key="item1.userid"
  15516. :label="item1.name ? item1.name : item1.username"
  15517. :value="item1.userid"
  15518. >
  15519. </el-option>
  15520. </el-select> -->
  15521. <div class="deleteWord" @click="clean2(index)">
  15522. <img src="../../assets/icon/deleteWorks.png" alt />
  15523. </div>
  15524. </div>
  15525. </div>
  15526. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15527. <div class="up_photo2">
  15528. <img src="../../assets/icon/plwork.png" alt />
  15529. <span>点击上传文件</span>
  15530. </div>
  15531. <input
  15532. type="file"
  15533. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15534. multiple="multiple"
  15535. style="display: none"
  15536. @change="beforeUpload3($event, 6)"
  15537. />
  15538. </div>
  15539. </div>
  15540. </div>
  15541. <!-- capture="camera" -->
  15542. <div
  15543. class="upload_send"
  15544. @click="addCourseWorksPl(taskCount)"
  15545. v-if="!proVisible2"
  15546. >
  15547. 提交
  15548. </div>
  15549. </el-dialog>
  15550. <el-dialog
  15551. title="修改名称"
  15552. :visible.sync="dialogVisibleSname"
  15553. width="500px"
  15554. :before-close="handleClose"
  15555. class="dialog_diy"
  15556. center
  15557. >
  15558. <div
  15559. style="
  15560. text-align: center;
  15561. display: flex;
  15562. align-items: center;
  15563. justify-content: center;
  15564. "
  15565. >
  15566. <span class="tian1">名称</span>
  15567. <div
  15568. class="pl_select_box"
  15569. style="margin-left: 10px; width: 200px"
  15570. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15571. >
  15572. {{ getSName(worksSName) }}
  15573. </div>
  15574. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15575. placeholder="请选择学生">
  15576. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15577. :value="item.userid">
  15578. </el-option>
  15579. </el-select> -->
  15580. <!-- <el-input
  15581. v-model="worksSName"
  15582. style="width: 250px; margin: 15px 0px"
  15583. ></el-input> -->
  15584. </div>
  15585. <span slot="footer" class="dialog-footer">
  15586. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15587. <el-button type="primary" @click="updateName">确 定</el-button>
  15588. </span>
  15589. </el-dialog>
  15590. <el-dialog
  15591. title="英语写作"
  15592. :visible.sync="engDialogVisible"
  15593. :append-to-body="true"
  15594. width="800px"
  15595. :before-close="handleClose"
  15596. class="dialog_diy"
  15597. >
  15598. <onlineWrite
  15599. v-if="engDialogVisible"
  15600. :englishList="englishList"
  15601. :myAnswerList1="myAnswerList1"
  15602. ref="engJson"
  15603. ></onlineWrite>
  15604. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15605. <el-button @click="engDialogVisible = false">取 消</el-button>
  15606. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15607. </span>
  15608. </el-dialog>
  15609. <el-dialog
  15610. title="英语写作"
  15611. :visible.sync="engUpdateDialogVisible"
  15612. :append-to-body="true"
  15613. width="800px"
  15614. :before-close="handleClose"
  15615. class="dialog_diy fullStyle"
  15616. >
  15617. <div class="engUpBox">
  15618. <div class="engUpTop">
  15619. <div class="engTitle">
  15620. <div>作文题目:</div>
  15621. <div>{{ englishList1.engTitle }}</div>
  15622. </div>
  15623. <div class="engText">
  15624. <div>作文内容:</div>
  15625. <div
  15626. class="cont"
  15627. v-html="englishList1.englishText"
  15628. style="white-space: pre-line;"
  15629. @click="checkImg(getImgList(englishList1.englishText))"
  15630. ></div>
  15631. </div>
  15632. </div>
  15633. <div
  15634. class="correctBox"
  15635. :style="{ height: `calc(100% - ${topHeight}px)` }"
  15636. >
  15637. <div class="oldBox">
  15638. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15639. <div class="oldText">
  15640. <div class="detailBox">
  15641. <div class="oldDetail">
  15642. <div>标题:</div>
  15643. <div>{{ oldEnglishJson.engTitle }}</div>
  15644. </div>
  15645. <div class="oldDetail1">
  15646. <div>正文:</div>
  15647. <div
  15648. v-html="oldEnglishJson.engText"
  15649. style="white-space: pre-line;"
  15650. ></div>
  15651. </div>
  15652. <div
  15653. class="oldDetail"
  15654. v-if="
  15655. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  15656. "
  15657. >
  15658. <div>图片:</div>
  15659. <div class="oldImg">
  15660. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  15661. </div>
  15662. </div>
  15663. </div>
  15664. </div>
  15665. </div>
  15666. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15667. <div class="oldMes" style="background: #aacaff;">
  15668. {{ userMes[0].username }}
  15669. </div>
  15670. <div class="oldText">
  15671. <div class="detailBox" style="position: relative;">
  15672. <div class="oldDetail">
  15673. <div>标题:</div>
  15674. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15675. <div v-else v-html="newEnglishList.engTitle"></div>
  15676. </div>
  15677. <div class="oldDetail">
  15678. <div>正文:</div>
  15679. <el-input
  15680. v-if="greyType"
  15681. type="textarea"
  15682. :rows="10"
  15683. resize="none"
  15684. v-model="newEnglishList.engText"
  15685. @input="gx"
  15686. />
  15687. <correctText
  15688. :newText="newEnglishList.engText"
  15689. :oldData="oldEnglishJson.engText"
  15690. />
  15691. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15692. </div>
  15693. <div style="position: absolute;bottom: -25px;">
  15694. 注:红色划线字为删除,绿色背景白色字为新添加.
  15695. </div>
  15696. <el-button
  15697. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15698. class="correctCss"
  15699. :style="{ right: greyType == false ? '0' : '80px' }"
  15700. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15701. >
  15702. <el-button
  15703. @click="aiCorrect(newEnglishList.engText, 1)"
  15704. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15705. v-if="!greyType"
  15706. >AI批注</el-button
  15707. >
  15708. <el-button
  15709. @click="addCorrect"
  15710. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15711. v-if="greyType"
  15712. >确定</el-button
  15713. >
  15714. </div>
  15715. </div>
  15716. </div>
  15717. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15718. <div
  15719. class="oldMes"
  15720. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15721. v-if="newEnglishList1.length > 0"
  15722. >
  15723. <div
  15724. v-if="isNoUserid"
  15725. class="allName"
  15726. :style="{
  15727. minWidth: `calc(100% / ${engListLength})`,
  15728. background: newEngIndex == -1 ? '#aacaff' : ''
  15729. }"
  15730. @click="setEngText(-1)"
  15731. style="background: #aacaff;"
  15732. >
  15733. {{ userMes[0].username }}
  15734. </div>
  15735. <div
  15736. v-for="(item, index) in newEnglishList1"
  15737. :key="index"
  15738. class="allName"
  15739. :style="{
  15740. minWidth: `calc(100% / ${engListLength})`,
  15741. background: index == newEngIndex ? '#aacaff' : ''
  15742. }"
  15743. @click="setEngText(index)"
  15744. >
  15745. {{ item.username }}
  15746. </div>
  15747. </div>
  15748. <div class="oldMes" style="background: #aacaff;" v-else>
  15749. {{ userMes[0].username }}
  15750. </div>
  15751. <div
  15752. class="oldText"
  15753. v-if="
  15754. newEngIndex == -1 &&
  15755. isNoUserid == true &&
  15756. newEnglishList1.length
  15757. "
  15758. >
  15759. <div class="detailBox" style="position: relative;">
  15760. <div class="oldDetail">
  15761. <div>标题:</div>
  15762. <el-input
  15763. v-if="greyType"
  15764. v-model="oldEnglishJson1.engTitle"
  15765. />
  15766. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15767. </div>
  15768. <div class="oldDetail">
  15769. <div>正文:</div>
  15770. <el-input
  15771. v-if="greyType"
  15772. type="textarea"
  15773. :rows="10"
  15774. resize="none"
  15775. v-model="oldEnglishJson1.engText"
  15776. @input="gx"
  15777. />
  15778. <correctText
  15779. v-else
  15780. :newText="oldEnglishJson1.engText"
  15781. :oldData="oldEnglishJson.engText"
  15782. />
  15783. </div>
  15784. <div style="position: absolute;bottom: -25px;">
  15785. 注:红色划线字为删除,绿色背景白色字为新添加.
  15786. </div>
  15787. <el-button
  15788. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15789. class="correctCss"
  15790. :style="{ right: greyType == false ? '0' : '80px' }"
  15791. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15792. >
  15793. <el-button
  15794. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15795. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15796. v-if="!greyType"
  15797. >AI批注</el-button
  15798. >
  15799. <el-button
  15800. @click="addCorrect"
  15801. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15802. v-if="greyType"
  15803. >确定</el-button
  15804. >
  15805. </div>
  15806. </div>
  15807. <div class="oldText" v-else-if="newEngIndex == -1">
  15808. <div class="detailBox" style="position: relative;">
  15809. <div class="oldDetail">
  15810. <div>标题:</div>
  15811. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15812. <div v-else v-html="newEnglishList.engTitle"></div>
  15813. </div>
  15814. <div class="oldDetail">
  15815. <div>正文:</div>
  15816. <el-input
  15817. v-if="greyType"
  15818. type="textarea"
  15819. :rows="10"
  15820. resize="none"
  15821. v-model="newEnglishList.engText"
  15822. @input="gx"
  15823. />
  15824. <correctText
  15825. v-else
  15826. :newText="newEnglishList.engText"
  15827. :oldData="oldEnglishJson.engText"
  15828. />
  15829. </div>
  15830. <div style="position: absolute;bottom: -25px;">
  15831. 注:红色划线字为删除,绿色背景白色字为新添加.
  15832. </div>
  15833. <el-button
  15834. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15835. class="correctCss"
  15836. :style="{ right: greyType == false ? '0' : '80px' }"
  15837. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15838. >
  15839. <el-button
  15840. @click="aiCorrect(newEnglishList.engText, 3)"
  15841. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15842. v-if="!greyType"
  15843. >AI批注</el-button
  15844. >
  15845. <el-button
  15846. @click="addCorrect"
  15847. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15848. v-if="greyType"
  15849. >确定</el-button
  15850. >
  15851. </div>
  15852. </div>
  15853. <div
  15854. class="oldText"
  15855. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15856. >
  15857. <div class="detailBox" style="position: relative;">
  15858. <div class="oldDetail">
  15859. <div>标题:</div>
  15860. <div
  15861. v-if="
  15862. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15863. "
  15864. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15865. ></div>
  15866. <div v-else>
  15867. <el-input
  15868. v-if="greyType"
  15869. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15870. />
  15871. <div
  15872. v-else
  15873. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15874. ></div>
  15875. </div>
  15876. </div>
  15877. <div class="oldDetail">
  15878. <div>正文:</div>
  15879. <correctText
  15880. v-if="
  15881. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15882. "
  15883. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15884. :oldData="oldEnglishJson.engText"
  15885. />
  15886. <div v-else>
  15887. <el-input
  15888. v-if="greyType"
  15889. type="textarea"
  15890. :rows="10"
  15891. resize="none"
  15892. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15893. @input="gx"
  15894. />
  15895. <correctText
  15896. v-else
  15897. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15898. :oldData="oldEnglishJson.engText"
  15899. />
  15900. </div>
  15901. </div>
  15902. <div style="position: absolute;bottom: -25px;">
  15903. 注:红色划线字为删除,绿色背景白色字为新添加.
  15904. </div>
  15905. <el-button
  15906. @click="
  15907. isUpdateCorrect(
  15908. newEnglishList1[newEngIndex].cWork.engText,
  15909. 4
  15910. )
  15911. "
  15912. class="correctCss"
  15913. :style="{ right: greyType == false ? '0' : '80px' }"
  15914. v-if="
  15915. !greyType &&
  15916. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15917. "
  15918. >{{ greyType == false ? "添加批注" : "取消添加" }}</el-button
  15919. >
  15920. <el-button
  15921. @click="
  15922. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15923. "
  15924. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15925. v-if="
  15926. !greyType &&
  15927. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15928. "
  15929. >AI批注</el-button
  15930. >
  15931. <el-button
  15932. @click="addCorrect"
  15933. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15934. v-if="greyType"
  15935. >确定</el-button
  15936. >
  15937. </div>
  15938. </div>
  15939. </div>
  15940. </div>
  15941. </div>
  15942. <span slot="footer" class="dialog-footer">
  15943. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15944. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15945. </span>
  15946. </el-dialog>
  15947. <englishEva
  15948. :evaEngJson="evaEngJson"
  15949. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15950. :uid="userid"
  15951. :tType="tType"
  15952. :courseDetail="courseDetail"
  15953. ></englishEva>
  15954. <interVideo
  15955. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15956. :videoJson="videoJson"
  15957. :userid="userid"
  15958. :id="id"
  15959. :courseType="courseType"
  15960. :taskCount="taskCount"
  15961. :toolindex="toolindex"
  15962. :videoType="videoType"
  15963. ></interVideo>
  15964. <UpdateMore
  15965. :dialogVisibleMember.sync="dialogVisibleMember"
  15966. :cList="uploadStudentJuri"
  15967. :userid="userid"
  15968. :searchTN="worksSName2"
  15969. @setPlname="setPlname"
  15970. ></UpdateMore>
  15971. <!-- <wordCloud
  15972. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15973. :data="wordCloudData"
  15974. ></wordCloud> -->
  15975. <el-dialog
  15976. title="词云"
  15977. :visible.sync="dialogVisibleWordCloud"
  15978. width="30%"
  15979. class="dialog_diy"
  15980. :before-close="handleClose">
  15981. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15982. </el-dialog>
  15983. <el-dialog
  15984. title="挑人"
  15985. :visible.sync="dialogVisiblePickPeople"
  15986. width="650px"
  15987. :before-close="handleClose"
  15988. class="dialog_diy"
  15989. center
  15990. >
  15991. <div class="pick_box">
  15992. <div
  15993. class="noWorksName"
  15994. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15995. v-for="(item, index) in uploadStudentJuri"
  15996. :key="index"
  15997. @click="pickStudent(item)"
  15998. >
  15999. {{ item.name }}
  16000. </div>
  16001. </div>
  16002. </el-dialog>
  16003. <EnglishVoice
  16004. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  16005. :englishVoiceJson="englishVoiceJson"
  16006. :userid="userid"
  16007. :id="id"
  16008. :courseType="courseType"
  16009. :taskCount="taskCount"
  16010. :toolindex="toolindex"
  16011. @selectSWorks="selectSWorks"
  16012. @selectStudent="selectStudent"
  16013. :englishVoiceJsonWork="englishVoiceJsonWork"
  16014. ></EnglishVoice>
  16015. <checkEnglishVoice
  16016. :englishVoiceJson="englishVoiceJson"
  16017. :userid="userid"
  16018. :dialogVisibleENScore.sync="dialogVisibleENScore"
  16019. :commentDetail="commentDetail"
  16020. :courseDetail="courseDetail"
  16021. :wScore="wScore"
  16022. :scoreDetail="scoreDetail"
  16023. @selectSWorks="selectSWorks"
  16024. @selectStudent="selectStudent"
  16025. ></checkEnglishVoice>
  16026. <el-dialog
  16027. title="教师评分"
  16028. :visible.sync="markScoreVisible"
  16029. :append-to-body="true"
  16030. width="1000px"
  16031. :fullscreen="markfullscreen"
  16032. :before-close="markScorehandleClose"
  16033. class="markScore_diy"
  16034. >
  16035. <div slot="title">
  16036. <div class="markScore_diyTit">
  16037. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  16038. <div @click="markFullScreenBtn" style="cursor: pointer;">
  16039. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  16040. </div>
  16041. </div>
  16042. </div>
  16043. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  16044. <!-- @updateDocSco="updateDocSco" -->
  16045. <markDialog
  16046. :key="markScoreVisible.toString()"
  16047. :uid="markScoreUid"
  16048. :toolIndex="markScoretoolIndex"
  16049. :stage="courseType"
  16050. :task="taskCount"
  16051. :taskDetail="
  16052. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  16053. "
  16054. :tool="toolListS"
  16055. :languageSetting="languageSetting"
  16056. :scoTit="markScoreTit"
  16057. :tType="tType"
  16058. :sIsOpen="sIsOpen"
  16059. :markScoreworksStudent="markScoreworksStudent"
  16060. :markScoreVisible="markScoreVisible"
  16061. ></markDialog>
  16062. </el-dialog>
  16063. <!-- 查看Txt,md等文件 -->
  16064. <el-dialog
  16065. title="文件预览"
  16066. :visible.sync="dialogVisibleTxt"
  16067. width="50%"
  16068. :before-close="handleCloseTxt"
  16069. class="dialog_diy"
  16070. :class="{ fullStyle: full }"
  16071. >
  16072. <div slot="title" class="header-title">
  16073. <div style="color: #fff">文件预览</div>
  16074. <div style="position: absolute; top: 19px; right: 50px">
  16075. <img
  16076. src="../../assets/full.png"
  16077. style="height: 16px; cursor: pointer"
  16078. alt=""
  16079. @click="fullTools"
  16080. />
  16081. </div>
  16082. </div>
  16083. <div>{{ TxtMd }}</div>
  16084. </el-dialog>
  16085. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  16086. <choseWorksDetailDialog
  16087. ref="choseWorksDetailDialogRef"
  16088. :worksStudentData="worksStudent"
  16089. :noWorksSData="noWorksS"
  16090. :chapInfoListData="chapInfoList"
  16091. :courseType="courseType"
  16092. :taskCount="taskCount"
  16093. :tType="tType"
  16094. :sIsOpen="sIsOpen"
  16095. :courseDetail="courseDetail"
  16096. :groupStudent2="groupStudent"
  16097. :groupStudentUid2="groupStudentUid"
  16098. :oid="oid"
  16099. :org="org"
  16100. @getCourseDetail="getCourseDetail"
  16101. @selectSLook="selectSLook"
  16102. @selectSWorks="selectSWorks"
  16103. @selectStudent="selectStudent"
  16104. @deleteWorks="deleteWorks"
  16105. @openTools="openTools"
  16106. @openWord="openWord"
  16107. @openScore="openScore"
  16108. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  16109. />
  16110. <el-dialog
  16111. :visible.sync="confirmOpenDig"
  16112. width="500px"
  16113. :modal="false"
  16114. class="confirmOpenDigCss dialog_diyCopy"
  16115. :before-close="handleClose">
  16116. <div style="display: flex;align-items: center;">
  16117. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  16118. <span>“{{ courseDetail.title }}”开课啦</span>
  16119. </div>
  16120. <div style="margin: 20px 0 35px;">
  16121. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  16122. <div>要认真听讲哦~</div>
  16123. </div>
  16124. <div style="text-align: center;">
  16125. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  16126. </div>
  16127. </el-dialog>
  16128. <appStoreC ref="appStoreC"
  16129. :sStudent="sStudent"
  16130. :courseType="courseType"
  16131. :taskCount="taskCount"
  16132. :toolindex="toolindex"
  16133. @selectSWorks="selectSWorks"
  16134. @selectStudent="selectStudent"
  16135. ></appStoreC>
  16136. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  16137. </div>
  16138. </template>
  16139. <script>
  16140. import "../../common/aws-sdk-2.235.1.min.js";
  16141. // import pdf from "../components/pdf3";
  16142. import pdf from "../components/vpdf";
  16143. import AskStatic from "../components/askStatic";
  16144. import AskStatic2 from "../components/askStatic2";
  16145. import AnswerData2 from "../components/answerData2";
  16146. import AnswerData from "../components/answerData";
  16147. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  16148. import EditorBar from "../tools/wangEnduit.vue";
  16149. import Table from "../tools/table.vue";
  16150. import Time from "../tools/time.vue";
  16151. import Mind from "../tools/jsmind.vue";
  16152. import Sunburst from "../tools/sunburst";
  16153. import SeeBoard from "../tools/seeBoard";
  16154. import * as imageConversion from "image-conversion";
  16155. import Audio from "../components/audio.vue";
  16156. import ImgDraw from "../tools/imgDraw/imgDraw";
  16157. import { Empty } from "element-ui";
  16158. import RecordRTC from "recordrtc";
  16159. import interVideo from "../interVideo/index.vue";
  16160. import UpdateMore from "../updateMore/updateMore.vue";
  16161. import wordCloud from "../wordCloud/index.vue";
  16162. import axios from "axios";
  16163. import JSZip from "jszip";
  16164. import FileSaver from "file-saver";
  16165. import onlineWrite from "./commpont/onlineWrite";
  16166. import englishEva from "../components/englishEva";
  16167. import * as Diff from "diff";
  16168. import EnglishVoice from "../EnglishVoice2/index.vue";
  16169. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  16170. import correctText from "../components/correctText.vue";
  16171. import scoreItem from "../scoreList/scoreItem.vue";
  16172. import scoreZong from "../scoreZong/index.vue";
  16173. import classRoomHelper from "../classRoomHelper/index.vue";
  16174. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  16175. import markScore from "./commpont/markScore";
  16176. import markDialog from "./commpont/markDialog";
  16177. import evaTable from "./commpont/evaTable";
  16178. import { v4 as uuidv4 } from "uuid";
  16179. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  16180. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  16181. import appStoreC from "../components/appStoreC.vue";
  16182. import cocoFlowDia from "../components/cocoFlowDia.vue";
  16183. import katex from 'katex'
  16184. import 'katex/dist/katex.min.css'
  16185. import choseWordCloud from '../components/choseWordCloud.vue'
  16186. import { myMixin } from "@/mixins/mixin.js"
  16187. import { tools as toolsList } from "@/common/tools2.js";
  16188. var OpenCC = require("opencc-js");
  16189. let converter = OpenCC.Converter({
  16190. from: "hk",
  16191. to: "cn"
  16192. });
  16193. const getFile = url => {
  16194. return new Promise((resolve, reject) => {
  16195. var credentials = {
  16196. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16197. secretAccessKey: "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"
  16198. }; //秘钥形式的登录上传
  16199. window.AWS.config.update(credentials);
  16200. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16201. let url2 = url;
  16202. let _url2 = "";
  16203. if (
  16204. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16205. ) {
  16206. _url2 = url2.split(
  16207. "https://view.officeapps.live.com/op/view.aspx?src="
  16208. )[1];
  16209. } else {
  16210. _url2 = url2;
  16211. }
  16212. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  16213. let name = decodeURIComponent(
  16214. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16215. );
  16216. var params = {
  16217. Bucket: "ccrb",
  16218. Key: name
  16219. };
  16220. s3.getObject(params, function(err, data) {
  16221. if (err) {
  16222. console.log(err, err.stack);
  16223. resolve({ data: 1 });
  16224. } else {
  16225. resolve({ data: data.Body });
  16226. console.log(data);
  16227. } // sxuccessful response
  16228. });
  16229. // axios({
  16230. // method: "get",
  16231. // url,
  16232. // responseType: "blob",
  16233. // })
  16234. // .then((data) => {
  16235. // resolve({ data: data.data });
  16236. // })
  16237. // .catch((error) => {
  16238. // resolve({ data: 1 });
  16239. // // reject(error.toString());
  16240. // });
  16241. });
  16242. };
  16243. export default {
  16244. mixins: [ myMixin ],
  16245. components: {
  16246. choseWordCloud,
  16247. EditorBar,
  16248. Time,
  16249. pdf,
  16250. AskStatic,
  16251. AskStatic2,
  16252. Mind,
  16253. Sunburst,
  16254. SeeBoard,
  16255. AnswerData2,
  16256. AnswerData,
  16257. sortToolWorkShow,
  16258. Audio,
  16259. ImgDraw,
  16260. Table,
  16261. interVideo,
  16262. UpdateMore,
  16263. wordCloud,
  16264. onlineWrite,
  16265. englishEva,
  16266. EnglishVoice,
  16267. checkEnglishVoice,
  16268. correctText,
  16269. scoreItem,
  16270. classRoomHelper,
  16271. scoreZong,
  16272. markScore,
  16273. markDialog,
  16274. evaTable,
  16275. statisticalAnalysis,
  16276. choseWorksDetailDialog,
  16277. appStoreC,
  16278. cocoFlowDia,
  16279. studentClassRoomHelper
  16280. },
  16281. data() {
  16282. return {
  16283. startTime: "",
  16284. // 是否允许学生查看内容资料 2不可以 1可以
  16285. IsStulook:false,
  16286. homeWorkLoading:false,
  16287. wordCloudKey: 0,
  16288. bg: null,
  16289. drawShow: false,
  16290. dialogVisible: false,
  16291. dialogVisiblePl: false,
  16292. commentDialogVisible: false,
  16293. dialogVisibleMember: false,
  16294. dialogVisibleWordCloud: false,
  16295. videoVisible: false,
  16296. isStar: false,
  16297. studentEvalDialogVisible: false,
  16298. studentEvalDialogVisibleTeacher: false,
  16299. dialogVisibleSelect: false,
  16300. dialogVisibleSelectTeacher: false,
  16301. dialogVisibleScore: false,
  16302. dialogVisibleENScore: false,
  16303. dialogVisibleSentence: false,
  16304. dialogVisibleSentenceTeacher: false,
  16305. dialogVisibleSentence1: false,
  16306. dialogVisibleWorks: false,
  16307. dialogVisibleTable: false,
  16308. dialogVisibleTableTeacher: false,
  16309. dialogVisibleWord: false,
  16310. dialogVisibleWordTeacher: false,
  16311. dialogVisibleTable2: false,
  16312. dialogVisibleTable3: false,
  16313. dialogVisibleGroupWork: false,
  16314. dialogVisibleUpdateGroup: false,
  16315. dialogVisibleDeleteGroup: false,
  16316. dialogVisibleSname: false,
  16317. dialogVisibleVideo: false,
  16318. dialogVisiblePickPeople: false,
  16319. engDialogVisible: false,
  16320. engUpdateDialogVisible: false,
  16321. engEvaDialogVisible: false,
  16322. evaEngJson: {
  16323. teacherJson: {},
  16324. studentJson: {},
  16325. message: {}
  16326. },
  16327. isNoUserid: false,
  16328. engListLength: 0,
  16329. engWid: "",
  16330. newEnglishList: {
  16331. engTitle: "",
  16332. engText: ""
  16333. },
  16334. toolsList: toolsList,
  16335. newEnglishList1: [],
  16336. oldEnglishJson: {},
  16337. oldEnglishJson1: {},
  16338. englishList1: {},
  16339. englishList: {},
  16340. myAnswerList1: {},
  16341. topHeight: 0,
  16342. newEngIndex: -1,
  16343. englishToolIndex: 0,
  16344. userMes: {},
  16345. englishToolIndex: 0,
  16346. worksSName: "",
  16347. classJuri: [],
  16348. uploadStudentJuri: [],
  16349. uploadCid: "",
  16350. snameWid: "",
  16351. sStudent: {},
  16352. sTool: "",
  16353. bzText: "",
  16354. commentDetail: [],
  16355. selectAnswer: [],
  16356. videoDetail: {},
  16357. selectJson: {},
  16358. englishList: {},
  16359. topHeight: 0,
  16360. eScore: { eBzText: "", eStar: [] },
  16361. id: this.$route.query.courseId,
  16362. userid: this.$route.query.userid,
  16363. classId: this.$route.query.cid,
  16364. role: this.$route.query.role,
  16365. // courseTypeLine: this.$route.query.type,
  16366. oid: this.$route.query.oid,
  16367. org: this.$route.query.org,
  16368. tType: this.$route.query.tType,
  16369. courseType: this.$route.query.type,
  16370. screenType: this.$route.query.screenType,
  16371. tcid2: this.$route.query.tcid,
  16372. tcid: "",
  16373. pptImgUrl: "",
  16374. pptImgUrl1: "",
  16375. commentText: "",
  16376. full: false,
  16377. sIsOpen: false, //允许学生查看所有作业
  16378. IsLookOpen: false, //禁止学生查看所有阶段
  16379. IsFollow: false, //开启跟随模式
  16380. pzDialog: false,
  16381. contentDialog: false,
  16382. mlDialog: false,
  16383. type: 1,
  16384. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  16385. sentenceList1: [],
  16386. tableJson: [],
  16387. tableJsonO: [],
  16388. wordJson: [],
  16389. wordJsonO: [],
  16390. vedio: [],
  16391. text: [],
  16392. textList: [],
  16393. line: [],
  16394. lineList: [],
  16395. chapTools: [],
  16396. chapToolList: [],
  16397. file: [],
  16398. fileC: [],
  16399. vedioTime: [],
  16400. upToolImg: "",
  16401. preTime: 0,
  16402. rateList: {
  16403. ca: 0
  16404. },
  16405. rateParams: [],
  16406. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  16407. studyJuri: [
  16408. {
  16409. content: "",
  16410. cover: [],
  16411. upVedio: [],
  16412. upFile: []
  16413. }
  16414. ],
  16415. isClose: 0,
  16416. plworkFile: [],
  16417. mr: require("../../assets/vedioPic.png"),
  16418. word: require("../../assets/icon/isWord.png"),
  16419. word2: require("../../assets/icon/word2.png"),
  16420. video: require("../../assets/icon/isVideo.png"),
  16421. noLikes: require("../../assets/icon/comment/noLikes.png"),
  16422. likes: require("../../assets/icon/comment/likes.png"),
  16423. scoreImg: require("../../assets/score.png"),
  16424. courseDetail: {},
  16425. reply: "",
  16426. isSelect: false,
  16427. chapInfo: [],
  16428. chapInfoList: [],
  16429. taskCount: 0,
  16430. imgList: [],
  16431. noImgList: [],
  16432. pzList: [],
  16433. timeWorkList: [],
  16434. PlTextList: [
  16435. "Excellent!",
  16436. "nice!",
  16437. "很有创意!",
  16438. "还不错哦~",
  16439. "继续努力哦~"
  16440. ],
  16441. isClickNav: "",
  16442. navId: "",
  16443. playerOptions: {
  16444. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16445. autoplay: false, //如果true,浏览器准备好时开始回放。
  16446. muted: false, // 默认情况下将会消除任何音频。
  16447. loop: false, // 导致视频一结束就重新开始。
  16448. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16449. language: "zh-CN",
  16450. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16451. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16452. sources: [
  16453. {
  16454. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16455. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16456. }
  16457. ],
  16458. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16459. // poster: dataRes.imgUrl, //你的封面地址
  16460. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16461. controlBar: {
  16462. timeDivider: true, //当前时间和持续时间的分隔符
  16463. durationDisplay: true, //显示持续时间
  16464. remainingTimeDisplay: false, //是否显示剩余时间功能
  16465. fullscreenToggle: true //全屏按钮
  16466. }
  16467. },
  16468. playerOptions1: {
  16469. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16470. autoplay: false, //如果true,浏览器准备好时开始回放。
  16471. muted: false, // 默认情况下将会消除任何音频。
  16472. loop: false, // 导致视频一结束就重新开始。
  16473. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16474. language: "zh-CN",
  16475. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16476. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16477. sources: [
  16478. {
  16479. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16480. src: "" //url地址require("../../../assets/media/aaa.mp4")
  16481. }
  16482. ],
  16483. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16484. // poster: dataRes.imgUrl, //你的封面地址
  16485. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16486. controlBar: {
  16487. timeDivider: true, //当前时间和持续时间的分隔符
  16488. durationDisplay: true, //显示持续时间
  16489. remainingTimeDisplay: false, //是否显示剩余时间功能
  16490. fullscreenToggle: true //全屏按钮
  16491. }
  16492. },
  16493. playerO: {},
  16494. noneBtnImg: false,
  16495. proVisible: false,
  16496. proVisible2: false,
  16497. progress: 0,
  16498. isFinishSize: 0,
  16499. isAllSize: 0,
  16500. questionAnswer: "",
  16501. answerQ: "", //问答标题
  16502. rateJson: [],
  16503. wbCount: 0,
  16504. wordCount: 0,
  16505. mindCount: 0,
  16506. askCount: 0,
  16507. noteCount: 0,
  16508. mindNetWorkCount: 0,
  16509. libraryCount: 0,
  16510. workCount: 0,
  16511. timeCount: 0,
  16512. answerCount: 0,
  16513. trainCount: 0,
  16514. evalCount: 0,
  16515. dialogImageUrl: "",
  16516. pictureDialog: false,
  16517. toolTypeList: [],
  16518. dialogVisible1: false,
  16519. dialogVisible2: false,
  16520. dialogVisible3: false,
  16521. dialogVisible6: false,
  16522. dialogVisible4: false,
  16523. isNoHomeWork: false,
  16524. dialogVisible5: false,
  16525. dialogVisible5Teacher: false,
  16526. dialogVisibleChoice: false,
  16527. dialogVisibleChoiceTeacher: false,
  16528. answerDialogVisible: false,
  16529. answerDialogVisibleTeacher: false,
  16530. juriVisible: false,
  16531. timeDialogVisible: false,
  16532. replyDialogVisible: false,
  16533. toolDialogVisible: false,
  16534. replyIndex: 0,
  16535. replyPid: "",
  16536. radio: [],
  16537. isAsk: false,
  16538. askJson: {
  16539. askCount: 1,
  16540. askTitle: "",
  16541. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16542. },
  16543. testJson: {},
  16544. videoType: 0,
  16545. checkJson: [],
  16546. askList: [],
  16547. answerList: [],
  16548. navList: [],
  16549. addPzDialog: false,
  16550. pzConText: "",
  16551. worksStudent: [],
  16552. isCloseList: [],
  16553. workStudent: [],
  16554. groupStudent: [],
  16555. groupStudentUid: [],
  16556. noWorksS: [],
  16557. isWorksS: [],
  16558. noWorksStudent: [],
  16559. toolindex: 0,
  16560. toolDetailIndex: null,
  16561. groupIndex: 0,
  16562. workTypeB: false,
  16563. workTypeC: false,
  16564. isAnswer: false,
  16565. isHovered: false,
  16566. isHovered1: false,
  16567. isHovered2: false,
  16568. commentTagShow: 0,
  16569. timer: null,
  16570. timer2: null,
  16571. opertimer: null,
  16572. showType: 0,
  16573. fileType: 0,
  16574. showPDF: false,
  16575. noteName: "",
  16576. evaJuri: [],
  16577. evalua: "",
  16578. eTitle: "",
  16579. eName: "",
  16580. eJson: {},
  16581. fid: "", //一级
  16582. sid: "", //二级
  16583. tid: "", //二级
  16584. typeMode: 1,
  16585. eJSONNum: 0,
  16586. Etype: 1,
  16587. data: {
  16588. meta: {
  16589. name: "example",
  16590. author: "dd@163.com",
  16591. version: "0.2"
  16592. },
  16593. format: "node_array",
  16594. data: [{ id: "root", isroot: true, topic: "" }]
  16595. },
  16596. fullDialogVisible: false,
  16597. fulltype: "",
  16598. fullUrl: "",
  16599. commentIndexJson: {},
  16600. Stbodywidth: 0,
  16601. ispzType: 0,
  16602. pzType: 1,
  16603. wScore: 0,
  16604. scoreDetail: "",
  16605. videoStart: false,
  16606. recorder: null,
  16607. groupJson: {},
  16608. islock: false,
  16609. groupJson2: {},
  16610. dialogVisibleGroup: false,
  16611. dialogVisibleGroup2: false,
  16612. updateGroupArray: [],
  16613. updateGroupUser: {},
  16614. deleteGroupUser: [],
  16615. deleteGroupArray: {},
  16616. checkChair: "",
  16617. checkDeleteGroup: [],
  16618. inviteCode: "",
  16619. courseGroupStudent: [],
  16620. courseGroupStudentUid: [],
  16621. courseGroup: {},
  16622. isGroup: false,
  16623. toolIndex: null,
  16624. tool: {},
  16625. isWorkTool: [
  16626. 16,
  16627. 32,
  16628. 57,
  16629. 4,
  16630. 45,
  16631. 15,
  16632. 1,
  16633. 3,
  16634. 6,
  16635. 7,
  16636. 26,
  16637. 41,
  16638. 47,
  16639. 48,
  16640. 52,
  16641. 50,
  16642. 40
  16643. ], //, 40
  16644. videoJson: {},
  16645. toolType: 0,
  16646. checktoolArray: [],
  16647. vChapterData: [],
  16648. isUpdateToolDetail: false,
  16649. isUpdateToolDetail1: false,
  16650. updateToolDetailInner: "",
  16651. checkboxList: [],
  16652. plIndex: "",
  16653. worksSName2: "",
  16654. worksSid: "",
  16655. wordCloudData: [],
  16656. isPickStudent: [],
  16657. pzStype: 1,
  16658. downLoading: false,
  16659. greyType: false,
  16660. correctWord: [],
  16661. EnglishVoiceDialog: false,
  16662. englishVoiceJson: {},
  16663. englishVoiceJsonWork: [],
  16664. scoreList: {
  16665. listdata: [],
  16666. isScoreList: []
  16667. },
  16668. classRoomHelperWidth: "85px",
  16669. orgArray: [],
  16670. oidArray: [],
  16671. refreshKey: 0,
  16672. AIloading: [],
  16673. // 为了刷新ai评分loading的时候用的
  16674. worksStudentCopy: [],
  16675. loopLoading: [],
  16676. markScoreVisible: false,
  16677. markScoretoolIndex: 0,
  16678. markScoreUid: "",
  16679. markScoreTit: {},
  16680. markfullscreen: false,
  16681. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16682. markScoreworksStudent: [],
  16683. finalMarkList: -1,
  16684. isaiNum: 0,
  16685. dialogVisibleTxt: false,
  16686. TxtMd: "",
  16687. languageSetting: 0, //0中文 1繁体 2英文
  16688. toolListS: [],
  16689. commentDetailCopy: "",
  16690. splitScreenData: {
  16691. isOpen: false,
  16692. userId: "",
  16693. uid: "",
  16694. myUid: "",
  16695. loading: false,
  16696. behavior: null
  16697. },
  16698. confirmOpenDig:false,
  16699. confirmOpenDigData:'',
  16700. diffKey:"1"
  16701. };
  16702. },
  16703. watch:{
  16704. taskCount(newVal) {
  16705. console.log('newVal',newVal);
  16706. this.AIloading = [];
  16707. this.loopLoading = [];
  16708. this.worksStudent.forEach((e, index) => {
  16709. this.loopLoading.push({ loading: false });
  16710. this.AIloading.push([]);
  16711. e.forEach(k => {
  16712. this.AIloading[index].push({ loading: false, sco: 0 });
  16713. });
  16714. });
  16715. if(this.tType == 1){
  16716. this.refreshAssembly();
  16717. }
  16718. },
  16719. worksStudent: {
  16720. handler(newVal, oldVal) {
  16721. const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  16722. const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  16723. // console.log('worksStudent',sum1,sum2);
  16724. if(sum1 != sum2){
  16725. this.AIloading = [];
  16726. this.loopLoading = [];
  16727. this.worksStudent.forEach((e, index) => {
  16728. this.loopLoading.push({ loading: false });
  16729. this.AIloading.push([]);
  16730. e.forEach(k => {
  16731. this.AIloading[index].push({ loading: false, sco: 0 });
  16732. });
  16733. });
  16734. if(this.tType == 1){
  16735. this.refreshAssembly();
  16736. }
  16737. }
  16738. },
  16739. deep:true,
  16740. }
  16741. },
  16742. methods: {
  16743. getAIJ() {
  16744. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16745. let oid = res.data[0];
  16746. let org = res.data[1];
  16747. let oidArray = [];
  16748. let orgArray = [];
  16749. oid.forEach(i => oidArray.push(i.oid));
  16750. org.forEach(i => orgArray.push(i.oid));
  16751. this.orgArray = orgArray;
  16752. this.oidArray = oidArray;
  16753. });
  16754. },
  16755. //查看应用中心作业
  16756. openCocoFlow(w){
  16757. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16758. },
  16759. // 评分弹框全屏
  16760. markFullScreenBtn() {
  16761. this.markfullscreen = !this.markfullscreen;
  16762. },
  16763. insertMemorandum(_html) {
  16764. //保存行为操作
  16765. //variable
  16766. //btn
  16767. let params = [
  16768. {
  16769. uid: this.userid,
  16770. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16771. content: _html
  16772. }
  16773. ];
  16774. console.log(params);
  16775. this.ajax
  16776. .post(
  16777. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16778. params
  16779. )
  16780. .then(res => {
  16781. if (res.data == 1) {
  16782. console.log("保存操作成功");
  16783. } else {
  16784. console.log("保存操作失败");
  16785. }
  16786. })
  16787. .catch(e => {
  16788. console.log("保存操作失败");
  16789. console.log(e);
  16790. });
  16791. },
  16792. // 获取文档id
  16793. createFileid(url) {
  16794. let _this = this;
  16795. return new Promise((resolve, reject) => {
  16796. try {
  16797. _this.ajax
  16798. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16799. url: url
  16800. })
  16801. .then(res => {
  16802. let _data = res.data.FunctionResponse;
  16803. if (_data.result && _data.result.id) {
  16804. resolve(_data.result.id);
  16805. } else {
  16806. resolve(1);
  16807. }
  16808. })
  16809. .catch(function(error) {
  16810. resolve(1);
  16811. });
  16812. } catch (e) {
  16813. resolve(1);
  16814. }
  16815. });
  16816. },
  16817. // 一键重置
  16818. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16819. let jude = false;
  16820. this.AIloading.forEach((e, index) => {
  16821. if (index == toolIndex) {
  16822. e.forEach(k => {
  16823. if (k.loading == true) jude = true;
  16824. });
  16825. }
  16826. });
  16827. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16828. this.$confirm("确认一键重置?")
  16829. .then(_ => {
  16830. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16831. })
  16832. .catch(_ => {});
  16833. },
  16834. // 一键重置
  16835. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16836. for (let index = 0; index < con.length; index++) {
  16837. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16838. }
  16839. this.$message.success("重置完成");
  16840. this.worksStudent.forEach((e, index) => {
  16841. if (toolIndex == index) {
  16842. console.log("6666");
  16843. e.forEach((i, inx) => {
  16844. let mk = `markSco${index}${inx}`;
  16845. this.$refs[mk][0].getData();
  16846. });
  16847. }
  16848. });
  16849. },
  16850. // 一键重置
  16851. allEmptySco(uid, stage, task, toolIndex) {
  16852. let params = [
  16853. {
  16854. cid: this.id,
  16855. uid: uid,
  16856. s: stage,
  16857. t: task,
  16858. tool: toolIndex ? toolIndex : ""
  16859. }
  16860. ];
  16861. return new Promise(resolve => {
  16862. this.ajax
  16863. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16864. .then(res => {
  16865. resolve(1);
  16866. })
  16867. .catch(err => {
  16868. console.error(err);
  16869. });
  16870. }).catch(error => {
  16871. console.log(error);
  16872. });
  16873. },
  16874. // AI评分循环打分
  16875. async loopEva(
  16876. con,
  16877. tit,
  16878. stage,
  16879. task,
  16880. toolIndex,
  16881. toolDetail,
  16882. taskDetail,
  16883. toolList
  16884. ) {
  16885. let jude = false;
  16886. this.AIloading.forEach((e, index) => {
  16887. if (index == toolIndex) {
  16888. e.forEach(k => {
  16889. if (k.loading == true) jude = true;
  16890. });
  16891. }
  16892. });
  16893. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16894. this.AIloading.forEach((e, index) => {
  16895. if (index == toolIndex) {
  16896. e.forEach(k => {
  16897. k.loading = true;
  16898. });
  16899. }
  16900. });
  16901. this.loopLoading[toolIndex].loading = true;
  16902. let laws = "";
  16903. let std = "";
  16904. let text = "";
  16905. if (toolList && toolList.eList && toolList.eList.length) {
  16906. for (let i = 0; i < toolList.eList.length; i++) {
  16907. if (toolList.eList[i].isai == 1) {
  16908. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16909. }
  16910. }
  16911. for (let i = 0; i < toolList.eList.length; i++) {
  16912. if (toolList.eList[i].isai == 1) {
  16913. let a = toolList.eList[i].detail;
  16914. if (isNaN(parseFloat(a)) && a) {
  16915. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16916. } else {
  16917. var result = a;
  16918. }
  16919. std += `纬度${i}:“${result}”, \n`;
  16920. }
  16921. }
  16922. for (let i = 0; i < toolList.eList.length; i++) {
  16923. if (toolList.eList[i].isai == 1) {
  16924. let a = toolList.eList[i].detail;
  16925. if (isNaN(parseFloat(a)) && a) {
  16926. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16927. } else {
  16928. var result = a;
  16929. }
  16930. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16931. }
  16932. }
  16933. } else {
  16934. let titRule = 0;
  16935. let titRule2 = 0;
  16936. tit.forEach((e, index) => {
  16937. if (!e.isai) {
  16938. e.isai = 1;
  16939. }
  16940. });
  16941. tit.forEach((e, index) => {
  16942. if (e.isai == 1) {
  16943. titRule2++;
  16944. if (e.rule) {
  16945. titRule++;
  16946. }
  16947. }
  16948. });
  16949. if (titRule != titRule2) {
  16950. this.AIloading.forEach((e, index) => {
  16951. if (index == toolIndex) {
  16952. e.forEach(k => {
  16953. k.loading = false;
  16954. });
  16955. }
  16956. });
  16957. this.loopLoading[toolIndex].loading = false;
  16958. this.$message.info("细则努力生成中,请稍候……");
  16959. return;
  16960. }
  16961. for (let i = 0; i < tit.length; i++) {
  16962. if (tit[i].isai == 1) {
  16963. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16964. }
  16965. }
  16966. for (let i = 0; i < tit.length; i++) {
  16967. if (tit[i].isai == 1) {
  16968. let a = tit[i].detail;
  16969. if (isNaN(parseFloat(a)) && a) {
  16970. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16971. } else {
  16972. var result = a;
  16973. }
  16974. std += `纬度${i}:“${result}”, \n`;
  16975. }
  16976. }
  16977. for (let i = 0; i < tit.length; i++) {
  16978. if (tit[i].isai == 1) {
  16979. let a = tit[i].detail;
  16980. if (isNaN(parseFloat(a)) && a) {
  16981. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16982. } else {
  16983. var result = a;
  16984. }
  16985. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16986. }
  16987. }
  16988. }
  16989. let forAllList = [];
  16990. // console.log('con',con)
  16991. for (let i = 0; i < con.length; i++) {
  16992. let _fileid = "";
  16993. let wok = con[i].works;
  16994. // console.log('con[i].type',con[i].type);
  16995. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16996. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16997. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16998. _fileid = await this.createFileid(con[i].works);
  16999. } else {
  17000. this.AIloading[toolIndex][i].loading = false;
  17001. continue;
  17002. }
  17003. }
  17004. // console.log('con[i].type',con[i])
  17005. console.log('con[i].type',con[i].type)
  17006. if (_fileid == 1 || con[i].type == 3) {
  17007. this.AIloading[toolIndex][i].loading = false;
  17008. continue;
  17009. }
  17010. let msg = ''
  17011. if(con[i].type == 20){
  17012. msg = `#NOTICE#
  17013. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  17014. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  17015. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  17016. - 拥有客观公正的态度,确保评分结果公平合理。
  17017. - 能够清晰准确地表达评语,使学生和教师易于理解。
  17018. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  17019. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  17020. Language: ${this.getLang()}
  17021. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  17022. Instruction: Based on the context, follow "Format example", write content.
  17023. #目标#
  17024. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  17025. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  17026. #评分资料#
  17027. 评价标准:${std}
  17028. 评价细则:${laws}
  17029. 等级:${text}
  17030. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  17031. 具体你步骤如下:
  17032. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  17033. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  17034. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  17035. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  17036. ### 理论框架
  17037. ### 教育目标分类理论
  17038. 1. 基本原理:
  17039. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  17040. - 有助于明确教学活动期望达成的目标类型。
  17041. - 为评价教学成果提供了分类框架。
  17042. 2. 具体应用:
  17043. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  17044. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  17045. - 对比不同对话内容在目标达成度上的差异进行评分。
  17046. ### 教学评价理论
  17047. 1. 基本原理:
  17048. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  17049. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  17050. - 强调评价的客观性、全面性和发展性。
  17051. 2. 具体应用:
  17052. - 从对话中提取与教学内容、方法相关的信息进行评价。
  17053. - 考量对话对学生学习效果的影响来给出评分。
  17054. - 根据评价结果提出改进和发展的建议。
  17055. ### 对话分析理论
  17056. 1. 基本原理:
  17057. - 着重对对话结构、话语功能、交互模式等进行分析。
  17058. - 揭示对话中的信息流动、话语权分配等情况。
  17059. - 有助于理解对话参与者之间的关系和互动效果。
  17060. 2. 具体应用:
  17061. - 剖析“小可ai助手”与学生对话的结构合理性。
  17062. - 分析话语功能是否有助于学习和评价目的。
  17063. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  17064. #输出格式#
  17065. [${text}{'comment':'评语(150个汉字左右)'}]
  17066. 注意检查输出评语不超过50字`
  17067. }else{
  17068. msg = `NOTICE
  17069. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  17070. Language: ${this.getLang()}
  17071. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  17072. Instruction: Based on the context, follow "Format example", write content.
  17073. #目标#
  17074. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  17075. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  17076. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  17077. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  17078. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  17079. #评分资料#
  17080. 评价标准:${std}
  17081. 评价细则:${laws}
  17082. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  17083. 任务描述:${taskDetail}
  17084. 工具描述:${toolDetail}
  17085. #输出要求#
  17086. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  17087. “评语”控制在150字左右。
  17088. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  17089. #输出格式#
  17090. [${text}{'comment':'评语(150个汉字左右)'}]
  17091. `;
  17092. }
  17093. let mk = `markSco${toolIndex}${i}`;
  17094. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  17095. msg,
  17096. con[i].userid,
  17097. stage,
  17098. task,
  17099. _fileid,
  17100. con[i].type
  17101. );
  17102. forAllList.push(mkAwit);
  17103. }
  17104. Promise.all(forAllList)
  17105. .then(values => {
  17106. console.log("values", values);
  17107. this.$message({
  17108. message: "评价成功",
  17109. type: "success"
  17110. });
  17111. // this.refreshKey++
  17112. // this.worksStudent.forEach((e,index)=>{
  17113. // if(toolIndex == index){
  17114. // e.forEach((i,inx)=>{
  17115. // let mk = `markSco${index}${inx}`
  17116. // this.$refs[mk][0].getData()
  17117. // })
  17118. // }
  17119. // })
  17120. this.AIloading[toolIndex].forEach(e => {
  17121. e.loading = false;
  17122. });
  17123. this.loopLoading[toolIndex].loading = false;
  17124. })
  17125. .catch(reason => {
  17126. console.error("reasonreasonreasonreasonreason", reason);
  17127. // 输出“失败原因”
  17128. });
  17129. },
  17130. // 获取评价细则
  17131. againEva(i, k) {
  17132. let msg = `NOTICE
  17133. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  17134. Language: ${this.getLang()}
  17135. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  17136. Instruction: Based on the context, follow "Format example", write content.
  17137. #Context
  17138. ##要求
  17139. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  17140. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  17141. ##制定标准资料
  17142. 评价维度:${
  17143. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  17144. }
  17145. 维度描述:${
  17146. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  17147. }
  17148. # Format example
  17149. ==
  17150. 0 星,作业内容与作业要求无关;
  17151. 1 星,没有识别问题和需求;
  17152. 2 星,问题或需求没有被清晰理解或准确识别;
  17153. 3 星,问题或需求的一部分被识别;
  17154. 4 星,问题或需求的大部分被识别;
  17155. 5 星,问题或需求都被识别。
  17156. ==
  17157. `;
  17158. let params = {
  17159. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  17160. message: [
  17161. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  17162. ],
  17163. session_name: uuidv4(),
  17164. userId: this.userid,
  17165. file_ids: [],
  17166. model: "gpt-4o-2024-11-20"
  17167. };
  17168. // console.log('params',params);
  17169. this.ajax
  17170. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  17171. .then(response => {
  17172. let data = response.data.FunctionResponse;
  17173. // console.log("data", data);
  17174. if (data.message) {
  17175. let content = data.message;
  17176. var regex = new RegExp("==([^=]+)==");
  17177. let match = content.match(regex);
  17178. if (match) {
  17179. content = match[1].trim().replaceAll(" ", "");
  17180. // 获取匹配到的内容并去除两端空格
  17181. // console.log('contentInsideDoubleEquals', content);
  17182. if (
  17183. content.indexOf("0星") == -1 ||
  17184. content.indexOf("2星") == -1 ||
  17185. content.indexOf("3星") == -1 ||
  17186. content.indexOf("4星") == -1 ||
  17187. content.indexOf("5星") == -1
  17188. ) {
  17189. console.log("未有星级。");
  17190. this.againEva(i, k);
  17191. return;
  17192. }
  17193. // return
  17194. } else {
  17195. console.log("未找到匹配的内容。");
  17196. this.againEva(i, k);
  17197. return;
  17198. }
  17199. let elist = JSON.parse(
  17200. JSON.stringify(
  17201. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  17202. )
  17203. );
  17204. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  17205. elist.rule = JSON.parse(
  17206. JSON.stringify(content.replaceAll("#", ""))
  17207. );
  17208. this.$set(
  17209. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  17210. k,
  17211. elist
  17212. );
  17213. this.$forceUpdate();
  17214. let params2 = [
  17215. {
  17216. cid: this.id,
  17217. chapters: JSON.stringify(this.chapInfoList),
  17218. uid: this.userid,
  17219. unitIndex: this.courseType
  17220. }
  17221. ];
  17222. this.ajax
  17223. .post(this.$store.state.api + "updateWorkNew4", params2)
  17224. .then(res => {
  17225. this.getCourseDetail(2);
  17226. this.$forceUpdate();
  17227. })
  17228. .catch(err => {
  17229. this.$message.error("网络不佳");
  17230. console.error(err);
  17231. });
  17232. // 进行进一步处理或解析outputContent
  17233. // } else {
  17234. // console.log("No match found for # Output section.");
  17235. // }
  17236. }
  17237. })
  17238. .catch(error => {
  17239. console.log(error);
  17240. });
  17241. },
  17242. // 关闭评分弹框
  17243. markScorehandleClose(done) {
  17244. // this.refreshKey++
  17245. this.worksStudent.forEach((e, index) => {
  17246. if (this.markScoretoolIndex == index) {
  17247. e.forEach((i, inx) => {
  17248. let mk = `markSco${index}${inx}`;
  17249. if (this.$refs[mk] && this.$refs[mk][0]) {
  17250. this.$refs[mk][0].getData();
  17251. }
  17252. });
  17253. }
  17254. });
  17255. done();
  17256. },
  17257. // 关闭txtMd预览弹框
  17258. handleCloseTxt(done) {
  17259. this.TxtMd = "";
  17260. done();
  17261. },
  17262. // Txt,Md作业查看
  17263. lookTxt(val) {
  17264. this.dialogVisibleTxt = true;
  17265. this.TxtMd = "";
  17266. getFile(val).then(res => {
  17267. this.TxtMd = res.data;
  17268. });
  17269. },
  17270. // 组件刷新
  17271. refreshAssembly() {
  17272. this.refreshKey++;
  17273. },
  17274. updateLoading(payload) {
  17275. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  17276. },
  17277. handleShow(toolIndex, val) {
  17278. let mk = `markSco${toolIndex}${val}`;
  17279. // console.log(mk);
  17280. this.$refs[mk][0].getData();
  17281. },
  17282. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  17283. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  17284. // console.log('this.AIloading',this.AIloading)
  17285. let jude = false;
  17286. this.AIloading.forEach((e, index) => {
  17287. if (index == tidx) {
  17288. e.forEach(k => {
  17289. if (k.loading == true) jude = true;
  17290. });
  17291. }
  17292. });
  17293. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17294. if (val) return;
  17295. // console.log(uname,worksStudent,uid,tidx,titlist)
  17296. this.markScoreTit = titlist;
  17297. this.markScoreUid = uid;
  17298. this.toolListS = toolList;
  17299. this.markScoretoolIndex = tidx;
  17300. this.markScoreworksStudent = worksStudent;
  17301. this.markfullscreen = false;
  17302. this.markScoreVisible = true;
  17303. if (this.tType == 1) {
  17304. this.insertMemorandum(
  17305. `查看<span class="variable">${uname}</span>的作业`
  17306. );
  17307. }
  17308. },
  17309. // 点击markScore显示评分框
  17310. markScoreDig(data) {
  17311. // console.log('data',data)
  17312. let jude = false;
  17313. this.AIloading.forEach((e, index) => {
  17314. if (index == data.val2) {
  17315. e.forEach(k => {
  17316. if (k.loading == true) jude = true;
  17317. });
  17318. }
  17319. });
  17320. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  17321. this.markScoreTit = data.tit;
  17322. this.markScoreUid = data.val;
  17323. this.markScoretoolIndex = data.val2;
  17324. this.markfullscreen = false;
  17325. this.markScoreVisible = true;
  17326. this.insertMemorandum(
  17327. `查看<span class="variable">${data.uname}</span>的作业`
  17328. );
  17329. },
  17330. // 刷新其他组件分数
  17331. refreshOther(v) {
  17332. // console.log('v',v)
  17333. this.AIloading[v.tid].forEach((e, i) => {
  17334. if (i == v.wid) {
  17335. e.loading = false;
  17336. }
  17337. });
  17338. // this.worksStudent.forEach((e,index)=>{
  17339. // if(toolIndex != index){
  17340. // e.forEach((i,inx)=>{
  17341. // let mk = `markSco${index}${inx}`
  17342. // this.$refs[mk][0].getData()
  17343. // })
  17344. // }
  17345. // })
  17346. },
  17347. updateDocSco(payload) {
  17348. // console.log('payload',payload)
  17349. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  17350. },
  17351. gx() {
  17352. this.$forceUpdate();
  17353. },
  17354. isUpdateCorrect(t, p) {
  17355. if (this.greyType == false) {
  17356. this.isUpdateText = t;
  17357. this.greyType = true;
  17358. } else {
  17359. if (p == 1) {
  17360. this.newEnglishList.engText = this.isUpdateText;
  17361. } else if (p == 2) {
  17362. this.oldEnglishJson1.engText = this.isUpdateText;
  17363. } else if (p == 3) {
  17364. this.newEnglishList.engText = this.isUpdateText;
  17365. } else {
  17366. this.newEnglishList1[
  17367. this.newEngIndex
  17368. ].cWork.engText = this.isUpdateText;
  17369. }
  17370. this.greyType = false;
  17371. }
  17372. },
  17373. aiCorrect(t, p) {
  17374. let aiText = "";
  17375. const loading = this.$loading.service({
  17376. background: "rgba(255, 255, 255)",
  17377. target: document.querySelectorAll(".loadingText")[0]
  17378. });
  17379. let param = {
  17380. model: "gpt-3.5-turbo",
  17381. temperature: 0,
  17382. max_tokens: 2048,
  17383. top_p: 1,
  17384. frequency_penalty: 0,
  17385. presence_penalty: 0,
  17386. messages: [
  17387. {
  17388. role: "user",
  17389. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  17390. }
  17391. ],
  17392. uid: this.userid,
  17393. stream: false
  17394. };
  17395. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  17396. res => {
  17397. if (
  17398. res.data.FunctionResponse &&
  17399. res.data.FunctionResponse.result &&
  17400. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  17401. ) {
  17402. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  17403. return;
  17404. }
  17405. aiText = res.data.FunctionResponse.choices[0].message.content;
  17406. aiText = aiText.replace(/%/g, "%25");
  17407. // let w = "";
  17408. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  17409. // for(var k = 0;k<a.length;k++){
  17410. // //diffWordsWithSpace
  17411. // if(a.length > 1){
  17412. // if(a[k].added == true){
  17413. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  17414. // }else if(a[k].removed == true){
  17415. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  17416. // }else{
  17417. // w += '<span>' + a[k].value + '</span>';
  17418. // }
  17419. // }else{
  17420. // if(p == 1){
  17421. // w = this.newEnglishList.engText;
  17422. // }else if(p == 2){
  17423. // w = this.oldEnglishJson1.engText;
  17424. // }else if(p == 3){
  17425. // w = this.newEnglishList.engText;
  17426. // }else{
  17427. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  17428. // }
  17429. // }
  17430. // }
  17431. if (p == 1) {
  17432. this.newEnglishList.engText = aiText;
  17433. } else if (p == 2) {
  17434. this.oldEnglishJson1.engText = aiText;
  17435. } else if (p == 3) {
  17436. this.newEnglishList.engText = aiText;
  17437. } else {
  17438. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  17439. }
  17440. loading.close();
  17441. },
  17442. err => {
  17443. console.log(err);
  17444. loading.close();
  17445. }
  17446. );
  17447. },
  17448. addToolChoose() {
  17449. if (!this.checktoolArray.length) {
  17450. this.$message.error("请选择要添加的任务");
  17451. return;
  17452. }
  17453. if (
  17454. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17455. this.taskCount
  17456. ].toolChoose[0].tool.length
  17457. ) {
  17458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17459. this.taskCount
  17460. ].toolChoose[0].tool = this.checktoolArray;
  17461. } else {
  17462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17463. this.taskCount
  17464. ].toolChoose.push({
  17465. tool: this.checktoolArray,
  17466. toolDetail: "",
  17467. toolType: 0,
  17468. askCount: 1,
  17469. askTitle: "",
  17470. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  17471. });
  17472. }
  17473. let params = [
  17474. {
  17475. cid: this.id,
  17476. chapters: JSON.stringify(this.chapInfoList),
  17477. uid: this.userid,
  17478. unitIndex: this.courseType
  17479. }
  17480. ];
  17481. this.ajax
  17482. .post(this.$store.state.api + "updateWorkNew4", params)
  17483. .then(res => {
  17484. this.$message({
  17485. message: "添加成功",
  17486. type: "success"
  17487. });
  17488. this.checktoolArray = [];
  17489. this.getCourseDetail(2);
  17490. this.checkBz(
  17491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17492. this.taskCount
  17493. ].toolChoose.length - 1
  17494. );
  17495. this.toolDialogVisible = false;
  17496. this.refreshCourse();
  17497. this.$forceUpdate();
  17498. })
  17499. .catch(err => {
  17500. console.error(err);
  17501. });
  17502. },
  17503. checkBz(index) {
  17504. this.isUpdateToolDetail = false;
  17505. this.$forceUpdate();
  17506. setTimeout(() => {
  17507. document.scrollingElement.scrollTop =
  17508. document.querySelectorAll(".filebox")[index].offsetTop +
  17509. document.querySelector(".student_body").offsetTop;
  17510. }, 500);
  17511. },
  17512. updateToolDetail(i, type) {
  17513. if (
  17514. !this.isUpdateToolDetail1 &&
  17515. type == 2 &&
  17516. (this.courseDetail.userid == this.userid ||
  17517. (this.courseDetail.course_teacher &&
  17518. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  17519. ) {
  17520. this.toolDetailIndex = i;
  17521. this.isUpdateToolDetail1 = true;
  17522. setTimeout(() => {
  17523. this.updateToolDetailInner = JSON.parse(
  17524. JSON.stringify(
  17525. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17526. this.taskCount
  17527. ].toolChoose[i].toolDetail
  17528. )
  17529. );
  17530. document.querySelector(".checkTextArea").focus();
  17531. }, 0);
  17532. } else if (this.isUpdateToolDetail1 && type != 2) {
  17533. // this.toolDetailIndex = i;
  17534. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17535. this.taskCount
  17536. ].toolChoose[i].toolDetail = JSON.parse(
  17537. JSON.stringify(this.updateToolDetailInner)
  17538. );
  17539. let params = [
  17540. {
  17541. cid: this.id,
  17542. chapters: JSON.stringify(this.chapInfoList),
  17543. uid: this.userid,
  17544. unitIndex: this.courseType
  17545. }
  17546. ];
  17547. this.ajax
  17548. .post(this.$store.state.api + "updateWorkNew4", params)
  17549. .then(res => {
  17550. this.isUpdateToolDetail1 = false;
  17551. this.$message({
  17552. message: "修改成功",
  17553. type: "success"
  17554. });
  17555. this.toolDetailIndex = null;
  17556. this.updateToolDetailInner = "";
  17557. this.getCourseDetail(2);
  17558. this.$forceUpdate();
  17559. })
  17560. .catch(err => {
  17561. console.error(err);
  17562. });
  17563. } else if (this.isUpdateToolDetail1 && type == 2) {
  17564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17565. this.taskCount
  17566. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17567. JSON.stringify(this.updateToolDetailInner)
  17568. );
  17569. let params = [
  17570. {
  17571. cid: this.id,
  17572. chapters: JSON.stringify(this.chapInfoList),
  17573. uid: this.userid,
  17574. unitIndex: this.courseType
  17575. }
  17576. ];
  17577. this.ajax
  17578. .post(this.$store.state.api + "updateWorkNew4", params)
  17579. .then(res => {
  17580. this.$message({
  17581. message: "修改成功",
  17582. type: "success"
  17583. });
  17584. this.toolDetailIndex = i;
  17585. this.isUpdateToolDetail1 = true;
  17586. setTimeout(() => {
  17587. this.updateToolDetailInner = JSON.parse(
  17588. JSON.stringify(
  17589. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17590. this.taskCount
  17591. ].toolChoose[i].toolDetail
  17592. )
  17593. );
  17594. document.querySelector(".checkTextArea").focus();
  17595. }, 0);
  17596. this.getCourseDetail(2);
  17597. this.$forceUpdate();
  17598. })
  17599. .catch(err => {
  17600. console.error(err);
  17601. });
  17602. }
  17603. },
  17604. jumpGj(i, j, k, l) {
  17605. // this.refreshAssembly();
  17606. for (var z = 0; z < this.navList.length; z++) {
  17607. for (var q = 0; q < this.navList[z].task.length; q++) {
  17608. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17609. this.navList[z].task[q].tool[w].isTool = false;
  17610. }
  17611. }
  17612. }
  17613. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  17614. .isTool;
  17615. var a = document.scrollingElement;
  17616. let target = document.querySelector(`#gj${k}`);
  17617. if (target) {
  17618. // target.scrollIntoView(true);
  17619. // setTimeout(() => {
  17620. // a.scrollTop = a.scrollTop - 150;
  17621. // }, 0);
  17622. target.scrollIntoView();
  17623. setTimeout(()=>{
  17624. let scrollBody = document.querySelector('.body_student').parentElement
  17625. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17626. }, 0);
  17627. }
  17628. this.navId = "";
  17629. let flag = this.courseType == i;
  17630. let flag2 = this.taskCount == j;
  17631. if (l) {
  17632. this.courseType = i;
  17633. // this.navId = l;
  17634. this.taskCount = j;
  17635. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17636. this.selectPz();
  17637. this.getHomeWork();
  17638. this.getCourseDetail(2);
  17639. if (flag) {
  17640. if (flag2) {
  17641. this.insertMemorandum(
  17642. `选择<span class="variable">工具${k + 1}:${
  17643. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17644. }</span>`
  17645. );
  17646. } else {
  17647. this.insertMemorandum(
  17648. `选择<span class="variable">任务${j + 1}${
  17649. this.navList[i].task[j].taskName
  17650. ? ":" + this.navList[i].task[j].taskName
  17651. : ""
  17652. }</span>→<span class="variable">工具${k + 1}:${
  17653. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17654. }</span>`
  17655. );
  17656. }
  17657. } else {
  17658. this.insertMemorandum(
  17659. `选择<span class="variable">阶段${i + 1}${
  17660. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  17661. }</span>→<span class="variable">任务${j + 1}${
  17662. this.navList[i].task[j].taskName
  17663. ? ":" + this.navList[i].task[j].taskName
  17664. : ""
  17665. }</span>→<span class="variable">工具${k + 1}:${
  17666. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17667. }</span>`
  17668. );
  17669. }
  17670. }
  17671. },
  17672. addTools2(i) {
  17673. if (i == 4) {
  17674. // this.openTools2(4);
  17675. this.$message.error("暂未开放");
  17676. return;
  17677. }
  17678. if (i == 45) {
  17679. // this.openTools2(45);
  17680. this.$message.error("暂未开放");
  17681. return;
  17682. }
  17683. if (i == 47) {
  17684. // this.openTools2(47);
  17685. this.$message.error("暂未开放");
  17686. return;
  17687. }
  17688. if (i == 49) {
  17689. // this.openTools2(49);
  17690. this.$message.error("暂未开放");
  17691. return;
  17692. }
  17693. if (i == 62) {
  17694. // this.openTools(itemTaskIndex, 62, toolIndex);
  17695. this.$message.error("暂未开放");
  17696. return;
  17697. }
  17698. if (i == 15) {
  17699. // this.openTools(itemTaskIndex, 15, toolIndex);
  17700. this.$message.error("暂未开放");
  17701. return;
  17702. }
  17703. if (i == 40) {
  17704. // this.openTools(itemTaskIndex, 40, toolIndex);
  17705. this.$message.error("暂未开放");
  17706. return;
  17707. }
  17708. if (i == 41) {
  17709. // this.openTools(itemTaskIndex, 41, toolIndex);
  17710. this.$message.error("暂未开放");
  17711. return;
  17712. }
  17713. if (i == 42) {
  17714. // this.openTools(itemTaskIndex, 42, toolIndex);
  17715. this.$message.error("暂未开放");
  17716. return;
  17717. }
  17718. if (this.checktoolArray.length > 0) {
  17719. if (this.checktoolArray.indexOf(i) != -1) {
  17720. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17721. } else {
  17722. this.checktoolArray = [];
  17723. this.checktoolArray.push(i);
  17724. }
  17725. } else {
  17726. this.checktoolArray.push(i);
  17727. }
  17728. this.$forceUpdate();
  17729. },
  17730. jump() {
  17731. window.topU.postMessage({ tools: "43" }, "*");
  17732. },
  17733. getUpdateMore(f, checkboxList, searchTN, index) {
  17734. this.dialogVisibleMember = f;
  17735. this.checkboxList = checkboxList;
  17736. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17737. this.plIndex = index;
  17738. },
  17739. setPlname(a) {
  17740. if (this.plworkFile.length) {
  17741. this.plworkFile[this.plIndex].username = a;
  17742. } else {
  17743. this.worksSName = a;
  17744. }
  17745. this.dialogVisibleMember = false;
  17746. },
  17747. previewImg(url, w) {
  17748. this.$hevueImgPreview(url);
  17749. if (w) {
  17750. this.insertMemorandum(
  17751. `查看<span class="variable">${w.sName}</span>的作业`
  17752. );
  17753. }
  17754. },
  17755. checkImg(list) {
  17756. if (!list.length) {
  17757. return;
  17758. }
  17759. this.$hevueImgPreview({
  17760. multiple: true, // 开启多图预览模式
  17761. imgList: list // 需要预览的多图数组
  17762. });
  17763. },
  17764. change(val) {
  17765. console.log(val);
  17766. },
  17767. goTo(path) {
  17768. this.$router.push(path);
  17769. },
  17770. handlePictureCardPreview(url) {
  17771. this.dialogImageUrl = url;
  17772. this.pictureDialog = true;
  17773. },
  17774. clean(type) {
  17775. if (type == 1) {
  17776. this.studyJuri[0].cover.splice(0, 1);
  17777. } else if (type == 2) {
  17778. this.studyJuri[0].upVedio.splice(0, 1);
  17779. } else {
  17780. this.studyJuri[0].upFile.splice(0, 1);
  17781. }
  17782. },
  17783. clean2(index) {
  17784. this.plworkFile.splice(index, 1);
  17785. },
  17786. handleClose(done) {
  17787. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17788. this.videoDetail.sources[0].src = "";
  17789. }
  17790. this.commentIndexJson = {};
  17791. done();
  17792. },
  17793. fullTools() {
  17794. this.full = !this.full;
  17795. },
  17796. imgChange(file, fileList, type) {
  17797. if (type == 1) {
  17798. var _tmp = this.studyJuri[0].cover;
  17799. } else if (type == 2) {
  17800. var _tmp = this.studyJuri[0].upVedio;
  17801. } else {
  17802. var _tmp = this.studyJuri[0].upFile;
  17803. }
  17804. this.noneBtnImg = _tmp.length >= 1;
  17805. },
  17806. setContent(bool) {
  17807. this.contentDialog = bool;
  17808. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17809. document.querySelector(".workd_media").style.height = "650px";
  17810. } else if (document.querySelector(".workd_media")) {
  17811. document.querySelector(".workd_media").style.height = "auto";
  17812. }
  17813. },
  17814. setContent2(bool) {
  17815. this.mlDialog = bool;
  17816. if (
  17817. bool &&
  17818. this.contentDialog &&
  17819. document.querySelector(".workd_media")
  17820. ) {
  17821. document.querySelector(".workd_media").style.height = "650px";
  17822. } else if (document.querySelector(".workd_media")) {
  17823. document.querySelector(".workd_media").style.height = "auto";
  17824. }
  17825. },
  17826. openToolAll() {
  17827. this.toolDialogVisible = true;
  17828. },
  17829. addImg(e) {
  17830. var el = e.currentTarget;
  17831. // this.$message.success('触发上传')
  17832. el.getElementsByTagName("input")[0].click();
  17833. e.target.value = "";
  17834. },
  17835. addSelectAnswer() {
  17836. let params = [
  17837. {
  17838. uid: this.userid,
  17839. cid: this.id,
  17840. stage: this.courseType,
  17841. task: this.taskCount,
  17842. tool: this.toolindex,
  17843. content: this.selectAnswer.answer,
  17844. type: 7
  17845. }
  17846. ];
  17847. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17848. this.homeWorkLoading = true
  17849. this.ajax
  17850. .post(this.$store.state.api + "addCourseWorks", params)
  17851. .then(res => {
  17852. this.$message({
  17853. message: "提交成功",
  17854. type: "success"
  17855. });
  17856. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17857. setTimeout(() => {
  17858. this.homeWorkLoading = false
  17859. }, 500);
  17860. this.dialogVisibleSelect = false;
  17861. // this.selectAnswer = {};
  17862. this.selectSWorks();
  17863. this.selectStudent();
  17864. })
  17865. .catch(err => {
  17866. this.$message.error("提交失败");
  17867. console.error(err);
  17868. setTimeout(() => {
  17869. this.homeWorkLoading = false
  17870. }, 500);
  17871. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17872. });
  17873. },
  17874. addSelectAnswerTeacher() {
  17875. let params = [
  17876. {
  17877. uid: this.sStudent.userid,
  17878. cid: this.id,
  17879. stage: this.courseType,
  17880. task: this.taskCount,
  17881. tool: this.toolindex,
  17882. content: this.selectAnswer.answer,
  17883. type: 7
  17884. }
  17885. ];
  17886. this.ajax
  17887. .post(this.$store.state.api + "addCourseWorks", params)
  17888. .then(res => {
  17889. this.$message({
  17890. message: "提交成功",
  17891. type: "success"
  17892. });
  17893. this.dialogVisibleSelectTeacher = false;
  17894. // this.selectAnswer = {};
  17895. this.selectSWorks();
  17896. this.selectStudent();
  17897. })
  17898. .catch(err => {
  17899. this.$message.error("提交失败");
  17900. console.error(err);
  17901. });
  17902. },
  17903. addSenWorks() {
  17904. for (var i = 0; i < this.sentenceList.length; i++) {
  17905. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17906. if (
  17907. this.sentenceList[i].chooseSenList[j] == undefined ||
  17908. this.sentenceList[i].chooseSenList[j] == ""
  17909. ) {
  17910. this.$message.error("请将答案填写完整!");
  17911. return;
  17912. }
  17913. }
  17914. }
  17915. let params = [
  17916. {
  17917. uid: this.userid,
  17918. cid: this.id,
  17919. stage: this.courseType,
  17920. task: this.taskCount,
  17921. tool: this.toolindex,
  17922. content: JSON.stringify(this.sentenceList),
  17923. type: 9
  17924. }
  17925. ];
  17926. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17927. this.homeWorkLoading = true
  17928. this.ajax
  17929. .post(this.$store.state.api + "addCourseWorks", params)
  17930. .then(res => {
  17931. this.$message({
  17932. message: "提交成功",
  17933. type: "success"
  17934. });
  17935. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17936. setTimeout(() => {
  17937. this.homeWorkLoading = false
  17938. }, 500);
  17939. this.dialogVisibleSentence = false;
  17940. // this.selectAnswer = {};
  17941. this.selectSWorks();
  17942. this.selectStudent();
  17943. })
  17944. .catch(err => {
  17945. this.$message.error("提交失败");
  17946. console.error(err);
  17947. setTimeout(() => {
  17948. this.homeWorkLoading = false
  17949. }, 500);
  17950. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17951. });
  17952. },
  17953. addSenWorksTeacher() {
  17954. for (var i = 0; i < this.sentenceList.length; i++) {
  17955. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17956. if (
  17957. this.sentenceList[i].chooseSenList[j] == undefined ||
  17958. this.sentenceList[i].chooseSenList[j] == ""
  17959. ) {
  17960. this.$message.error("请将答案填写完整!");
  17961. return;
  17962. }
  17963. }
  17964. }
  17965. let params = [
  17966. {
  17967. uid: this.sStudent.userid,
  17968. cid: this.id,
  17969. stage: this.courseType,
  17970. task: this.taskCount,
  17971. tool: this.toolindex,
  17972. content: JSON.stringify(this.sentenceList),
  17973. type: 9
  17974. }
  17975. ];
  17976. this.ajax
  17977. .post(this.$store.state.api + "addCourseWorks", params)
  17978. .then(res => {
  17979. this.$message({
  17980. message: "提交成功",
  17981. type: "success"
  17982. });
  17983. this.dialogVisibleSentenceTeacher = false;
  17984. // this.selectAnswer = {};
  17985. this.selectSWorks();
  17986. this.selectStudent();
  17987. })
  17988. .catch(err => {
  17989. this.$message.error("提交失败");
  17990. console.error(err);
  17991. });
  17992. },
  17993. returnTableText() {
  17994. this.$confirm("确定还原此模板吗?", "提示", {
  17995. confirmButtonText: "确定",
  17996. cancelButtonText: "取消",
  17997. type: "warning"
  17998. })
  17999. .then(() => {
  18000. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  18001. })
  18002. .catch(() => {});
  18003. },
  18004. addTableWorks() {
  18005. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18006. this.homeWorkLoading = true
  18007. let params = [
  18008. {
  18009. uid: this.userid,
  18010. cid: this.id,
  18011. stage: this.courseType,
  18012. task: this.taskCount,
  18013. tool: this.toolindex,
  18014. content: JSON.stringify(this.tableJson),
  18015. type: 10
  18016. }
  18017. ];
  18018. this.ajax
  18019. .post(this.$store.state.api + "addCourseWorks", params)
  18020. .then(res => {
  18021. this.$message({
  18022. message: "提交成功",
  18023. type: "success"
  18024. });
  18025. setTimeout(() => {
  18026. this.homeWorkLoading = false
  18027. }, 500);
  18028. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  18029. this.dialogVisibleTable = false;
  18030. // this.selectAnswer = {};
  18031. this.selectSWorks();
  18032. this.selectStudent();
  18033. })
  18034. .catch(err => {
  18035. this.$message.error("提交失败");
  18036. console.error(err);
  18037. setTimeout(() => {
  18038. this.homeWorkLoading = false
  18039. }, 500);
  18040. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  18041. });
  18042. },
  18043. tableRowClassName({ row, rowIndex }) {
  18044. if ((rowIndex + 1) % 2 === 0) {
  18045. return "even_row";
  18046. } else {
  18047. return "";
  18048. }
  18049. },
  18050. addTableWorksTeacher() {
  18051. let params = [
  18052. {
  18053. uid: this.sStudent.userid,
  18054. cid: this.id,
  18055. stage: this.courseType,
  18056. task: this.taskCount,
  18057. tool: this.toolindex,
  18058. content: JSON.stringify(this.tableJson),
  18059. type: 10
  18060. }
  18061. ];
  18062. this.ajax
  18063. .post(this.$store.state.api + "addCourseWorks", params)
  18064. .then(res => {
  18065. this.$message({
  18066. message: "提交成功",
  18067. type: "success"
  18068. });
  18069. this.dialogVisibleTableTeacher = false;
  18070. // this.selectAnswer = {};
  18071. this.selectSWorks();
  18072. this.selectStudent();
  18073. })
  18074. .catch(err => {
  18075. this.$message.error("提交失败");
  18076. console.error(err);
  18077. });
  18078. },
  18079. returnWordText() {
  18080. this.$confirm("确定还原此模板吗?", "提示", {
  18081. confirmButtonText: "确定",
  18082. cancelButtonText: "取消",
  18083. type: "warning"
  18084. })
  18085. .then(() => {
  18086. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  18087. })
  18088. .catch(() => {});
  18089. },
  18090. addWordWorks() {
  18091. let params = [
  18092. {
  18093. uid: this.userid,
  18094. cid: this.id,
  18095. stage: this.courseType,
  18096. task: this.taskCount,
  18097. tool: this.toolindex,
  18098. content: JSON.stringify(this.wordJson),
  18099. type: 13,
  18100. atool: 52
  18101. }
  18102. ];
  18103. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18104. this.homeWorkLoading = true
  18105. this.ajax
  18106. .post(this.$store.state.api + "addCourseWorks3-2", params)
  18107. .then(res => {
  18108. this.$message({
  18109. message: "提交成功",
  18110. type: "success"
  18111. });
  18112. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  18113. setTimeout(() => {
  18114. this.homeWorkLoading = false
  18115. }, 500);
  18116. this.dialogVisibleWord = false;
  18117. // this.selectAnswer = {};
  18118. this.selectSWorks();
  18119. this.selectStudent();
  18120. })
  18121. .catch(err => {
  18122. this.$message.error("提交失败");
  18123. console.error(err);
  18124. setTimeout(() => {
  18125. this.homeWorkLoading = false
  18126. }, 500);
  18127. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  18128. });
  18129. },
  18130. addWordWorksTeacher() {
  18131. let params = [
  18132. {
  18133. uid: this.sStudent.userid,
  18134. cid: this.id,
  18135. stage: this.courseType,
  18136. task: this.taskCount,
  18137. tool: this.toolindex,
  18138. content: JSON.stringify(this.wordJson),
  18139. type: 13,
  18140. atool: 52
  18141. }
  18142. ];
  18143. this.ajax
  18144. .post(this.$store.state.api + "addCourseWorks3-2", params)
  18145. .then(res => {
  18146. this.$message({
  18147. message: "提交成功",
  18148. type: "success"
  18149. });
  18150. this.dialogVisibleWordTeacher = false;
  18151. // this.selectAnswer = {};
  18152. this.selectSWorks();
  18153. this.selectStudent();
  18154. })
  18155. .catch(err => {
  18156. this.$message.error("提交失败");
  18157. console.error(err);
  18158. });
  18159. },
  18160. addCourseWorksCopy(i) {
  18161. let arr = this.workStudent[this.toolindex].filter(e => {
  18162. return (e.userid = this.userid);
  18163. });
  18164. if (arr.length > 0) {
  18165. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  18166. confirmButtonText: "确定",
  18167. cancelButtonText: "取消",
  18168. type: "warning"
  18169. })
  18170. .then(() => {
  18171. this.addCourseWorks(i);
  18172. })
  18173. .catch(() => {});
  18174. } else {
  18175. this.addCourseWorks(i);
  18176. }
  18177. },
  18178. addCourseWorks(i) {
  18179. var typesql;
  18180. if (this.fileType === 0) {
  18181. typesql = 1;
  18182. } else if (this.fileType === 1) {
  18183. typesql = 4;
  18184. } else if (this.fileType === 2) {
  18185. typesql = 5;
  18186. } else if (this.fileType === 3) {
  18187. typesql = 12;
  18188. }
  18189. if (!this.studyJuri[0].cover[0].url) {
  18190. this.$message.error("请上传文件");
  18191. return;
  18192. }
  18193. let params = [
  18194. {
  18195. uid: this.userid,
  18196. cid: this.id,
  18197. stage: this.courseType,
  18198. task: i,
  18199. tool: this.toolindex,
  18200. content: this.studyJuri[0].cover[0].url,
  18201. type: typesql
  18202. }
  18203. ];
  18204. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18205. this.homeWorkLoading = true
  18206. this.ajax
  18207. .post(this.$store.state.api + "addCourseWorksR1", params)
  18208. .then(res => {
  18209. this.$message({
  18210. message: "提交成功",
  18211. type: "success"
  18212. });
  18213. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  18214. setTimeout(() => {
  18215. this.homeWorkLoading = false
  18216. }, 500);
  18217. this.studyJuri[0].cover = [];
  18218. this.dialogVisible = false;
  18219. this.getCourseDetail(2);
  18220. })
  18221. .catch(err => {
  18222. this.$message.error("提交失败");
  18223. console.error(err);
  18224. setTimeout(() => {
  18225. this.homeWorkLoading = false
  18226. }, 500);
  18227. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  18228. });
  18229. },
  18230. addCourseWorksPl(i) {
  18231. let _files = this.plworkFile;
  18232. var c = 1;
  18233. for (var k = 0; k < _files.length; k++) {
  18234. if (!_files[k].username) {
  18235. c = 2;
  18236. }
  18237. }
  18238. if (c == 2) {
  18239. this.$message.error("请填写学生姓名");
  18240. return;
  18241. }
  18242. let params = [
  18243. {
  18244. ateacher: this.userid,
  18245. cid: this.id,
  18246. stage: this.courseType,
  18247. task: i,
  18248. tool: this.toolindex,
  18249. content: JSON.stringify(_files)
  18250. }
  18251. ];
  18252. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18253. this.homeWorkLoading = true
  18254. this.ajax
  18255. .post(this.$store.state.api + "addCourseWorksPl", params)
  18256. .then(res => {
  18257. this.$message({
  18258. message: "提交成功",
  18259. type: "success"
  18260. });
  18261. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  18262. setTimeout(() => {
  18263. this.homeWorkLoading = false
  18264. }, 500);
  18265. this.plworkFile = [];
  18266. this.dialogVisiblePl = false;
  18267. this.getCourseDetail(2);
  18268. })
  18269. .catch(err => {
  18270. this.$message.error("提交失败");
  18271. console.error(err);
  18272. setTimeout(() => {
  18273. this.homeWorkLoading = false
  18274. }, 500);
  18275. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  18276. });
  18277. },
  18278. addCourseWorks2(i) {
  18279. var typesql;
  18280. if (this.fileType === 0) {
  18281. typesql = 0;
  18282. } else if (this.fileType === 1) {
  18283. typesql = 1;
  18284. } else if (this.fileType === 2) {
  18285. typesql = 3;
  18286. } else if (this.fileType === 3) {
  18287. typesql = 12;
  18288. }
  18289. if (!this.studyJuri[0].cover[0].url) {
  18290. this.$message.error("请上传文件");
  18291. return;
  18292. }
  18293. let params = [
  18294. {
  18295. uid: this.userid,
  18296. cid: this.id,
  18297. stage: this.courseType,
  18298. task: i,
  18299. tool: this.toolindex,
  18300. content: JSON.stringify({
  18301. type: typesql,
  18302. groupIndex: this.groupIndex,
  18303. url: this.studyJuri[0].cover[0].url
  18304. }),
  18305. type: 11,
  18306. atool: 49,
  18307. text: ""
  18308. }
  18309. ];
  18310. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18311. this.homeWorkLoading = true
  18312. this.ajax
  18313. .post(this.$store.state.api + "addCourseWorks5", params)
  18314. .then(res => {
  18315. this.$message({
  18316. message: "提交成功",
  18317. type: "success"
  18318. });
  18319. setTimeout(() => {
  18320. this.homeWorkLoading = false
  18321. }, 500);
  18322. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18323. type: typesql,
  18324. groupIndex: this.groupIndex,
  18325. url: this.studyJuri[0].cover[0].url,
  18326. }),type: "course_tool_sub" }, "success")
  18327. this.studyJuri[0].cover = [];
  18328. this.dialogVisibleGroupWork = false;
  18329. this.getCourseDetail(2);
  18330. })
  18331. .catch(err => {
  18332. this.$message.error("提交失败");
  18333. console.error(err);
  18334. setTimeout(() => {
  18335. this.homeWorkLoading = false
  18336. }, 500);
  18337. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  18338. type: typesql,
  18339. groupIndex: this.groupIndex,
  18340. url: this.studyJuri[0].cover[0].url,
  18341. }),type: "course_tool_sub" }, err)
  18342. });
  18343. },
  18344. addEnglishWork() {
  18345. this.myAnList = this.$refs["engJson"].myAnswerList;
  18346. if (
  18347. !this.myAnList.engTitle ||
  18348. !this.myAnList.engText ||
  18349. this.myAnList.engTitle == "" ||
  18350. this.myAnList.engText == ""
  18351. ) {
  18352. this.$message.error("请输入作文标题和正文!");
  18353. return;
  18354. }
  18355. let params = [
  18356. {
  18357. uid: this.userid,
  18358. cid: this.id,
  18359. stage: this.courseType,
  18360. task: this.taskCount,
  18361. tool: this.englishToolIndex,
  18362. content: JSON.stringify(this.myAnList),
  18363. type: 16,
  18364. atool: 69,
  18365. text: ""
  18366. }
  18367. ];
  18368. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  18369. this.homeWorkLoading = true
  18370. this.ajax
  18371. .post(this.$store.state.api + "addCourseWorks5", params)
  18372. .then(res => {
  18373. this.$message({
  18374. message: "提交成功",
  18375. type: "success"
  18376. });
  18377. setTimeout(() => {
  18378. this.homeWorkLoading = false
  18379. }, 500);
  18380. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18381. data: JSON.stringify(this.myAnList),
  18382. type: "course_tool_sub" }, "success")
  18383. this.myAnList = {};
  18384. this.englishList = {};
  18385. this.englishToolIndex = 0;
  18386. this.engDialogVisible = false;
  18387. this.selectSWorks();
  18388. this.selectStudent();
  18389. })
  18390. .catch(err => {
  18391. this.$message.error("提交失败");
  18392. setTimeout(() => {
  18393. this.homeWorkLoading = false
  18394. }, 500);
  18395. console.error(err);
  18396. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18397. data: JSON.stringify(this.myAnList),
  18398. type: "course_tool_sub" }, err)
  18399. });
  18400. },
  18401. addCourseWorksGong(i, data, tool) {
  18402. let params = [
  18403. {
  18404. uid: this.userid,
  18405. cid: this.id,
  18406. stage: this.courseType,
  18407. task: this.taskCount,
  18408. tool: i,
  18409. content: data,
  18410. type: 12,
  18411. atool: tool,
  18412. text: ""
  18413. }
  18414. ];
  18415. this.ajax
  18416. .post(this.$store.state.api + "addCourseWorks5", params)
  18417. .then(res => {
  18418. this.$message({
  18419. message: "提交成功",
  18420. type: "success"
  18421. });
  18422. this.studyJuri[0].cover = [];
  18423. this.selectSWorks();
  18424. this.selectStudent();
  18425. })
  18426. .catch(err => {
  18427. this.$message.error("提交失败");
  18428. console.error(err);
  18429. });
  18430. },
  18431. addCourseWorksGongTeacher(i, data, tool) {
  18432. let params = [
  18433. {
  18434. uid: this.sStudent.userid,
  18435. cid: this.id,
  18436. stage: this.courseType,
  18437. task: this.taskCount,
  18438. tool: i,
  18439. content: data,
  18440. type: 12,
  18441. atool: tool,
  18442. text: ""
  18443. }
  18444. ];
  18445. this.ajax
  18446. .post(this.$store.state.api + "addCourseWorks5", params)
  18447. .then(res => {
  18448. this.$message({
  18449. message: "提交成功",
  18450. type: "success"
  18451. });
  18452. this.studyJuri[0].cover = [];
  18453. this.dialogVisibleWorks = false;
  18454. this.selectSWorks();
  18455. this.selectStudent();
  18456. })
  18457. .catch(err => {
  18458. this.$message.error("提交失败");
  18459. console.error(err);
  18460. });
  18461. },
  18462. addCourseWorksGongPl(i, data, tool, type) {
  18463. let params = [
  18464. {
  18465. uid: this.sStudent.userid,
  18466. cid: this.id,
  18467. stage: this.courseType,
  18468. task: this.taskCount,
  18469. tool: i,
  18470. content: data,
  18471. type: type,
  18472. atool: tool,
  18473. text: ""
  18474. }
  18475. ];
  18476. this.ajax
  18477. .post(this.$store.state.api + "addCourseWorks5", params)
  18478. .then(res => {
  18479. this.$message({
  18480. message: "提交成功",
  18481. type: "success"
  18482. });
  18483. this.studyJuri[0].cover = [];
  18484. this.dialogVisibleWorks = false;
  18485. this.selectSWorks();
  18486. this.selectStudent();
  18487. })
  18488. .catch(err => {
  18489. this.$message.error("提交失败");
  18490. console.error(err);
  18491. });
  18492. },
  18493. addCourseWorksTeacher(i) {
  18494. var typesql;
  18495. if (this.sTool == 32) {
  18496. this.addCourseWorksGongTeacher(
  18497. this.toolindex,
  18498. this.studyJuri[0].cover[0].url,
  18499. this.sTool
  18500. );
  18501. return;
  18502. }
  18503. if (this.fileType === 0) {
  18504. typesql = 1;
  18505. } else if (this.fileType === 1) {
  18506. typesql = 4;
  18507. } else if (this.fileType === 2) {
  18508. typesql = 5;
  18509. } else if (this.fileType === 3) {
  18510. typesql = 12;
  18511. }
  18512. if (this.sTool == 50) {
  18513. this.addCourseWorksGongPl(
  18514. this.toolindex,
  18515. this.studyJuri[0].cover[0].url,
  18516. this.sTool,
  18517. typesql
  18518. );
  18519. return;
  18520. }
  18521. if (!this.studyJuri[0].cover[0].url) {
  18522. this.$message.error("请上传文件");
  18523. return;
  18524. }
  18525. let params = [
  18526. {
  18527. uid: this.sStudent.userid,
  18528. cid: this.id,
  18529. stage: this.courseType,
  18530. task: i,
  18531. tool: this.toolindex,
  18532. content: this.studyJuri[0].cover[0].url,
  18533. type: typesql,
  18534. ateacher: this.userid
  18535. }
  18536. ];
  18537. this.ajax
  18538. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18539. .then(res => {
  18540. this.$message({
  18541. message: "提交成功",
  18542. type: "success"
  18543. });
  18544. this.studyJuri[0].cover = [];
  18545. this.dialogVisibleWorks = false;
  18546. this.getCourseDetail(2);
  18547. })
  18548. .catch(err => {
  18549. this.$message.error("提交失败");
  18550. console.error(err);
  18551. });
  18552. },
  18553. selectUploadStudent(type) {
  18554. const loading = this.$loading.service({
  18555. background: "rgba(255, 255, 255, 0.7)",
  18556. target: document.body
  18557. });
  18558. let params = {
  18559. cid: this.uploadCid,
  18560. oid: this.oid,
  18561. cn: ""
  18562. };
  18563. this.ajax
  18564. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18565. .then(res => {
  18566. loading.close();
  18567. var studentK = [];
  18568. if (this.isWorksS[this.toolindex].length > 0) {
  18569. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18570. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18571. }
  18572. studentK = studentK.join(",");
  18573. }
  18574. this.uploadStudentJuri = res.data[0].filter(el => {
  18575. return studentK.indexOf(el.userid) == -1;
  18576. });
  18577. if (this.worksSName && this.worksSid) {
  18578. this.uploadStudentJuri.push({
  18579. userid: this.worksSid,
  18580. name: this.worksSName
  18581. });
  18582. }
  18583. if (type == 1) {
  18584. this.plworkFile = [];
  18585. this.dialogVisibleSname = true;
  18586. } else if (type == 2) {
  18587. this.dialogVisiblePl = true;
  18588. }
  18589. })
  18590. .catch(err => {
  18591. loading.close();
  18592. console.error(err);
  18593. });
  18594. },
  18595. selectPickStudent() {
  18596. const loading = this.$loading.service({
  18597. background: "rgba(255, 255, 255, 0.7)",
  18598. target: document.body
  18599. });
  18600. let params = {
  18601. cid: this.uploadCid,
  18602. oid: this.oid,
  18603. cn: ""
  18604. };
  18605. this.ajax
  18606. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18607. .then(res => {
  18608. loading.close();
  18609. this.uploadStudentJuri = res.data[0];
  18610. this.dialogVisiblePickPeople = true;
  18611. })
  18612. .catch(err => {
  18613. loading.close();
  18614. console.error(err);
  18615. });
  18616. },
  18617. arrayToArray(arrayo, arrayt) {
  18618. let array1 = arrayo;
  18619. let array2 = arrayt;
  18620. let commonElements = [];
  18621. for (let i = 0; i < array1.length; i++) {
  18622. for (let j = 0; j < array2.length; j++) {
  18623. if (array1[i] === array2[j]) {
  18624. commonElements.push(array1[i]);
  18625. }
  18626. }
  18627. }
  18628. return commonElements;
  18629. },
  18630. selectWorksStudent() {
  18631. let params = {
  18632. oid: this.oid,
  18633. cid: this.courseDetail.juri
  18634. };
  18635. this.ajax
  18636. .get(this.$store.state.api + "selectWorksStudent", params)
  18637. .then(res => {
  18638. var a = res.data[0];
  18639. for (var i = 0; i < this.isWorksS.length; i++) {
  18640. this.noWorksS[i] = [];
  18641. var studentK = [];
  18642. if (this.isWorksS[i].length > 0) {
  18643. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18644. studentK.push(this.isWorksS[i][z].uid);
  18645. }
  18646. studentK = studentK.join(",");
  18647. for (var j = 0; j < a.length; j++) {
  18648. if (studentK.indexOf(a[j].userid) == -1) {
  18649. if (this.tcid) {
  18650. // a[j].classid.indexOf(this.tcid) != -1
  18651. if (
  18652. this.arrayToArray(
  18653. a[j].classid.split(","),
  18654. this.tcid.split(",")
  18655. ).length
  18656. ) {
  18657. this.noWorksS[i].push({
  18658. student: a[j].name,
  18659. userid: a[j].userid
  18660. });
  18661. }
  18662. } else {
  18663. this.noWorksS[i].push({
  18664. student: a[j].name,
  18665. userid: a[j].userid
  18666. });
  18667. }
  18668. }
  18669. }
  18670. } else {
  18671. for (var k = 0; k < a.length; k++) {
  18672. if (this.tcid) {
  18673. if (
  18674. this.arrayToArray(
  18675. a[k].classid.split(","),
  18676. this.tcid.split(",")
  18677. ).length
  18678. ) {
  18679. this.noWorksS[i].push({
  18680. student: a[k].name,
  18681. userid: a[k].userid
  18682. });
  18683. }
  18684. } else {
  18685. this.noWorksS[i].push({
  18686. student: a[k].name,
  18687. userid: a[k].userid
  18688. });
  18689. }
  18690. }
  18691. }
  18692. }
  18693. this.$forceUpdate();
  18694. if (
  18695. Object.keys(this.commentDetail).length &&
  18696. Object.keys(this.commentIndexJson).length &&
  18697. !this.dialogVisibleScore &&
  18698. !this.dialogVisibleENScore
  18699. ) {
  18700. let a = 1;
  18701. let c = this.commentIndexJson;
  18702. if (
  18703. this.commentIndexJson.gindex ||
  18704. this.commentIndexJson.gindex === 0
  18705. ) {
  18706. for (
  18707. var i = 0;
  18708. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18709. i++
  18710. ) {
  18711. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18712. groupA: for (var k = 0; k < _el.length; k++) {
  18713. let el = _el[k];
  18714. if (el.wid == this.commentDetail.wid) {
  18715. a = 2;
  18716. this.commentOther(
  18717. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18718. this.commentIndexJson.toolIndex,
  18719. k,
  18720. this.commentIndexJson.gindex
  18721. );
  18722. break groupA;
  18723. }
  18724. }
  18725. }
  18726. if (a === 1) {
  18727. this.commentDetail = [];
  18728. this.commentIndexJson = {};
  18729. this.commentDialogVisible = false;
  18730. this.$message("此作业已被删除");
  18731. }
  18732. } else {
  18733. if (this.isGroup && this.commentIndexJson.gid) {
  18734. groupA: for (
  18735. var i = 0;
  18736. i < this.courseGroup.group.length;
  18737. i++
  18738. ) {
  18739. let _group = this.courseGroup.group[i];
  18740. if (_group.id == this.commentIndexJson.gid) {
  18741. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18742. for (var k = 0; k < _el2.length; k++) {
  18743. let el2 = _el2[k];
  18744. if (el2.wid == this.commentDetail.wid) {
  18745. a = 2;
  18746. this.commentOther(
  18747. _el2[k],
  18748. this.commentIndexJson.toolIndex,
  18749. k,
  18750. null,
  18751. this.commentIndexJson.gid
  18752. );
  18753. break groupA;
  18754. }
  18755. }
  18756. }
  18757. }
  18758. }
  18759. if (a == 1) {
  18760. for (
  18761. var i = 0;
  18762. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18763. i++
  18764. ) {
  18765. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  18766. i
  18767. ];
  18768. if (el.wid == this.commentDetail.wid) {
  18769. a = 2;
  18770. this.commentOther(
  18771. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18772. this.commentIndexJson.toolIndex,
  18773. i
  18774. );
  18775. break;
  18776. }
  18777. }
  18778. }
  18779. if (a === 1) {
  18780. this.commentDetail = [];
  18781. this.commentIndexJson = {};
  18782. this.commentDialogVisible = false;
  18783. this.$message("此作业已被删除");
  18784. }
  18785. }
  18786. }
  18787. })
  18788. .catch(err => {
  18789. console.error(err);
  18790. });
  18791. },
  18792. selectStudent() {
  18793. //学生查看自己作业
  18794. let params = {
  18795. uid: this.userid,
  18796. cid: this.id,
  18797. s: this.courseType,
  18798. t: this.taskCount
  18799. };
  18800. this.ajax
  18801. .get(this.$store.state.api + "selectStudentWorks", params)
  18802. .then(res => {
  18803. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18804. this.taskCount
  18805. ].toolChoose;
  18806. var b = res.data[0];
  18807. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18808. var y = [
  18809. "AVI",
  18810. "NAVI",
  18811. "MPEG",
  18812. "ASF",
  18813. "MOV",
  18814. "WMV",
  18815. "3GP",
  18816. "RM",
  18817. "RMVB",
  18818. "FLV",
  18819. "F4V",
  18820. "H.264",
  18821. "H.265",
  18822. "REAL VIDEO",
  18823. "MKV",
  18824. "WebM",
  18825. "HDDVD",
  18826. "MP4",
  18827. "MPG",
  18828. "M4V",
  18829. "MGV",
  18830. "OGV",
  18831. "QTM",
  18832. "STR",
  18833. "AMC",
  18834. "DVX",
  18835. "EVO",
  18836. "DAT",
  18837. "OGG",
  18838. "OGM"
  18839. ];
  18840. for (var i = 0; i < a.length; i++) {
  18841. this.workStudent[i] = [];
  18842. for (var j = 0; j < b.length; j++) {
  18843. if (i == b[j].tool) {
  18844. if (
  18845. (b[j].type == 1 ||
  18846. b[j].type == 4 ||
  18847. b[j].type == 5 ||
  18848. b[j].type == 6 ||
  18849. b[j].type == 12 ||
  18850. b[j].type == 7) &&
  18851. a[i].tool[0] != 15 &&
  18852. a[i].tool[0] != 4 &&
  18853. a[i].tool[0] != 45 &&
  18854. a[i].tool[0] != 50 &&
  18855. a[i].tool[0] != 32 &&
  18856. a[i].tool[0] != 57 &&
  18857. a[i].tool[0] != 52 &&
  18858. a[i].tool[0] != 69
  18859. ) {
  18860. if (
  18861. c.indexOf(
  18862. b[j].content
  18863. .split(".")
  18864. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18865. ) != -1 &&
  18866. a[i].tool[0] == 16 &&
  18867. b[j].atool != 50
  18868. ) {
  18869. this.workStudent[i].push({
  18870. works: b[j].content,
  18871. sName: b[j].name,
  18872. score: b[j].score,
  18873. img: b[j].img,
  18874. type: 1,
  18875. time: b[j].time,
  18876. userid: b[j].userid,
  18877. wid: b[j].id
  18878. });
  18879. } else if (
  18880. y.indexOf(
  18881. b[j].content
  18882. .split(".")
  18883. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18884. ) != -1 &&
  18885. a[i].tool[0] == 16 &&
  18886. b[j].atool != 50
  18887. ) {
  18888. this.workStudent[i].push({
  18889. userid: b[j].userid,
  18890. wid: b[j].id,
  18891. works: b[j].content,
  18892. sName: b[j].name,
  18893. score: b[j].score,
  18894. img: b[j].img,
  18895. type: 3,
  18896. time: b[j].time
  18897. });
  18898. } else if (b[j].type == 6 && b[j].atool != 50) {
  18899. this.workStudent[i].push({
  18900. userid: b[j].userid,
  18901. wid: b[j].id,
  18902. works: b[j].content,
  18903. sName: b[j].name,
  18904. score: b[j].score,
  18905. img: b[j].img,
  18906. type: 4,
  18907. time: b[j].time
  18908. });
  18909. } else if (b[j].type == 7 && b[j].atool != 50) {
  18910. this.workStudent[i].push({
  18911. userid: b[j].userid,
  18912. wid: b[j].id,
  18913. works: b[j].content,
  18914. sName: b[j].name,
  18915. score: b[j].score,
  18916. img: b[j].img,
  18917. type: 5,
  18918. time: b[j].time
  18919. });
  18920. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18921. this.workStudent[i].push({
  18922. works: b[j].content,
  18923. sName: b[j].name,
  18924. score: b[j].score,
  18925. img: b[j].img,
  18926. type: 12,
  18927. time: b[j].time,
  18928. userid: b[j].userid,
  18929. wid: b[j].id
  18930. });
  18931. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18932. this.workStudent[i].push({
  18933. works: b[j].content,
  18934. sName: b[j].name,
  18935. score: b[j].score,
  18936. img: b[j].img,
  18937. type: 0,
  18938. time: b[j].time,
  18939. userid: b[j].userid,
  18940. wid: b[j].id
  18941. });
  18942. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18943. this.workStudent[i].push({
  18944. works: b[j].content,
  18945. sName: b[j].name,
  18946. score: b[j].score,
  18947. img: b[j].img,
  18948. type: 0,
  18949. time: b[j].time,
  18950. userid: b[j].userid,
  18951. wid: b[j].id
  18952. });
  18953. }
  18954. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18955. this.workStudent[i].push({
  18956. works: b[j].content,
  18957. sName: b[j].name,
  18958. score: b[j].score,
  18959. img: b[j].img,
  18960. type: 2,
  18961. time: b[j].time,
  18962. userid: b[j].userid,
  18963. wid: b[j].id
  18964. });
  18965. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18966. this.workStudent[i].push({
  18967. works: b[j].content,
  18968. sName: b[j].name,
  18969. score: b[j].score,
  18970. img: b[j].img,
  18971. type: 20,
  18972. time: b[j].time,
  18973. userid: b[j].userid,
  18974. wid: b[j].id
  18975. });
  18976. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18977. //问卷
  18978. this.workStudent[i].push({
  18979. works: b[j].content,
  18980. sName: b[j].name,
  18981. score: b[j].score,
  18982. img: b[j].img,
  18983. type: 2,
  18984. time: b[j].time,
  18985. userid: b[j].userid,
  18986. wid: b[j].id
  18987. });
  18988. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18989. //选择题
  18990. this.workStudent[i].push({
  18991. works: b[j].content,
  18992. sName: b[j].name,
  18993. score: b[j].score,
  18994. img: b[j].img,
  18995. type: 8,
  18996. time: b[j].time,
  18997. userid: b[j].userid,
  18998. wid: b[j].id
  18999. });
  19000. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19001. //选择题
  19002. this.workStudent[i].push({
  19003. works: b[j].content,
  19004. sName: b[j].name,
  19005. score: b[j].score,
  19006. img: b[j].img,
  19007. type: 9,
  19008. time: b[j].time,
  19009. userid: b[j].userid,
  19010. wid: b[j].id
  19011. });
  19012. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19013. //选择题
  19014. this.workStudent[i].push({
  19015. works: b[j].content,
  19016. sName: b[j].name,
  19017. score: b[j].score,
  19018. img: b[j].img,
  19019. type: 10,
  19020. time: b[j].time,
  19021. userid: b[j].userid,
  19022. wid: b[j].id
  19023. });
  19024. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19025. //选择题
  19026. this.workStudent[i].push({
  19027. works: b[j].content,
  19028. sName: b[j].name,
  19029. score: b[j].score,
  19030. img: b[j].img,
  19031. type: 13,
  19032. time: b[j].time,
  19033. userid: b[j].userid,
  19034. wid: b[j].id
  19035. });
  19036. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  19037. //选择题
  19038. this.workStudent[i].push({
  19039. works: b[j].content,
  19040. sName: b[j].name,
  19041. score: b[j].score,
  19042. img: b[j].img,
  19043. type: 12,
  19044. time: b[j].time,
  19045. userid: b[j].userid,
  19046. wid: b[j].id
  19047. });
  19048. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  19049. //选择题
  19050. this.workStudent[i].push({
  19051. works: b[j].content,
  19052. sName: b[j].name,
  19053. score: b[j].score,
  19054. img: b[j].img,
  19055. type: 12,
  19056. time: b[j].time,
  19057. userid: b[j].userid,
  19058. wid: b[j].id
  19059. });
  19060. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  19061. //选择题
  19062. this.workStudent[i].push({
  19063. works: b[j].content,
  19064. sName: b[j].name,
  19065. score: b[j].score,
  19066. img: b[j].img,
  19067. type: 15,
  19068. time: b[j].time,
  19069. userid: b[j].userid,
  19070. wid: b[j].id
  19071. });
  19072. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19073. //英语写作
  19074. this.workStudent[i].push({
  19075. works: b[j].content,
  19076. sName: b[j].name,
  19077. score: b[j].score,
  19078. img: b[j].img,
  19079. type: 16,
  19080. time: b[j].time,
  19081. userid: b[j].userid,
  19082. wid: b[j].id,
  19083. aiCode: b[j].aiCode,
  19084. teacherCode: b[j].teacherCode
  19085. });
  19086. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19087. //英语写作
  19088. this.workStudent[i].push({
  19089. works: b[j].content,
  19090. sName: b[j].name,
  19091. score: b[j].score,
  19092. img: b[j].img,
  19093. type: 17,
  19094. time: b[j].time,
  19095. userid: b[j].userid,
  19096. wid: b[j].id
  19097. });
  19098. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19099. //英语口语
  19100. this.workStudent[i].push({
  19101. works: b[j].content,
  19102. sName: b[j].name,
  19103. score: b[j].score,
  19104. img: b[j].img,
  19105. type: 14,
  19106. time: b[j].time,
  19107. userid: b[j].userid,
  19108. wid: b[j].id
  19109. });
  19110. }
  19111. }
  19112. }
  19113. }
  19114. })
  19115. .catch(err => {
  19116. console.error(err);
  19117. });
  19118. },
  19119. openVideo(w) {
  19120. this.videoDetail = {};
  19121. this.playerOptions1.sources[0].src = w.works;
  19122. this.videoDetail = this.playerOptions1;
  19123. this.videoVisible = true;
  19124. },
  19125. isLikes(wid, uid, t, c, isLikes, sName) {
  19126. if (isLikes == false) {
  19127. let params = [
  19128. {
  19129. wid: wid,
  19130. lid: uid,
  19131. t: t,
  19132. c: c
  19133. }
  19134. ];
  19135. this.ajax
  19136. .post(this.$store.state.api + "insertComment", params)
  19137. .then(res => {
  19138. this.$message({
  19139. message: "点赞成功",
  19140. type: "success"
  19141. });
  19142. this.selectSWorks();
  19143. this.selectStudent();
  19144. if(this.tType!=2){
  19145. this.insertMemorandum(
  19146. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  19147. );
  19148. }
  19149. })
  19150. .catch(err => {
  19151. this.$message.error("点赞失败");
  19152. console.error(err);
  19153. });
  19154. } else {
  19155. let params = {
  19156. wid: wid,
  19157. lid: uid,
  19158. type: t
  19159. };
  19160. this.ajax
  19161. .get(this.$store.state.api + "deleteComment", params)
  19162. .then(res => {
  19163. this.$message({
  19164. message: "取消点赞成功",
  19165. type: "success"
  19166. });
  19167. this.selectSWorks();
  19168. this.selectStudent();
  19169. })
  19170. .catch(err => {
  19171. console.error(err);
  19172. });
  19173. }
  19174. },
  19175. deleteComment(wid) {
  19176. this.$confirm("确定删除此评论吗?", "提示", {
  19177. confirmButtonText: "确定",
  19178. cancelButtonText: "取消",
  19179. type: "warning"
  19180. })
  19181. .then(() => {
  19182. let params = {
  19183. id: wid
  19184. };
  19185. this.ajax
  19186. .get(this.$store.state.api + "deleteComment2", params)
  19187. .then(res => {
  19188. this.$message({
  19189. message: "删除评论成功",
  19190. type: "success"
  19191. });
  19192. this.selectSWorks();
  19193. this.selectStudent();
  19194. })
  19195. .catch(err => {
  19196. console.error(err);
  19197. });
  19198. })
  19199. .catch(() => {});
  19200. },
  19201. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  19202. this.commentIndexJson = {
  19203. toolIndex: toolIndex,
  19204. wIndex: wIndex,
  19205. gindex: gindex,
  19206. gid: gid
  19207. };
  19208. this.commentDialogVisible = true;
  19209. // console.log('wwwwww',w)
  19210. // if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  19211. // return;
  19212. this.commentDetailCopy = w.works;
  19213. this.commentDetail = [];
  19214. this.commentDetail = w;
  19215. if (w.works && w.type == 1) {
  19216. // this.pptImgUrl = "";
  19217. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19218. if (
  19219. a.indexOf(
  19220. w.works
  19221. .split(".")
  19222. [w.works.split(".").length - 1].toLocaleUpperCase()
  19223. ) != -1
  19224. ) {
  19225. let _uuurl = await this.checkLink(w.works);
  19226. this.pptImgUrl =
  19227. "https://view.officeapps.live.com/op/view.aspx?src=" +
  19228. encodeURIComponent(_uuurl);
  19229. this.showPDF = false;
  19230. } else if (
  19231. w.works
  19232. .split(".")
  19233. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19234. ) {
  19235. this.pptImgUrl = w.works;
  19236. this.showPDF = true;
  19237. }
  19238. } else if (w.works && w.type == 3) {
  19239. this.videoDetail = {};
  19240. this.playerOptions1.sources[0].src = w.works;
  19241. this.videoDetail = this.playerOptions1;
  19242. // this.videoVisible = true;
  19243. } else if (w.works && w.type == 4) {
  19244. this.eScore = JSON.parse(w.works);
  19245. this.rateJson = this.chapInfoList[
  19246. this.courseType
  19247. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19248. toolIndex
  19249. ].rateJson;
  19250. } else if (w.works && w.type == 10) {
  19251. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19252. } else if (w.works && w.type == 12) {
  19253. getFile(this.commentDetail.works).then(res => {
  19254. this.commentDetail.works = res.data;
  19255. });
  19256. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  19257. } else if (w.works && w.type == 13) {
  19258. this.wordJson = this.chapInfoList[
  19259. this.courseType
  19260. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  19261. toolIndex
  19262. ].wordJson;
  19263. }
  19264. this.$forceUpdate();
  19265. },
  19266. async openScore(w, index) {
  19267. this.wScore = 0;
  19268. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  19269. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  19270. this.commentDetail = [];
  19271. if (w.type == 17) {
  19272. this.dialogVisibleENScore = true;
  19273. } else {
  19274. this.dialogVisibleScore = true;
  19275. }
  19276. this.commentDetail = w;
  19277. if (w.works && w.type == 1) {
  19278. this.pptImgUrl = "";
  19279. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19280. if (
  19281. a.indexOf(
  19282. w.works
  19283. .split(".")
  19284. [w.works.split(".").length - 1].toLocaleUpperCase()
  19285. ) != -1
  19286. ) {
  19287. let _uuurl = await this.checkLink(w.works);
  19288. this.pptImgUrl =
  19289. "https://view.officeapps.live.com/op/view.aspx?src=" +
  19290. encodeURIComponent(_uuurl);
  19291. this.showPDF = false;
  19292. } else if (
  19293. w.works
  19294. .split(".")
  19295. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19296. ) {
  19297. this.pptImgUrl = w.works;
  19298. this.showPDF = true;
  19299. }
  19300. } else if (w.works && w.type == 3) {
  19301. this.videoDetail = {};
  19302. this.playerOptions1.sources[0].src = w.works;
  19303. this.videoDetail = this.playerOptions1;
  19304. } else if (w.type == 17) {
  19305. let englishVoiceJson = {};
  19306. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19307. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  19308. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19309. this.taskCount
  19310. ].toolChoose[index].englishVoiceJson
  19311. : {};
  19312. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19313. }
  19314. this.insertMemorandum(
  19315. `查看<span class="variable">${w.sName}</span>的作业`
  19316. );
  19317. },
  19318. addComment(wid, uid, t, detail) {
  19319. if (this.commentText == "") {
  19320. this.$message.error("请输入评论");
  19321. return;
  19322. }
  19323. let params2 = [
  19324. {
  19325. wid: wid,
  19326. lid: uid,
  19327. t: t
  19328. }
  19329. ];
  19330. this.ajax
  19331. .post(this.$store.state.api + "getComment", params2)
  19332. .then(res => {
  19333. if (res.data[0].length > 0) {
  19334. this.$message.error("一个作业只能评论一条");
  19335. } else {
  19336. let params = [
  19337. {
  19338. wid: wid,
  19339. lid: uid,
  19340. t: t,
  19341. c: this.commentText
  19342. }
  19343. ];
  19344. this.ajax
  19345. .post(this.$store.state.api + "insertComment", params)
  19346. .then(res => {
  19347. this.$message({
  19348. message: "评论成功",
  19349. type: "success"
  19350. });
  19351. this.commentText = "";
  19352. this.selectSWorks();
  19353. this.selectStudent();
  19354. if(this.tType!=2){
  19355. this.insertMemorandum(
  19356. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  19357. );
  19358. }
  19359. })
  19360. .catch(err => {
  19361. this.$message.error("评论失败");
  19362. console.error(err);
  19363. });
  19364. }
  19365. })
  19366. .catch(err => {
  19367. // this.$message.error("评论失败");
  19368. console.error(err);
  19369. });
  19370. },
  19371. scoreWork(wid, sName) {
  19372. if (this.wScore == 0) {
  19373. this.$message.error("请评分");
  19374. return;
  19375. }
  19376. let params = [
  19377. {
  19378. wid: wid,
  19379. score: JSON.stringify({
  19380. wScore: this.wScore,
  19381. detail: this.scoreDetail
  19382. })
  19383. }
  19384. ];
  19385. this.ajax
  19386. .post(this.$store.state.api + "scoreWork", params)
  19387. .then(res => {
  19388. this.$message({
  19389. message: "评分成功",
  19390. type: "success"
  19391. });
  19392. this.wScore = 0;
  19393. this.scoreDetail = "";
  19394. this.dialogVisibleScore = false;
  19395. this.selectSWorks();
  19396. this.selectStudent();
  19397. if(this.tType!=2){
  19398. this.insertMemorandum(
  19399. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  19400. );
  19401. }
  19402. })
  19403. .catch(err => {
  19404. this.$message.error("评分失败");
  19405. console.error(err);
  19406. });
  19407. },
  19408. openXz(w, i) {
  19409. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19410. .taskJson[this.taskCount].toolChoose[i].selectJson
  19411. ? JSON.parse(
  19412. JSON.stringify(
  19413. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19414. this.taskCount
  19415. ].toolChoose[i].selectJson
  19416. )
  19417. )
  19418. : { url: "", select: [], answer: [] };
  19419. var a = w.works.split(",");
  19420. for (var k = 0; k < a.length; k++) {
  19421. a[k] = parseInt(a[k]);
  19422. }
  19423. this.selectAnswer = { answer: a, stu: w.sName };
  19424. this.isSelect = true;
  19425. this.dialogVisibleSelect = true;
  19426. this.insertMemorandum(
  19427. `查看<span class="variable">${w.sName}</span>的作业`
  19428. );
  19429. },
  19430. openSen(w, i) {
  19431. this.sentenceList1 = JSON.parse(w.works);
  19432. this.sentenceList1.stuName = w.sName;
  19433. this.dialogVisibleSentence1 = true;
  19434. },
  19435. openPj(w, toolindex) {
  19436. this.isStar = true;
  19437. this.eScore = JSON.parse(w);
  19438. this.rateJson = this.chapInfoList[
  19439. this.courseType
  19440. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  19441. this.studentEvalDialogVisible = true;
  19442. },
  19443. openEnglishEva(id, i) {
  19444. let params = {
  19445. wid: id
  19446. };
  19447. this.ajax
  19448. .get(this.$store.state.api + "selectEngWork", params)
  19449. .then(res => {
  19450. this.evaEngJson.message = res.data[0][0];
  19451. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  19452. this.evaEngJson.teacherJson = this.chapInfoList[
  19453. this.courseType
  19454. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  19455. this.engEvaDialogVisible = true;
  19456. })
  19457. .catch(err => {
  19458. console.error(err);
  19459. });
  19460. },
  19461. deleteWorks(id) {
  19462. this.$confirm("确定删除此作业吗?", "提示", {
  19463. confirmButtonText: "确定",
  19464. cancelButtonText: "取消",
  19465. type: "warning"
  19466. })
  19467. .then(() => {
  19468. let params = [
  19469. {
  19470. id: id
  19471. }
  19472. ];
  19473. this.ajax
  19474. .post(this.$store.state.api + "deleteCourseWork", params)
  19475. .then(res => {
  19476. this.$message({
  19477. message: "删除成功",
  19478. type: "success"
  19479. });
  19480. this.selectStudent();
  19481. this.selectSWorks();
  19482. this.selectSLook();
  19483. })
  19484. .catch(err => {
  19485. this.$message.error("网络异常");
  19486. console.error(err);
  19487. });
  19488. })
  19489. .catch(() => {});
  19490. },
  19491. // deleteWorksTwo(w,stage,task) {
  19492. // // let mk = `markSco${toolIndex}${wIndex}`
  19493. // // console.log(this.$refs[mk][0].homeworkVal)
  19494. // // let wid = this.$refs[mk][0].homeworkVal.id
  19495. // // console.log('wid',wid);
  19496. // this.$confirm("确定删除此作业吗?", "提示", {
  19497. // confirmButtonText: "确定",
  19498. // cancelButtonText: "取消",
  19499. // type: "warning",
  19500. // })
  19501. // .then(() => {
  19502. // let params = [
  19503. // {
  19504. // id: w.wid,
  19505. // cid: this.id,
  19506. // uid:w.userid,
  19507. // s:stage,
  19508. // t:task
  19509. // },
  19510. // ];
  19511. // // return console.log(params)
  19512. // this.ajax
  19513. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  19514. // .then((res) => {
  19515. // this.$message({
  19516. // message: "删除成功",
  19517. // type: "success",
  19518. // });
  19519. // this.selectStudent();
  19520. // this.selectSWorks();
  19521. // this.selectSLook();
  19522. // })
  19523. // .catch((err) => {
  19524. // this.$message.error("网络异常");
  19525. // console.error(err);
  19526. // });
  19527. // })
  19528. // .catch(() => {});
  19529. // },
  19530. noIsAi() {
  19531. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  19532. },
  19533. getLang() {
  19534. let lang = "";
  19535. if (this.languageSetting == 0) {
  19536. lang = "Chinese.";
  19537. } else if (this.languageSetting == 1) {
  19538. lang = "Traditional Chinese.";
  19539. } else if (this.languageSetting == 2) {
  19540. lang = "English.";
  19541. }
  19542. return lang;
  19543. },
  19544. selectSWorks(gindex) {
  19545. //教师查看全部作业
  19546. let params = {
  19547. cid: this.id,
  19548. s: this.courseType,
  19549. t: this.taskCount
  19550. };
  19551. this.ajax
  19552. .get(this.$store.state.api + "selectSWorks", params)
  19553. .then(res => {
  19554. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19555. this.taskCount
  19556. ].toolChoose;
  19557. var b = res.data[0];
  19558. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19559. var y = [
  19560. "AVI",
  19561. "NAVI",
  19562. "MPEG",
  19563. "ASF",
  19564. "MOV",
  19565. "WMV",
  19566. "3GP",
  19567. "RM",
  19568. "RMVB",
  19569. "FLV",
  19570. "F4V",
  19571. "H.264",
  19572. "H.265",
  19573. "REAL VIDEO",
  19574. "MKV",
  19575. "WebM",
  19576. "HDDVD",
  19577. "MP4",
  19578. "MPG",
  19579. "M4V",
  19580. "MGV",
  19581. "OGV",
  19582. "QTM",
  19583. "STR",
  19584. "AMC",
  19585. "DVX",
  19586. "EVO",
  19587. "DAT",
  19588. "OGG",
  19589. "OGM"
  19590. ];
  19591. var d = res.data[1];
  19592. var e = res.data[2];
  19593. var f = res.data[3];
  19594. let _worksStudent = [];
  19595. var _worksStudent2 = [];
  19596. for (var i = 0; i < a.length; i++) {
  19597. _worksStudent[i] = [];
  19598. _worksStudent2[i] = [];
  19599. if (
  19600. !this.isCloseList[i] ||
  19601. this.isCloseList[i].isClose == undefined
  19602. ) {
  19603. this.isCloseList[i] = { isClose: 0 };
  19604. }
  19605. this.groupStudent[i] = [];
  19606. this.groupStudentUid[i] = [];
  19607. if (this.isGroup) {
  19608. for (
  19609. var groupI = 0;
  19610. groupI < this.courseGroup.group.length;
  19611. groupI++
  19612. ) {
  19613. this.courseGroup.group[groupI].works[i] = [];
  19614. }
  19615. }
  19616. this.isWorksS[i] = [];
  19617. this.checkJson[i] = [];
  19618. if (a[i].tool[0] == 49) {
  19619. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19620. this.groupStudent[i][gA] = [];
  19621. this.groupStudentUid[i][gA] = [];
  19622. _worksStudent[i][gA] = [];
  19623. _worksStudent2[i][gA] = [];
  19624. this.isCloseList[i][gA] = [];
  19625. for (var g = 0; g < f.length; g++) {
  19626. if (
  19627. f[g].ttype == 2 &&
  19628. this.tcid &&
  19629. this.arrayToArray(
  19630. f[g].classid ? f[g].classid.split(",") : [],
  19631. this.tcid.split(",")
  19632. ).length == 0
  19633. ) {
  19634. continue;
  19635. }
  19636. let _classId = this.arrayToArray(
  19637. this.courseDetail.juri
  19638. ? this.courseDetail.juri.split(",")
  19639. : [],
  19640. this.classId ? this.classId.split(",") : []
  19641. );
  19642. if (
  19643. gA == f[g].group &&
  19644. f[g].tool == i &&
  19645. (this.arrayToArray(
  19646. f[g].classid ? f[g].classid.split(",") : [],
  19647. this.tcid.split(",")
  19648. ).length !== 0 ||
  19649. this.arrayToArray(
  19650. f[g].classid ? f[g].classid.split(",") : [],
  19651. _classId
  19652. ).length !== 0 ||
  19653. (!this.tcid && this.tType == "1") ||
  19654. this.courseDetail.juri === "" ||
  19655. f[g].ttype == 1)
  19656. ) {
  19657. this.groupStudent[i][gA].push(f[g]);
  19658. this.groupStudentUid[i][gA].push(f[g].userid);
  19659. }
  19660. }
  19661. }
  19662. this.$forceUpdate();
  19663. }
  19664. for (var j = 0; j < b.length; j++) {
  19665. if (
  19666. b[j].ttype == 2 &&
  19667. this.tcid &&
  19668. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19669. .length == 0
  19670. ) {
  19671. continue;
  19672. }
  19673. var likesCount = 0;
  19674. var commentCount = 0;
  19675. var isLikes = false;
  19676. var commentJson = [];
  19677. var likeJson = [];
  19678. var data = b[j];
  19679. if (i == b[j].tool) {
  19680. if (data.type == 2 && a[i].tool[0] == 4) {
  19681. // if(JSON.parse(data.content)[0].anwer){
  19682. var checkL =
  19683. JSON.parse(data.content)[0].anwer instanceof Array
  19684. ? JSON.parse(data.content)[0].anwer
  19685. : JSON.parse(data.content)[0].anwer.split(",");
  19686. for (var z = 0; z < checkL.length; z++) {
  19687. if (!this.checkJson[i][z]) {
  19688. this.checkJson[i].push({
  19689. checkCount: [],
  19690. checkPerson: [],
  19691. rightPerson: []
  19692. });
  19693. }
  19694. if (!this.checkJson[i][z].checkCount.length) {
  19695. this.checkJson[i][z].checkCount = [];
  19696. let _askItemCount = JSON.parse(data.content)[0].askJson
  19697. .askJson[z].askItem;
  19698. for (var aic = 0; aic < _askItemCount; aic++) {
  19699. this.checkJson[i][z].checkCount.push(0);
  19700. }
  19701. }
  19702. if (checkL[z] instanceof Array) {
  19703. if (
  19704. JSON.parse(data.content)[0]
  19705. .anwer.sort()
  19706. .join(",") == checkL[z].sort().join(",")
  19707. ) {
  19708. this.checkJson[i][z].rightPerson.push(data.name);
  19709. }
  19710. for (var q = 0; q < checkL[z].length; q++) {
  19711. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19712. ? this.checkJson[i][z].checkPerson[
  19713. parseInt(checkL[z][q])
  19714. ].push(data.name)
  19715. : (this.checkJson[i][z].checkPerson[
  19716. parseInt(checkL[z][q])
  19717. ] = [data.name]);
  19718. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19719. ? this.checkJson[i][z].checkCount[
  19720. parseInt(checkL[z][q])
  19721. ]++
  19722. : (this.checkJson[i][z].checkCount[
  19723. parseInt(checkL[z][q])
  19724. ] = 1);
  19725. }
  19726. } else {
  19727. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19728. this.checkJson[i][z].rightPerson.push(data.name);
  19729. }
  19730. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19731. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19732. ? this.checkJson[i][z].checkPerson[
  19733. parseInt(checkL[z])
  19734. ].push(data.name)
  19735. : (this.checkJson[i][z].checkPerson[
  19736. parseInt(checkL[z])
  19737. ] = [data.name]);
  19738. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19739. ? this.checkJson[i][z].checkCount[
  19740. parseInt(checkL[z])
  19741. ]++
  19742. : (this.checkJson[i][z].checkCount[
  19743. parseInt(checkL[z])
  19744. ] = 1);
  19745. }
  19746. }
  19747. }
  19748. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19749. var checkL = JSON.parse(data.content)[0].anwer;
  19750. for (var z = 0; z < checkL.length; z++) {
  19751. if (!this.checkJson[i][z]) {
  19752. this.checkJson[i].push({
  19753. checkCount: [],
  19754. checkPerson: [],
  19755. rightPerson: []
  19756. });
  19757. }
  19758. if (!this.checkJson[i][z].checkCount.length) {
  19759. this.checkJson[i][z].checkCount = [];
  19760. let _askItemCount = JSON.parse(data.content)[0].testJson
  19761. .testJson[z].testItem;
  19762. for (var aic = 0; aic < _askItemCount; aic++) {
  19763. this.checkJson[i][z].checkCount.push(0);
  19764. }
  19765. }
  19766. if (checkL[z] instanceof Array) {
  19767. if (
  19768. JSON.parse(data.content)[0]
  19769. .testJson.testJson[z].answer.sort()
  19770. .join(",") == checkL[z].sort().join(",")
  19771. ) {
  19772. this.checkJson[i][z].rightPerson.push(data.name);
  19773. }
  19774. for (var q = 0; q < checkL[z].length; q++) {
  19775. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19776. ? this.checkJson[i][z].checkPerson[
  19777. parseInt(checkL[z][q])
  19778. ].push(data.name)
  19779. : (this.checkJson[i][z].checkPerson[
  19780. parseInt(checkL[z][q])
  19781. ] = [data.name]);
  19782. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19783. ? this.checkJson[i][z].checkCount[
  19784. parseInt(checkL[z][q])
  19785. ]++
  19786. : (this.checkJson[i][z].checkCount[
  19787. parseInt(checkL[z][q])
  19788. ] = 1);
  19789. }
  19790. } else {
  19791. if (
  19792. JSON.parse(data.content)[0].testJson.testJson[z]
  19793. .answer == checkL[z]
  19794. ) {
  19795. this.checkJson[i][z].rightPerson.push(data.name);
  19796. }
  19797. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19798. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19799. ? this.checkJson[i][z].checkPerson[
  19800. parseInt(checkL[z])
  19801. ].push(data.name)
  19802. : (this.checkJson[i][z].checkPerson[
  19803. parseInt(checkL[z])
  19804. ] = [data.name]);
  19805. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19806. ? this.checkJson[i][z].checkCount[
  19807. parseInt(checkL[z])
  19808. ]++
  19809. : (this.checkJson[i][z].checkCount[
  19810. parseInt(checkL[z])
  19811. ] = 1);
  19812. }
  19813. }
  19814. }
  19815. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19816. var checkL = JSON.parse(data.content);
  19817. for (var z = 0; z < checkL.length; z++) {
  19818. if (!this.checkJson[i][z]) {
  19819. this.checkJson[i].push({
  19820. checkCount: [],
  19821. checkPerson: [],
  19822. rightPerson: []
  19823. });
  19824. }
  19825. this.checkJson[i][z].checkPerson.push(data.name);
  19826. if (
  19827. checkL[z].chooseSenList.toString() ==
  19828. checkL[z].rightAnswer.toString()
  19829. ) {
  19830. this.checkJson[i][z].rightPerson.push(data.name);
  19831. }
  19832. }
  19833. }
  19834. for (var k = 0; k < d.length; k++) {
  19835. //点赞
  19836. if (d[k].workId == b[j].id) {
  19837. likesCount++;
  19838. likeJson.push(d[k]);
  19839. if (d[k].likesId == this.userid) {
  19840. isLikes = true;
  19841. }
  19842. }
  19843. }
  19844. for (var l = 0; l < e.length; l++) {
  19845. //评论
  19846. if (e[l].workId == b[j].id) {
  19847. if (e[l].comment != "") {
  19848. commentCount++;
  19849. commentJson.push({
  19850. commentText: e[l].comment,
  19851. commentTime: e[l].commentTime,
  19852. commentPeople: e[l].commentPeople,
  19853. userid: e[l].userid,
  19854. wid: e[l].id
  19855. });
  19856. }
  19857. }
  19858. }
  19859. if (
  19860. (b[j].type == 1 ||
  19861. b[j].type == 4 ||
  19862. b[j].type == 5 ||
  19863. b[j].type == 6 ||
  19864. b[j].type == 12 ||
  19865. b[j].type == 7) &&
  19866. a[i].tool[0] != 15 &&
  19867. a[i].tool[0] != 4 &&
  19868. a[i].tool[0] != 45 &&
  19869. a[i].tool[0] != 50 &&
  19870. a[i].tool[0] != 32 &&
  19871. a[i].tool[0] != 57 &&
  19872. a[i].tool[0] != 52
  19873. ) {
  19874. if (
  19875. c.indexOf(
  19876. b[j].content
  19877. .split(".")
  19878. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19879. ) != -1 &&
  19880. a[i].tool[0] == 16 &&
  19881. b[j].atool != 50
  19882. ) {
  19883. let _works = {
  19884. userid: b[j].userid,
  19885. ateacher: b[j].ateacher,
  19886. wid: b[j].id,
  19887. works: b[j].content,
  19888. sName: b[j].name,
  19889. type: 1,
  19890. ttype: b[j].ttype,
  19891. time: b[j].time,
  19892. score: b[j].score,
  19893. img: b[j].img,
  19894. likesCount: likesCount,
  19895. commentCount: commentCount,
  19896. isLikes: isLikes,
  19897. commentJson: commentJson,
  19898. likeJson: likeJson
  19899. };
  19900. if (this.isGroup) {
  19901. let isGw = 1;
  19902. for (
  19903. var groupI = 0;
  19904. groupI < this.courseGroup.group.length;
  19905. groupI++
  19906. ) {
  19907. let gid = this.courseGroup.group[groupI].id;
  19908. if (
  19909. this.courseGroupStudentUid[gid].indexOf(
  19910. b[j].userid
  19911. ) != -1
  19912. ) {
  19913. isGw = 2;
  19914. this.courseGroup.group[groupI].works[i].push(_works);
  19915. break;
  19916. }
  19917. }
  19918. if (isGw == 1) {
  19919. _worksStudent[i].push(_works);
  19920. }
  19921. } else {
  19922. _worksStudent[i].push(_works);
  19923. }
  19924. _worksStudent2[i].push(_works);
  19925. this.isWorksS[i].push({
  19926. uid: b[j].userid,
  19927. sName: b[j].name
  19928. });
  19929. } else if (
  19930. y.indexOf(
  19931. b[j].content
  19932. .split(".")
  19933. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19934. ) != -1 &&
  19935. a[i].tool[0] == 16 &&
  19936. b[j].atool != 50
  19937. ) {
  19938. let _works = {
  19939. userid: b[j].userid,
  19940. ateacher: b[j].ateacher,
  19941. wid: b[j].id,
  19942. works: b[j].content,
  19943. sName: b[j].name,
  19944. type: 3,
  19945. ttype: b[j].ttype,
  19946. time: b[j].time,
  19947. score: b[j].score,
  19948. img: b[j].img,
  19949. likesCount: likesCount,
  19950. commentCount: commentCount,
  19951. isLikes: isLikes,
  19952. commentJson: commentJson,
  19953. likeJson: likeJson
  19954. };
  19955. if (this.isGroup) {
  19956. let isGw = 1;
  19957. for (
  19958. var groupI = 0;
  19959. groupI < this.courseGroup.group.length;
  19960. groupI++
  19961. ) {
  19962. let gid = this.courseGroup.group[groupI].id;
  19963. if (
  19964. this.courseGroupStudentUid[gid].indexOf(
  19965. b[j].userid
  19966. ) != -1
  19967. ) {
  19968. isGw = 2;
  19969. this.courseGroup.group[groupI].works[i].push(_works);
  19970. break;
  19971. }
  19972. }
  19973. if (isGw == 1) {
  19974. _worksStudent[i].push(_works);
  19975. }
  19976. } else {
  19977. _worksStudent[i].push(_works);
  19978. }
  19979. _worksStudent2[i].push(_works);
  19980. this.isWorksS[i].push({
  19981. uid: b[j].userid,
  19982. sName: b[j].name
  19983. });
  19984. } else if (b[j].type == 6 && b[j].atool != 50) {
  19985. let _works = {
  19986. userid: b[j].userid,
  19987. ateacher: b[j].ateacher,
  19988. wid: b[j].id,
  19989. works: b[j].content,
  19990. sName: b[j].name,
  19991. type: 4,
  19992. ttype: b[j].ttype,
  19993. time: b[j].time,
  19994. score: b[j].score,
  19995. img: b[j].img,
  19996. likesCount: likesCount,
  19997. commentCount: commentCount,
  19998. isLikes: isLikes,
  19999. commentJson: commentJson,
  20000. likeJson: likeJson
  20001. };
  20002. _worksStudent[i].push(_works);
  20003. _worksStudent2[i].push(_works);
  20004. this.isWorksS[i].push({
  20005. uid: b[j].userid,
  20006. sName: b[j].name
  20007. });
  20008. } else if (b[j].type == 7 && b[j].atool != 50) {
  20009. let _work = {
  20010. userid: b[j].userid,
  20011. ateacher: b[j].ateacher,
  20012. wid: b[j].id,
  20013. works: b[j].content,
  20014. sName: b[j].name,
  20015. type: 5,
  20016. ttype: b[j].ttype,
  20017. time: b[j].time,
  20018. score: b[j].score,
  20019. img: b[j].img,
  20020. likesCount: likesCount,
  20021. commentCount: commentCount,
  20022. isLikes: isLikes,
  20023. commentJson: commentJson,
  20024. likeJson: likeJson
  20025. };
  20026. _worksStudent[i].push(_work);
  20027. _worksStudent2[i].push(_work);
  20028. this.isWorksS[i].push({
  20029. uid: b[j].userid,
  20030. sName: b[j].name
  20031. });
  20032. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  20033. let _works = {
  20034. userid: b[j].userid,
  20035. ateacher: b[j].ateacher,
  20036. wid: b[j].id,
  20037. works: b[j].content,
  20038. sName: b[j].name,
  20039. type: 12,
  20040. ttype: b[j].ttype,
  20041. time: b[j].time,
  20042. score: b[j].score,
  20043. img: b[j].img,
  20044. likesCount: likesCount,
  20045. commentCount: commentCount,
  20046. isLikes: isLikes,
  20047. commentJson: commentJson,
  20048. likeJson: likeJson
  20049. };
  20050. if (this.isGroup) {
  20051. let isGw = 1;
  20052. for (
  20053. var groupI = 0;
  20054. groupI < this.courseGroup.group.length;
  20055. groupI++
  20056. ) {
  20057. let gid = this.courseGroup.group[groupI].id;
  20058. if (
  20059. this.courseGroupStudentUid[gid].indexOf(
  20060. b[j].userid
  20061. ) != -1
  20062. ) {
  20063. isGw = 2;
  20064. this.courseGroup.group[groupI].works[i].push(_works);
  20065. break;
  20066. }
  20067. }
  20068. if (isGw == 1) {
  20069. _worksStudent[i].push(_works);
  20070. }
  20071. } else {
  20072. _worksStudent[i].push(_works);
  20073. }
  20074. _worksStudent2[i].push(_works);
  20075. this.isWorksS[i].push({
  20076. uid: b[j].userid,
  20077. sName: b[j].name
  20078. });
  20079. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  20080. let _works = {
  20081. userid: b[j].userid,
  20082. ateacher: b[j].ateacher,
  20083. wid: b[j].id,
  20084. works: b[j].content,
  20085. sName: b[j].name,
  20086. type: 0,
  20087. ttype: b[j].ttype,
  20088. time: b[j].time,
  20089. score: b[j].score,
  20090. img: b[j].img,
  20091. likesCount: likesCount,
  20092. commentCount: commentCount,
  20093. isLikes: isLikes,
  20094. commentJson: commentJson,
  20095. likeJson: likeJson
  20096. };
  20097. if (this.isGroup) {
  20098. let isGw = 1;
  20099. for (
  20100. var groupI = 0;
  20101. groupI < this.courseGroup.group.length;
  20102. groupI++
  20103. ) {
  20104. let gid = this.courseGroup.group[groupI].id;
  20105. if (
  20106. this.courseGroupStudentUid[gid].indexOf(
  20107. b[j].userid
  20108. ) != -1
  20109. ) {
  20110. isGw = 2;
  20111. this.courseGroup.group[groupI].works[i].push(_works);
  20112. break;
  20113. }
  20114. }
  20115. if (isGw == 1) {
  20116. _worksStudent[i].push(_works);
  20117. }
  20118. } else {
  20119. _worksStudent[i].push(_works);
  20120. }
  20121. _worksStudent2[i].push(_works);
  20122. this.isWorksS[i].push({
  20123. uid: b[j].userid,
  20124. sName: b[j].name
  20125. });
  20126. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  20127. let _works = {
  20128. userid: b[j].userid,
  20129. ateacher: b[j].ateacher,
  20130. wid: b[j].id,
  20131. works: b[j].content,
  20132. sName: b[j].name,
  20133. type: 0,
  20134. ttype: b[j].ttype,
  20135. time: b[j].time,
  20136. score: b[j].score,
  20137. img: b[j].img,
  20138. likesCount: likesCount,
  20139. commentCount: commentCount,
  20140. isLikes: isLikes,
  20141. commentJson: commentJson,
  20142. likeJson: likeJson
  20143. };
  20144. if (this.isGroup) {
  20145. let isGw = 1;
  20146. for (
  20147. var groupI = 0;
  20148. groupI < this.courseGroup.group.length;
  20149. groupI++
  20150. ) {
  20151. let gid = this.courseGroup.group[groupI].id;
  20152. if (
  20153. this.courseGroupStudentUid[gid].indexOf(
  20154. b[j].userid
  20155. ) != -1
  20156. ) {
  20157. isGw = 2;
  20158. this.courseGroup.group[groupI].works[i].push(_works);
  20159. break;
  20160. }
  20161. }
  20162. if (isGw == 1) {
  20163. _worksStudent[i].push(_works);
  20164. }
  20165. } else {
  20166. _worksStudent[i].push(_works);
  20167. }
  20168. _worksStudent2[i].push(_works);
  20169. this.isWorksS[i].push({
  20170. uid: b[j].userid,
  20171. sName: b[j].name
  20172. });
  20173. }
  20174. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  20175. let _works = {
  20176. userid: b[j].userid,
  20177. ateacher: b[j].ateacher,
  20178. wid: b[j].id,
  20179. works: b[j].content,
  20180. sName: b[j].name,
  20181. type: 2,
  20182. ttype: b[j].ttype,
  20183. time: b[j].time,
  20184. score: b[j].score,
  20185. img: b[j].img,
  20186. likesCount: likesCount,
  20187. commentCount: commentCount,
  20188. isLikes: isLikes,
  20189. commentJson: commentJson,
  20190. likeJson: likeJson
  20191. };
  20192. if (this.isGroup) {
  20193. let isGw = 1;
  20194. for (
  20195. var groupI = 0;
  20196. groupI < this.courseGroup.group.length;
  20197. groupI++
  20198. ) {
  20199. let gid = this.courseGroup.group[groupI].id;
  20200. if (
  20201. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  20202. -1
  20203. ) {
  20204. isGw = 2;
  20205. this.courseGroup.group[groupI].works[i].push(_works);
  20206. break;
  20207. }
  20208. }
  20209. if (isGw == 1) {
  20210. _worksStudent[i].push(_works);
  20211. }
  20212. } else {
  20213. _worksStudent[i].push(_works);
  20214. }
  20215. _worksStudent2[i].push(_works);
  20216. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20217. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  20218. let _works = {
  20219. userid: b[j].userid,
  20220. ateacher: b[j].ateacher,
  20221. wid: b[j].id,
  20222. works: b[j].content,
  20223. sName: b[j].name,
  20224. type: 20,
  20225. ttype: b[j].ttype,
  20226. time: b[j].time,
  20227. score: b[j].score,
  20228. img: b[j].img,
  20229. likesCount: likesCount,
  20230. commentCount: commentCount,
  20231. isLikes: isLikes,
  20232. commentJson: commentJson,
  20233. likeJson: likeJson
  20234. };
  20235. if (this.isGroup) {
  20236. let isGw = 1;
  20237. for (
  20238. var groupI = 0;
  20239. groupI < this.courseGroup.group.length;
  20240. groupI++
  20241. ) {
  20242. let gid = this.courseGroup.group[groupI].id;
  20243. if (
  20244. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  20245. -1
  20246. ) {
  20247. isGw = 2;
  20248. this.courseGroup.group[groupI].works[i].push(_works);
  20249. break;
  20250. }
  20251. }
  20252. if (isGw == 1) {
  20253. _worksStudent[i].push(_works);
  20254. }
  20255. } else {
  20256. _worksStudent[i].push(_works);
  20257. }
  20258. _worksStudent2[i].push(_works);
  20259. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20260. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  20261. //问卷
  20262. let _work = {
  20263. userid: b[j].userid,
  20264. ateacher: b[j].ateacher,
  20265. wid: b[j].id,
  20266. works: b[j].content,
  20267. sName: b[j].name,
  20268. type: 2,
  20269. ttype: b[j].ttype,
  20270. time: b[j].time,
  20271. score: b[j].score,
  20272. img: b[j].img,
  20273. likesCount: likesCount,
  20274. commentCount: commentCount,
  20275. isLikes: isLikes,
  20276. commentJson: commentJson,
  20277. likeJson: likeJson
  20278. };
  20279. _worksStudent[i].push(_work);
  20280. _worksStudent2[i].push(_work);
  20281. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20282. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  20283. //选择题
  20284. let _work = {
  20285. userid: b[j].userid,
  20286. ateacher: b[j].ateacher,
  20287. wid: b[j].id,
  20288. works: b[j].content,
  20289. sName: b[j].name,
  20290. type: 8,
  20291. ttype: b[j].ttype,
  20292. time: b[j].time,
  20293. score: b[j].score,
  20294. img: b[j].img,
  20295. likesCount: likesCount,
  20296. commentCount: commentCount,
  20297. isLikes: isLikes,
  20298. commentJson: commentJson,
  20299. likeJson: likeJson
  20300. };
  20301. _worksStudent[i].push(_work);
  20302. _worksStudent2[i].push(_work);
  20303. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20304. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  20305. //选择题
  20306. let _work = {
  20307. userid: b[j].userid,
  20308. ateacher: b[j].ateacher,
  20309. wid: b[j].id,
  20310. works: b[j].content,
  20311. sName: b[j].name,
  20312. type: 9,
  20313. ttype: b[j].ttype,
  20314. time: b[j].time,
  20315. score: b[j].score,
  20316. img: b[j].img,
  20317. likesCount: likesCount,
  20318. commentCount: commentCount,
  20319. isLikes: isLikes,
  20320. commentJson: commentJson,
  20321. likeJson: likeJson
  20322. };
  20323. _worksStudent[i].push(_work);
  20324. _worksStudent2[i].push(_work);
  20325. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20326. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  20327. //选择题
  20328. let _work = {
  20329. userid: b[j].userid,
  20330. ateacher: b[j].ateacher,
  20331. wid: b[j].id,
  20332. works: b[j].content,
  20333. sName: b[j].name,
  20334. type: 10,
  20335. ttype: b[j].ttype,
  20336. time: b[j].time,
  20337. score: b[j].score,
  20338. img: b[j].img,
  20339. likesCount: likesCount,
  20340. commentCount: commentCount,
  20341. isLikes: isLikes,
  20342. commentJson: commentJson,
  20343. likeJson: likeJson
  20344. };
  20345. _worksStudent[i].push(_work);
  20346. _worksStudent2[i].push(_work);
  20347. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20348. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  20349. //选择题
  20350. let _work = {
  20351. userid: b[j].userid,
  20352. ateacher: b[j].ateacher,
  20353. wid: b[j].id,
  20354. works: b[j].content,
  20355. sName: b[j].name,
  20356. type: 13,
  20357. ttype: b[j].ttype,
  20358. time: b[j].time,
  20359. score: b[j].score,
  20360. img: b[j].img,
  20361. likesCount: likesCount,
  20362. commentCount: commentCount,
  20363. isLikes: isLikes,
  20364. commentJson: commentJson,
  20365. likeJson: likeJson
  20366. };
  20367. _worksStudent[i].push(_work);
  20368. _worksStudent2[i].push(_work);
  20369. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20370. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  20371. //选择题
  20372. let _work = {
  20373. userid: b[j].userid,
  20374. ateacher: b[j].ateacher,
  20375. wid: b[j].id,
  20376. works: b[j].content,
  20377. sName: b[j].name,
  20378. type: 16,
  20379. ttype: b[j].ttype,
  20380. time: b[j].time,
  20381. score: b[j].score,
  20382. img: b[j].img,
  20383. likesCount: likesCount,
  20384. commentCount: commentCount,
  20385. isLikes: isLikes,
  20386. commentJson: commentJson,
  20387. aiCode: b[j].aiCode,
  20388. teacherCode: b[j].teacherCode,
  20389. likeJson: likeJson
  20390. };
  20391. _worksStudent[i].push(_work);
  20392. _worksStudent2[i].push(_work);
  20393. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20394. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  20395. //选择题
  20396. let _work = {
  20397. userid: b[j].userid,
  20398. ateacher: b[j].ateacher,
  20399. wid: b[j].id,
  20400. works: b[j].content,
  20401. sName: b[j].name,
  20402. type: 17,
  20403. ttype: b[j].ttype,
  20404. time: b[j].time,
  20405. score: b[j].score,
  20406. img: b[j].img,
  20407. likesCount: likesCount,
  20408. commentCount: commentCount,
  20409. isLikes: isLikes,
  20410. commentJson: commentJson,
  20411. likeJson: likeJson
  20412. };
  20413. _worksStudent[i].push(_work);
  20414. _worksStudent2[i].push(_work);
  20415. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20416. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  20417. //交互视频
  20418. let _work = {
  20419. userid: b[j].userid,
  20420. ateacher: b[j].ateacher,
  20421. wid: b[j].id,
  20422. works: b[j].content,
  20423. sName: b[j].name,
  20424. type: 14,
  20425. ttype: b[j].ttype,
  20426. time: b[j].time,
  20427. score: b[j].score,
  20428. img: b[j].img,
  20429. likesCount: likesCount,
  20430. commentCount: commentCount,
  20431. isLikes: isLikes,
  20432. commentJson: commentJson,
  20433. likeJson: likeJson
  20434. };
  20435. _worksStudent[i].push(_work);
  20436. _worksStudent2[i].push(_work);
  20437. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20438. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  20439. let _gindex = JSON.parse(b[j].content);
  20440. if (
  20441. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  20442. b[j].userid
  20443. ) != -1
  20444. ) {
  20445. let _work = {
  20446. userid: b[j].userid,
  20447. ateacher: b[j].ateacher,
  20448. wid: b[j].id,
  20449. works: _gindex.url,
  20450. sName: b[j].name,
  20451. type: _gindex.type,
  20452. ttype: b[j].ttype,
  20453. time: b[j].time,
  20454. score: b[j].score,
  20455. img: b[j].img,
  20456. likesCount: likesCount,
  20457. commentCount: commentCount,
  20458. isLikes: isLikes,
  20459. commentJson: commentJson,
  20460. likeJson: likeJson
  20461. };
  20462. _worksStudent[i][_gindex.groupIndex].push(_work);
  20463. _worksStudent2[i][_gindex.groupIndex].push(_work);
  20464. }
  20465. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20466. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  20467. let _work = {
  20468. userid: b[j].userid,
  20469. ateacher: b[j].ateacher,
  20470. wid: b[j].id,
  20471. works: b[j].content,
  20472. sName: b[j].name ? b[j].name : b[j].userid,
  20473. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  20474. ttype: b[j].ttype,
  20475. time: b[j].time,
  20476. score: b[j].score,
  20477. img: b[j].img,
  20478. likesCount: likesCount,
  20479. commentCount: commentCount,
  20480. isLikes: isLikes,
  20481. commentJson: commentJson,
  20482. likeJson: likeJson
  20483. };
  20484. _worksStudent[i].push(_work);
  20485. _worksStudent2[i].push(_work);
  20486. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20487. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  20488. let _work = {
  20489. userid: b[j].userid,
  20490. ateacher: b[j].ateacher,
  20491. wid: b[j].id,
  20492. works: b[j].content,
  20493. sName: b[j].name ? b[j].name : b[j].userid,
  20494. type: 12,
  20495. ttype: b[j].ttype,
  20496. time: b[j].time,
  20497. score: b[j].score,
  20498. img: b[j].img,
  20499. likesCount: likesCount,
  20500. commentCount: commentCount,
  20501. isLikes: isLikes,
  20502. commentJson: commentJson,
  20503. likeJson: likeJson
  20504. };
  20505. _worksStudent[i].push(_work);
  20506. _worksStudent2[i].push(_work);
  20507. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20508. } else if (
  20509. a[i].tool[0] == 57 &&
  20510. b[j].atool == 57 &&
  20511. b[j].type == 12
  20512. ) {
  20513. let _work = {
  20514. userid: b[j].userid,
  20515. ateacher: b[j].ateacher,
  20516. wid: b[j].id,
  20517. works: b[j].content,
  20518. sName: b[j].name ? b[j].name : b[j].userid,
  20519. type: 12,
  20520. ttype: b[j].ttype,
  20521. time: b[j].time,
  20522. score: b[j].score,
  20523. img: b[j].img,
  20524. likesCount: likesCount,
  20525. commentCount: commentCount,
  20526. isLikes: isLikes,
  20527. commentJson: commentJson,
  20528. likeJson: likeJson
  20529. };
  20530. _worksStudent[i].push(_work);
  20531. _worksStudent2[i].push(_work);
  20532. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20533. } else if (
  20534. a[i].tool[0] == 57 &&
  20535. b[j].atool == 57 &&
  20536. b[j].type == 15
  20537. ) {
  20538. let _work = {
  20539. userid: b[j].userid,
  20540. ateacher: b[j].ateacher,
  20541. wid: b[j].id,
  20542. works: b[j].content,
  20543. sName: b[j].name ? b[j].name : b[j].userid,
  20544. type: 15,
  20545. ttype: b[j].ttype,
  20546. time: b[j].time,
  20547. score: b[j].score,
  20548. img: b[j].img,
  20549. likesCount: likesCount,
  20550. commentCount: commentCount,
  20551. isLikes: isLikes,
  20552. commentJson: commentJson,
  20553. likeJson: likeJson
  20554. };
  20555. _worksStudent[i].push(_work);
  20556. _worksStudent2[i].push(_work);
  20557. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20558. }
  20559. }
  20560. }
  20561. if (_worksStudent[i] && _worksStudent[i].length) {
  20562. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  20563. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20564. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20565. var scoreA = parseFloat(jscoreA);
  20566. var scoreB = parseFloat(jscoreB);
  20567. if (scoreA == scoreB) {
  20568. return b.likesCount - a.likesCount;
  20569. }
  20570. return scoreB - scoreA;
  20571. });
  20572. if (this.isGroup) {
  20573. for (
  20574. var groupI = 0;
  20575. groupI < this.courseGroup.group.length;
  20576. groupI++
  20577. ) {
  20578. this.courseGroup.group[groupI].works[
  20579. i
  20580. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20581. a,
  20582. b
  20583. ) {
  20584. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20585. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20586. var scoreA = parseFloat(jscoreA);
  20587. var scoreB = parseFloat(jscoreB);
  20588. if (scoreA == scoreB) {
  20589. return b.likesCount - a.likesCount;
  20590. }
  20591. return scoreB - scoreA;
  20592. });
  20593. }
  20594. }
  20595. }
  20596. }
  20597. this.timeWorkList = _worksStudent2;
  20598. for (var i = 0; i < a.length; i++) {
  20599. for (var j = 0; j < b.length; j++) {
  20600. var data = b[j];
  20601. if (i == b[j].tool) {
  20602. if (data.type == 2 || data.type == 8) {
  20603. for (var z = 0; z < this.checkJson[i].length; z++) {
  20604. this.checkJson[i][z].checkPerent = [];
  20605. this.checkJson[i][z].right = Math.round(
  20606. (this.checkJson[i][z].rightPerson.length /
  20607. parseInt(_worksStudent[i].length)) *
  20608. 100
  20609. );
  20610. let aaaa = this.checkJson[i][z];
  20611. for (
  20612. var k = 0;
  20613. k < this.checkJson[i][z].checkCount.length;
  20614. k++
  20615. ) {
  20616. this.checkJson[i][z].checkPerent.push(
  20617. Math.round(
  20618. (this.checkJson[i][z].checkCount[k] /
  20619. parseInt(_worksStudent[i].length)) *
  20620. 100
  20621. )
  20622. );
  20623. }
  20624. }
  20625. } else if (data.type == 9) {
  20626. for (var z = 0; z < this.checkJson[i].length; z++) {
  20627. this.checkJson[i][z].checkPerent = [];
  20628. this.checkJson[i][z].right = Math.round(
  20629. (this.checkJson[i][z].rightPerson.length /
  20630. this.checkJson[i][z].checkPerson.length) *
  20631. 100
  20632. );
  20633. }
  20634. }
  20635. }
  20636. }
  20637. }
  20638. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20639. this.joinGroup(gindex);
  20640. }
  20641. this.worksStudent = _worksStudent;
  20642. // if (((this.worksStudentCopy.length == 0) &&
  20643. // (this.worksStudent.length != 0)) ||
  20644. // (this.worksStudentCopy[this.taskCount].length != this.worksStudent[this.taskCount].length)
  20645. // ) {
  20646. // this.worksStudentCopy = this.worksStudent;
  20647. // }
  20648. this.selectWorksStudent();
  20649. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20650. this.$nextTick(() => {
  20651. setTimeout(() => {
  20652. setTimeout(() => {
  20653. this.panToolHeight("tool-" + ci);
  20654. }, 500);
  20655. }, 0);
  20656. });
  20657. }
  20658. })
  20659. .catch(err => {
  20660. console.error(err);
  20661. });
  20662. },
  20663. pngToWhiteBg(file) {
  20664. const _file = file;
  20665. let read = new FileReader();
  20666. read.readAsDataURL(file); // 文件转base64
  20667. return new Promise((resolve, reject) => {
  20668. read.onload = e => {
  20669. let img = new Image();
  20670. img.src = e.target.result;
  20671. img.onload = async () => {
  20672. // 生成canvas
  20673. let canvas = document.createElement("canvas");
  20674. let context = canvas.getContext("2d");
  20675. // 绘制图片到canvas上
  20676. canvas.width = img.width;
  20677. canvas.height = img.height;
  20678. // 在canvas绘制前填充白色背景
  20679. context.fillStyle = "#fff";
  20680. context.fillRect(0, 0, canvas.width, canvas.height);
  20681. context.drawImage(img, 0, 0);
  20682. let base64 = canvas.toDataURL(file["type"], 1);
  20683. let newFile = this.dataUrlToFile(base64, _file);
  20684. resolve(newFile);
  20685. };
  20686. };
  20687. });
  20688. },
  20689. dataUrlToFile(dataurl, file) {
  20690. let arr = dataurl.split(","),
  20691. mime = arr[0].match(/:(.*?);/)[1],
  20692. bstr = atob(arr[1]),
  20693. n = bstr.length,
  20694. u8arr = new Uint8Array(n);
  20695. while (n--) {
  20696. u8arr[n] = bstr.charCodeAt(n);
  20697. }
  20698. // return new Blob([u8arr], { type: mime });
  20699. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20700. type: mime
  20701. });
  20702. },
  20703. async beforeUpload1(event, type, i) {
  20704. // this.$message.success('进入上传')
  20705. var file = "";
  20706. if (type == 5) {
  20707. file = event;
  20708. } else {
  20709. file = event.target.files[0];
  20710. }
  20711. var credentials = {
  20712. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20713. secretAccessKey: "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"
  20714. }; //秘钥形式的登录上传
  20715. window.AWS.config.update(credentials);
  20716. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20717. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20718. var _this = this;
  20719. _this.progress = 0;
  20720. _this.proVisible = true;
  20721. _this.isFinishSize = 0;
  20722. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20723. var b = [
  20724. "DOC",
  20725. "DOCX",
  20726. "DOCM",
  20727. "DOTM",
  20728. "DOTX",
  20729. "PPTX",
  20730. "PPSX",
  20731. "PPT",
  20732. "PPS",
  20733. "PPTM",
  20734. "POTM",
  20735. "PPAM",
  20736. "POTX",
  20737. "PPSM"
  20738. ];
  20739. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20740. var photoA = [
  20741. "BMP",
  20742. "GIF",
  20743. "PNG",
  20744. "JPEG",
  20745. "JPEG",
  20746. "JPG",
  20747. "TIF",
  20748. "PCX",
  20749. "TGA",
  20750. "EXIF",
  20751. "FPX",
  20752. "SVG",
  20753. "APNG"
  20754. ];
  20755. // if (
  20756. // b.indexOf(
  20757. // file.name
  20758. // .split(".")
  20759. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20760. // ) != -1
  20761. // ) {
  20762. // if (file.size / 1024 / 1024 > 10) {
  20763. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20764. // return;
  20765. // }
  20766. // } else if (
  20767. // excelA.indexOf(
  20768. // file.name
  20769. // .split(".")
  20770. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20771. // ) != "-1"
  20772. // ) {
  20773. // if (file.size / 1024 / 1024 > 5) {
  20774. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20775. // return;
  20776. // }
  20777. // }
  20778. if (
  20779. photoA.indexOf(
  20780. file.name
  20781. .split(".")
  20782. [file.name.split(".").length - 1].toLocaleUpperCase()
  20783. ) != -1 &&
  20784. type != 4
  20785. ) {
  20786. // const blob = await imageConversion.compress(file, 0.8)
  20787. file = await this.pngToWhiteBg(file);
  20788. const blob = await imageConversion.compressAccurately(file, 256);
  20789. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20790. file = new File([blob], file.name, { type: file.type });
  20791. }
  20792. if (file) {
  20793. var params = {
  20794. Key:
  20795. file.name.split(".")[0] +
  20796. new Date().getTime() +
  20797. "." +
  20798. file.name.split(".")[file.name.split(".").length - 1],
  20799. ContentType: file.type,
  20800. Body: file,
  20801. "Access-Control-Allow-Credentials": "*",
  20802. ACL: "public-read"
  20803. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20804. var options = {
  20805. // partSize: 2048 * 1024 * 1024,
  20806. partSize: 1024 * 1024 * 1024,
  20807. queueSize: 2,
  20808. leavePartsOnError: true
  20809. };
  20810. bucket
  20811. .upload(params, options)
  20812. .on("httpUploadProgress", function(evt) {
  20813. //这里可以写进度条
  20814. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20815. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20816. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20817. })
  20818. .send(function(err, data) {
  20819. _this.progress = 100;
  20820. _this.isFinishSize = _this.isAllSize;
  20821. setTimeout(() => {
  20822. _this.proVisible = false;
  20823. }, 1000);
  20824. if (err) {
  20825. var a = _this.$refs.upload1.uploadFiles;
  20826. a.splice(a.length - 1, a.length);
  20827. _this.$message.error("上传失败");
  20828. } else {
  20829. // _this.$message.success('上传成功')
  20830. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20831. var c = [
  20832. "AVI",
  20833. "NAVI",
  20834. "MPEG",
  20835. "ASF",
  20836. "MOV",
  20837. "WMV",
  20838. "3GP",
  20839. "RM",
  20840. "RMVB",
  20841. "FLV",
  20842. "F4V",
  20843. "H.264",
  20844. "H.265",
  20845. "REAL VIDEO",
  20846. "MKV",
  20847. "WebM",
  20848. "HDDVD",
  20849. "MP4",
  20850. "MPG",
  20851. "M4V",
  20852. "MGV",
  20853. "OGV",
  20854. "QTM",
  20855. "STR",
  20856. "AMC",
  20857. "DVX",
  20858. "EVO",
  20859. "DAT",
  20860. "OGG",
  20861. "OGM"
  20862. ];
  20863. if (type == 1) {
  20864. _this.studyJuri[0].cover.push({
  20865. name: file.name,
  20866. url: data.Location,
  20867. uid: file.uid
  20868. });
  20869. if (
  20870. c.indexOf(
  20871. _this.studyJuri[0].cover[0].url
  20872. .split(".")
  20873. [
  20874. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20875. ].toLocaleUpperCase()
  20876. ) != -1
  20877. ) {
  20878. _this.fileType = 2;
  20879. } else if (
  20880. b.indexOf(
  20881. _this.studyJuri[0].cover[0].url
  20882. .split(".")
  20883. [
  20884. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20885. ].toLocaleUpperCase()
  20886. ) != -1
  20887. ) {
  20888. _this.fileType = 1;
  20889. } else if (
  20890. photoA.indexOf(
  20891. _this.studyJuri[0].cover[0].url
  20892. .split(".")
  20893. [
  20894. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20895. ].toLocaleUpperCase()
  20896. ) != -1
  20897. ) {
  20898. _this.fileType = 0;
  20899. } else {
  20900. _this.fileType = 3;
  20901. }
  20902. _this.imgChange(null, null, type);
  20903. } else if (type == 2) {
  20904. _this.upToolImg = data.Location;
  20905. _this.imgChange(null, null, type);
  20906. _this.addCourseWorks(i);
  20907. } else if (type == 4) {
  20908. _this.addPz("3", data.Location);
  20909. } else if (type == 5) {
  20910. _this.addImgDrawImG(data.Location);
  20911. } else if (type == 6) {
  20912. var _ftype = 1;
  20913. if (
  20914. c.indexOf(
  20915. data.Location.split(".")[
  20916. data.Location.split(".").length - 1
  20917. ].toLocaleUpperCase()
  20918. ) != -1
  20919. ) {
  20920. _ftype = 5;
  20921. } else if (
  20922. b.indexOf(
  20923. data.Location.split(".")[
  20924. data.Location.split(".").length - 1
  20925. ].toLocaleUpperCase()
  20926. ) != -1
  20927. ) {
  20928. _ftype = 4;
  20929. } else {
  20930. _ftype = 1;
  20931. }
  20932. _this.plworkFile.push({
  20933. name: file.name,
  20934. url: data.Location,
  20935. uid: file.uid,
  20936. fileType: _ftype,
  20937. username:
  20938. _this.plworkFile.length > 10
  20939. ? _this.plworkFile.length + 1
  20940. : "0" + (_this.plworkFile.length + 1)
  20941. });
  20942. } else if (type == 7) {
  20943. _this.addCourseWorksGong(i, data.Location, 32);
  20944. } else if (type == 8) {
  20945. _this.addCourseWorksGong(i, data.Location, 57);
  20946. }
  20947. _this.imgChange(null, null, type);
  20948. console.log(data.Location);
  20949. // _this.$message.success('上传成功'+data.Location)
  20950. }
  20951. });
  20952. }
  20953. },
  20954. async beforeUpload3(event, type, i) {
  20955. // this.$message.success('进入上传')
  20956. let file = "";
  20957. let cfindex2 = 0;
  20958. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20959. file = event.target.files[cfindex];
  20960. var credentials = {
  20961. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20962. secretAccessKey: "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"
  20963. }; //秘钥形式的登录上传
  20964. window.AWS.config.update(credentials);
  20965. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20966. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20967. var _this = this;
  20968. // _this.progress = 0;
  20969. _this.proVisible2 = true;
  20970. var b = [
  20971. "DOC",
  20972. "DOCX",
  20973. "DOCM",
  20974. "DOTM",
  20975. "DOTX",
  20976. "PPTX",
  20977. "PPSX",
  20978. "PPT",
  20979. "PPS",
  20980. "PPTM",
  20981. "POTM",
  20982. "PPAM",
  20983. "POTX",
  20984. "PPSM"
  20985. ];
  20986. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20987. var photoA = [
  20988. "BMP",
  20989. "GIF",
  20990. "PNG",
  20991. "JPEG",
  20992. "JPG",
  20993. "TIF",
  20994. "PCX",
  20995. "TGA",
  20996. "EXIF",
  20997. "FPX",
  20998. "SVG",
  20999. "APNG"
  21000. ];
  21001. if (
  21002. photoA.indexOf(
  21003. file.name
  21004. .split(".")
  21005. [file.name.split(".").length - 1].toLocaleUpperCase()
  21006. ) != -1 &&
  21007. type != 4
  21008. ) {
  21009. // const blob = await imageConversion.compress(file, 0.8)
  21010. file = await this.pngToWhiteBg(file);
  21011. const blob = await imageConversion.compressAccurately(file, 256);
  21012. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  21013. file = new File([blob], file.name, { type: file.type });
  21014. }
  21015. if (file) {
  21016. var params = {
  21017. Key:
  21018. file.name.split(".")[0] +
  21019. new Date().getTime() +
  21020. "." +
  21021. file.name.split(".")[file.name.split(".").length - 1],
  21022. ContentType: file.type,
  21023. Body: file,
  21024. "Access-Control-Allow-Credentials": "*",
  21025. ACL: "public-read"
  21026. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  21027. var options = {
  21028. // partSize: 2048 * 1024 * 1024,
  21029. partSize: 1024 * 1024 * 1024,
  21030. queueSize: 2,
  21031. leavePartsOnError: true
  21032. };
  21033. bucket
  21034. .upload(params, options)
  21035. .on("httpUploadProgress", function(evt) {
  21036. //这里可以写进度条
  21037. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  21038. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  21039. })
  21040. .send(function(err, data) {
  21041. // _this.progress = 100;
  21042. cfindex2++;
  21043. setTimeout(() => {
  21044. if (
  21045. cfindex2 == event.target.files.length - 1 ||
  21046. cfindex2 > event.target.files.length - 1
  21047. ) {
  21048. _this.proVisible2 = false;
  21049. }
  21050. }, 1000);
  21051. if (err) {
  21052. var a = _this.$refs.upload1.uploadFiles;
  21053. a.splice(a.length - 1, a.length);
  21054. _this.$message.error("上传失败");
  21055. } else {
  21056. // _this.$message.success('上传成功')
  21057. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  21058. var c = [
  21059. "AVI",
  21060. "NAVI",
  21061. "MPEG",
  21062. "ASF",
  21063. "MOV",
  21064. "WMV",
  21065. "3GP",
  21066. "RM",
  21067. "RMVB",
  21068. "FLV",
  21069. "F4V",
  21070. "H.264",
  21071. "H.265",
  21072. "REAL VIDEO",
  21073. "MKV",
  21074. "WebM",
  21075. "HDDVD",
  21076. "MP4",
  21077. "MPG",
  21078. "M4V",
  21079. "MGV",
  21080. "OGV",
  21081. "QTM",
  21082. "STR",
  21083. "AMC",
  21084. "DVX",
  21085. "EVO",
  21086. "DAT",
  21087. "OGG",
  21088. "OGM"
  21089. ];
  21090. if (type == 1) {
  21091. _this.studyJuri[0].cover.push({
  21092. name: file.name,
  21093. url: data.Location,
  21094. uid: file.uid
  21095. });
  21096. if (
  21097. c.indexOf(
  21098. _this.studyJuri[0].cover[0].url
  21099. .split(".")
  21100. [
  21101. _this.studyJuri[0].cover[0].url.split(".").length - 1
  21102. ].toLocaleUpperCase()
  21103. ) != -1
  21104. ) {
  21105. _this.fileType = 2;
  21106. } else if (
  21107. b.indexOf(
  21108. _this.studyJuri[0].cover[0].url
  21109. .split(".")
  21110. [
  21111. _this.studyJuri[0].cover[0].url.split(".").length - 1
  21112. ].toLocaleUpperCase()
  21113. ) != -1
  21114. ) {
  21115. _this.fileType = 1;
  21116. } else {
  21117. _this.fileType = 0;
  21118. }
  21119. _this.imgChange(null, null, type);
  21120. } else if (type == 2) {
  21121. _this.upToolImg = data.Location;
  21122. _this.imgChange(null, null, type);
  21123. _this.addCourseWorks(i);
  21124. } else if (type == 4) {
  21125. _this.addPz("3", data.Location);
  21126. } else if (type == 5) {
  21127. _this.addImgDrawImG(data.Location);
  21128. } else if (type == 6) {
  21129. var _ftype = 1;
  21130. if (
  21131. c.indexOf(
  21132. data.Location.split(".")[
  21133. data.Location.split(".").length - 1
  21134. ].toLocaleUpperCase()
  21135. ) != -1
  21136. ) {
  21137. _ftype = 5;
  21138. } else if (
  21139. b.indexOf(
  21140. data.Location.split(".")[
  21141. data.Location.split(".").length - 1
  21142. ].toLocaleUpperCase()
  21143. ) != -1
  21144. ) {
  21145. _ftype = 4;
  21146. } else {
  21147. _ftype = 1;
  21148. }
  21149. _this.plworkFile.push({
  21150. name: file.name,
  21151. url: data.Location,
  21152. uid: file.uid,
  21153. fileType: _ftype,
  21154. username:
  21155. _this.plworkFile.length + 1 > 9
  21156. ? _this.plworkFile.length + 1
  21157. : "0" + (_this.plworkFile.length + 1)
  21158. });
  21159. }
  21160. _this.imgChange(null, null, type);
  21161. console.log(data.Location);
  21162. // _this.$message.success('上传成功'+data.Location)
  21163. }
  21164. });
  21165. }
  21166. }
  21167. },
  21168. beforeUpload2(event, type) {
  21169. var file = event.target.files[0];
  21170. var credentials = {
  21171. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  21172. secretAccessKey: "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"
  21173. }; //秘钥形式的登录上传
  21174. window.AWS.config.update(credentials);
  21175. window.AWS.config.region = "cn-northwest-1"; //设置区域
  21176. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  21177. var _this = this;
  21178. _this.progress = 0;
  21179. _this.proVisible = true;
  21180. if (file) {
  21181. var params = {
  21182. Key:
  21183. file.name.split(".")[0] +
  21184. new Date().getTime() +
  21185. "." +
  21186. file.name.split(".")[file.name.split(".").length - 1],
  21187. ContentType: file.type,
  21188. Body: file,
  21189. "Access-Control-Allow-Credentials": "*",
  21190. ACL: "public-read"
  21191. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  21192. var options = {
  21193. partSize: 2048 * 1024 * 1024,
  21194. queueSize: 2,
  21195. leavePartsOnError: true
  21196. };
  21197. bucket
  21198. .upload(params, options)
  21199. .on("httpUploadProgress", function(evt) {
  21200. //这里可以写进度条
  21201. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  21202. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  21203. })
  21204. .send(function(err, data) {
  21205. _this.progress = 100;
  21206. setTimeout(() => {
  21207. _this.proVisible = false;
  21208. }, 1000);
  21209. if (err) {
  21210. var a = _this.$refs.upload1.uploadFiles;
  21211. a.splice(a.length - 1, a.length);
  21212. _this.$message.error("上传失败");
  21213. } else {
  21214. if (type == 2) {
  21215. _this.studyJuri[0].upVedio.push({
  21216. name: file.name,
  21217. url: data.Location,
  21218. uid: file.uid
  21219. });
  21220. _this.imgChange(null, null, type);
  21221. } else if (type == 3) {
  21222. _this.studyJuri[0].upFile.push({
  21223. name: file.name,
  21224. url: data.Location,
  21225. uid: file.uid
  21226. });
  21227. _this.imgChange(null, null, type);
  21228. }
  21229. console.log(data.Location);
  21230. }
  21231. });
  21232. }
  21233. },
  21234. allScrell() {
  21235. window.topU.postMessage({ allScreen: this.screenType }, "*");
  21236. },
  21237. // 0上一步 1下一步
  21238. nextOrpreSteps(t) {
  21239. if (this.IsFollow && this.tType == 2) {
  21240. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21241. return;
  21242. }
  21243. var b = this.chapInfoList.length - 1;
  21244. if (t == 0) {
  21245. if (this.courseType == 0) {
  21246. if (this.taskCount == 0) {
  21247. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  21248. if (this.IsLookOpen) {
  21249. if (
  21250. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  21251. ) {
  21252. if (
  21253. this.courseDetail.userid != this.userid &&
  21254. (!this.courseDetail.course_teacher ||
  21255. (this.courseDetail.course_teacher &&
  21256. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21257. -1))
  21258. ) {
  21259. this.$message.error("任务未解锁");
  21260. } else {
  21261. this.$message.error("上一任务未解锁");
  21262. }
  21263. return;
  21264. }
  21265. }
  21266. this.navList[this.courseType].isOpen = false;
  21267. this.courseType = b;
  21268. this.taskCount =
  21269. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21270. .length - 1;
  21271. this.navList[this.courseType].isOpen = true;
  21272. } else {
  21273. this.taskCount--;
  21274. }
  21275. } else {
  21276. if (this.taskCount == 0) {
  21277. this.navList[this.courseType].isOpen = false;
  21278. this.courseType--;
  21279. this.taskCount =
  21280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  21281. .length - 1;
  21282. this.navList[this.courseType].isOpen = true;
  21283. } else {
  21284. this.taskCount--;
  21285. }
  21286. }
  21287. } else {
  21288. if (this.courseType == b) {
  21289. if (
  21290. this.taskCount ==
  21291. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21292. 1
  21293. ) {
  21294. this.navList[this.courseType].isOpen = false;
  21295. this.courseType = 0;
  21296. this.taskCount = 0;
  21297. this.navList[this.courseType].isOpen = true;
  21298. } else {
  21299. var bbb = parseInt(this.taskCount) + 1;
  21300. if (
  21301. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21302. .isLook &&
  21303. this.courseDetail.userid != this.userid &&
  21304. (!this.courseDetail.course_teacher ||
  21305. (this.courseDetail.course_teacher &&
  21306. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21307. -1)) &&
  21308. this.IsLookOpen
  21309. ) {
  21310. this.$message.error("任务未解锁");
  21311. return;
  21312. }
  21313. this.taskCount++;
  21314. if (this.IsLookOpen) {
  21315. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21316. this.taskCount
  21317. ].isLook = true;
  21318. this.addCourseState(3);
  21319. }
  21320. }
  21321. } else {
  21322. if (
  21323. this.taskCount ==
  21324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  21325. 1
  21326. ) {
  21327. var bbb = parseInt(this.courseType) + 1;
  21328. if (
  21329. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  21330. this.courseDetail.userid != this.userid &&
  21331. (!this.courseDetail.course_teacher ||
  21332. (this.courseDetail.course_teacher &&
  21333. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21334. -1)) &&
  21335. this.IsLookOpen
  21336. ) {
  21337. this.$message.error("任务未解锁");
  21338. return;
  21339. }
  21340. this.navList[this.courseType].isOpen = false;
  21341. this.courseType++;
  21342. this.taskCount = 0;
  21343. this.navList[this.courseType].isOpen = true;
  21344. } else {
  21345. var bbb = parseInt(this.taskCount) + 1;
  21346. if (
  21347. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  21348. .isLook &&
  21349. this.courseDetail.userid != this.userid &&
  21350. (!this.courseDetail.course_teacher ||
  21351. (this.courseDetail.course_teacher &&
  21352. this.courseDetail.course_teacher.indexOf(this.userid) ==
  21353. -1)) &&
  21354. this.IsLookOpen
  21355. ) {
  21356. this.$message.error("任务未解锁");
  21357. return;
  21358. }
  21359. this.taskCount++;
  21360. }
  21361. if (this.IsLookOpen) {
  21362. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21363. this.taskCount
  21364. ].isLook = true;
  21365. this.addCourseState(3);
  21366. }
  21367. }
  21368. // if (
  21369. // this.taskCount ==
  21370. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  21371. // ) {
  21372. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  21373. // } else {
  21374. // this.taskCount++;
  21375. // }
  21376. }
  21377. document.scrollingElement.scrollTop = 0;
  21378. this.showType = 7;
  21379. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21380. // if (this.vedio[this.taskCount].length > 0) {
  21381. // var a =
  21382. // document.getElementsByClassName("box_course")[this.taskCount]
  21383. // .offsetHeight;
  21384. // document.getElementsByClassName("vedioList")[
  21385. // this.taskCount
  21386. // ].style.height = a + "px";
  21387. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  21388. // a - 40 + "px";
  21389. // }
  21390. this.isNoHomeWork = false;
  21391. (this.studyJuri = [
  21392. {
  21393. content: "",
  21394. cover: [],
  21395. upVedio: [],
  21396. upFile: []
  21397. }
  21398. ]),
  21399. (this.radio = []);
  21400. this.isClickNav = "";
  21401. this.selectPz();
  21402. this.getHomeWork();
  21403. this.getCourseDetail(2);
  21404. this.$forceUpdate();
  21405. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  21406. this.setCTask();
  21407. }
  21408. },
  21409. openTask(s, n, i) {
  21410. if (this.IsFollow && this.tType == 2) {
  21411. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21412. return;
  21413. }
  21414. if (this.IsLookOpen &&
  21415. this.courseDetail.userid != this.userid &&
  21416. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  21417. if (
  21418. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  21419. this.courseDetail.userid != this.userid &&
  21420. (!this.courseDetail.course_teacher ||
  21421. (this.courseDetail.course_teacher &&
  21422. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  21423. ) {
  21424. this.$message.error("任务未解锁");
  21425. return;
  21426. }
  21427. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  21428. if (
  21429. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  21430. .isLook
  21431. ) {
  21432. this.$message.error("上一任务未解锁");
  21433. return;
  21434. }
  21435. } else if (s > this.courseType) {
  21436. if (n > 0) {
  21437. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  21438. this.$message.error("上一任务未解锁");
  21439. return;
  21440. }
  21441. } else {
  21442. if (
  21443. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  21444. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  21445. ].isLook
  21446. ) {
  21447. this.$message.error("上一任务未解锁");
  21448. return;
  21449. }
  21450. }
  21451. }
  21452. }
  21453. if (this.navList[s].task[n].isOpen == true) {
  21454. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  21455. return;
  21456. }
  21457. let flag = this.courseType == s;
  21458. this.courseType = s;
  21459. this.navId = i;
  21460. this.taskCount = n;
  21461. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  21462. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  21463. this.courseType
  21464. ].task[this.taskCount].isOpen;
  21465. if (this.IsLookOpen) {
  21466. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21467. this.taskCount
  21468. ].isLook = true;
  21469. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  21470. this.addCourseState(3,yym);
  21471. }
  21472. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  21473. this.isCloseList[ci].isClose = 0;
  21474. this.isCloseList[ci].isCloseBoolean = false;
  21475. this.$nextTick(() => {
  21476. setTimeout(() => {
  21477. setTimeout(() => {
  21478. this.panToolHeight("tool-" + ci);
  21479. }, 0);
  21480. }, 0);
  21481. });
  21482. }
  21483. this.showType = 7;
  21484. this.isNoHomeWork = false;
  21485. (this.studyJuri = [
  21486. {
  21487. content: "",
  21488. cover: [],
  21489. upVedio: [],
  21490. upFile: []
  21491. }
  21492. ]),
  21493. (this.radio = []);
  21494. document.scrollingElement.scrollTop = 0;
  21495. // setTimeout(() => {
  21496. // let a = document.getElementById(i);
  21497. // if (a.offsetTop - 110 == 0) {
  21498. // window.scrollTo(0, 0);
  21499. // } else {
  21500. // window.scrollTo(0, a.offsetTop);
  21501. // }
  21502. // }, 0);
  21503. for (var z = 0; z < this.navList.length; z++) {
  21504. for (var q = 0; q < this.navList[z].task.length; q++) {
  21505. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  21506. this.navList[z].task[q].tool[w].isTool = false;
  21507. }
  21508. }
  21509. }
  21510. this.selectPz();
  21511. this.getHomeWork();
  21512. this.getCourseDetail(2);
  21513. if (flag) {
  21514. this.insertMemorandum(
  21515. `进入<span class="variable">任务${n + 1}${
  21516. this.navList[s].task[n].taskName
  21517. ? ":" + this.navList[s].task[n].taskName
  21518. : ""
  21519. }</span>`
  21520. );
  21521. } else {
  21522. this.insertMemorandum(
  21523. `进入<span class="variable">阶段${s + 1}${
  21524. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  21525. }</span>→<span class="variable">任务${n + 1}${
  21526. this.navList[s].task[n].taskName
  21527. ? ":" + this.navList[s].task[n].taskName
  21528. : ""
  21529. }</span>`
  21530. );
  21531. }
  21532. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  21533. this.setCTask();
  21534. }
  21535. },
  21536. get(i) {
  21537. if (this.IsFollow && this.tType == 2) {
  21538. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21539. return;
  21540. }
  21541. // for(var k=0;k<this.navList.length;k++){
  21542. // this.navList[k].isOpen = false;
  21543. // }
  21544. // this.navList[i].isOpen = true;
  21545. this.navList[i].isOpen = !this.navList[i].isOpen;
  21546. if (this.navList[i].isOpen) {
  21547. this.openTask(i, 0, i + "-0");
  21548. }
  21549. },
  21550. addQuestion() {
  21551. this.answerList.push({
  21552. answerTitle: this.answerQ,
  21553. answer: this.questionAnswer
  21554. });
  21555. let params = [
  21556. {
  21557. uid: this.userid,
  21558. cid: this.id,
  21559. stage: this.courseType,
  21560. task: this.taskCount,
  21561. tool: this.toolindex,
  21562. content: JSON.stringify(this.answerList),
  21563. type: 3
  21564. }
  21565. ];
  21566. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  21567. this.homeWorkLoading = true
  21568. this.ajax
  21569. .post(this.$store.state.api + "addCourseWorks", params)
  21570. .then(res => {
  21571. this.$message({
  21572. message: "提交成功",
  21573. type: "success"
  21574. });
  21575. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21576. setTimeout(() => {
  21577. this.homeWorkLoading = false
  21578. }, 500);
  21579. this.answerList = [];
  21580. this.answerDialogVisible = false;
  21581. this.selectStudent();
  21582. this.selectSWorks();
  21583. this.selectSLook();
  21584. })
  21585. .catch(err => {
  21586. this.$message.error("提交失败");
  21587. setTimeout(() => {
  21588. this.homeWorkLoading = false
  21589. }, 500);
  21590. console.error(err);
  21591. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21592. });
  21593. },
  21594. addQuestionTeacher() {
  21595. this.answerList.push({
  21596. answerTitle: this.answerQ,
  21597. answer: this.questionAnswer
  21598. });
  21599. let params = [
  21600. {
  21601. uid: this.sStudent.userid,
  21602. cid: this.id,
  21603. stage: this.courseType,
  21604. task: this.taskCount,
  21605. tool: this.toolindex,
  21606. content: JSON.stringify(this.answerList),
  21607. type: 3,
  21608. ateacher: this.userid
  21609. }
  21610. ];
  21611. this.ajax
  21612. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21613. .then(res => {
  21614. this.$message({
  21615. message: "提交成功",
  21616. type: "success"
  21617. });
  21618. this.answerList = [];
  21619. this.questionAnswer = "";
  21620. this.answerDialogVisibleTeacher = false;
  21621. this.selectStudent();
  21622. this.selectSWorks();
  21623. this.selectSLook();
  21624. })
  21625. .catch(err => {
  21626. this.$message.error("提交失败");
  21627. console.error(err);
  21628. });
  21629. },
  21630. refreshCourse() {
  21631. // window.location.reload();
  21632. this.navList = [];
  21633. this.getCourseDetail(1);
  21634. },
  21635. getCourseDetail(type, gindex) {
  21636. let loading;
  21637. if (type != 2) {
  21638. loading = this.$loading.service({
  21639. background: "rgba(255, 255, 255, 0.7)",
  21640. target: document.querySelector(".student_table")
  21641. });
  21642. }
  21643. this.downLoading = false;
  21644. // this.navList[0].isOpen = false;
  21645. // this.navList[this.courseType].isOpen = true;
  21646. // this.courseType = this.courseTypeLine;
  21647. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21648. let params = {
  21649. courseId: this.id
  21650. };
  21651. this.ajax
  21652. .get(this.$store.state.api + "selectCourseDetail3", params)
  21653. .then(res => {
  21654. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21655. if (type != 2) {
  21656. loading.close();
  21657. if (
  21658. this.courseType >
  21659. JSON.parse(res.data[0][0].chapters).length - 1
  21660. ) {
  21661. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21662. }
  21663. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21664. .chapterInfo[0].taskJson;
  21665. var b = [
  21666. "AVI",
  21667. "NAVI",
  21668. "MPEG",
  21669. "ASF",
  21670. "MOV",
  21671. "WMV",
  21672. "3GP",
  21673. "RM",
  21674. "RMVB",
  21675. "FLV",
  21676. "F4V",
  21677. "H.264",
  21678. "H.265",
  21679. "REAL VIDEO",
  21680. "MKV",
  21681. "WebM",
  21682. "HDDVD",
  21683. "MP4",
  21684. "MPG",
  21685. "M4V",
  21686. "MGV",
  21687. "OGV",
  21688. "QTM",
  21689. "STR",
  21690. "AMC",
  21691. "DVX",
  21692. "EVO",
  21693. "DAT",
  21694. "OGG",
  21695. "OGM",
  21696. "MP3"
  21697. ];
  21698. let _chapterData = [];
  21699. for (var i = 0; i < a.length; i++) {
  21700. var c = a[i].chapterData;
  21701. this.vedio[i] = [];
  21702. this.textList[i] = [];
  21703. this.lineList[i] = [];
  21704. this.chapToolList[i] = [];
  21705. this.file[i] = [];
  21706. this.fileC[i] = [];
  21707. _chapterData[i] = c.filter(el => {
  21708. return el.type != 12;
  21709. });
  21710. this.fileC[i] = c.filter(el => {
  21711. return el.type == 12;
  21712. });
  21713. if (this.tType == 2) {
  21714. if (this.fileC[i].length) {
  21715. let yym1 = this.fileC[i].filter(e=>{
  21716. if(!converter(e.name).includes(converter("教案"))){
  21717. return e
  21718. }
  21719. })
  21720. this.fileC[i] = yym1
  21721. }
  21722. }
  21723. // else if (c[j].type == 12) {
  21724. // this.fileC[i].push(c[j]);
  21725. // }
  21726. for (var j = 0; j < c.length; j++) {
  21727. if (c[j].type == 7) {
  21728. this.chapToolList[i].push(c[j]);
  21729. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21730. this.lineList[i].push(c[j]);
  21731. } else if (c[j].type == 6) {
  21732. this.textList[i].push(c[j]);
  21733. } else {
  21734. if (
  21735. b.indexOf(
  21736. c[j].url
  21737. .split(".")
  21738. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21739. ) != -1
  21740. ) {
  21741. this.vedio[i].push(c[j]);
  21742. } else {
  21743. this.file[i].push(c[j]);
  21744. }
  21745. }
  21746. }
  21747. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21748. d.sources[0].src =
  21749. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21750. this.playerO[i] = d;
  21751. }
  21752. this.courseDetail = res.data[0][0];
  21753. if(this.tType == 2){
  21754. this.tcid = this.arrayToArray(
  21755. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21756. this.classId ? this.classId.split(",") : []
  21757. ).join(",");
  21758. }else{
  21759. this.tcid = this.arrayToArray(
  21760. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21761. this.tcid2 ? this.tcid2.split(",") : []
  21762. ).join(",");
  21763. }
  21764. this.evalua = res.data[0][0].evaId;
  21765. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21766. this.courseType
  21767. ];
  21768. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21769. if (this.tcid && res.data[1].length) {
  21770. let _inviteA = [];
  21771. for (var ik = 0; ik < res.data[1].length; ik++) {
  21772. _inviteA.push({
  21773. cid: res.data[1][ik].classid,
  21774. ic: res.data[1][ik].code
  21775. });
  21776. }
  21777. for (var ik = 0; ik < _inviteA.length; ik++) {
  21778. if (
  21779. this.arrayToArray(
  21780. _inviteA[ik].cid.split(","),
  21781. this.tcid.split(",")
  21782. ).length
  21783. ) {
  21784. this.inviteCode = _inviteA[ik].ic;
  21785. break;
  21786. }
  21787. }
  21788. }
  21789. for (var l = 0; l < this.chapInfoList.length; l++) {
  21790. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21791. for (var m = 0; m < w.length; m++) {
  21792. w[m].id = l + "-" + m;
  21793. }
  21794. }
  21795. if (
  21796. _chapterData[this.taskCount].length &&
  21797. _chapterData[this.taskCount][0].type == 2
  21798. ) {
  21799. this.showType = 0;
  21800. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21801. } else {
  21802. if (_chapterData[this.taskCount].length > 0) {
  21803. let _url = _chapterData[this.taskCount][0].url;
  21804. if (
  21805. _chapterData[this.taskCount][0].type == 8 ||
  21806. _chapterData[this.taskCount][0].type == 14 ||
  21807. _chapterData[this.taskCount][0].type == 15
  21808. ) {
  21809. this.showType = 2;
  21810. if (
  21811. _url.indexOf("https://") == -1 &&
  21812. _url.indexOf("http://") == -1
  21813. ) {
  21814. _url = "https://" + _url;
  21815. }
  21816. this.pptImgUrl1 = _url;
  21817. } else if (_chapterData[this.taskCount][0].type == 3) {
  21818. if (
  21819. _url
  21820. .split(".")
  21821. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21822. ) {
  21823. this.showType = 3;
  21824. this.pptImgUrl1 = _url;
  21825. } else if (
  21826. this.isAssetTypeAnImage(
  21827. _url
  21828. .split(".")
  21829. [_url.split(".").length - 1].toLocaleLowerCase()
  21830. )
  21831. ) {
  21832. this.showType = 4;
  21833. this.pptImgUrl1 = _url;
  21834. } else {
  21835. this.showType = 2;
  21836. this.pptImgUrl1 =
  21837. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21838. encodeURIComponent(_url);
  21839. }
  21840. } else if (_chapterData[this.taskCount][0].type == 13) {
  21841. this.showType = 4;
  21842. this.pptImgUrl1 = _url;
  21843. } else if (_chapterData[this.taskCount][0].type == 6) {
  21844. this.showType = 1;
  21845. this.text = this.textList[this.taskCount][0];
  21846. } else if (_chapterData[this.taskCount][0].type == 16) {
  21847. this.showType = 16;
  21848. this.pptImgUrl1 = _url;
  21849. }
  21850. }
  21851. }
  21852. this.isClickNav = 0;
  21853. if (
  21854. !_chapterData[this.taskCount].length ||
  21855. _chapterData[this.taskCount][0].type == 12
  21856. ) {
  21857. this.isClickNav = "";
  21858. this.showType = "";
  21859. }
  21860. if (this.tType == 2) {
  21861. _chapterData.forEach((e,i)=>{
  21862. if (e.length) {
  21863. let yym = e.filter(k=>{
  21864. if(!converter(k.name).includes(converter("教案"))){
  21865. return k
  21866. }
  21867. })
  21868. _chapterData[i] = yym
  21869. }
  21870. })
  21871. }
  21872. this.vChapterData = _chapterData;
  21873. } else {
  21874. this.showType = 0;
  21875. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21876. .chapterInfo[0].taskJson;
  21877. var b = [
  21878. "AVI",
  21879. "NAVI",
  21880. "MPEG",
  21881. "ASF",
  21882. "MOV",
  21883. "WMV",
  21884. "3GP",
  21885. "RM",
  21886. "RMVB",
  21887. "FLV",
  21888. "F4V",
  21889. "H.264",
  21890. "H.265",
  21891. "REAL VIDEO",
  21892. "MKV",
  21893. "WebM",
  21894. "HDDVD",
  21895. "MP4",
  21896. "MPG",
  21897. "M4V",
  21898. "MGV",
  21899. "OGV",
  21900. "QTM",
  21901. "STR",
  21902. "AMC",
  21903. "DVX",
  21904. "EVO",
  21905. "DAT",
  21906. "OGG",
  21907. "OGM",
  21908. "MP3"
  21909. ];
  21910. let _chapterData = [];
  21911. for (var i = 0; i < a.length; i++) {
  21912. var c = a[i].chapterData;
  21913. this.vedio[i] = [];
  21914. this.textList[i] = [];
  21915. this.lineList[i] = [];
  21916. this.chapToolList[i] = [];
  21917. this.file[i] = [];
  21918. this.fileC[i] = [];
  21919. _chapterData[i] = c.filter(el => {
  21920. return el.type != 12;
  21921. });
  21922. this.fileC[i] = c.filter(el => {
  21923. return el.type == 12;
  21924. });
  21925. if (this.tType == 2) {
  21926. if (this.fileC[i].length) {
  21927. let yym1 = this.fileC[i].filter(e=>{
  21928. if(!converter(e.name).includes(converter("教案"))){
  21929. return e
  21930. }
  21931. })
  21932. this.fileC[i] = yym1
  21933. }
  21934. }
  21935. for (var j = 0; j < c.length; j++) {
  21936. if (c[j].type == 7) {
  21937. this.chapToolList[i].push(c[j]);
  21938. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21939. this.lineList[i].push(c[j]);
  21940. } else if (c[j].type == 6) {
  21941. this.textList[i].push(c[j]);
  21942. } else {
  21943. if (
  21944. b.indexOf(
  21945. c[j].url
  21946. .split(".")
  21947. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21948. ) != -1
  21949. ) {
  21950. this.vedio[i].push(c[j]);
  21951. } else {
  21952. this.file[i].push(c[j]);
  21953. }
  21954. }
  21955. }
  21956. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21957. d.sources[0].src =
  21958. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21959. this.playerO[i] = d;
  21960. }
  21961. if (
  21962. _chapterData[this.taskCount].length &&
  21963. _chapterData[this.taskCount][0].type == 2
  21964. ) {
  21965. this.showType = 0;
  21966. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21967. } else {
  21968. if (_chapterData[this.taskCount].length > 0) {
  21969. let _url = _chapterData[this.taskCount][0].url;
  21970. if (
  21971. _chapterData[this.taskCount][0].type == 8 ||
  21972. _chapterData[this.taskCount][0].type == 14 ||
  21973. _chapterData[this.taskCount][0].type == 15
  21974. ) {
  21975. this.showType = 2;
  21976. if (
  21977. _url.indexOf("https://") == -1 &&
  21978. _url.indexOf("http://") == -1
  21979. ) {
  21980. _url = "https://" + _url;
  21981. }
  21982. this.pptImgUrl1 = _url;
  21983. } else if (_chapterData[this.taskCount][0].type == 3) {
  21984. if (
  21985. _url
  21986. .split(".")
  21987. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21988. ) {
  21989. this.showType = 3;
  21990. this.pptImgUrl1 = _url;
  21991. } else if (
  21992. this.isAssetTypeAnImage(
  21993. _url
  21994. .split(".")
  21995. [_url.split(".").length - 1].toLocaleLowerCase()
  21996. )
  21997. ) {
  21998. this.showType = 4;
  21999. this.pptImgUrl1 = _url;
  22000. } else {
  22001. this.showType = 2;
  22002. this.pptImgUrl1 =
  22003. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22004. encodeURIComponent(_url);
  22005. }
  22006. } else if (_chapterData[this.taskCount][0].type == 13) {
  22007. this.showType = 4;
  22008. this.pptImgUrl1 = _url;
  22009. } else if (_chapterData[this.taskCount][0].type == 6) {
  22010. this.showType = 1;
  22011. this.text = this.textList[this.taskCount][0];
  22012. } else if (_chapterData[this.taskCount][0].type == 16) {
  22013. this.showType = 16;
  22014. this.pptImgUrl1 = _url;
  22015. }
  22016. }
  22017. }
  22018. this.isClickNav = 0;
  22019. if (
  22020. !_chapterData[this.taskCount].length ||
  22021. _chapterData[this.taskCount][0].type == 12
  22022. ) {
  22023. this.isClickNav = "";
  22024. this.showType = "";
  22025. }
  22026. if (this.tType == 2) {
  22027. _chapterData.forEach((e,i)=>{
  22028. if (e.length) {
  22029. let yym = e.filter(k=>{
  22030. if(!converter(k.name).includes(converter("教案"))){
  22031. return k
  22032. }
  22033. })
  22034. _chapterData[i] = yym
  22035. }
  22036. })
  22037. }
  22038. this.vChapterData = _chapterData;
  22039. this.$forceUpdate();
  22040. }
  22041. // console.log('this.chapInfoList22222',JS);
  22042. if (res.data[0][0].setting) {
  22043. try {
  22044. this.languageSetting =
  22045. JSON.parse(res.data[0][0].setting).languageSetting ||
  22046. JSON.parse(res.data[0][0].setting).languageSetting == 0
  22047. ? JSON.parse(res.data[0][0].setting).languageSetting
  22048. : 0;
  22049. } catch (error) {
  22050. console.error(error);
  22051. }
  22052. }
  22053. // finalMarkList用来判断哪个工具为评分工具
  22054. if (this.courseDetail.state == 5) {
  22055. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  22056. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  22057. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  22058. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  22059. // // 没有的话在选其他工具为评分工具
  22060. // if(adc.length > 0){
  22061. // for (let k = chap.length - 1; k >= 0; k--) {
  22062. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  22063. // this.finalMarkList = k;
  22064. // break;
  22065. // }
  22066. // }
  22067. // }else{
  22068. // for (let k = chap.length - 1; k >= 0; k--) {
  22069. // 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) {
  22070. // this.finalMarkList = k;
  22071. // break;
  22072. // }
  22073. // }
  22074. // }
  22075. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  22076. // 不然会无限循环报错,会很难受
  22077. let aiSNum = 0;
  22078. if (
  22079. chapInfoListCopy[this.taskCount].eList &&
  22080. chapInfoListCopy[this.taskCount].eList.length
  22081. ) {
  22082. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  22083. if (e.isai == 2) {
  22084. aiSNum++;
  22085. }
  22086. });
  22087. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  22088. this.isaiNum = aiSNum;
  22089. } else {
  22090. this.isaiNum = 0;
  22091. }
  22092. // for (
  22093. // let k = 0;
  22094. // k < chapInfoListCopy[this.taskCount].eList.length;
  22095. // k++
  22096. // ) {
  22097. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  22098. // this.againEva(this.taskCount, k);
  22099. // }
  22100. // }
  22101. }
  22102. }
  22103. // else {
  22104. // this.courseDetail = res.data[0][0];
  22105. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  22106. // }
  22107. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  22108. if (type == 10) {
  22109. console.log('this.courseDetail.userid',this.courseDetail.userid);
  22110. console.log('this.userid',this.userid);
  22111. if (this.courseDetail.userid == this.userid) {
  22112. // 开局关闭学生查看内容
  22113. this.StulookMode(false)
  22114. // 开局打开跟随模式
  22115. this.followingMode(true)
  22116. }
  22117. }
  22118. let _this = this;
  22119. if (_this.timer) {
  22120. clearInterval(_this.timer);
  22121. _this.timer = null;
  22122. }
  22123. if (_this.tcid) {
  22124. _this.getCourseGroup(gindex);
  22125. } else {
  22126. _this.selectSWorks(gindex);
  22127. }
  22128. _this.selectStudent();
  22129. _this.selectSLook();
  22130. _this.getPick();
  22131. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  22132. // _this.setCTask();
  22133. // }
  22134. if (_this.dialogVisibleGroup) {
  22135. _this.groupJson =
  22136. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  22137. _this.taskCount
  22138. ].toolChoose[_this.toolindex].groupJson;
  22139. }
  22140. _this.$nextTick(() => {
  22141. setTimeout(() => {
  22142. _this.checkEva();
  22143. }, 1000);
  22144. });
  22145. _this.timer = setInterval(function() {
  22146. // _this.getCourseDetail(2);
  22147. if (_this.tcid) {
  22148. _this.getCourseGroup();
  22149. } else {
  22150. _this.selectSWorks();
  22151. }
  22152. _this.selectStudent();
  22153. _this.selectSLook();
  22154. _this.getPick();
  22155. // _this.getSplitScreenData();
  22156. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  22157. // _this.setCTask();
  22158. // }
  22159. if (_this.dialogVisibleGroup) {
  22160. _this.groupJson =
  22161. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  22162. _this.taskCount
  22163. ].toolChoose[_this.toolindex].groupJson;
  22164. }
  22165. if (_this.tType == 4 || _this.ispzType == 4) {
  22166. _this.selectPz();
  22167. }
  22168. }, 5000);
  22169. if (_this.timer2 == null) {
  22170. _this.timer2 = setInterval(()=> {
  22171. _this.getSplitScreenData();//获取分屏数据
  22172. }, 5000);
  22173. }
  22174. _this.$nextTick(function() {
  22175. setTimeout(() => {
  22176. // var a =
  22177. // document.getElementsByClassName("box_course")[0].offsetHeight;
  22178. // document.getElementsByClassName("vedioList")[0].style.height =
  22179. // a + "px";
  22180. // document.getElementsByClassName("navBox")[0].style.height =
  22181. // a - 40 + "px";
  22182. // if (_this.vedio[_this.taskCount].length > 0) {
  22183. // _this.vedioTime = [];
  22184. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  22185. // _this.vedioTime[i] = document.getElementsByClassName(
  22186. // "vjs-duration-display"
  22187. // )[i].textContent;
  22188. // }
  22189. // }
  22190. }, 1000);
  22191. });
  22192. })
  22193. .catch(err => {
  22194. loading.close();
  22195. console.error(err);
  22196. });
  22197. },
  22198. getCourseGroup(gindex) {
  22199. let params = {
  22200. cid: this.id,
  22201. classid: this.tcid ? this.tcid : "1"
  22202. };
  22203. this.ajax
  22204. .get(this.$store.state.api + "getCourseGroup", params)
  22205. .then(res => {
  22206. if (res.data && res.data[0].length) {
  22207. if (!this.isGroup) {
  22208. let courseGroup = JSON.parse(res.data[0][0].group);
  22209. courseGroup.group = courseGroup.group.filter(el => {
  22210. el.works = [];
  22211. return el;
  22212. });
  22213. if (courseGroup.isopen == 2) {
  22214. this.isGroup = false;
  22215. this.selectSWorks(gindex);
  22216. return;
  22217. }
  22218. this.courseGroup = courseGroup;
  22219. let groupPerson = res.data[1];
  22220. let group = JSON.parse(res.data[0][0].group).group;
  22221. let courseGroupStudent = {};
  22222. let courseGroupStudentUid = {};
  22223. for (var i = 0; i < group.length; i++) {
  22224. courseGroupStudent[group[i].id] = [];
  22225. courseGroupStudentUid[group[i].id] = [];
  22226. for (var j = 0; j < groupPerson.length; j++) {
  22227. if (groupPerson[j].groupCid == group[i].id) {
  22228. courseGroupStudent[group[i].id].push(groupPerson[j]);
  22229. courseGroupStudentUid[group[i].id].push(
  22230. groupPerson[j].userid
  22231. );
  22232. }
  22233. }
  22234. }
  22235. this.courseGroupStudent = courseGroupStudent;
  22236. this.courseGroupStudentUid = courseGroupStudentUid;
  22237. }
  22238. if (this.courseGroup.isopen == 2) {
  22239. this.isGroup = false;
  22240. } else {
  22241. this.isGroup = true;
  22242. }
  22243. this.selectSWorks(gindex);
  22244. } else {
  22245. this.selectSWorks(gindex);
  22246. this.isGroup = false;
  22247. }
  22248. })
  22249. .catch(err => {
  22250. // this.$message.error("网络不佳");
  22251. console.error(err);
  22252. });
  22253. },
  22254. setOperationTime() {
  22255. let _this = this;
  22256. if (_this.opertimer) {
  22257. clearInterval(_this.opertimer);
  22258. _this.opertimer = null;
  22259. }
  22260. _this.opertimer = setInterval(() => {
  22261. _this.setoTime("600");
  22262. }, 600000);
  22263. },
  22264. setoTime(time) {
  22265. let params = [
  22266. {
  22267. uid: this.userid,
  22268. cid: this.id,
  22269. type: "2",
  22270. time: time
  22271. }
  22272. ];
  22273. this.ajax
  22274. .post(this.$store.state.api + "addOperationTimeT2", params)
  22275. .then(res => {})
  22276. .catch(err => {
  22277. console.error(err);
  22278. });
  22279. },
  22280. addPz(type, content) {
  22281. if (type == "1" && this.pzConText == "") {
  22282. this.$message.error("评论不能为空!");
  22283. return;
  22284. }
  22285. let params = [
  22286. {
  22287. cid: this.id,
  22288. uid: this.userid,
  22289. s: this.courseType,
  22290. t: this.taskCount,
  22291. c: type == "1" ? this.pzConText : content,
  22292. type: type
  22293. }
  22294. ];
  22295. this.ajax
  22296. .post(this.$store.state.api + "addPz2", params)
  22297. .then(res => {
  22298. this.$message({
  22299. message: "添加成功",
  22300. type: "success"
  22301. });
  22302. this.pzConText = "";
  22303. this.addPzDialog = false;
  22304. this.selectPz();
  22305. if(this.tType!=2){
  22306. this.insertMemorandum(
  22307. `使用<span class="btn">评论</span>功能,添加评论`
  22308. );
  22309. }
  22310. })
  22311. .catch(err => {
  22312. this.$message.error("添加失败");
  22313. console.error(err);
  22314. });
  22315. },
  22316. setReplyIndex(id, i) {
  22317. this.replyIndex = i;
  22318. this.replyPid = id;
  22319. this.replyDialogVisible = true;
  22320. },
  22321. addHf() {
  22322. if (this.reply == "") {
  22323. this.$message.error("回复不能为空!");
  22324. return;
  22325. }
  22326. let params = [
  22327. {
  22328. cid: this.id,
  22329. uid: this.userid,
  22330. s: this.courseType,
  22331. t: this.taskCount,
  22332. type: "1",
  22333. ct: 2,
  22334. pid: this.replyPid,
  22335. c: this.reply
  22336. }
  22337. ];
  22338. this.ajax
  22339. .post(this.$store.state.api + "addHf", params)
  22340. .then(res => {
  22341. this.reply = "";
  22342. this.$message({
  22343. message: "回复成功",
  22344. type: "success"
  22345. });
  22346. this.replyDialogVisible = false;
  22347. this.selectPz();
  22348. })
  22349. .catch(err => {
  22350. this.$message.error("回复失败");
  22351. console.error(err);
  22352. });
  22353. },
  22354. deletePz(id) {
  22355. this.$confirm("确定删除此评论吗?", "提示", {
  22356. confirmButtonText: "确定",
  22357. cancelButtonText: "取消",
  22358. type: "warning"
  22359. })
  22360. .then(() => {
  22361. let params = [
  22362. {
  22363. id: id
  22364. }
  22365. ];
  22366. this.ajax
  22367. .post(this.$store.state.api + "deletePz", params)
  22368. .then(res => {
  22369. this.$message({
  22370. message: "删除成功",
  22371. type: "success"
  22372. });
  22373. this.selectPz();
  22374. })
  22375. .catch(err => {
  22376. this.$message.error("网络异常");
  22377. console.error(err);
  22378. });
  22379. })
  22380. .catch(() => {});
  22381. },
  22382. deleteReply(id) {
  22383. this.$confirm("确定删除此回复吗?", "提示", {
  22384. confirmButtonText: "确定",
  22385. cancelButtonText: "取消",
  22386. type: "warning"
  22387. })
  22388. .then(() => {
  22389. let params = [
  22390. {
  22391. id: id
  22392. }
  22393. ];
  22394. this.ajax
  22395. .post(this.$store.state.api + "deleteReply", params)
  22396. .then(res => {
  22397. this.$message({
  22398. message: "删除成功",
  22399. type: "success"
  22400. });
  22401. this.selectPz();
  22402. })
  22403. .catch(err => {
  22404. this.$message.error("网络异常");
  22405. console.error(err);
  22406. });
  22407. })
  22408. .catch(() => {});
  22409. },
  22410. setPz() {
  22411. if (this.ispzType == 4) {
  22412. this.ispzType = 0;
  22413. this.pzDialog = false;
  22414. return;
  22415. }
  22416. this.ispzType = 4;
  22417. this.pzDialog = true;
  22418. this.selectPz();
  22419. },
  22420. selectPz() {
  22421. let params = {
  22422. cid: this.id,
  22423. s: this.courseType,
  22424. t: this.taskCount,
  22425. type: this.pzStype,
  22426. uid: this.userid
  22427. };
  22428. this.ajax
  22429. .get(this.$store.state.api + "selectPzListType", params)
  22430. .then(res => {
  22431. this.pzList = res.data[0];
  22432. var a = res.data[1];
  22433. for (var i = 0; i < a.length; i++) {
  22434. for (var j = 0; j < this.pzList.length; j++) {
  22435. if (!this.pzList[j].hfList) {
  22436. this.pzList[j].hfList = [];
  22437. }
  22438. if (a[i].pid == this.pzList[j].id) {
  22439. this.pzList[j].hfList.push(a[i]);
  22440. }
  22441. }
  22442. }
  22443. })
  22444. .catch(err => {
  22445. console.error(err);
  22446. });
  22447. },
  22448. // selectHf() {
  22449. // let params = {
  22450. // cid: this.id,
  22451. // s: this.courseType,
  22452. // t: this.taskCount,
  22453. // };
  22454. // this.ajax
  22455. // .get(this.$store.state.api + "selectHfList", params)
  22456. // .then((res) => {
  22457. // var a = res.data[0];
  22458. // for (var i = 0; i < a.length; i++) {
  22459. // for (var j = 0; j < this.pzList.length; j++) {
  22460. // if (!this.pzList[i].hfList) {
  22461. // this.pzList[i].hfList = [];
  22462. // }
  22463. // if (a[i].pid == this.pzList[j].id) {
  22464. // this.pzList[i].hfList.push(a[i]);
  22465. // }
  22466. // }
  22467. // }
  22468. // })
  22469. // .catch((err) => {
  22470. // console.error(err);
  22471. // });
  22472. // },
  22473. updateSLook() {
  22474. let params = {
  22475. sopen: this.sIsOpen == false ? 1 : 2,
  22476. cid: this.id
  22477. };
  22478. this.ajax
  22479. .get(this.$store.state.api + "updateCourseSLook", params)
  22480. .then(res => {
  22481. if (this.sIsOpen == true) {
  22482. this.$message({
  22483. message: "权限设置成功",
  22484. type: "success"
  22485. });
  22486. } else {
  22487. this.$message({
  22488. message: "权限关闭成功",
  22489. type: "success"
  22490. });
  22491. }
  22492. })
  22493. .catch(err => {
  22494. console.error(err);
  22495. });
  22496. },
  22497. updateIsStulook(){
  22498. let params = [
  22499. {
  22500. sopen: this.IsStulook == false ? 2 : 1,
  22501. cid: this.id
  22502. }
  22503. ];
  22504. this.ajax
  22505. .post(this.$store.state.api + "updateCourseStulook", params)
  22506. .then(res => {
  22507. if (this.IsStulook == true) {
  22508. this.$message({
  22509. message: "学生查看内容资料权限已开启",
  22510. type: "success"
  22511. });
  22512. } else {
  22513. this.$message({
  22514. message: "关闭学生查看内容资料权限",
  22515. type: "success"
  22516. });
  22517. }
  22518. // this.setCTask();
  22519. })
  22520. .catch(err => {
  22521. console.error(err);
  22522. });
  22523. },
  22524. updateFollow() {
  22525. let params = [
  22526. {
  22527. sopen: this.IsFollow == false ? 1 : 2,
  22528. cid: this.id
  22529. }
  22530. ];
  22531. this.ajax
  22532. .post(this.$store.state.api + "updateCourseFollow", params)
  22533. .then(res => {
  22534. if (this.IsFollow == true) {
  22535. this.$message({
  22536. message: "跟随模式已开启",
  22537. type: "success"
  22538. });
  22539. } else {
  22540. this.$message({
  22541. message: "跟随模式已关闭",
  22542. type: "success"
  22543. });
  22544. }
  22545. this.setCTask();
  22546. })
  22547. .catch(err => {
  22548. console.error(err);
  22549. });
  22550. },
  22551. setCTask() {
  22552. let params = [
  22553. {
  22554. sopen: this.courseType + "-" + this.taskCount,
  22555. cid: this.id
  22556. }
  22557. ];
  22558. this.ajax
  22559. .post(this.$store.state.api + "updateCourseFollowC", params)
  22560. .then(res => {})
  22561. .catch(err => {
  22562. console.error(err);
  22563. });
  22564. },
  22565. updateLookOpen() {
  22566. let params = [
  22567. {
  22568. sopen: this.IsLookOpen == false ? 1 : 2,
  22569. cid: this.id
  22570. }
  22571. ];
  22572. this.ajax
  22573. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22574. .then(res => {
  22575. if (this.IsLookOpen == true) {
  22576. // if (this.courseType != 0 && this.taskCount != 0) {
  22577. // this.openTask(0, 0, "0-0");
  22578. // }
  22579. this.$message({
  22580. message: "权限设置成功",
  22581. type: "success"
  22582. });
  22583. } else {
  22584. this.$message({
  22585. message: "权限关闭成功",
  22586. type: "success"
  22587. });
  22588. }
  22589. this.getCourseState(2);
  22590. })
  22591. .catch(err => {
  22592. console.error(err);
  22593. });
  22594. },
  22595. selectSLook() {
  22596. let params = {
  22597. cid: this.id
  22598. };
  22599. this.ajax
  22600. .get(this.$store.state.api + "selectCourseSLook", params)
  22601. .then(res => {
  22602. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22603. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22604. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22605. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  22606. if (!this.IsLookOpen) {
  22607. this.setNavList();
  22608. }else {
  22609. this.getCourseState(1);
  22610. }
  22611. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  22612. if ((this.IsFollow && this.tType == 2)) {
  22613. this.setContent2(false);
  22614. let _followC = res.data[0][0].followC.split("-");
  22615. if (
  22616. this.courseType != _followC[0] ||
  22617. this.taskCount != _followC[1]
  22618. ) {
  22619. this.navList[this.courseType].isOpen = false;
  22620. this.courseType = _followC[0];
  22621. this.navList[this.courseType].isOpen = true;
  22622. this.taskCount = parseInt(_followC[1]);
  22623. this.navId = res.data[0][0].followC;
  22624. document.scrollingElement.scrollTop = 0;
  22625. this.getCourseDetail(2);
  22626. }
  22627. }
  22628. })
  22629. .catch(err => {
  22630. console.error(err);
  22631. });
  22632. },
  22633. setNavList() {
  22634. if (this.navList.length == 0) {
  22635. this.navList = [];
  22636. var copyList = [];
  22637. for (var l = 0; l < this.chapInfoList.length; l++) {
  22638. var q = this.chapInfoList[l].dyName;
  22639. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22640. var e;
  22641. copyList.push({
  22642. dyName: q,
  22643. isOpen: l === 0 ? true : false,
  22644. task: []
  22645. });
  22646. for (var r = 0; r < w.length; r++) {
  22647. e = w[r].task;
  22648. if (this.chapInfoList[l].easy == 1) {
  22649. copyList[l].task.push({
  22650. taskName: q,
  22651. id: l + "-" + r,
  22652. isLook: w[r].isLook,
  22653. isOpen: r === 0 ? true : false,
  22654. tool: []
  22655. });
  22656. } else {
  22657. copyList[l].task.push({
  22658. taskName: e,
  22659. id: l + "-" + r,
  22660. isLook: w[r].isLook,
  22661. isOpen: r === 0 ? true : false,
  22662. tool: []
  22663. });
  22664. }
  22665. var t = w[r].toolChoose;
  22666. for (var k = 0; k < t.length; k++) {
  22667. var tool = t[k].tool[0];
  22668. copyList[l].task[r].tool.push({
  22669. tool: tool,
  22670. isTool: false
  22671. });
  22672. }
  22673. // this.navId = this.navId ? this.navId : l + "-" + r;
  22674. // this.navId = l + "-" + r;
  22675. }
  22676. }
  22677. this.navList = copyList;
  22678. this.navList[0].isOpen = false;
  22679. this.navList[this.courseType].isOpen = true;
  22680. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  22681. } else {
  22682. this.setNavList2();
  22683. }
  22684. },
  22685. setNavList2() {
  22686. for (var l = 0; l < this.chapInfoList.length; l++) {
  22687. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22688. for (var r = 0; r < w.length; r++) {
  22689. this.navList[l].task[r].isLook = w[r].isLook;
  22690. }
  22691. }
  22692. if (
  22693. this.IsLookOpen &&
  22694. !this.navList[this.courseType].task[this.taskCount].isLook
  22695. ) {
  22696. this.openTask(0, 0, "0-0");
  22697. }
  22698. this.$forceUpdate();
  22699. },
  22700. getCourseState(type) {
  22701. let params = {
  22702. cid: this.id
  22703. };
  22704. this.ajax
  22705. .get(this.$store.state.api + "getCourseState", params)
  22706. .then(res => {
  22707. // if (res.data[0].length > 0) {
  22708. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22709. // }
  22710. if (res.data[0].length > 0 && type == 1) {
  22711. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22712. console.log("this.chapInfoList", this.chapInfoList);
  22713. this.setNavList();
  22714. this.$forceUpdate();
  22715. } else if (res.data[0].length > 0 && type == 2) {
  22716. this.addCourseState(2);
  22717. } else {
  22718. // this.addCourseState(1);
  22719. console.log('99999')
  22720. }
  22721. })
  22722. .catch(err => {
  22723. console.error(err);
  22724. });
  22725. },
  22726. addCourseState(type,val = '') {
  22727. let _state = val ? val : this.chapInfoList;
  22728. // this.courseType this.taskCount
  22729. if (type == 1 || type == 2) {
  22730. for (var i = 0; i < _state.length; i++) {
  22731. let el = _state[i].chapterInfo[0].taskJson;
  22732. for (var j = 0; j < el.length; j++) {
  22733. // if (i == 0 && j == 0) {
  22734. // el[j].isLook = true;
  22735. // } else {
  22736. // el[j].isLook = false;
  22737. // }
  22738. if (
  22739. this.courseType > i ||
  22740. (this.courseType == i && this.taskCount + 1 > j)
  22741. ) {
  22742. el[j].isLook = true;
  22743. } else {
  22744. el[j].isLook = false;
  22745. }
  22746. }
  22747. }
  22748. }
  22749. let params = [
  22750. {
  22751. cid: this.id,
  22752. state: JSON.stringify(_state)
  22753. }
  22754. ];
  22755. this.ajax
  22756. .post(
  22757. this.$store.state.api +
  22758. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22759. params
  22760. )
  22761. .then(res => {
  22762. if (this.IsLookOpen) {
  22763. this.setNavList();
  22764. }
  22765. if (type == 3 && type == 2) {
  22766. this.getCourseState(1);
  22767. }
  22768. })
  22769. .catch(err => {
  22770. console.error(err);
  22771. });
  22772. },
  22773. getHomeWork() {
  22774. let params = {
  22775. cid: this.id,
  22776. stage: this.courseType,
  22777. task: this.taskCount,
  22778. uid: this.userid
  22779. };
  22780. this.ajax
  22781. .get(this.$store.state.api + "selectWork", params)
  22782. .then(res => {
  22783. if (res.data[0].length > 0) {
  22784. this.studyJuri = JSON.parse(res.data[0][0].content);
  22785. this.isNoHomeWork = true;
  22786. }
  22787. })
  22788. .catch(err => {
  22789. console.error(err);
  22790. });
  22791. },
  22792. isAssetTypeAnImage(ext) {
  22793. return (
  22794. [
  22795. "png",
  22796. "jpg",
  22797. "jpeg",
  22798. "bmp",
  22799. "gif",
  22800. "webp",
  22801. "psd",
  22802. "svg",
  22803. "tiff"
  22804. ].indexOf(ext) !== -1
  22805. );
  22806. },
  22807. switchVideo(media) {
  22808. this.playerO = {};
  22809. this.playerOptions.poster = "";
  22810. this.playerOptions.sources[0].src = media;
  22811. this.playerO = this.playerOptions;
  22812. },
  22813. onPlayerPlay() {},
  22814. onPlayerTimeupdate(player) {
  22815. let gklog = player.cache_.currentTime; //当前播放的秒数
  22816. let a = player.cache_.duration; //视频的总时长
  22817. let gklog2 = parseInt(gklog);
  22818. // if(gklog2 == '3'){
  22819. // player.pause()
  22820. // setTimeout(()=>{
  22821. // player.currentTime(gklog2+1)
  22822. // player.play()
  22823. // },1000)
  22824. // }
  22825. console.log(" onPlayerTimeupdate!", gklog);
  22826. console.log(" onPlayerTimeupdate!", gklog2);
  22827. },
  22828. lookVedio(u, i) {
  22829. this.isClickNav = "";
  22830. // this.playerOptions.sources[0].src = u;
  22831. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22832. d.sources[0].src = u;
  22833. this.playerO[this.taskCount] = d;
  22834. this.showType = 0;
  22835. // this.isClickNav = "video" + i;
  22836. this.isClickNav = i;
  22837. this.$forceUpdate();
  22838. this.insertMemorandum(
  22839. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22840. this.vChapterData[this.taskCount].find(i => i.url == u).name
  22841. }</span>`
  22842. );
  22843. },
  22844. lookText(i, t) {
  22845. this.isClickNav = "";
  22846. // this.text = this.textList[i][t];
  22847. this.text = this.vChapterData[i][t];
  22848. // this.dialogVisible1 = true;
  22849. this.showType = 1;
  22850. // this.isClickNav = "text" + t;
  22851. this.isClickNav = t;
  22852. this.insertMemorandum(
  22853. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22854. this.vChapterData[this.taskCount][t].name
  22855. }.doc</span>`
  22856. );
  22857. },
  22858. lookTools(i, t) {
  22859. this.chapTools = this.chapToolList[i][t];
  22860. this.dialogVisible2 = true;
  22861. },
  22862. async openFile(f) {
  22863. this.pptImgUrl = "";
  22864. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22865. if (
  22866. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22867. -1
  22868. ) {
  22869. let _uuurl = await this.checkLink(f);
  22870. this.pptImgUrl =
  22871. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22872. encodeURIComponent(_uuurl);
  22873. this.showPDF = false;
  22874. this.dialogVisible3 = true;
  22875. } else if (
  22876. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22877. ) {
  22878. this.pptImgUrl = f;
  22879. this.showPDF = true;
  22880. this.dialogVisible3 = true;
  22881. }
  22882. this.insertMemorandum(
  22883. `查看<span class="variable">${w.sName}</span>的作业`
  22884. );
  22885. },
  22886. openTable(f) {
  22887. this.tableJson = JSON.parse(f.works);
  22888. this.dialogVisibleTable2 = true;
  22889. this.insertMemorandum(
  22890. `查看<span class="variable">${f.sName}的作业</span>`
  22891. );
  22892. },
  22893. openWord(f) {
  22894. this.tableJson = JSON.parse(f.works);
  22895. this.dialogVisibleTable3 = true;
  22896. this.insertMemorandum(
  22897. `查看<span class="variable">${f.sName}的作业</span>`
  22898. );
  22899. },
  22900. doUrl(url, i) {
  22901. this.isClickNav = "";
  22902. this.pptImgUrl1 = "";
  22903. this.showType = 2;
  22904. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22905. url = "https://" + url;
  22906. }
  22907. this.pptImgUrl1 = "";
  22908. this.diffKey = new Date().getTime();
  22909. setTimeout(() => {
  22910. this.pptImgUrl1 = url;
  22911. }, 500);
  22912. // this.isClickNav = "line" + i;
  22913. this.isClickNav = i;
  22914. this.$forceUpdate();
  22915. },
  22916. checkPhoto(f, i) {
  22917. this.showType = 4;
  22918. this.pptImgUrl1 = f.url;
  22919. this.isClickNav = i;
  22920. this.$forceUpdate();
  22921. this.insertMemorandum(
  22922. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22923. this.vChapterData[this.taskCount][i].name
  22924. }</span>`
  22925. );
  22926. },
  22927. checkHtml(f, i){
  22928. this.showType = 16;
  22929. this.pptImgUrl1 = f.url;
  22930. this.isClickNav = i;
  22931. this.$forceUpdate();
  22932. },
  22933. async downFile(f, i) {
  22934. this.isClickNav = "";
  22935. this.pptImgUrl1 = "";
  22936. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22937. if (
  22938. a.indexOf(
  22939. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22940. ) != -1
  22941. ) {
  22942. let _uuurl = await this.checkLink(f.url);
  22943. this.pptImgUrl1 =
  22944. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22945. encodeURIComponent(_uuurl);
  22946. // this.dialogVisible3 = true;
  22947. this.showType = 2;
  22948. } else if (
  22949. this.isAssetTypeAnImage(
  22950. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22951. )
  22952. ) {
  22953. this.showType = 4;
  22954. this.pptImgUrl1 = f.url;
  22955. } else if (
  22956. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22957. "PDF"
  22958. ) {
  22959. this.pptImgUrl1 = f.url;
  22960. // this.dialogVisible3 = true;
  22961. this.showType = 3;
  22962. } else {
  22963. window.open(this.file[i].url);
  22964. }
  22965. // this.isClickNav = "word" + i;
  22966. this.isClickNav = i;
  22967. this.insertMemorandum(
  22968. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22969. this.vChapterData[this.taskCount][i].name
  22970. }</span>`
  22971. );
  22972. },
  22973. downFileList(i) {
  22974. window.open(this.noImgList[i].url);
  22975. },
  22976. openAddWork() {
  22977. this.dialogVisible = true;
  22978. },
  22979. addBzWorks() {
  22980. let params = [
  22981. {
  22982. uid: this.userid,
  22983. cid: this.id,
  22984. stage: this.courseType,
  22985. task: this.taskCount,
  22986. tool: this.toolindex,
  22987. content: JSON.stringify(this.eScore),
  22988. type: 6
  22989. }
  22990. ];
  22991. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22992. this.homeWorkLoading = true
  22993. this.ajax
  22994. .post(this.$store.state.api + "addCourseWorks", params)
  22995. .then(res => {
  22996. this.$message({
  22997. message: "提交成功",
  22998. type: "success"
  22999. });
  23000. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  23001. setTimeout(() => {
  23002. this.homeWorkLoading = false
  23003. }, 500);
  23004. this.eScore = { eBzText: "", eStar: [] };
  23005. this.studentEvalDialogVisible = false;
  23006. this.selectSWorks();
  23007. })
  23008. .catch(err => {
  23009. this.$message.error("提交失败");
  23010. console.error(err);
  23011. setTimeout(() => {
  23012. this.homeWorkLoading = false
  23013. }, 500);
  23014. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  23015. });
  23016. },
  23017. addBzWorksTeacher() {
  23018. let params = [
  23019. {
  23020. uid: this.sStudent.userid,
  23021. cid: this.id,
  23022. stage: this.courseType,
  23023. task: this.taskCount,
  23024. tool: this.toolindex,
  23025. content: JSON.stringify(this.eScore),
  23026. type: 6
  23027. }
  23028. ];
  23029. this.ajax
  23030. .post(this.$store.state.api + "addCourseWorks", params)
  23031. .then(res => {
  23032. this.$message({
  23033. message: "提交成功",
  23034. type: "success"
  23035. });
  23036. this.eScore = { eBzText: "", eStar: [] };
  23037. this.studentEvalDialogVisibleTeacher = false;
  23038. this.selectSWorks();
  23039. })
  23040. .catch(err => {
  23041. this.$message.error("提交失败");
  23042. console.error(err);
  23043. });
  23044. },
  23045. addStudentAsk() {
  23046. if (!this.radio.length) {
  23047. this.$message.error("请选择选项");
  23048. return;
  23049. }
  23050. for (var i = 0; i < this.askJson.askCount; i++) {
  23051. if (
  23052. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23053. (this.radio[i] !== 0 && !this.radio[i])
  23054. ) {
  23055. this.$message.error("请选择选项");
  23056. return;
  23057. }
  23058. }
  23059. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  23060. let params = [
  23061. {
  23062. uid: this.userid,
  23063. cid: this.id,
  23064. stage: this.courseType,
  23065. task: this.taskCount,
  23066. tool: this.toolindex,
  23067. content: JSON.stringify(this.askList),
  23068. type: 2
  23069. }
  23070. ];
  23071. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  23072. this.homeWorkLoading = true
  23073. this.ajax
  23074. .post(this.$store.state.api + "addCourseWorks", params)
  23075. .then(res => {
  23076. this.$message({
  23077. message: "提交成功",
  23078. type: "success"
  23079. });
  23080. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  23081. setTimeout(() => {
  23082. this.homeWorkLoading = false
  23083. }, 500);
  23084. this.askList = [];
  23085. this.dialogVisible5 = false;
  23086. this.selectStudent();
  23087. this.selectSWorks();
  23088. this.selectSLook();
  23089. })
  23090. .catch(err => {
  23091. this.$message.error("提交失败");
  23092. console.error(err);
  23093. setTimeout(() => {
  23094. this.homeWorkLoading = false
  23095. }, 500);
  23096. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  23097. });
  23098. },
  23099. addStudentAskTeacher() {
  23100. if (!this.radio.length) {
  23101. this.$message.error("请选择选项");
  23102. return;
  23103. }
  23104. for (var i = 0; i < this.askJson.askCount; i++) {
  23105. if (
  23106. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23107. (this.radio[i] !== 0 && !this.radio[i])
  23108. ) {
  23109. this.$message.error("请选择选项");
  23110. return;
  23111. }
  23112. }
  23113. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  23114. let params = [
  23115. {
  23116. uid: this.sStudent.userid,
  23117. cid: this.id,
  23118. stage: this.courseType,
  23119. task: this.taskCount,
  23120. tool: this.toolindex,
  23121. content: JSON.stringify(this.askList),
  23122. type: 2
  23123. }
  23124. ];
  23125. this.ajax
  23126. .post(this.$store.state.api + "addCourseWorks", params)
  23127. .then(res => {
  23128. this.$message({
  23129. message: "提交成功",
  23130. type: "success"
  23131. });
  23132. this.askList = [];
  23133. this.dialogVisible5Teacher = false;
  23134. this.selectStudent();
  23135. this.selectSWorks();
  23136. this.selectSLook();
  23137. })
  23138. .catch(err => {
  23139. this.$message.error("提交失败");
  23140. console.error(err);
  23141. });
  23142. },
  23143. addStudentTest() {
  23144. if (!this.radio.length) {
  23145. this.$message.error("请选择选项");
  23146. return;
  23147. }
  23148. for (var i = 0; i < this.testJson.testCount; i++) {
  23149. if (
  23150. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23151. (this.radio[i] !== 0 && !this.radio[i])
  23152. ) {
  23153. this.$message.error("请选择选项");
  23154. return;
  23155. }
  23156. }
  23157. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  23158. let params = [
  23159. {
  23160. uid: this.userid,
  23161. cid: this.id,
  23162. stage: this.courseType,
  23163. task: this.taskCount,
  23164. tool: this.toolindex,
  23165. content: JSON.stringify(this.askList),
  23166. type: 8
  23167. }
  23168. ];
  23169. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  23170. this.homeWorkLoading = true
  23171. this.ajax
  23172. .post(this.$store.state.api + "addCourseWorks", params)
  23173. .then(res => {
  23174. this.$message({
  23175. message: "提交成功",
  23176. type: "success"
  23177. });
  23178. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  23179. setTimeout(() => {
  23180. this.homeWorkLoading = false
  23181. }, 500);
  23182. this.askList = [];
  23183. this.dialogVisibleChoice = false;
  23184. this.selectStudent();
  23185. this.selectSWorks();
  23186. this.selectSLook();
  23187. })
  23188. .catch(err => {
  23189. this.$message.error("提交失败");
  23190. console.error(err);
  23191. setTimeout(() => {
  23192. this.homeWorkLoading = false
  23193. }, 500);
  23194. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  23195. });
  23196. },
  23197. addStudentTestTeacher() {
  23198. if (!this.radio.length) {
  23199. this.$message.error("请选择选项");
  23200. return;
  23201. }
  23202. for (var i = 0; i < this.testJson.testCount; i++) {
  23203. if (
  23204. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  23205. (this.radio[i] !== 0 && !this.radio[i])
  23206. ) {
  23207. this.$message.error("请选择选项");
  23208. return;
  23209. }
  23210. }
  23211. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  23212. let params = [
  23213. {
  23214. uid: this.sStudent.userid,
  23215. cid: this.id,
  23216. stage: this.courseType,
  23217. task: this.taskCount,
  23218. tool: this.toolindex,
  23219. content: JSON.stringify(this.askList),
  23220. type: 8
  23221. }
  23222. ];
  23223. this.ajax
  23224. .post(this.$store.state.api + "addCourseWorks", params)
  23225. .then(res => {
  23226. this.$message({
  23227. message: "提交成功",
  23228. type: "success"
  23229. });
  23230. this.askList = [];
  23231. this.dialogVisibleChoiceTeacher = false;
  23232. this.selectStudent();
  23233. this.selectSWorks();
  23234. this.selectSLook();
  23235. })
  23236. .catch(err => {
  23237. this.$message.error("提交失败");
  23238. console.error(err);
  23239. });
  23240. },
  23241. addWork() {
  23242. if (this.studyJuri[0].content == "") {
  23243. this.$message.error("请将信息填写完整");
  23244. return;
  23245. } else if (this.studyJuri[0].cover.length == 0) {
  23246. this.$message.error("请将信息填写完整");
  23247. return;
  23248. } else if (this.studyJuri[0].upVedio.length == 0) {
  23249. this.$message.error("请将信息填写完整");
  23250. return;
  23251. }
  23252. if (this.isNoHomeWork) {
  23253. this.$confirm(
  23254. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  23255. "提示",
  23256. {
  23257. confirmButtonText: "确定",
  23258. cancelButtonText: "取消",
  23259. type: "warning"
  23260. }
  23261. )
  23262. .then(() => {
  23263. let params = [
  23264. {
  23265. uid: this.userid,
  23266. cid: this.id,
  23267. stage: this.courseType,
  23268. task: this.taskCount,
  23269. content: JSON.stringify(this.studyJuri)
  23270. }
  23271. ];
  23272. this.ajax
  23273. .post(this.$store.state.api + "addWorks", params)
  23274. .then(res => {
  23275. this.$message({
  23276. message: "提交成功",
  23277. type: "success"
  23278. });
  23279. this.isNoHomeWork = true;
  23280. this.dialogVisible = false;
  23281. })
  23282. .catch(err => {
  23283. this.$message.error("提交失败");
  23284. console.error(err);
  23285. });
  23286. })
  23287. .catch(() => {});
  23288. } else {
  23289. let params = [
  23290. {
  23291. uid: this.userid,
  23292. cid: this.id,
  23293. stage: this.courseType,
  23294. task: this.taskCount,
  23295. content: JSON.stringify(this.studyJuri)
  23296. }
  23297. ];
  23298. this.ajax
  23299. .post(this.$store.state.api + "addWorks", params)
  23300. .then(res => {
  23301. this.$message({
  23302. message: "提交成功",
  23303. type: "success"
  23304. });
  23305. this.isNoHomeWork = true;
  23306. this.dialogVisible = false;
  23307. })
  23308. .catch(err => {
  23309. this.$message.error("提交失败");
  23310. console.error(err);
  23311. });
  23312. }
  23313. },
  23314. selectCount() {
  23315. let params = {
  23316. cid: this.id,
  23317. chid: this.courseType,
  23318. uid: this.userid
  23319. };
  23320. this.ajax
  23321. .get(this.$store.state.api + "selectToolsCount", params)
  23322. .then(res => {
  23323. for (var i = 0; i < res.data[0].length; i++) {
  23324. if (res.data[0][i].tools == 1) {
  23325. this.wbCount = res.data[0][i].count;
  23326. } else if (res.data[0][i].tools == 2) {
  23327. this.wordCount = res.data[0][i].count;
  23328. } else if (res.data[0][i].tools == 3) {
  23329. this.mindCount = res.data[0][i].count;
  23330. } else if (res.data[0][i].tools == 4) {
  23331. this.askCount = res.data[0][i].count;
  23332. } else if (res.data[0][i].tools == 6) {
  23333. this.noteCount = res.data[0][i].count;
  23334. } else if (res.data[0][i].tools == 7) {
  23335. this.mindNetWorkCount = res.data[0][i].count;
  23336. } else if (res.data[0][i].tools == 8) {
  23337. this.libraryCount = res.data[0][i].count;
  23338. } else if (res.data[0][i].tools == 16) {
  23339. this.workCount = res.data[0][i].count;
  23340. } else if (res.data[0][i].tools == 10) {
  23341. this.timeCount = res.data[0][i].count;
  23342. } else if (res.data[0][i].tools == 15) {
  23343. this.answerCount = res.data[0][i].count;
  23344. } else if (res.data[0][i].tools == 18) {
  23345. this.trainCount = res.data[0][i].count;
  23346. }
  23347. }
  23348. })
  23349. .catch(err => {
  23350. console.error(err);
  23351. });
  23352. },
  23353. openTools(t, i, index, c, sName, id) {
  23354. var z = JSON.parse(c);
  23355. this.noteName = sName;
  23356. if (t == 4) {
  23357. this.radio = [];
  23358. this.isAnswer = false;
  23359. let b = z[0].anwer;
  23360. this.radio = b;
  23361. this.askJson = z[0].askJson;
  23362. this.isAnswer = true;
  23363. this.dialogVisible5 = true;
  23364. } else if (t == 45) {
  23365. this.radio = [];
  23366. this.isAnswer = false;
  23367. let b = z[0].anwer;
  23368. this.radio = b;
  23369. this.testJson = z[0].testJson;
  23370. this.isAnswer = true;
  23371. this.dialogVisibleChoice = true;
  23372. } else if (t == 69) {
  23373. this.oldEnglishJson1 = {};
  23374. this.oldEnglishJson = {};
  23375. this.englishList1 = {};
  23376. this.newEngIndex = -1;
  23377. this.isNoUserid = false;
  23378. this.englishList1 = this.chapInfoList[
  23379. this.courseType
  23380. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  23381. this.oldEnglishJson = z;
  23382. this.engWid = id;
  23383. this.newEnglishList = { engTitle: "", engText: "" };
  23384. this.newEnglishList1 = [];
  23385. this.selectEngC(id, z);
  23386. } else if (t == 62) {
  23387. this.videoType = 1;
  23388. this.videoJson = {};
  23389. this.videoJson = JSON.parse(c);
  23390. // this.videoJson =
  23391. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23392. // index
  23393. // ].toolChoose[i].videoJson;
  23394. this.dialogVisibleVideo = true;
  23395. }
  23396. // else if (t == 15) {
  23397. // this.answerQ = "";
  23398. // this.questionAnswer = "";
  23399. // this.answerQ = z[0].answerTitle;
  23400. // this.questionAnswer = z[0].answer;
  23401. // this.answerDialogVisible = true;
  23402. // }
  23403. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  23404. },
  23405. fastText(p, t) {
  23406. if (t == 1) {
  23407. this.commentText += p;
  23408. } else {
  23409. this.eScore.eBzText += p;
  23410. }
  23411. },
  23412. addTools(t, i, index) {
  23413. var a = 0;
  23414. // this.taskCount = index;
  23415. this.toolindex = i;
  23416. if (t == 1) {
  23417. if (this.wbCount > 0) {
  23418. this.updateCount(this.wbCount, t);
  23419. } else {
  23420. this.wbCount++;
  23421. a = this.wbCount;
  23422. this.toolsCount(a, t);
  23423. }
  23424. window.topU.postMessage(
  23425. {
  23426. tools: "1",
  23427. cid: this.id,
  23428. stage: this.courseType,
  23429. task: this.taskCount,
  23430. tool: i
  23431. },
  23432. "*"
  23433. );
  23434. } else if (t == 2) {
  23435. if (this.wordCount > 0) {
  23436. this.updateCount(this.wordCount, t);
  23437. } else {
  23438. this.wordCount++;
  23439. a = this.wordCount;
  23440. this.toolsCount(a, t);
  23441. }
  23442. window.topU.postMessage({ tools: "2" }, "*");
  23443. } else if (t == 3) {
  23444. if (this.mindCount > 0) {
  23445. this.updateCount(this.mindCount, t);
  23446. } else {
  23447. this.mindCount++;
  23448. a = this.mindCount;
  23449. this.toolsCount(a, t);
  23450. }
  23451. window.topU.postMessage(
  23452. {
  23453. tools: "3",
  23454. cid: this.id,
  23455. stage: this.courseType,
  23456. task: this.taskCount,
  23457. tool: i
  23458. },
  23459. "*"
  23460. );
  23461. } else if (t == 4) {
  23462. this.radio = [];
  23463. this.noteName = "";
  23464. this.isAnswer = false;
  23465. if (this.askCount > 0) {
  23466. this.updateCount(this.askCount, t);
  23467. } else {
  23468. this.askCount++;
  23469. a = this.askCount;
  23470. this.toolsCount(a, t);
  23471. }
  23472. if (!this.dialogVisible2) {
  23473. this.askJson.askJson = this.chapInfoList[
  23474. this.courseType
  23475. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23476. this.askJson.askTitle = this.chapInfoList[
  23477. this.courseType
  23478. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23479. this.askJson.askCount = this.chapInfoList[
  23480. this.courseType
  23481. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23482. } else {
  23483. this.askJson.askJson = this.chapTools.askJson.askJson;
  23484. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23485. this.askJson.askCount = this.chapTools.askJson.askCount;
  23486. }
  23487. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23488. if (this.askJson.askJson[k].type == "2") {
  23489. this.radio.push([]);
  23490. } else {
  23491. this.radio.push("");
  23492. }
  23493. }
  23494. this.dialogVisible5 = true;
  23495. // window.topU.postMessage({ tools: "4" }, "*");
  23496. } else if (t == 45) {
  23497. this.noteName = "";
  23498. this.radio = [];
  23499. this.isAnswer = false;
  23500. if (this.askCount > 0) {
  23501. this.updateCount(this.askCount, t);
  23502. } else {
  23503. this.askCount++;
  23504. a = this.askCount;
  23505. this.toolsCount(a, t);
  23506. }
  23507. this.testJson = this.chapInfoList[
  23508. this.courseType
  23509. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23510. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23511. if (this.testJson.testJson[k].type == "2") {
  23512. this.radio.push([]);
  23513. } else {
  23514. this.radio.push("");
  23515. }
  23516. }
  23517. this.dialogVisibleChoice = true;
  23518. // window.topU.postMessage({ tools: "4" }, "*");
  23519. } else if (t == 5) {
  23520. if (this.scoreCount > 0) {
  23521. this.updateCount(this.scoreCount, t);
  23522. } else {
  23523. this.scoreCount++;
  23524. a = this.scoreCount;
  23525. this.toolsCount(a, t);
  23526. }
  23527. this.dialogVisible4 = true;
  23528. // window.topU.postMessage({ tools: "5" }, "*");
  23529. } else if (t == 6) {
  23530. if (this.noteCount > 0) {
  23531. this.updateCount(this.noteCount, t);
  23532. } else {
  23533. this.noteCount++;
  23534. a = this.noteCount;
  23535. this.toolsCount(a, t);
  23536. }
  23537. window.topU.postMessage(
  23538. {
  23539. tools: "6",
  23540. cid: this.id,
  23541. stage: this.courseType,
  23542. task: this.taskCount,
  23543. tool: i
  23544. },
  23545. "*"
  23546. );
  23547. } else if (t == 7) {
  23548. if (this.mindNetWorkCount > 0) {
  23549. this.updateCount(this.mindNetWorkCount, t);
  23550. } else {
  23551. this.mindNetWorkCount++;
  23552. a = this.mindNetWorkCount;
  23553. this.toolsCount(a, t);
  23554. }
  23555. window.topU.postMessage(
  23556. {
  23557. tools: "7",
  23558. cid: this.id,
  23559. stage: this.courseType,
  23560. task: this.taskCount,
  23561. tool: i
  23562. },
  23563. "*"
  23564. );
  23565. } else if (t == 16) {
  23566. if (this.workCount > 0) {
  23567. this.updateCount(this.workCount, t);
  23568. } else {
  23569. this.workCount++;
  23570. a = this.workCount;
  23571. this.toolsCount(a, t);
  23572. }
  23573. this.dialogVisible = true;
  23574. } else if (t == 50) {
  23575. if (this.tType == 2) {
  23576. this.$message.error("不支持学生使用");
  23577. return;
  23578. }
  23579. this.plworkFile = [];
  23580. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23581. if (!this.uploadCid) {
  23582. this.$message.error(
  23583. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23584. );
  23585. return;
  23586. }
  23587. // this.uploadCid =
  23588. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23589. // index
  23590. // ].toolChoose[i].uploadJson[0];
  23591. this.selectUploadStudent(2);
  23592. } else if (t == 8) {
  23593. if (this.libraryCount > 0) {
  23594. this.updateCount(this.libraryCount, t);
  23595. } else {
  23596. this.libraryCount++;
  23597. a = this.libraryCount;
  23598. this.toolsCount(a, t);
  23599. }
  23600. window.topU.postMessage({ tools: "8" }, "*");
  23601. } else if (t == 17) {
  23602. if (this.libraryCount > 0) {
  23603. this.updateCount(this.libraryCount, t);
  23604. } else {
  23605. this.libraryCount++;
  23606. a = this.libraryCount;
  23607. this.toolsCount(a, t);
  23608. }
  23609. window.topU.postMessage({ tools: "17" }, "*");
  23610. } else if (t == 18) {
  23611. if (this.trainCount > 0) {
  23612. this.updateCount(this.trainCount, t);
  23613. } else {
  23614. this.trainCount++;
  23615. a = this.trainCount;
  23616. this.toolsCount(a, t);
  23617. }
  23618. window.topU.postMessage({ tools: "18" }, "*");
  23619. } else if (t == 10) {
  23620. if (this.timeCount > 0) {
  23621. this.updateCount(this.timeCount, t);
  23622. } else {
  23623. this.timeCount++;
  23624. a = this.timeCount;
  23625. this.toolsCount(a, t);
  23626. }
  23627. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23628. .taskJson[index].toolChoose[i].preTime
  23629. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23630. .toolChoose[i].preTime
  23631. : "";
  23632. this.timeDialogVisible = true;
  23633. } else if (t == 15) {
  23634. this.answerQ = "";
  23635. this.questionAnswer = "";
  23636. if (this.answerCount > 0) {
  23637. this.updateCount(this.answerCount, t);
  23638. } else {
  23639. this.answerCount++;
  23640. a = this.answerCount;
  23641. this.toolsCount(a, t);
  23642. }
  23643. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23644. .taskJson[index].toolChoose[i].answerQ
  23645. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23646. .toolChoose[i].answerQ
  23647. : "";
  23648. this.answerDialogVisible = true;
  23649. } else if (t == 21) {
  23650. window.topU.postMessage({ tools: "21" }, "*");
  23651. } else if (t == 22) {
  23652. window.topU.postMessage({ tools: "22" }, "*");
  23653. } else if (t == 23) {
  23654. window.topU.postMessage({ tools: "23" }, "*");
  23655. } else if (t == 24) {
  23656. window.topU.postMessage({ tools: "24" }, "*");
  23657. } else if (t == 25) {
  23658. window.topU.postMessage({ tools: "25" }, "*");
  23659. } else if (t == 31) {
  23660. window.topU.postMessage({ tools: "31" }, "*");
  23661. } else if (t == 28) {
  23662. window.topU.postMessage({ tools: "28" }, "*");
  23663. } else if (t == 37) {
  23664. window.topU.postMessage({ tools: "37" }, "*");
  23665. } else if (t == 38) {
  23666. window.topU.postMessage({ tools: "38" }, "*");
  23667. } else if (t == 39) {
  23668. window.topU.postMessage({ tools: "39" }, "*");
  23669. } else if (t == 32) {
  23670. window.topU.postMessage({ tools: "32" }, "*");
  23671. } else if (t == 66) {
  23672. window.topU.postMessage({ tools: "66" }, "*");
  23673. } else if (t == 67) {
  23674. window.topU.postMessage({ tools: "67" }, "*");
  23675. } else if (t == 68) {
  23676. window.topU.postMessage({ tools: "68" }, "*");
  23677. } else if (t == 57) {
  23678. // window.topU.postMessage({ tools: "57" }, "*");
  23679. window.topU.postMessage(
  23680. {
  23681. tools: "57u",
  23682. cid: this.id,
  23683. stage: this.courseType,
  23684. task: this.taskCount,
  23685. tool: i
  23686. },
  23687. "*"
  23688. );
  23689. } else if (t == 58) {
  23690. window.topU.postMessage({ tools: "58" }, "*");
  23691. } else if (t == 59) {
  23692. window.topU.postMessage({ tools: "59" }, "*");
  23693. } else if (t == 60) {
  23694. window.topU.postMessage({ tools: "60" }, "*");
  23695. } else if (t == 61) {
  23696. window.topU.postMessage({ tools: "61" }, "*");
  23697. } else if (t == 63) {
  23698. window.topU.postMessage({ tools: "63" }, "*");
  23699. } else if (t == 71) {
  23700. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23701. // this.$message.error("该工具不可使用");
  23702. // return
  23703. // }
  23704. window.topU.postMessage({ tools: "71" }, "*");
  23705. } else if (t == 72) {
  23706. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23707. .taskJson[index].toolChoose[i].appJson
  23708. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23709. .toolChoose[i].appJson
  23710. : "";
  23711. console.log('item.url',item.url);
  23712. if(!item || !item.url){
  23713. this.$message.error("应用连接为空, 请到课程管理中添加");
  23714. return;
  23715. }
  23716. if (!document.fullscreenElement) {
  23717. this.enterFullScreen();
  23718. }
  23719. this.$refs.appStoreC.getData(item.url,this.userid)
  23720. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23721. // window.open(item.url, "_blank");
  23722. } else if (t == 69) {
  23723. if (this.worksStudent[i].length) {
  23724. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23725. if (this.userid == this.worksStudent[i][k].userid) {
  23726. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  23727. break;
  23728. } else {
  23729. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23730. }
  23731. }
  23732. } else {
  23733. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23734. }
  23735. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23736. .taskJson[index].toolChoose[i].englishList
  23737. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23738. .toolChoose[i].englishList
  23739. : {};
  23740. this.englishToolIndex = i;
  23741. this.myAnList = this.myAnswerList1;
  23742. this.engDialogVisible = true;
  23743. } else if (t == 70) {
  23744. if (this.worksStudent[i].length) {
  23745. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23746. if (
  23747. this.userid == this.worksStudent[i][k].userid &&
  23748. this.worksStudent[i][k].type == 17
  23749. ) {
  23750. this.englishVoiceJsonWork = JSON.parse(
  23751. this.worksStudent[i][k].works
  23752. );
  23753. break;
  23754. } else {
  23755. this.englishVoiceJsonWork = [];
  23756. }
  23757. }
  23758. } else {
  23759. this.englishVoiceJsonWork = [];
  23760. }
  23761. let englishVoiceJson = {};
  23762. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23763. .taskJson[index].toolChoose[i].englishVoiceJson
  23764. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23765. .toolChoose[i].englishVoiceJson
  23766. : {};
  23767. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23768. this.EnglishVoiceDialog = true;
  23769. } else if (t == 65) {
  23770. if (this.tType == 2) {
  23771. this.$message.error("不支持学生使用");
  23772. return;
  23773. }
  23774. this.uploadCid = this.tcid;
  23775. if (!this.uploadCid) {
  23776. this.$message.error(
  23777. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23778. );
  23779. return;
  23780. }
  23781. this.selectPickStudent();
  23782. } else if (t == 26) {
  23783. window.topU.postMessage(
  23784. {
  23785. tools: "26",
  23786. cid: this.id,
  23787. stage: this.courseType,
  23788. task: this.taskCount,
  23789. tool: i
  23790. },
  23791. "*"
  23792. );
  23793. } else if (t == 40) {
  23794. if (this.evalCount > 0) {
  23795. this.updateCount(this.evalCount, t);
  23796. } else {
  23797. this.evalCount++;
  23798. a = this.evalCount;
  23799. this.toolsCount(a, t);
  23800. }
  23801. this.eScore = { eBzText: "", eStar: [] };
  23802. if (this.worksStudent[i].length) {
  23803. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23804. if (this.userid == this.worksStudent[i][k].userid) {
  23805. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23806. this.rateJson = this.chapInfoList[
  23807. this.courseType
  23808. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23809. break;
  23810. } else {
  23811. this.rateJson = this.chapInfoList[
  23812. this.courseType
  23813. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23814. }
  23815. }
  23816. } else {
  23817. this.rateJson = this.chapInfoList[
  23818. this.courseType
  23819. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23820. }
  23821. this.isStar = false;
  23822. this.studentEvalDialogVisible = true;
  23823. } else if (t == 41) {
  23824. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23825. .taskJson[index].toolChoose[i].selectJson
  23826. ? JSON.parse(
  23827. JSON.stringify(
  23828. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23829. index
  23830. ].toolChoose[i].selectJson
  23831. )
  23832. )
  23833. : { url: "", select: [], answer: [] };
  23834. if (this.worksStudent[i].length) {
  23835. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23836. if (this.userid == this.worksStudent[i][k].userid) {
  23837. var a = this.worksStudent[i][k].works.split(",");
  23838. for (var ki = 0; ki < a.length; ki++) {
  23839. a[ki] = parseInt(a[ki]);
  23840. }
  23841. this.selectAnswer = {
  23842. answer: a,
  23843. stu: this.worksStudent[i][k].sName
  23844. };
  23845. break;
  23846. } else {
  23847. this.selectAnswer = { answer: [], stu: "" };
  23848. }
  23849. }
  23850. } else {
  23851. this.selectAnswer = { answer: [], stu: "" };
  23852. }
  23853. this.isSelect = false;
  23854. this.dialogVisibleSelect = true;
  23855. } else if (t == 44) {
  23856. window.topU.postMessage({ tools: "44" }, "*");
  23857. } else if (t == 47) {
  23858. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23859. .taskJson[index].toolChoose[i].sentenceList
  23860. ? JSON.parse(
  23861. JSON.stringify(
  23862. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23863. index
  23864. ].toolChoose[i].sentenceList
  23865. )
  23866. )
  23867. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23868. for (var q = 0; q < this.sentenceList.length; q++) {
  23869. this.sentenceList[q].chooseSenList = [];
  23870. this.sentenceList[q].addChangeSen = [];
  23871. this.sentenceList[q].addChangeSen = JSON.parse(
  23872. JSON.stringify(this.sentenceList[q].addSentence)
  23873. );
  23874. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23875. q
  23876. ].rightAnswer.length;
  23877. }
  23878. this.dialogVisibleSentence = true;
  23879. } else if (t == 48) {
  23880. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23881. .taskJson[index].toolChoose[i].tableJson
  23882. ? JSON.parse(
  23883. JSON.stringify(
  23884. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23885. index
  23886. ].toolChoose[i].tableJson
  23887. )
  23888. )
  23889. : { text: "" };
  23890. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23891. if (this.worksStudent[i].length) {
  23892. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23893. if (this.userid == this.worksStudent[i][k].userid) {
  23894. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23895. break;
  23896. }
  23897. }
  23898. }
  23899. this.dialogVisibleTable = true;
  23900. } else if (t == 52) {
  23901. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23902. .taskJson[index].toolChoose[i].wordJson
  23903. ? JSON.parse(
  23904. JSON.stringify(
  23905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23906. index
  23907. ].toolChoose[i].wordJson
  23908. )
  23909. )
  23910. : { text: "" };
  23911. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23912. if (this.worksStudent[i].length) {
  23913. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23914. if (this.userid == this.worksStudent[i][k].userid) {
  23915. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23916. break;
  23917. }
  23918. }
  23919. }
  23920. this.dialogVisibleWord = true;
  23921. } else if (t == 49) {
  23922. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  23923. return;
  23924. }
  23925. this.groupJson = this.chapInfoList[
  23926. this.courseType
  23927. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  23928. this.islock = this.groupJson.islock == 1 ? true : false;
  23929. this.dialogVisibleGroup = true;
  23930. } else if (t == 62) {
  23931. this.videoType = 0;
  23932. this.videoJson = {};
  23933. this.videoJson = this.chapInfoList[
  23934. this.courseType
  23935. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  23936. this.dialogVisibleVideo = true;
  23937. }
  23938. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23939. this.insertMemorandum(
  23940. `点击工作区<span class="variable">工具${index + 1}:${
  23941. this.toolsList[t]
  23942. }</span>`
  23943. );
  23944. },
  23945. teacherWorkSubmit(t, i, index, s) {
  23946. this.sStudent = s;
  23947. this.toolindex = i;
  23948. this.sTool = t;
  23949. if (this.tType !== "1" && this.tType !== "4") {
  23950. return;
  23951. }
  23952. if (t == 16 || t == 32 || t == 50) {
  23953. this.dialogVisibleWorks = true;
  23954. } else if (t == 15) {
  23955. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23956. .taskJson[index].toolChoose[i].answerQ
  23957. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23958. .toolChoose[i].answerQ
  23959. : "";
  23960. this.questionAnswer = "";
  23961. this.answerDialogVisibleTeacher = true; //问答
  23962. } else if (t == 52) {
  23963. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23964. .taskJson[index].toolChoose[i].wordJson
  23965. ? JSON.parse(
  23966. JSON.stringify(
  23967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23968. index
  23969. ].toolChoose[i].wordJson
  23970. )
  23971. )
  23972. : { text: "" };
  23973. if (this.worksStudent[i].length) {
  23974. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23975. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23976. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23977. break;
  23978. }
  23979. }
  23980. }
  23981. this.dialogVisibleWordTeacher = true; //文档
  23982. } else if (t == 4) {
  23983. this.radio = [];
  23984. this.noteName = "";
  23985. this.isAnswer = false;
  23986. if (this.askCount > 0) {
  23987. this.updateCount(this.askCount, t);
  23988. } else {
  23989. this.askCount++;
  23990. a = this.askCount;
  23991. this.toolsCount(a, t);
  23992. }
  23993. if (!this.dialogVisible2) {
  23994. this.askJson.askJson = this.chapInfoList[
  23995. this.courseType
  23996. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23997. this.askJson.askTitle = this.chapInfoList[
  23998. this.courseType
  23999. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  24000. this.askJson.askCount = this.chapInfoList[
  24001. this.courseType
  24002. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  24003. } else {
  24004. this.askJson.askJson = this.chapTools.askJson.askJson;
  24005. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  24006. this.askJson.askCount = this.chapTools.askJson.askCount;
  24007. }
  24008. for (var k = 0; k < this.askJson.askJson.length; k++) {
  24009. if (this.askJson.askJson[k].type == "2") {
  24010. this.radio.push([]);
  24011. } else {
  24012. this.radio.push("");
  24013. }
  24014. }
  24015. this.dialogVisible5Teacher = true;
  24016. } else if (t == 45) {
  24017. this.noteName = "";
  24018. this.radio = [];
  24019. this.isAnswer = false;
  24020. if (this.askCount > 0) {
  24021. this.updateCount(this.askCount, t);
  24022. } else {
  24023. this.askCount++;
  24024. a = this.askCount;
  24025. this.toolsCount(a, t);
  24026. }
  24027. this.testJson = this.chapInfoList[
  24028. this.courseType
  24029. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  24030. for (var k = 0; k < this.testJson.testJson.length; k++) {
  24031. if (this.testJson.testJson[k].type == "2") {
  24032. this.radio.push([]);
  24033. } else {
  24034. this.radio.push("");
  24035. }
  24036. }
  24037. this.dialogVisibleChoiceTeacher = true;
  24038. } else if (t == 41) {
  24039. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  24040. .taskJson[index].toolChoose[i].selectJson
  24041. ? JSON.parse(
  24042. JSON.stringify(
  24043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24044. index
  24045. ].toolChoose[i].selectJson
  24046. )
  24047. )
  24048. : { url: "", select: [], answer: [] };
  24049. if (this.worksStudent[i].length) {
  24050. for (var k = 0; k < this.worksStudent[i].length; k++) {
  24051. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  24052. var a = this.worksStudent[i][k].works.split(",");
  24053. for (var ki = 0; ki < a.length; ki++) {
  24054. a[ki] = parseInt(a[ki]);
  24055. }
  24056. this.selectAnswer = {
  24057. answer: a,
  24058. stu: this.worksStudent[i][k].sName
  24059. };
  24060. break;
  24061. } else {
  24062. this.selectAnswer = { answer: [], stu: "" };
  24063. }
  24064. }
  24065. } else {
  24066. this.selectAnswer = { answer: [], stu: "" };
  24067. }
  24068. this.isSelect = false;
  24069. this.dialogVisibleSelectTeacher = true;
  24070. } else if (t == 47) {
  24071. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  24072. .taskJson[index].toolChoose[i].sentenceList
  24073. ? JSON.parse(
  24074. JSON.stringify(
  24075. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24076. index
  24077. ].toolChoose[i].sentenceList
  24078. )
  24079. )
  24080. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  24081. for (var q = 0; q < this.sentenceList.length; q++) {
  24082. this.sentenceList[q].chooseSenList = [];
  24083. this.sentenceList[q].addChangeSen = [];
  24084. this.sentenceList[q].addChangeSen = JSON.parse(
  24085. JSON.stringify(this.sentenceList[q].addSentence)
  24086. );
  24087. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  24088. q
  24089. ].rightAnswer.length;
  24090. }
  24091. this.dialogVisibleSentenceTeacher = true;
  24092. } else if (t == 48) {
  24093. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  24094. .taskJson[index].toolChoose[i].tableJson
  24095. ? JSON.parse(
  24096. JSON.stringify(
  24097. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24098. index
  24099. ].toolChoose[i].tableJson
  24100. )
  24101. )
  24102. : { text: "" };
  24103. if (this.worksStudent[i].length) {
  24104. for (var k = 0; k < this.worksStudent[i].length; k++) {
  24105. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  24106. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  24107. break;
  24108. }
  24109. }
  24110. }
  24111. this.dialogVisibleTableTeacher = true;
  24112. } else if (t == 40) {
  24113. if (this.evalCount > 0) {
  24114. this.updateCount(this.evalCount, t);
  24115. } else {
  24116. this.evalCount++;
  24117. a = this.evalCount;
  24118. this.toolsCount(a, t);
  24119. }
  24120. this.eScore = { eBzText: "", eStar: [] };
  24121. if (this.worksStudent[i].length) {
  24122. for (var k = 0; k < this.worksStudent[i].length; k++) {
  24123. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  24124. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  24125. this.rateJson = this.chapInfoList[
  24126. this.courseType
  24127. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  24128. break;
  24129. } else {
  24130. this.rateJson = this.chapInfoList[
  24131. this.courseType
  24132. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  24133. }
  24134. }
  24135. } else {
  24136. this.rateJson = this.chapInfoList[
  24137. this.courseType
  24138. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  24139. }
  24140. this.isStar = false;
  24141. this.studentEvalDialogVisibleTeacher = true;
  24142. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  24143. window.topU.postMessage(
  24144. {
  24145. tools: t + "teacher",
  24146. cid: this.id,
  24147. stage: this.courseType,
  24148. task: this.taskCount,
  24149. tool: i,
  24150. student: this.sStudent
  24151. },
  24152. "*"
  24153. );
  24154. }else if (t == 72) {
  24155. if (!document.fullscreenElement) {
  24156. this.enterFullScreen();
  24157. }
  24158. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  24159. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  24160. }
  24161. },
  24162. openCocoPi(tool, i, uid, uname) {
  24163. let student = {
  24164. userid: uid,
  24165. student: uname
  24166. };
  24167. if (tool == 57) {
  24168. window.topU.postMessage(
  24169. {
  24170. tools: tool + "teacher",
  24171. cid: this.id,
  24172. stage: this.courseType,
  24173. task: this.taskCount,
  24174. tool: i,
  24175. student: student
  24176. },
  24177. "*"
  24178. );
  24179. }
  24180. },
  24181. setRightAnswer(s, i, j) {
  24182. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  24183. if (
  24184. this.sentenceList[i].chooseSenList[q] == undefined ||
  24185. this.sentenceList[i].chooseSenList[q] == ""
  24186. ) {
  24187. this.sentenceList[i].chooseSenList[q] = s;
  24188. this.sentenceList[i].addChangeSen[j] = "";
  24189. break;
  24190. }
  24191. }
  24192. this.$forceUpdate();
  24193. },
  24194. returnCard(r, i, j) {
  24195. var a = this.sentenceList[i].addSentence.indexOf(r);
  24196. this.sentenceList[i].chooseSenList[j] = "";
  24197. this.sentenceList[i].addChangeSen[a] = r;
  24198. this.$forceUpdate();
  24199. },
  24200. // addSentenceTool() {
  24201. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24202. // this.taskCount
  24203. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  24204. // this.sentenceList = [
  24205. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  24206. // ];
  24207. // this.dialogVisibleSentence = false;
  24208. // },
  24209. toolsCount(a, t) {
  24210. let params = {
  24211. cid: this.id,
  24212. chid: this.courseType,
  24213. uid: this.userid,
  24214. tid: t,
  24215. count: a
  24216. };
  24217. this.ajax
  24218. .get(this.$store.state.api + "insertToolsCount", params)
  24219. .then(res => {
  24220. this.selectCount();
  24221. })
  24222. .catch(err => {
  24223. console.error(err);
  24224. });
  24225. },
  24226. updateCount(c, t) {
  24227. c++;
  24228. let params = {
  24229. cid: this.id,
  24230. chid: this.courseType,
  24231. uid: this.userid,
  24232. tid: t,
  24233. count: c
  24234. };
  24235. this.ajax
  24236. .get(this.$store.state.api + "updateToolsCount", params)
  24237. .then(res => {
  24238. this.selectCount();
  24239. })
  24240. .catch(err => {
  24241. console.error(err);
  24242. });
  24243. },
  24244. checkEva() {
  24245. if (this.evalua != "") {
  24246. for (var i = 0; i < this.evaJuri.length; i++) {
  24247. if (this.evalua == this.evaJuri[i].id) {
  24248. this.eTitle = this.evaJuri[i].title;
  24249. this.eJson = JSON.parse(this.evaJuri[i].content);
  24250. }
  24251. }
  24252. this.$forceUpdate();
  24253. setTimeout(() => {
  24254. this.setMindData();
  24255. }, 0);
  24256. }
  24257. },
  24258. selectEva() {
  24259. let params = {
  24260. oid: this.oid
  24261. };
  24262. this.ajax
  24263. .get(this.$store.state.api + "selectAllEvaluation", params)
  24264. .then(res => {
  24265. this.evaJuri = res.data[0];
  24266. })
  24267. .catch(err => {
  24268. console.error(err);
  24269. });
  24270. },
  24271. setMindData() {
  24272. this.data.data = [];
  24273. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  24274. let _eJson = Object.keys(this.eJson);
  24275. let _e = this.eJson;
  24276. for (let i = 0; i < _eJson.length; i++) {
  24277. let element = _e[_eJson[i]];
  24278. this.data.data.push({
  24279. id: element.id,
  24280. parentid: "root",
  24281. topic: element.name
  24282. });
  24283. let _eJsonc = Object.keys(element.child);
  24284. let _e2 = element.child;
  24285. for (let j = 0; j < _eJsonc.length; j++) {
  24286. let _ec = _e2[_eJsonc[j]];
  24287. this.data.data.push({
  24288. id: _ec.id,
  24289. parentid: element.id,
  24290. topic: _ec.name
  24291. });
  24292. let _eJsonz = Object.keys(_ec.child);
  24293. let _e3 = _ec.child;
  24294. for (let z = 0; z < _eJsonz.length; z++) {
  24295. let _ez = _e3[_eJsonz[z]];
  24296. this.data.data.push({
  24297. id: _ez.id,
  24298. parentid: _ec.id,
  24299. topic: _ez.name
  24300. });
  24301. }
  24302. }
  24303. }
  24304. this.$forceUpdate();
  24305. },
  24306. checkFileFull(type, url) {
  24307. this.fullDialogVisible = true;
  24308. this.fulltype = type;
  24309. this.fullUrl = url;
  24310. },
  24311. async checkFileFull1(t, f) {
  24312. this.fullDialogVisible = true;
  24313. if (t == 6) {
  24314. this.fulltype = 1;
  24315. this.fullUrl = JSON.parse(JSON.stringify(f));
  24316. } else if (t == 8) {
  24317. this.fulltype = 2;
  24318. this.fullUrl = f.url;
  24319. }else if (t == 15) {
  24320. this.fulltype = 4;
  24321. this.fullUrl = f.url;
  24322. } else if (t == 16) {
  24323. this.fulltype = 16;
  24324. this.fullUrl = f.url;
  24325. } else if (
  24326. t == 3 &&
  24327. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  24328. "PDF"
  24329. ) {
  24330. this.fulltype = 3;
  24331. this.fullUrl = f.url;
  24332. } else if (t == 3) {
  24333. this.fulltype = 2;
  24334. let _uuurl = await this.checkLink(f.url);
  24335. this.fullUrl =
  24336. "https://view.officeapps.live.com/op/view.aspx?src=" +
  24337. encodeURIComponent(_uuurl);
  24338. }
  24339. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  24340. },
  24341. openSname(n, id, i, uid) {
  24342. this.snameWid = id;
  24343. this.worksSName = n;
  24344. this.worksSid = uid == n ? "" : uid;
  24345. this.toolindex = i;
  24346. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  24347. if (!this.uploadCid) {
  24348. this.$message.error(
  24349. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  24350. );
  24351. return;
  24352. }
  24353. this.selectUploadStudent(1);
  24354. },
  24355. updateName() {
  24356. let params = {
  24357. n: this.worksSName,
  24358. cid: this.snameWid
  24359. };
  24360. this.ajax
  24361. .get(this.$store.state.api + "updateCourseWorksName", params)
  24362. .then(res => {
  24363. this.$message({
  24364. message: "修改成功",
  24365. type: "success"
  24366. });
  24367. this.dialogVisibleSname = false;
  24368. this.getCourseDetail(2);
  24369. this.snameWid = "";
  24370. this.worksSName = "";
  24371. })
  24372. .catch(err => {
  24373. console.error(err);
  24374. });
  24375. },
  24376. downloadFile2(f) {
  24377. // const loading = this.$loading.service({
  24378. // background: "rgba(255, 255, 255, 0.7)",
  24379. // target: document.body,
  24380. // text: "文件加载中...",
  24381. // });
  24382. // let url2 = f.url;
  24383. // let _url2 = "";
  24384. // if (
  24385. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24386. // ) {
  24387. // _url2 = url2.split(
  24388. // "https://view.officeapps.live.com/op/view.aspx?src="
  24389. // )[1];
  24390. // } else {
  24391. // _url2 = url2;
  24392. // }
  24393. // let params = {
  24394. // url: _url2,
  24395. // name: f.name,
  24396. // };
  24397. // this.ajax
  24398. // .get(this.$store.state.api + "download", params)
  24399. // .then((res) => {
  24400. // loading.close();
  24401. // let content = res.data.data.data;
  24402. // let ab = new ArrayBuffer(content.length);
  24403. // let view = new Uint8Array(ab);
  24404. // for (var i = 0; i < content.length; ++i) {
  24405. // view[i] = content[i];
  24406. // }
  24407. // let elink = document.createElement("a");
  24408. // elink.download = f.name;
  24409. // elink.style.display = "none";
  24410. // let blob = new Blob([ab], {
  24411. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  24412. // });
  24413. // elink.href = URL.createObjectURL(blob);
  24414. // document.body.appendChild(elink);
  24415. // elink.click();
  24416. // document.body.removeChild(elink);
  24417. // })
  24418. // .catch((err) => {
  24419. // loading.close();
  24420. // console.error(err);
  24421. // });
  24422. var credentials = {
  24423. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24424. secretAccessKey: "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"
  24425. }; //秘钥形式的登录上传
  24426. window.AWS.config.update(credentials);
  24427. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24428. let url2 = f.url;
  24429. let _url2 = "";
  24430. if (
  24431. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24432. ) {
  24433. _url2 = url2.split(
  24434. "https://view.officeapps.live.com/op/view.aspx?src="
  24435. )[1];
  24436. } else {
  24437. _url2 = url2;
  24438. }
  24439. let _this = this;
  24440. _this.downLoading = true;
  24441. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24442. let name = decodeURIComponent(
  24443. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24444. );
  24445. var params = {
  24446. Bucket: "ccrb",
  24447. Key: name
  24448. };
  24449. s3.getObject(params, function(err, data) {
  24450. _this.downLoading = false;
  24451. if (err) console.log(err, err.stack);
  24452. // an error occurred
  24453. else {
  24454. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24455. let a = document.createElement("a");
  24456. a.name = f.name;
  24457. a.href = url;
  24458. a.download = f.name;
  24459. a.click();
  24460. console.log(data);
  24461. } // sxuccessful response
  24462. });
  24463. return;
  24464. let url = f.url;
  24465. let _url = "";
  24466. if (
  24467. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24468. ) {
  24469. _url = url.split(
  24470. "https://view.officeapps.live.com/op/view.aspx?src="
  24471. )[1];
  24472. } else {
  24473. _url = url;
  24474. }
  24475. _this.downLoading = true;
  24476. // const loading = _this.$loading.service({
  24477. // background: "rgba(255, 255, 255, 0.7)",
  24478. // target: document.body,
  24479. // text: "文件加载中...",
  24480. // });
  24481. let x = new XMLHttpRequest();
  24482. x.open("GET", _url, true);
  24483. x.responseType = "blob";
  24484. x.onload = function() {
  24485. _this.downLoading = false;
  24486. // loading.close();
  24487. let url = window.URL.createObjectURL(new Blob([x.response]));
  24488. let a = document.createElement("a");
  24489. a.name = f.name;
  24490. a.href = url;
  24491. a.download = f.name;
  24492. a.click();
  24493. };
  24494. x.send();
  24495. },
  24496. downloadFile(url,uid) {
  24497. if (this.tType == 1 || this.userid == uid) {
  24498. let hz = url.substring(url.lastIndexOf(".") + 1);
  24499. if (hz == "txt" || hz == "md") {
  24500. this.lookTxt(url);
  24501. return;
  24502. }
  24503. var credentials = {
  24504. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24505. secretAccessKey: "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"
  24506. }; //秘钥形式的登录上传
  24507. window.AWS.config.update(credentials);
  24508. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24509. let url2 = url;
  24510. let _url2 = "";
  24511. if (
  24512. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24513. ) {
  24514. _url2 = url2.split(
  24515. "https://view.officeapps.live.com/op/view.aspx?src="
  24516. )[1];
  24517. } else {
  24518. _url2 = url2;
  24519. }
  24520. const loading2 = this.$loading.service({
  24521. background: "rgba(255, 255, 255, 0.7)",
  24522. target: document.body,
  24523. text: "文件加载中..."
  24524. });
  24525. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24526. let name = decodeURIComponent(
  24527. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24528. );
  24529. var params = {
  24530. Bucket: "ccrb",
  24531. Key: name
  24532. };
  24533. s3.getObject(params, function(err, data) {
  24534. loading2.close();
  24535. if (err) console.log(err, err.stack);
  24536. // an error occurred
  24537. else {
  24538. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24539. let a = document.createElement("a");
  24540. a.name = name;
  24541. a.href = url;
  24542. a.download = name;
  24543. a.click();
  24544. console.log(data);
  24545. } // sxuccessful response
  24546. });
  24547. }
  24548. return;
  24549. let _this = this;
  24550. let _url = "";
  24551. if (
  24552. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24553. ) {
  24554. _url = url.split(
  24555. "https://view.officeapps.live.com/op/view.aspx?src="
  24556. )[1];
  24557. } else {
  24558. _url = url;
  24559. }
  24560. const x = new XMLHttpRequest();
  24561. x.open("GET", _url, true);
  24562. x.responseType = "blob";
  24563. const loading = _this.$loading.service({
  24564. background: "rgba(255, 255, 255, 0.7)",
  24565. target: document.body,
  24566. text: "文件加载中..."
  24567. });
  24568. // _this.$message.success("文件下载中...");
  24569. x.onload = function(e) {
  24570. loading.close();
  24571. let content = x.response;
  24572. let elink = document.createElement("a");
  24573. elink.download = decodeURI(
  24574. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24575. );
  24576. elink.style.display = "none";
  24577. let blob = new Blob([content]);
  24578. elink.href = URL.createObjectURL(blob);
  24579. document.body.appendChild(elink);
  24580. elink.click();
  24581. document.body.removeChild(elink);
  24582. };
  24583. x.send();
  24584. },
  24585. openLine(url) {
  24586. window.open(url);
  24587. },
  24588. resize() {
  24589. if (document.getElementsByClassName("box_course").length) {
  24590. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24591. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24592. if (this.showType == 2 || this.showType == 3) {
  24593. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24594. document.getElementsByClassName("navBox")[0].style.height =
  24595. a - 40 + 0 + "px";
  24596. }
  24597. } else {
  24598. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24599. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  24600. }
  24601. }
  24602. }
  24603. this.Stbodywidth =
  24604. document.getElementsByClassName("student_body").length &&
  24605. document.getElementsByClassName("student_body")[0].offsetWidth;
  24606. },
  24607. closeDraw() {
  24608. this.bg = null;
  24609. this.drawShow = false;
  24610. },
  24611. showPicturePaint(url) {
  24612. let params = {
  24613. img: url
  24614. };
  24615. this.ajax
  24616. .get(this.$store.state.api + "imgToBase64", params)
  24617. .then(res => {
  24618. this.drawShow = true;
  24619. this.bg = res.data[0].img;
  24620. })
  24621. .catch(err => {
  24622. console.error(err);
  24623. });
  24624. },
  24625. addImgDraw(base64) {
  24626. let file = { name: "批注图.png" };
  24627. let img = this.dataUrlToFile(base64, file);
  24628. this.beforeUpload1(img, 5);
  24629. },
  24630. addImgDrawImG(url) {
  24631. // console.log(url);
  24632. let params = [
  24633. {
  24634. wid: this.commentDetail.wid,
  24635. img: url
  24636. }
  24637. ];
  24638. this.ajax
  24639. .post(this.$store.state.api + "updateCourseWorks", params)
  24640. .then(res => {
  24641. this.$message({
  24642. message: "提交成功",
  24643. type: "success"
  24644. });
  24645. this.drawShow = false;
  24646. this.bg = "";
  24647. this.selectSWorks();
  24648. this.selectStudent();
  24649. })
  24650. .catch(err => {
  24651. this.$message.error("提交失败");
  24652. console.error(err);
  24653. });
  24654. },
  24655. deletePicturePaint() {
  24656. this.$confirm("确定删除此批注吗?", "提示", {
  24657. confirmButtonText: "确定",
  24658. cancelButtonText: "取消",
  24659. type: "warning"
  24660. })
  24661. .then(() => {
  24662. let params = [
  24663. {
  24664. wid: this.commentDetail.wid,
  24665. img: ""
  24666. }
  24667. ];
  24668. this.ajax
  24669. .post(this.$store.state.api + "updateCourseWorks", params)
  24670. .then(res => {
  24671. this.$message({
  24672. message: "删除成功",
  24673. type: "success"
  24674. });
  24675. this.selectSWorks();
  24676. this.selectStudent();
  24677. })
  24678. .catch(err => {
  24679. this.$message.error("删除失败");
  24680. console.error(err);
  24681. });
  24682. })
  24683. .catch(() => {});
  24684. },
  24685. getAudioVideo(constraintsData) {
  24686. if (navigator.mediaDevices === undefined) {
  24687. navigator.mediaDevices = {};
  24688. }
  24689. if (navigator.mediaDevices.getUserMedia === undefined) {
  24690. navigator.mediaDevices.getUserMedia = function(constraints) {
  24691. // 首先,如果有getUserMedia的话,就获得它
  24692. var getUserMedia =
  24693. navigator.getUserMedia ||
  24694. navigator.webkitGetUserMedia ||
  24695. navigator.mozGetUserMedia ||
  24696. navigator.msGetUserMedia;
  24697. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24698. if (!getUserMedia) {
  24699. return Promise.reject({ code: 404 });
  24700. }
  24701. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24702. return new Promise(function(resolve, reject) {
  24703. getUserMedia.call(navigator, constraints, resolve, reject);
  24704. });
  24705. };
  24706. }
  24707. return navigator.mediaDevices.getUserMedia(constraintsData);
  24708. },
  24709. /**
  24710. * 开始录制
  24711. */
  24712. startRecording(callback) {
  24713. let _function = screenStream => {
  24714. this.addStreamStopListener(screenStream, () => {
  24715. console.log("流停止监听");
  24716. this.stopRecording();
  24717. this.$emit("streamStop", {});
  24718. // this.stopRecording();
  24719. });
  24720. var options = {
  24721. type: "video",
  24722. mimeType: "video/webm",
  24723. disableLogs: false,
  24724. getNativeBlob: false, // enable it for longer recordings
  24725. ignoreMutedMedia: false
  24726. };
  24727. // this.video.srcObject = screenStream;
  24728. this.recorder = RecordRTC(screenStream, options);
  24729. this.recorder.startRecording();
  24730. this.recorder.screen = screenStream;
  24731. this.videoStart = true;
  24732. // callback(true);
  24733. };
  24734. this.getAudioVideo({ audio: true })
  24735. .then(res => {
  24736. this.captureScreen(_function, true);
  24737. console.log("已点击允许,开启成功");
  24738. })
  24739. .catch(err => {
  24740. // console.log('浏览器不支持,请更换浏览器')
  24741. // } else {
  24742. this.captureScreen(_function, false);
  24743. console.log("请检查是否存在麦克风");
  24744. });
  24745. },
  24746. /**
  24747. * 停止录制
  24748. */
  24749. stopRecording(callback) {
  24750. this.recorder.stopRecording(() => {
  24751. // this.video.src = this.video.srcObject = null;
  24752. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24753. const url = URL.createObjectURL(this.recorder.getBlob());
  24754. const a = document.createElement("a"); //this.fileName+
  24755. let videoFile = new File(
  24756. [this.recorder.getBlob()],
  24757. this.courseDetail.title + "录屏.mp4",
  24758. {
  24759. type: "video/mp4"
  24760. }
  24761. );
  24762. let downloadUrl = URL.createObjectURL(videoFile);
  24763. if (this.$refs.classRoomHelperRef) {
  24764. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  24765. }
  24766. document.body.appendChild(a);
  24767. a.style.display = "none";
  24768. a.href = url;
  24769. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24770. a.click();
  24771. this.recorder.screen.stop();
  24772. this.recorder.destroy();
  24773. this.recorder = null;
  24774. this.videoStart = false;
  24775. // callback(false);
  24776. });
  24777. },
  24778. //初始化
  24779. captureScreen(callback, type) {
  24780. if (navigator.getDisplayMedia) {
  24781. //录制结束,文件下载
  24782. navigator
  24783. .getDisplayMedia({
  24784. video: true
  24785. })
  24786. .then(screenStream => {
  24787. if (type) {
  24788. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24789. screenStream.addTrack(mic.getTracks()[0]);
  24790. callback(screenStream);
  24791. });
  24792. } else {
  24793. callback(screenStream);
  24794. }
  24795. })
  24796. .catch(function(error) {
  24797. console.log("error", error);
  24798. });
  24799. } else if (navigator.mediaDevices.getDisplayMedia) {
  24800. navigator.mediaDevices
  24801. .getDisplayMedia({
  24802. video: true
  24803. })
  24804. .then(screenStream => {
  24805. if (type) {
  24806. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24807. screenStream.addTrack(mic.getTracks()[0]);
  24808. callback(screenStream);
  24809. });
  24810. } else {
  24811. callback(screenStream);
  24812. }
  24813. })
  24814. .catch(function(error) {
  24815. console.log("error", error);
  24816. });
  24817. } else {
  24818. var error = "getDisplayMedia API are not supported in this browser.";
  24819. console.log("error", error);
  24820. alert(error);
  24821. }
  24822. },
  24823. //流监听
  24824. addStreamStopListener(stream, callback) {
  24825. stream.addEventListener(
  24826. "ended",
  24827. function() {
  24828. callback();
  24829. callback = function() {};
  24830. },
  24831. false
  24832. );
  24833. stream.addEventListener(
  24834. "inactive",
  24835. function() {
  24836. callback();
  24837. callback = function() {};
  24838. },
  24839. false
  24840. );
  24841. stream.getTracks().forEach(function(track) {
  24842. track.addEventListener(
  24843. "ended",
  24844. function() {
  24845. callback();
  24846. callback = function() {};
  24847. },
  24848. false
  24849. );
  24850. track.addEventListener(
  24851. "inactive",
  24852. function() {
  24853. callback();
  24854. callback = function() {};
  24855. },
  24856. false
  24857. );
  24858. });
  24859. },
  24860. updateGroup() {
  24861. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24862. this.dialogVisibleGroup2 = true;
  24863. },
  24864. numberPan() {
  24865. if (
  24866. /[^\d]/.test(this.groupJson.number) ||
  24867. this.groupJson.number < 2 ||
  24868. this.groupJson.number > 10
  24869. ) {
  24870. this.$message.error("请输入2-10的数字");
  24871. this.groupJson.number = "";
  24872. }
  24873. },
  24874. updateGroupJson() {
  24875. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24876. if (
  24877. this.groupStudentUid[this.toolindex][i].length >
  24878. this.groupJson2.number
  24879. ) {
  24880. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24881. return;
  24882. }
  24883. }
  24884. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24885. this.islock = this.groupJson.islock == 1 ? true : false;
  24886. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24887. this.taskCount
  24888. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24889. let params = [
  24890. {
  24891. cid: this.id,
  24892. chapters: JSON.stringify(this.chapInfoList),
  24893. uid: this.userid,
  24894. unitIndex: this.courseType
  24895. }
  24896. ];
  24897. this.ajax
  24898. .post(this.$store.state.api + "updateWorkNew4", params)
  24899. .then(res => {
  24900. this.$message.success("设置成功");
  24901. this.getCourseDetail(2);
  24902. this.dialogVisibleGroup2 = false;
  24903. this.groupJson2 = {};
  24904. this.$forceUpdate();
  24905. })
  24906. .catch(err => {
  24907. this.$message.error("网络不佳");
  24908. console.error(err);
  24909. });
  24910. },
  24911. lockChair() {
  24912. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24913. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24914. this.updateGroupJson();
  24915. },
  24916. selectGroup(index) {
  24917. this.getCourseDetail(2, index);
  24918. },
  24919. joinGroup(index) {
  24920. if (this.groupJson.islock == 2) {
  24921. this.$message.error("位置已被锁定,无法加入");
  24922. return;
  24923. }
  24924. if (
  24925. this.groupStudent[this.toolindex][index].length >
  24926. this.groupJson.number ||
  24927. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24928. ) {
  24929. this.$message.error("位置已满,无法加入");
  24930. return;
  24931. }
  24932. let params = [
  24933. {
  24934. cid: this.id,
  24935. stage: this.courseType,
  24936. task: this.taskCount,
  24937. tool: this.toolindex,
  24938. g: index,
  24939. uid: this.userid
  24940. }
  24941. ];
  24942. this.ajax
  24943. .post(this.$store.state.api + "joinGroup", params)
  24944. .then(res => {
  24945. this.$message.success("加入成功");
  24946. this.getCourseDetail(2);
  24947. })
  24948. .catch(err => {
  24949. this.$message.error("网络不佳");
  24950. console.error(err);
  24951. });
  24952. },
  24953. exitGroup(id) {
  24954. if (this.groupJson.islock == 2) {
  24955. this.$message.error("位置已被锁定,无法退出");
  24956. return;
  24957. }
  24958. let params = [
  24959. {
  24960. gid: id
  24961. }
  24962. ];
  24963. this.ajax
  24964. .post(this.$store.state.api + "exitGroup", params)
  24965. .then(res => {
  24966. this.$message.success("退出成功");
  24967. this.getCourseDetail(2);
  24968. })
  24969. .catch(err => {
  24970. this.$message.error("网络不佳");
  24971. console.error(err);
  24972. });
  24973. },
  24974. groupUpload(index, task, gindex) {
  24975. this.taskCount = task;
  24976. this.toolindex = index;
  24977. this.groupIndex = gindex;
  24978. this.dialogVisibleGroupWork = true;
  24979. },
  24980. updateGroupChair(user) {
  24981. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24982. el.label = index;
  24983. return index != user.group;
  24984. });
  24985. this.updateGroupUser = user;
  24986. this.dialogVisibleUpdateGroup = true;
  24987. },
  24988. updateChair() {
  24989. if (
  24990. this.groupStudent[this.toolindex][this.checkChair].length >
  24991. this.groupJson.number ||
  24992. this.groupStudent[this.toolindex][this.checkChair].length ==
  24993. this.groupJson.number
  24994. ) {
  24995. this.$message.error("位置已满,无法加入");
  24996. return;
  24997. }
  24998. let params = [
  24999. {
  25000. cid: this.id,
  25001. stage: this.courseType,
  25002. task: this.taskCount,
  25003. tool: this.toolindex,
  25004. g: this.checkChair,
  25005. uid: this.updateGroupUser.userid
  25006. }
  25007. ];
  25008. this.ajax
  25009. .post(this.$store.state.api + "joinGroup", params)
  25010. .then(res => {
  25011. this.$message.success("修改成功");
  25012. this.updateGroupUser = {};
  25013. this.checkChair = "";
  25014. this.updateGroupArray = {};
  25015. this.dialogVisibleUpdateGroup = false;
  25016. this.getCourseDetail(2);
  25017. })
  25018. .catch(err => {
  25019. this.$message.error("网络不佳");
  25020. console.error(err);
  25021. });
  25022. },
  25023. deleteGroupChair(gindex) {
  25024. this.checkDeleteGroup = [];
  25025. this.deleteGroupUser = JSON.parse(
  25026. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  25027. );
  25028. this.deleteGroupArray = this.groupJson.group[gindex];
  25029. this.groupIndex = gindex;
  25030. this.dialogVisibleDeleteGroup = true;
  25031. },
  25032. async deleteChair() {
  25033. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  25034. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  25035. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  25036. this.checkDeleteGroup[i]
  25037. )
  25038. ];
  25039. let params = [
  25040. {
  25041. gid: gid.id
  25042. }
  25043. ];
  25044. var a = await this.deleteChairA(params);
  25045. if (i == this.checkDeleteGroup.length - 1) {
  25046. this.$message.success("退出成功");
  25047. this.dialogVisibleDeleteGroup = false;
  25048. this.deleteGroupUser = [];
  25049. this.deleteGroupArray = {};
  25050. this.groupIndex = "";
  25051. this.checkDeleteGroup = [];
  25052. this.getCourseDetail(2);
  25053. }
  25054. }
  25055. },
  25056. deleteChairA(params) {
  25057. return new Promise((resolve, reject) => {
  25058. this.ajax
  25059. .post(this.$store.state.api + "exitGroup", params)
  25060. .then(res => {
  25061. resolve(1);
  25062. })
  25063. .catch(err => {
  25064. this.$message.error("网络不佳");
  25065. console.error(err);
  25066. });
  25067. });
  25068. },
  25069. contract(i) {
  25070. if (this.isCloseList[i].isClose == 0) {
  25071. this.isCloseList[i].isClose = 1;
  25072. } else {
  25073. this.isCloseList[i].isClose = 0;
  25074. }
  25075. this.$forceUpdate();
  25076. },
  25077. openWordCloud(toolindex) {
  25078. this.wordCloudData = '';
  25079. let array = [];
  25080. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  25081. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  25082. array.push({ name: works });
  25083. }
  25084. if (this.isGroup) {
  25085. for (var i = 0; i < this.courseGroup.group.length; i++) {
  25086. let works = this.courseGroup.group[i].works[toolindex];
  25087. for (var j = 0; j < works.length; j++) {
  25088. let answer = JSON.parse(works[j].works)[0].answer;
  25089. array.push({ name: answer });
  25090. }
  25091. }
  25092. }
  25093. let _result = ''
  25094. array.forEach(e=>{
  25095. _result +=e.name+','
  25096. })
  25097. this.wordCloudData = _result;
  25098. this.dialogVisibleWordCloud = true;
  25099. this.wordCloudKey += 1;
  25100. },
  25101. openTips(i) {
  25102. this.tipsIndex = i;
  25103. this.downDialogVisible = true;
  25104. },
  25105. uploadWorks(i) {
  25106. this.$confirm("确定导出作业吗?", "提示", {
  25107. confirmButtonText: "确定",
  25108. cancelButtonText: "取消",
  25109. type: "warning"
  25110. })
  25111. .then(() => {
  25112. const loading = this.$loading.service({
  25113. background: "rgba(255, 255, 255, 0.7)",
  25114. target: document.body,
  25115. text: "文件加载中..."
  25116. });
  25117. const _worksStudent = this.worksStudent;
  25118. let url = [];
  25119. var counts = {};
  25120. for (var l = 0; l < _worksStudent[i].length; l++) {
  25121. var item = _worksStudent[i][l];
  25122. var name = item.sName;
  25123. if (!counts.hasOwnProperty(name)) {
  25124. counts[name] = 0;
  25125. } else {
  25126. counts[name]++;
  25127. }
  25128. if (counts[name] > 0) {
  25129. item.sName += " (" + counts[name] + ")";
  25130. }
  25131. }
  25132. for (var l = 0; l < _worksStudent[i].length; l++) {
  25133. var item = _worksStudent[i][l];
  25134. if (
  25135. item.works.indexOf(
  25136. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  25137. ) !== -1 &&
  25138. item.works.indexOf("img") === -1
  25139. ) {
  25140. url.push({ name: item.sName, url: item.works });
  25141. }
  25142. }
  25143. // var toolList = [
  25144. // { name: "电子白板", tool: 1 },
  25145. // { name: "思维导图", tool: 3 },
  25146. // { name: "协同文档", tool: 6 },
  25147. // { name: "思维网格", tool: 7 },
  25148. // { name: "素材库", tool: 8 },
  25149. // { name: "学习资料", tool: 17 },
  25150. // { name: "便签", tool: 2 },
  25151. // { name: "问卷调查", tool: 4 },
  25152. // { name: "选择题", tool: 45 },
  25153. // { name: "倒计时", tool: 10 },
  25154. // { name: "问答", tool: 15 },
  25155. // { name: "课程设计", tool: 26 },
  25156. // { name: "训练服务器", tool: 18 },
  25157. // { name: "作业提交", tool: 16 },
  25158. // { name: "批量上传", tool: 50 },
  25159. // { name: "AIoT Blockly", tool: 21 },
  25160. // { name: "AI Python", tool: 23 },
  25161. // { name: "AI Blockly", tool: 24 },
  25162. // { name: "目标管理", tool: 25 },
  25163. // { name: "数学画板", tool: 31 },
  25164. // { name: "翻译", tool: 28 },
  25165. // { name: "魔盒识字", tool: 37 },
  25166. // { name: "数学画板", tool: 31 },
  25167. // { name: "24点", tool: 38 },
  25168. // { name: "GeoGebra", tool: 39 },
  25169. // { name: "源码编辑", tool: 32 },
  25170. // { name: "个人评价", tool: 40 },
  25171. // { name: "选择匹配", tool: 41 },
  25172. // { name: "汉字宫", tool: 44 },
  25173. // { name: "排序", tool: 47 },
  25174. // { name: "表格", tool: 48 },
  25175. // { name: "文档", tool: 52 },
  25176. // { name: "学生分组", tool: 49 },
  25177. // { name: "CocoPi", tool: 57 },
  25178. // { name: "模拟驾驶", tool: 58 },
  25179. // { name: "路径搜索", tool: 59 },
  25180. // { name: "深度学习", tool: 60 },
  25181. // { name: "全历史", tool: 61 },
  25182. // { name: "交互视频", tool: 62 },
  25183. // { name: "海龟编程", tool: 63 },
  25184. // { name: "挑人", tool: 65 },
  25185. // { name: "公式编辑", tool: 66 },
  25186. // { name: "分子结构", tool: 67 },
  25187. // { name: "时间轴", tool: 68 },
  25188. // ];
  25189. // var toolName = "";
  25190. // for(var w = 0;w<toolList.length;w++){
  25191. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  25192. // toolName = toolList[w].name;
  25193. // }
  25194. // }
  25195. console.log(url);
  25196. this.downLoadAll(url, loading);
  25197. })
  25198. .catch(() => {});
  25199. },
  25200. downLoadAll(url, loading) {
  25201. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  25202. const zip = new JSZip();
  25203. const cache = {};
  25204. const promises = [];
  25205. data.forEach(item => {
  25206. const promise = getFile(item.url).then(data => {
  25207. if (data.data != 1) {
  25208. // 下载文件, 并存成ArrayBuffer对象
  25209. const file_name =
  25210. item.name +
  25211. "." +
  25212. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  25213. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  25214. cache[file_name] = data.data;
  25215. }
  25216. });
  25217. promises.push(promise);
  25218. });
  25219. Promise.all(promises).then(() => {
  25220. zip.generateAsync({ type: "blob" }).then(content => {
  25221. // 生成二进制流
  25222. FileSaver.saveAs(
  25223. content,
  25224. this.courseDetail.title + "-" + "作业提交工具.zip"
  25225. ); // 利用file-saver保存文件 自定义文件名
  25226. setTimeout(() => {
  25227. loading.close();
  25228. }, 2000);
  25229. });
  25230. });
  25231. },
  25232. pickStudent(stu) {
  25233. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  25234. return;
  25235. }
  25236. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  25237. confirmButtonText: "确定",
  25238. cancelButtonText: "取消",
  25239. type: "warning"
  25240. })
  25241. .then(() => {
  25242. let params = [
  25243. {
  25244. uid: stu.userid,
  25245. cid: this.id,
  25246. stage: this.courseType,
  25247. task: this.taskCount,
  25248. tool: this.toolindex
  25249. }
  25250. ];
  25251. this.ajax
  25252. .post(this.$store.state.api + "updateCoursePick", params)
  25253. .then(res => {
  25254. this.$message.success("操作成功");
  25255. this.getPick();
  25256. })
  25257. .catch(err => {
  25258. this.$message.error("网络不佳");
  25259. console.error(err);
  25260. });
  25261. })
  25262. .catch(() => {});
  25263. },
  25264. selectUser() {
  25265. let params = {
  25266. userid: this.userid
  25267. };
  25268. this.ajax
  25269. .get(this.$store.state.api + "selectUser", params)
  25270. .then(res => {
  25271. this.userMes = res.data[0];
  25272. })
  25273. .catch(err => {
  25274. console.error(err);
  25275. });
  25276. },
  25277. setEngText(i) {
  25278. this.newEngIndex = i;
  25279. this.$forceUpdate();
  25280. },
  25281. addCorrect() {
  25282. this.$confirm("你确定提交批改嘛?", "提示", {
  25283. confirmButtonText: "确定",
  25284. showCancelButton: false,
  25285. closeOnClickModal: false,
  25286. type: "warning"
  25287. })
  25288. .then(() => {
  25289. let params = {
  25290. cid: this.id,
  25291. s: parseInt(this.courseType),
  25292. t: this.taskCount,
  25293. tool: this.toolindex,
  25294. wid: this.engWid,
  25295. c: this.userid,
  25296. w:
  25297. this.userMes[0].type == 2
  25298. ? JSON.parse(this.newEnglishList)
  25299. : this.newEngIndex == -1 &&
  25300. this.isNoUserid == true &&
  25301. this.newEnglishList1.length
  25302. ? JSON.stringify(this.oldEnglishJson1)
  25303. : this.newEngIndex == -1
  25304. ? JSON.stringify(this.newEnglishList)
  25305. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  25306. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  25307. : ""
  25308. };
  25309. this.ajax
  25310. .get(this.$store.state.api + "addEngC", params)
  25311. .then(res => {
  25312. this.$message.success("提交成功");
  25313. this.engUpdateDialogVisible = false;
  25314. })
  25315. .catch(err => {
  25316. console.error(err);
  25317. });
  25318. })
  25319. .catch(() => {});
  25320. },
  25321. selectEngC(id, z) {
  25322. let params = {
  25323. workid: id
  25324. };
  25325. this.ajax
  25326. .get(this.$store.state.api + "selectEngC", params)
  25327. .then(res => {
  25328. if (res.data[0].length == 0) {
  25329. this.newEnglishList.engTitle = z.engTitle;
  25330. this.newEnglishList.engText = z.engText;
  25331. } else {
  25332. var a = res.data[0];
  25333. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  25334. if (this.userMes[0].type == 2) {
  25335. var snum = 0;
  25336. for (var i = 0; i < a.length; i++) {
  25337. if (this.userMes[0].userid == a[i].correct) {
  25338. this.newEnglishList = JSON.parse(a[i].cWork);
  25339. snum = 1;
  25340. }
  25341. }
  25342. if (snum == 0) {
  25343. this.newEnglishList = { engTitle: "", engText: "" };
  25344. this.newEnglishList.engTitle = z.engTitle;
  25345. this.newEnglishList.engText = z.engText;
  25346. }
  25347. } else if (this.userMes[0].type == 1) {
  25348. var num = 0;
  25349. for (var w = 0; w < a.length; w++) {
  25350. if (this.userMes[0].userid == a[w].correct) {
  25351. num = 1;
  25352. }
  25353. }
  25354. if (num == 0) {
  25355. this.isNoUserid = true;
  25356. var c = JSON.parse(JSON.stringify(z));
  25357. this.oldEnglishJson1 = c;
  25358. } else {
  25359. this.isNoUserid = false;
  25360. }
  25361. var b = a.sort((item, index) => {
  25362. console.log(item);
  25363. if (item.correct === this.userMes[0].userid) {
  25364. return -1; // 将a移到前面
  25365. } else if (index.correct === this.userMes[0].userid) {
  25366. return 1; // 将b移到前面
  25367. } else {
  25368. return 0; // 保持默认顺序
  25369. }
  25370. });
  25371. for (var p = 0; p < b.length; p++) {
  25372. for (var y = 0; y < ppp.length; y++) {
  25373. if (b[p].id == ppp[y].id) {
  25374. b[p].cWork = JSON.parse(ppp[y].cWork);
  25375. break;
  25376. }
  25377. }
  25378. }
  25379. this.newEnglishList1 = b;
  25380. }
  25381. }
  25382. this.greyType = false;
  25383. setTimeout(() => {
  25384. this.topHeight = document.querySelectorAll(
  25385. ".engUpTop"
  25386. )[0].offsetHeight;
  25387. if (this.newEnglishList1.length > 0) {
  25388. if (this.isNoUserid == true) {
  25389. this.engListLength = this.newEnglishList1.length + 1;
  25390. this.newEngIndex = -1;
  25391. } else {
  25392. this.engListLength = this.newEnglishList1.length;
  25393. this.newEngIndex = 0;
  25394. }
  25395. }
  25396. if (this.userMes[0].type == 2) {
  25397. this.correctWord = Diff.diffWordsWithSpace(
  25398. this.oldEnglishJson.engText,
  25399. this.newEnglishList.engText
  25400. );
  25401. } else if (
  25402. this.newEngIndex == -1 &&
  25403. this.isNoUserid == true &&
  25404. this.newEnglishList1.length
  25405. ) {
  25406. this.correctWord = Diff.diffWordsWithSpace(
  25407. this.oldEnglishJson.engText,
  25408. this.oldEnglishJson1.engText
  25409. );
  25410. } else if (this.newEngIndex == -1) {
  25411. this.correctWord = Diff.diffWordsWithSpace(
  25412. this.oldEnglishJson.engText,
  25413. this.newEnglishList.engText
  25414. );
  25415. } else if (
  25416. this.newEngIndex > -1 &&
  25417. this.newEnglishList1.length > 0
  25418. ) {
  25419. this.correctWord = Diff.diffWordsWithSpace(
  25420. this.oldEnglishJson.engText,
  25421. this.newEnglishList1[this.newEngIndex].cWork.engText
  25422. );
  25423. }
  25424. }, 500);
  25425. this.engUpdateDialogVisible = true;
  25426. this.$forceUpdate();
  25427. })
  25428. .catch(err => {
  25429. console.error(err);
  25430. });
  25431. },
  25432. getPick() {
  25433. let params = {
  25434. cid: this.id
  25435. };
  25436. this.ajax
  25437. .get(this.$store.state.api + "getPick", params)
  25438. .then(res => {
  25439. let array = [];
  25440. for (var i = 0; i < res.data[0].length; i++) {
  25441. array.push(res.data[0][i].userid);
  25442. }
  25443. this.isPickStudent = array;
  25444. if (array.indexOf(this.userid) !== -1) {
  25445. this.$confirm("你被老师选到啦!", "提示", {
  25446. confirmButtonText: "确定",
  25447. showCancelButton: false,
  25448. closeOnClickModal: false,
  25449. type: "warning"
  25450. })
  25451. .then(() => {
  25452. let pa = [
  25453. {
  25454. uid: this.userid,
  25455. cid: this.id
  25456. }
  25457. ];
  25458. this.ajax
  25459. .post(this.$store.state.api + "deletePick", pa)
  25460. .then(res => {
  25461. this.getPick();
  25462. })
  25463. .catch(err => {
  25464. this.$message.error("网络不佳");
  25465. console.error(err);
  25466. });
  25467. })
  25468. .catch(() => {});
  25469. }
  25470. })
  25471. .catch(err => {
  25472. this.$message.error("网络不佳");
  25473. console.error(err);
  25474. });
  25475. },
  25476. foldEva() {
  25477. if (
  25478. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25479. this.taskCount
  25480. ].isEvaFold2
  25481. ) {
  25482. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25483. this.taskCount
  25484. ].isEvaFold2 = false;
  25485. } else {
  25486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  25487. this.taskCount
  25488. ].isEvaFold2 = true;
  25489. setTimeout(() => {
  25490. this.checkEva();
  25491. setTimeout(() => {
  25492. this.checkEva();
  25493. }, 500);
  25494. }, 0);
  25495. }
  25496. this.$forceUpdate();
  25497. },
  25498. panToolHeight(tool) {
  25499. var _tool = document.querySelectorAll("#" + tool)[0];
  25500. var _toolA = _tool ? _tool.offsetHeight : 0;
  25501. var _toolC = 0;
  25502. var _toolC =
  25503. _tool && _tool.children && _tool.children[0]
  25504. ? _tool.children[0].offsetHeight + 50
  25505. : 0;
  25506. let boolean2 = _toolA > _toolC ? true : false;
  25507. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  25508. this.$forceUpdate();
  25509. },
  25510. async checkLink(url) {
  25511. // console.log(url)
  25512. let _url = url;
  25513. try {
  25514. const response = await fetch(url);
  25515. if (!response.ok) {
  25516. _url = await this.checkLink(
  25517. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25518. encodeURIComponent(
  25519. _url.split(
  25520. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  25521. )[1]
  25522. )
  25523. );
  25524. }
  25525. // console.log(response.ok)
  25526. } catch (error) {
  25527. console.error("Error checking link:", error);
  25528. // console.log(false)
  25529. _url = await this.checkLink(
  25530. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  25531. encodeURIComponent(
  25532. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  25533. )
  25534. );
  25535. }
  25536. // console.log(_url)
  25537. return _url;
  25538. },
  25539. setClassRoomHelperWidth(width) {
  25540. this.classRoomHelperWidth = width;
  25541. },
  25542. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  25543. this.$refs.choseWorksDetailDialogRef.open({
  25544. toolType:tooc,
  25545. tType: this.tType,
  25546. toolIndex: toolIndex
  25547. });
  25548. this.changeSplitScreenBehavior({
  25549. code: 1,
  25550. form: {
  25551. toolType:tooc,
  25552. toolIndex: toolIndex,
  25553. courseType: this.courseType,
  25554. taskCount: this.taskCount,
  25555. type: 0
  25556. }
  25557. });
  25558. },
  25559. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  25560. this.$refs.statisticalAnalysisRef.open({
  25561. worksStudent: this.worksStudent[toolIndex],
  25562. tType: this.tType,
  25563. toolIndex: toolIndex
  25564. });
  25565. this.changeSplitScreenBehavior({
  25566. code: 2,
  25567. form: {
  25568. toolType:4,
  25569. courseType: this.courseType,
  25570. taskCount: this.taskCount,
  25571. toolIndex: toolIndex,
  25572. type: 0
  25573. }
  25574. });
  25575. },
  25576. statisticalAnalysisRefresh(toolIndex) {
  25577. this.$refs.statisticalAnalysisRef.refreshData({
  25578. worksStudent: this.worksStudent[toolIndex],
  25579. tType: this.tType,
  25580. toolIndex: toolIndex
  25581. });
  25582. },
  25583. async splitScreenBehavior(type = 0) {
  25584. // return;
  25585. if (this.splitScreenData.loading)
  25586. return this.$message.info("操作过快,请稍等");
  25587. if (type == 0) {
  25588. //关闭分屏
  25589. this.splitScreenData.isOpen = false;
  25590. // this.splitScreenData.userId = "";
  25591. // this.splitScreenData.uid = "";
  25592. this.splitScreenData.behavior = null;
  25593. await this.updateSplitScreenData(1);
  25594. this.$message.success("已关闭分屏模式");
  25595. this.studentFreePreview(false);
  25596. this.OpenJobPreview(false);
  25597. // this.followingMode(false);
  25598. } else if (type == 1) {
  25599. //开启分屏
  25600. this.splitScreenData.isOpen = true;
  25601. this.splitScreenData.userId = this.userid;
  25602. this.splitScreenData.uid = this.splitScreenData.myUid;
  25603. this.splitScreenData.behavior = null;
  25604. let status = await this.updateSplitScreenData(0);
  25605. if (status == 1) {
  25606. this.$message.success("已开启分屏");
  25607. this.studentFreePreview(false);
  25608. this.OpenJobPreview(true);
  25609. this.changeSplitScreenBehavior({form:{}})
  25610. // this.followingMode(true);
  25611. } else {
  25612. this.splitScreenData.isOpen = false;
  25613. this.splitScreenData.userId = "";
  25614. this.splitScreenData.uid = "";
  25615. this.splitScreenData.behavior = null;
  25616. this.$message.success("分屏开启失败");
  25617. }
  25618. }
  25619. },
  25620. enterFullScreen() {
  25621. let element = document.documentElement;
  25622. if (element.requestFullscreen) {
  25623. element.requestFullscreen();
  25624. } else if (element.mozRequestFullScreen) { /* Firefox */
  25625. element.mozRequestFullScreen();
  25626. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25627. element.webkitRequestFullscreen();
  25628. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25629. element.msRequestFullscreen();
  25630. }
  25631. },
  25632. exitFullScreen() {
  25633. if (document.exitFullscreen) {
  25634. document.exitFullscreen();
  25635. } else if (document.mozCancelFullScreen) { /* Firefox */
  25636. document.mozCancelFullScreen();
  25637. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25638. document.webkitExitFullscreen();
  25639. } else if (document.msExitFullscreen) { /* IE/Edge */
  25640. document.msExitFullscreen();
  25641. }
  25642. },
  25643. confirmOpen(){
  25644. this.splitScreenData.isOpen = true;
  25645. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25646. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25647. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25648. this.confirmOpenDig = false
  25649. if (!document.fullscreenElement) {
  25650. this.enterFullScreen();
  25651. }
  25652. // if (this.timer2) {
  25653. // clearInterval(this.timer2);
  25654. // this.timer2 = null;
  25655. // console.log('清除定时器');
  25656. // }
  25657. // this.timer2 = setInterval(()=> {
  25658. // this.getSplitScreenData();//获取分屏数据
  25659. // }, 1000);
  25660. this.IsLookOpen = flase
  25661. this.$message.success("分屏模式已开启");
  25662. },
  25663. getSplitScreenData() {
  25664. // return;
  25665. // if (this.tType != 1) return;
  25666. let params = {
  25667. cid: this.id
  25668. };
  25669. this.ajax
  25670. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25671. .then(async res => {
  25672. let data = res.data[0][0]["splitScreenData"];
  25673. console.log("获取了分屏数:", data);
  25674. if (data) {
  25675. data = JSON.parse(data);
  25676. if (
  25677. !this.splitScreenData.isOpen &&
  25678. data.isOpen &&
  25679. this.splitScreenData.myUid == data.uid
  25680. ) {
  25681. this.splitScreenData.isOpen = false;
  25682. this.splitScreenData.userId = "";
  25683. this.splitScreenData.uid = "";
  25684. this.splitScreenData.behavior = null;
  25685. await this.updateSplitScreenData(1);
  25686. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25687. this.confirmOpenDig = true
  25688. this.confirmOpenDigData = data
  25689. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25690. this.splitScreenData.isOpen = false;
  25691. this.splitScreenData.userId = "";
  25692. this.splitScreenData.uid = "";
  25693. this.splitScreenData.behavior = null;
  25694. this.$message.error("已结束分屏模式");
  25695. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25696. this.splitScreenData.isOpen = true;
  25697. this.splitScreenData.uid = data.uid;
  25698. this.splitScreenData.userId = data.userId;
  25699. this.splitScreenData.behavior = data.behavior;
  25700. }
  25701. this.doSplitScreenBehavior();
  25702. } else {
  25703. if (this.splitScreenData.isOpen) {
  25704. this.splitScreenData.isOpen = false;
  25705. this.splitScreenData.userId = "";
  25706. this.splitScreenData.uid = "";
  25707. this.splitScreenData.behavior = null;
  25708. this.$message.error("已结束分屏模式");
  25709. // if (this.timer2) {
  25710. // clearInterval(this.timer2);
  25711. // this.timer2 = null;
  25712. // }
  25713. // this.timer2 = setInterval(()=> {
  25714. // this.getSplitScreenData();//获取分屏数据
  25715. // }, 5000);
  25716. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25717. confirmButtonText: '确定', //确认按钮的文字
  25718. showCancelButton: false, //是否显示取消按钮
  25719. showClose: false, //是否显示关闭按钮
  25720. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25721. type: "warning",
  25722. })
  25723. .then(() => {
  25724. if (document.fullscreenElement) {
  25725. this.exitFullScreen();
  25726. }
  25727. })
  25728. .catch(() => {});
  25729. }
  25730. }
  25731. })
  25732. .catch(e => {
  25733. console.log("获取分屏数出错:", e);
  25734. });
  25735. },
  25736. doSplitScreenBehavior() {
  25737. if (
  25738. this.splitScreenData.isOpen &&
  25739. this.splitScreenData.uid != this.splitScreenData.myUid
  25740. ) {
  25741. let behavior = this.splitScreenData.behavior;
  25742. if (behavior) {
  25743. if (behavior.code === 99) {
  25744. //初始化
  25745. this.fullDialogVisible = false;
  25746. if(this.$refs.choseWorksDetailDialogRef.show){
  25747. this.$refs.choseWorksDetailDialogRef.close();
  25748. }
  25749. if(this.$refs.statisticalAnalysisRef.show){
  25750. this.$refs.statisticalAnalysisRef.close();
  25751. }
  25752. }
  25753. if (behavior.code === 0) {
  25754. //开启内容列表弹窗
  25755. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25756. }else{
  25757. this.fullDialogVisible = false;
  25758. }
  25759. if (behavior.code === 1) {
  25760. //关于选择题的作业详细的操作
  25761. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25762. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25763. this.courseType = behavior.form.courseType;
  25764. this.taskCount = behavior.form.taskCount;
  25765. }
  25766. this.$nextTick(() => {
  25767. if (this.$refs.choseWorksDetailDialogRef.show) {
  25768. //已经打开了
  25769. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25770. } else {
  25771. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25772. }
  25773. });
  25774. }else{
  25775. this.$refs.choseWorksDetailDialogRef.close()
  25776. }
  25777. if(behavior.code === 2){
  25778. if(this.$refs.statisticalAnalysisRef.show){
  25779. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25780. }else{
  25781. this.$refs.statisticalAnalysisRef.open({
  25782. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25783. tType: this.tType,
  25784. toolIndex: behavior.form.toolIndex
  25785. });
  25786. }
  25787. }else{
  25788. this.$refs.statisticalAnalysisRef.close();
  25789. }
  25790. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25791. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25792. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25793. if (behavior.form.courseType != this.courseType ||
  25794. behavior.form.taskCount != this.taskCount ||
  25795. behavior.form.toolType != this.toolindex
  25796. ) {
  25797. var a = document.scrollingElement;
  25798. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25799. if (target) {
  25800. target.scrollIntoView(true);
  25801. setTimeout(()=>{
  25802. let scrollBody = document.querySelector('.body_student').parentElement
  25803. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25804. }, 0);
  25805. // setTimeout(() => {
  25806. // a.scrollTop = 0
  25807. // }, 0);
  25808. }
  25809. }
  25810. if(this.courseType !=behavior.form.courseType){
  25811. this.courseType = behavior.form.courseType;
  25812. }
  25813. if(this.taskCount !=behavior.form.taskCount){
  25814. this.taskCount = behavior.form.taskCount;
  25815. }
  25816. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25817. this.toolindex = behavior.form.toolType;
  25818. }
  25819. // if(behavior.form.navId){
  25820. // this.navId = behavior.form.navId
  25821. // }
  25822. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25823. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25824. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25825. this.getCourseDetail()
  25826. }
  25827. this.setContent2(false)
  25828. }
  25829. } else {
  25830. }
  25831. }
  25832. },
  25833. updateSplitScreenData(empty = 0) {
  25834. return new Promise(resolve => {
  25835. if(this.userid!==this.courseDetail.userid){
  25836. if(!this.courseDetail.userid){
  25837. return setTimeout(()=>{
  25838. this.updateSplitScreenData(empty)
  25839. },2000)
  25840. }
  25841. return;
  25842. };
  25843. if (
  25844. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25845. this.splitScreenData.userId == this.userid
  25846. ) {
  25847. this.splitScreenData.loading = true;
  25848. let params = [
  25849. {
  25850. cid: this.id,
  25851. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25852. }
  25853. ];
  25854. this.ajax
  25855. .post(
  25856. this.$store.state.api + "update_courseSplitScreenData",
  25857. params
  25858. )
  25859. .then(res => {
  25860. this.splitScreenData.loading = false;
  25861. if (res.data == 1) {
  25862. resolve(1);
  25863. console.log("修改分屏数据成功");
  25864. }
  25865. })
  25866. .catch(e => {
  25867. this.splitScreenData.loading = false;
  25868. console.log("修改分屏数据失败", e);
  25869. resoleve(0);
  25870. });
  25871. } else if (empty == 2 && this.tType == 1) {
  25872. let params = [
  25873. {
  25874. cid: this.id,
  25875. nData: ""
  25876. }
  25877. ];
  25878. return this.ajax
  25879. .post(
  25880. this.$store.state.api + "update_courseSplitScreenData",
  25881. params
  25882. )
  25883. .then(_ => resolve(1))
  25884. .catch(_ => resolve(0));
  25885. } else {
  25886. return resolve(0);
  25887. }
  25888. });
  25889. },
  25890. changeSplitScreenBehavior(newValue) {
  25891. if (
  25892. this.splitScreenData.isOpen &&
  25893. this.splitScreenData.uid == this.splitScreenData.myUid
  25894. ) {
  25895. let _behavior = null;
  25896. if(!newValue){
  25897. _behavior = {}
  25898. }else{
  25899. _behavior = newValue
  25900. }
  25901. if(_behavior.form){
  25902. _behavior.form.taskCount = this.taskCount;
  25903. _behavior.form.courseType = this.courseType
  25904. }else{
  25905. _behavior.form = {
  25906. taskCount:this.taskCount,
  25907. courseType:this.courseType
  25908. }
  25909. }
  25910. this.splitScreenData.behavior = _behavior;
  25911. this.updateSplitScreenData(0);
  25912. }
  25913. },
  25914. studentFreePreview(flag) {
  25915. this.IsLookOpen = flag;
  25916. this.followingMode(flag)
  25917. this.updateLookOpen();
  25918. },
  25919. OpenJobPreview(flag) {
  25920. this.sIsOpen = flag;
  25921. this.updateSLook();
  25922. },
  25923. followingMode(flag) {
  25924. this.IsFollow = flag;
  25925. this.updateFollow();
  25926. },
  25927. StulookMode(flag) {
  25928. this.IsStulook = flag;
  25929. this.updateIsStulook();
  25930. },
  25931. getScoreList() {
  25932. let params = {
  25933. cid: this.id
  25934. };
  25935. this.ajax
  25936. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25937. .then(res => {
  25938. let result = res.data;
  25939. this.scoreList.datalist = result[0];
  25940. this.scoreList.isScoreList = result[1];
  25941. })
  25942. .catch(err => {
  25943. console.error(err);
  25944. });
  25945. }
  25946. },
  25947. directives: {
  25948. // 使用局部注册指令的方式
  25949. resize: {
  25950. // 指令的名称
  25951. bind(el, binding) {
  25952. // el为绑定的元素,binding为绑定给指令的对象
  25953. let width = "",
  25954. height = "";
  25955. function isReize() {
  25956. const style = document.defaultView.getComputedStyle(el);
  25957. if (width !== style.width || height !== style.height) {
  25958. binding.value(); // 关键
  25959. }
  25960. width = style.width;
  25961. height = style.height;
  25962. }
  25963. el.__vueSetInterval__ = setInterval(isReize, 300);
  25964. },
  25965. unbind(el) {
  25966. clearInterval(el.__vueSetInterval__);
  25967. }
  25968. },
  25969. autoHeight: {
  25970. update(el, binding) {
  25971. const { value } = binding;
  25972. if (value && typeof value === "number") {
  25973. el.style.height = `${value}px`;
  25974. } else {
  25975. el.style.height = "auto";
  25976. }
  25977. },
  25978. componentUpdated(el) {
  25979. el.style.height = `${el.scrollHeight + 5}px`;
  25980. }
  25981. }
  25982. },
  25983. beforeDestroy() {
  25984. window.onresize = null;
  25985. clearInterval(this.timer);
  25986. this.timer = null;
  25987. clearInterval(this.timer2);
  25988. this.timer2 = null;
  25989. clearInterval(this.opertimer);
  25990. this.opertimer = null;
  25991. this.updateSplitScreenData(1);
  25992. if(this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  25993. let endTime = new Date().toLocaleString("zh-CN", {
  25994. hour12: false,
  25995. timeZone: "Asia/Shanghai"
  25996. }).replace(/\//g, "-")
  25997. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  25998. this.syncClassData({
  25999. courseId: this.id,
  26000. title: this.courseDetail.title,
  26001. courseGrade: this.tcid2,
  26002. courseTime: courseTime,
  26003. startTime: this.startTime,
  26004. endTime: endTime,
  26005. })
  26006. console.log('同步数据')
  26007. }
  26008. },
  26009. computed: {
  26010. renderedFormula2() {
  26011. return function(val){
  26012. // 处理换行符和HTML实体
  26013. const normalized = val
  26014. .replace(/&amp;/g, '&')
  26015. .replace(/<br\/?>/g, '\n');
  26016. // 匹配行内公式($...$)和块级公式($$...$$)
  26017. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  26018. try {
  26019. return katex.renderToString(expr.trim(), {
  26020. displayMode: false,
  26021. throwOnError: false,
  26022. macros: {
  26023. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  26024. }
  26025. });
  26026. } catch (e) {
  26027. console.warn('KaTeX渲染失败:', e);
  26028. return `<span style="color:red">${expr}</span>`;
  26029. }
  26030. })
  26031. }
  26032. },
  26033. renderedFormula() {
  26034. return function(val){
  26035. try {
  26036. // 判断是否含有HTML标签,<tag ...>...</tag>
  26037. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  26038. if (!hasTag) {
  26039. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  26040. // 纯文本,整体渲染
  26041. try {
  26042. return katex.renderToString(val.trim(), {
  26043. throwOnError: false,
  26044. strict: false,
  26045. output: "htmlAndMathml"
  26046. });
  26047. } catch (e) {
  26048. return val; // 渲染失败原样输出
  26049. }
  26050. } else {
  26051. // 有标签,对每个标签内容渲染
  26052. return val.replace(
  26053. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  26054. (match, tag, attrs, inner) => {
  26055. let html;
  26056. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  26057. try {
  26058. html = katex.renderToString(inner.trim(), {
  26059. throwOnError: false,
  26060. strict: false,
  26061. output: "htmlAndMathml"
  26062. });
  26063. } catch (e) {
  26064. html = inner;
  26065. }
  26066. return `<${tag}${attrs}>${html}</${tag}>`;
  26067. }
  26068. );
  26069. }
  26070. } catch (e) {
  26071. console.error('KaTeX渲染错误:', e);
  26072. return val;
  26073. }
  26074. }
  26075. },
  26076. isAndroid() {
  26077. return /Android/i.test(navigator.userAgent);
  26078. },
  26079. getHeight() {
  26080. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  26081. },
  26082. contentConvent() {
  26083. return function(c) {
  26084. return c
  26085. ? c
  26086. .replaceAll(/\r\n/g, "<br/>")
  26087. .replaceAll(/\n/g, "<br/>")
  26088. .replaceAll(/\s/g, " &nbsp")
  26089. : "";
  26090. };
  26091. },
  26092. commentRight() {
  26093. if (
  26094. !this.orgArray.includes(this.org) &&
  26095. !this.oidArray.includes(this.oid)
  26096. ) {
  26097. return "35px";
  26098. }
  26099. return `calc(${this.classRoomHelperWidth} + 5px)`;
  26100. // if(this.$refs["classRoomHelperRef"].type==0){
  26101. // return "100px";
  26102. // }else if(this.$refs["classRoomHelperRef"].type==1){
  26103. // return "502px"
  26104. // }else{
  26105. // return "0px"
  26106. // }
  26107. },
  26108. checkUpload() {
  26109. return function() {
  26110. var studentK = [];
  26111. if (this.plworkFile.length > 0) {
  26112. for (var z = 0; z < this.plworkFile.length; z++) {
  26113. studentK.push(this.plworkFile[z].username);
  26114. }
  26115. studentK = studentK.join(",");
  26116. }
  26117. var a = this.uploadStudentJuri.filter(el => {
  26118. return studentK.indexOf(el.userid) == -1;
  26119. });
  26120. return a;
  26121. };
  26122. },
  26123. getSName() {
  26124. return function(name) {
  26125. var check = name;
  26126. this.uploadStudentJuri.forEach(el => {
  26127. if (el.userid == check) {
  26128. check = el.name ? el.name : el.username;
  26129. }
  26130. });
  26131. return check;
  26132. };
  26133. },
  26134. getImgList() {
  26135. return function(val) {
  26136. let srcList = []; // 定义一个数组用来接收后面的img地址
  26137. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  26138. match,
  26139. capture
  26140. ) {
  26141. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  26142. srcList.push(capture);
  26143. });
  26144. return srcList;
  26145. };
  26146. },
  26147. retrnToolHeight() {
  26148. return function(tool) {
  26149. var _tool = document.querySelectorAll("#" + tool)[0];
  26150. return _tool
  26151. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  26152. 30 +
  26153. "px"
  26154. : 0;
  26155. };
  26156. },
  26157. Correct() {
  26158. return function(c) {
  26159. let w = "";
  26160. let a = this.correctWord;
  26161. for (var k = 0; k < a.length; k++) {
  26162. //diffWordsWithSpace
  26163. if (a.length > 1) {
  26164. if (a[k].added == true) {
  26165. w +=
  26166. '<span style="background-color: green;color:#fff">' +
  26167. a[k].value +
  26168. "</span>";
  26169. } else if (a[k].removed == true) {
  26170. w +=
  26171. '<span style="text-decoration: line-through;color:red">' +
  26172. a[k].value +
  26173. "</span>";
  26174. } else {
  26175. w += "<span>" + a[k].value + "</span>";
  26176. }
  26177. } else {
  26178. w = c;
  26179. }
  26180. //diffChars方法
  26181. // if(w == ""){
  26182. // if(a.length > 1){
  26183. // if(a[k].added == true){
  26184. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  26185. // }else if(a[k].removed == true){
  26186. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  26187. // }
  26188. // }else{
  26189. // w = c
  26190. // }
  26191. // }else{
  26192. // if(k == a.length - 1){
  26193. // if(a[k].added == true){
  26194. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  26195. // }else if(a[k].removed == true){
  26196. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  26197. // }
  26198. // }else{
  26199. // if(a[k].added == true){
  26200. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  26201. // }else if(a[k].removed == true){
  26202. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  26203. // }
  26204. // }
  26205. // }
  26206. }
  26207. c = w;
  26208. return c;
  26209. };
  26210. },
  26211. },
  26212. mounted() {
  26213. this.startTime = new Date().toLocaleString("zh-CN", {
  26214. hour12: false,
  26215. timeZone: "Asia/Shanghai"
  26216. }).replace(/\//g, "-")
  26217. this.updateSplitScreenData(2);
  26218. this.splitScreenData.myUid = uuidv4();
  26219. document.body.addEventListener("click", e => {
  26220. if (this.isUpdateToolDetail1) {
  26221. this.updateToolDetail(this.toolDetailIndex);
  26222. }
  26223. });
  26224. try {
  26225. if (this.screenType == 2) {
  26226. window.topU.postMessage({ allScreen: 4 }, "*");
  26227. } else if (this.screenType == 3) {
  26228. window.topU.postMessage({ allScreen: 5 }, "*");
  26229. } else if (this.screenType == 1) {
  26230. window.topU.postMessage({ allScreen: 6 }, "*");
  26231. }
  26232. } catch (error) {
  26233. console.log(error)
  26234. }
  26235. this.setOperationTime();
  26236. this.selectEva();
  26237. this.getCourseDetail(10);
  26238. this.selectCount();
  26239. this.getHomeWork();
  26240. this.selectUser();
  26241. this.getAIJ();
  26242. this.contentDialog = false;
  26243. this.setContent2(true);
  26244. if (this.tType == 4) {
  26245. this.pzDialog = true;
  26246. this.selectPz();
  26247. }
  26248. // 获取评分列表
  26249. this.getScoreList();
  26250. document.scrollingElement.scrollTop = 0;
  26251. window.addEventListener("resize", () => {
  26252. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  26253. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  26254. if (this.showType == 2 || this.showType == 3) {
  26255. document.getElementsByClassName("navBox")[0].style.height =
  26256. a - 40 + 0 + "px";
  26257. } else {
  26258. document.getElementsByClassName("navBox")[0].style.height =
  26259. a - 40 + "px";
  26260. }
  26261. });
  26262. let _this = this;
  26263. setTimeout(() => {
  26264. // _this.vedioTime = [];
  26265. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  26266. // _this.vedioTime[i] = document.getElementsByClassName(
  26267. // "vjs-duration-display"
  26268. // )[i].textContent;
  26269. // }
  26270. }, 1000);
  26271. }
  26272. };
  26273. </script>
  26274. <style scoped>
  26275. @media screen and (max-width: 1280px) {
  26276. /* .courseIndex > div:first-child(2) {
  26277. width: 15% !important;
  26278. } */
  26279. /* .navText {
  26280. width: 120px !important;
  26281. } */
  26282. .evaCss {
  26283. flex-direction: column !important;
  26284. align-items: center !important;
  26285. }
  26286. .elist_input {
  26287. width: 90% !important;
  26288. }
  26289. .dialog_diy1 >>> .el-dialog {
  26290. width: 100% !important;
  26291. }
  26292. .rightWidthCss {
  26293. width: 100% !important;
  26294. }
  26295. .dialog_diy3 >>> .el-dialog {
  26296. width: 100% !important;
  26297. }
  26298. .addToolCss {
  26299. right: 0 !important;
  26300. width: 100% !important;
  26301. min-width: unset !important;
  26302. }
  26303. }
  26304. .evaCssMax {
  26305. flex-direction: column !important;
  26306. align-items: center !important;
  26307. }
  26308. .dialog_diy >>> .el-dialog {
  26309. margin-top: 10vh !important;
  26310. }
  26311. .body_student {
  26312. width: 77%;
  26313. height: 100%;
  26314. position: absolute;
  26315. left: 22%;
  26316. top: 0;
  26317. }
  26318. .student_head {
  26319. width: 100%;
  26320. margin: 20px auto 0;
  26321. padding-bottom: 20px;
  26322. display: flex;
  26323. flex-direction: column;
  26324. flex-wrap: nowrap;
  26325. align-items: flex-start;
  26326. justify-content: flex-start;
  26327. }
  26328. .pb_left {
  26329. width: 15%;
  26330. margin-right: 10px;
  26331. background: rgb(255, 255, 255);
  26332. position: fixed;
  26333. height: calc(100% - 40px);
  26334. border-radius: 20px;
  26335. padding-bottom: 15px;
  26336. box-sizing: border-box;
  26337. }
  26338. .wheel > img,
  26339. .project > img,
  26340. .star > img,
  26341. .evaluate > img,
  26342. .up_photo > img,
  26343. .chapter_add > img,
  26344. .deleteWord > img,
  26345. .question > img,
  26346. .homework > img {
  26347. width: 100%;
  26348. height: 100%;
  26349. }
  26350. .upCover > img {
  26351. width: 131px;
  26352. height: 69px;
  26353. object-fit: cover;
  26354. }
  26355. .upCover {
  26356. width: calc(100% / 3.5);
  26357. position: relative;
  26358. margin: 0 15px 10px 0;
  26359. display: flex;
  26360. flex-direction: column;
  26361. flex-wrap: nowrap;
  26362. justify-content: center;
  26363. align-content: center;
  26364. align-items: center;
  26365. height: fit-content;
  26366. }
  26367. .upCover2 {
  26368. width: 100%;
  26369. position: relative;
  26370. margin: 0 15px 10px 0;
  26371. display: flex;
  26372. flex-direction: column;
  26373. flex-wrap: nowrap;
  26374. justify-content: center;
  26375. align-content: center;
  26376. align-items: center;
  26377. }
  26378. .upCover2 > img {
  26379. width: 100%;
  26380. height: 90px;
  26381. object-fit: contain;
  26382. }
  26383. .chapter_add {
  26384. width: 120px;
  26385. position: relative;
  26386. text-align: center;
  26387. }
  26388. .isAddThings {
  26389. margin-top: 20px;
  26390. position: relative;
  26391. text-align: center;
  26392. background: #f7f8fa;
  26393. height: 90px;
  26394. width: 90px;
  26395. display: flex;
  26396. flex-direction: column;
  26397. justify-content: center;
  26398. }
  26399. .deleteWord {
  26400. width: 22px;
  26401. height: 22px;
  26402. position: absolute;
  26403. right: -5px;
  26404. top: -5px;
  26405. cursor: pointer;
  26406. }
  26407. .box_course {
  26408. /* width: 60%; */
  26409. width: calc(100% - 300px);
  26410. }
  26411. .wheel {
  26412. width: 100%;
  26413. /* height: 100%; */
  26414. height: 650px;
  26415. }
  26416. .right_box {
  26417. display: flex;
  26418. flex-direction: column;
  26419. margin-left: 30px;
  26420. justify-content: space-around;
  26421. }
  26422. .right_box_title {
  26423. font-size: 23px;
  26424. }
  26425. .people {
  26426. display: flex;
  26427. }
  26428. .student_body {
  26429. width: 100%;
  26430. margin: 0 auto;
  26431. margin-top: 10px;
  26432. padding: 0 0 20px;
  26433. }
  26434. .study_top {
  26435. margin-top: 100px;
  26436. width: 100%;
  26437. height: auto;
  26438. padding-bottom: 20px;
  26439. margin-left: 2px;
  26440. min-height: 90%;
  26441. }
  26442. .study_top .checkbox {
  26443. display: flex;
  26444. align-items: center;
  26445. padding: 15px 0 15px 30px;
  26446. flex: 0 0 auto;
  26447. font-weight: bold;
  26448. border-bottom: 1px solid #eee;
  26449. }
  26450. .study_top .check {
  26451. padding-bottom: 5px;
  26452. text-align: center;
  26453. cursor: pointer;
  26454. height: 30px;
  26455. box-sizing: border-box;
  26456. display: flex;
  26457. }
  26458. .study_top .checked {
  26459. border-bottom: 4px solid #3fc6a0;
  26460. padding-bottom: 5px;
  26461. color: #3fc6a0;
  26462. display: flex;
  26463. height: 35px;
  26464. }
  26465. .study_top .checked > div,
  26466. .study_top .check > div {
  26467. margin-right: 5px;
  26468. }
  26469. .videoTop {
  26470. display: flex;
  26471. flex-direction: row;
  26472. justify-content: space-between;
  26473. background: #fff;
  26474. align-items: center;
  26475. width: 95%;
  26476. padding: 20px;
  26477. }
  26478. .filebox {
  26479. display: flex;
  26480. flex-wrap: wrap;
  26481. flex-direction: column;
  26482. padding: 0 0 5px;
  26483. position: relative;
  26484. }
  26485. .filebox:before {
  26486. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  26487. position: absolute;
  26488. top: 20px;
  26489. left: 13px;
  26490. border-left: 2px dotted #cad1dc;
  26491. height: calc(100% - 15px);
  26492. }
  26493. .toolHeng2 > div:last-child::before {
  26494. height: calc(100% - 43px);
  26495. }
  26496. .filebox .tooldetail {
  26497. width: calc(100%);
  26498. margin: 0px 12px;
  26499. padding: 12px;
  26500. line-height: 30px;
  26501. word-break: break-word;
  26502. background: #ffffff;
  26503. border-radius: 8px 8px 8px 8px;
  26504. opacity: 1;
  26505. border: 1px solid #cad1dc;
  26506. overflow: hidden;
  26507. box-sizing: border-box;
  26508. }
  26509. .file {
  26510. display: flex;
  26511. flex-direction: column;
  26512. align-items: center;
  26513. justify-content: center;
  26514. cursor: pointer;
  26515. width: 200px;
  26516. }
  26517. .file div {
  26518. margin-top: 10px;
  26519. width: 150px;
  26520. text-align: center;
  26521. overflow: hidden;
  26522. white-space: nowrap;
  26523. text-overflow: ellipsis;
  26524. }
  26525. .media {
  26526. display: flex;
  26527. flex-direction: column;
  26528. align-items: center;
  26529. justify-content: center;
  26530. margin: 0 20px 20px 0;
  26531. cursor: pointer;
  26532. margin: 12px 0 5px 15px;
  26533. overflow: hidden;
  26534. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  26535. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  26536. box-sizing: border-box;
  26537. }
  26538. .media img {
  26539. height: 90px;
  26540. width: 160px;
  26541. object-fit: cover;
  26542. }
  26543. .media .title {
  26544. padding: 5px;
  26545. text-align: left;
  26546. width: 100%;
  26547. box-sizing: border-box;
  26548. }
  26549. .media .btn {
  26550. width: 100%;
  26551. height: 35px;
  26552. line-height: 35px;
  26553. color: #fff;
  26554. background: #606060;
  26555. text-align: center;
  26556. overflow: hidden;
  26557. white-space: nowrap;
  26558. text-overflow: ellipsis;
  26559. }
  26560. .detail_content_top {
  26561. width: 100%;
  26562. padding: 25px 0 25px 0;
  26563. }
  26564. .detail_title {
  26565. text-align: center;
  26566. font-size: 24px;
  26567. }
  26568. .detail_time {
  26569. font-size: 13px;
  26570. padding: 15px 0 0 40px;
  26571. }
  26572. .detail_content {
  26573. line-height: 2pc;
  26574. width: 90%;
  26575. margin: 0 auto;
  26576. padding-top: 30px;
  26577. text-indent: 30px;
  26578. overflow: auto;
  26579. height: 200px;
  26580. }
  26581. .score_box >>> .el-rate {
  26582. margin-left: 10px;
  26583. }
  26584. .dialog_change >>> .el-dialog {
  26585. border-radius: 5px;
  26586. }
  26587. .dialog_change >>> .el-dialog__header {
  26588. background: #f2f2f2;
  26589. text-align: center;
  26590. }
  26591. .dialog_change >>> .el-dialog__title {
  26592. line-height: 5px;
  26593. }
  26594. .dialog_change >>> .el-dialog__body {
  26595. background: #fff;
  26596. padding: 10px 20px;
  26597. }
  26598. .score_box {
  26599. display: flex;
  26600. align-items: center;
  26601. margin-bottom: 18px;
  26602. margin-top: 20px;
  26603. }
  26604. .up_photo {
  26605. width: 120px;
  26606. cursor: pointer;
  26607. margin-top: 10px;
  26608. }
  26609. .up_photo2 {
  26610. width: 180px;
  26611. box-sizing: border-box;
  26612. min-width: 180px;
  26613. height: 180px;
  26614. max-height: 180px;
  26615. min-height: 180px;
  26616. cursor: pointer;
  26617. display: flex;
  26618. flex-direction: column;
  26619. align-items: center;
  26620. justify-content: center;
  26621. background: rgb(242, 246, 255);
  26622. /* padding: 25px; */
  26623. margin-bottom: 10px;
  26624. }
  26625. .up_photo2 img {
  26626. width: 50%;
  26627. height: auto;
  26628. }
  26629. .up_photo2 span {
  26630. color: #898989;
  26631. }
  26632. .plworkBox {
  26633. display: flex;
  26634. align-items: center;
  26635. margin-top: 10px;
  26636. flex-wrap: wrap;
  26637. }
  26638. .upload_send {
  26639. margin: 30px auto 30px;
  26640. width: 60%;
  26641. background: #3681fc;
  26642. text-align: center;
  26643. height: 35px;
  26644. line-height: 35px;
  26645. color: #fff;
  26646. border-radius: 5px;
  26647. cursor: pointer;
  26648. }
  26649. .marginT {
  26650. margin-top: 20px;
  26651. }
  26652. .cd_content_steps {
  26653. display: flex;
  26654. width: 90%;
  26655. justify-content: space-around;
  26656. border-top: 1px solid #eeeeee;
  26657. }
  26658. .cd_steps_box {
  26659. display: flex;
  26660. justify-content: center;
  26661. align-items: center;
  26662. flex-direction: column;
  26663. cursor: pointer;
  26664. }
  26665. .first {
  26666. display: flex;
  26667. align-items: center;
  26668. margin: 15px 0 20px 0;
  26669. font-size: 20px;
  26670. }
  26671. .first > div:nth-child(2) {
  26672. font-size: 16px !important;
  26673. padding-left: 10px;
  26674. line-height: 26px;
  26675. box-sizing: border-box;
  26676. }
  26677. .blue_box_one {
  26678. text-align: center;
  26679. color: #fff;
  26680. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26681. border-radius: 7px;
  26682. margin: 10px;
  26683. cursor: pointer;
  26684. width: 95%;
  26685. height: 45px;
  26686. display: flex;
  26687. flex-direction: row;
  26688. justify-content: flex-start;
  26689. align-items: center;
  26690. }
  26691. .blue_box_one > div:nth-child(1) {
  26692. line-height: 30px;
  26693. margin: 0 5px 0 10px;
  26694. width: 30%;
  26695. min-width: 70px;
  26696. border-radius: 4px;
  26697. }
  26698. .blue_box_one > div:nth-child(2) {
  26699. white-space: nowrap;
  26700. text-overflow: ellipsis;
  26701. overflow: hidden;
  26702. word-break: break-all;
  26703. width: 70%;
  26704. text-align: left;
  26705. margin-right: 10px;
  26706. max-width: calc(100% - 85px);
  26707. }
  26708. .blue_box_one > div:nth-child(2):hover {
  26709. overflow: hidden;
  26710. text-overflow: ellipsis;
  26711. white-space: nowrap;
  26712. cursor: pointer;
  26713. }
  26714. .upFile {
  26715. margin: 0 auto;
  26716. width: 120px;
  26717. background: #3681fc;
  26718. color: #fff;
  26719. height: 30px;
  26720. text-align: center;
  26721. line-height: 30px;
  26722. border-radius: 5px;
  26723. font-size: 14px;
  26724. cursor: pointer;
  26725. }
  26726. .courseTitle {
  26727. width: 85%;
  26728. margin: 10px auto 26px auto;
  26729. display: flex;
  26730. flex-direction: row;
  26731. align-items: center;
  26732. justify-content: space-between;
  26733. text-align: center;
  26734. }
  26735. .courseTitle .ctitle {
  26736. font-size: 20px;
  26737. font-weight: bold;
  26738. color: #0e1e33;
  26739. white-space: nowrap;
  26740. overflow: hidden;
  26741. text-overflow: ellipsis;
  26742. }
  26743. .inviteBox {
  26744. font-size: 14px;
  26745. /* margin-top: 5px; */
  26746. color: #00000099;
  26747. text-align: center;
  26748. }
  26749. .courseTitle >>> .el-tooltip {
  26750. width: 100%;
  26751. white-space: nowrap;
  26752. overflow: hidden;
  26753. text-overflow: ellipsis;
  26754. word-break: break-word;
  26755. }
  26756. .ml {
  26757. margin-left: 20px;
  26758. color: #5b7dba;
  26759. border-left: 3px solid #5b7dba;
  26760. padding-left: 5px;
  26761. font-weight: bold;
  26762. }
  26763. .return {
  26764. width: 2rem;
  26765. height: 2rem;
  26766. cursor: pointer;
  26767. }
  26768. .return > img {
  26769. width: 100%;
  26770. height: 100%;
  26771. }
  26772. .returnBtn {
  26773. width: 86px;
  26774. height: 36px;
  26775. background: #3681fc;
  26776. border-radius: 4px;
  26777. color: #fff;
  26778. text-align: center;
  26779. line-height: 36px;
  26780. margin-right: 20px;
  26781. cursor: pointer;
  26782. font-size: 14px;
  26783. font-weight: 400;
  26784. display: flex;
  26785. flex-direction: row;
  26786. flex-wrap: nowrap;
  26787. align-items: center;
  26788. justify-content: center;
  26789. }
  26790. .reBtnIcon,
  26791. .commentIcon,
  26792. .vedioIcon,
  26793. .vedioIcon1 {
  26794. /* width: 36px; */
  26795. height: 36px;
  26796. border-radius: 4px;
  26797. position: relative;
  26798. /* background: #e0eafb; */
  26799. background: #0061ff;
  26800. cursor: pointer;
  26801. margin-right: 12px;
  26802. display: flex;
  26803. align-items: center;
  26804. padding: 0 10px;
  26805. box-sizing: border-box;
  26806. font-size: 14px;
  26807. color: #fff;
  26808. }
  26809. .reBtnIcon::before,
  26810. .commentIcon::before,
  26811. .vedioIcon::before,
  26812. .vedioIcon1::before {
  26813. content: "";
  26814. display: block;
  26815. background-size: 100% 100%;
  26816. background-repeat: no-repeat;
  26817. width: 20px;
  26818. height: 20px;
  26819. margin-right: 5px;
  26820. /* position: absolute; */
  26821. /* top: 8px;
  26822. left: 8px; */
  26823. }
  26824. .vedioIcon1 {
  26825. background: #f63564;
  26826. }
  26827. .reBtnIcon::before {
  26828. background-image: url("../../assets/icon/newIcons/refresh.png");
  26829. }
  26830. .commentIcon::before {
  26831. background-image: url("../../assets/icon/newIcons/comment.png");
  26832. }
  26833. .vedioIcon::before {
  26834. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26835. }
  26836. .vedioIcon1::before {
  26837. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26838. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26839. }
  26840. .tool {
  26841. display: flex;
  26842. flex-direction: column;
  26843. flex-wrap: nowrap;
  26844. width: 13%;
  26845. margin: 0 30px;
  26846. align-items: center;
  26847. position: relative;
  26848. padding: 10px 25px;
  26849. cursor: pointer;
  26850. }
  26851. .whiteBIcon {
  26852. width: 150px;
  26853. }
  26854. .whiteBIcon > img {
  26855. width: 100%;
  26856. height: 100%;
  26857. }
  26858. .mask {
  26859. background-color: rgba(0, 0, 0, 0);
  26860. position: fixed;
  26861. top: 0;
  26862. left: 0;
  26863. width: 100%;
  26864. height: 100%;
  26865. z-index: 20000;
  26866. display: flex;
  26867. align-items: center;
  26868. justify-content: center;
  26869. }
  26870. .progressBox {
  26871. width: 500px;
  26872. height: 180px;
  26873. background: #fff;
  26874. border-radius: 10px;
  26875. box-shadow: 0 0 6px 1px #bfbfbf;
  26876. display: flex;
  26877. align-items: center;
  26878. justify-content: center;
  26879. flex-direction: column;
  26880. position: relative;
  26881. color: #6c6c6c;
  26882. }
  26883. .progressBox >>> .el-progress-bar__outer {
  26884. background-color: #d1dfff !important;
  26885. }
  26886. .progressBox .lbox {
  26887. height: 50px;
  26888. font-size: 19px;
  26889. display: flex;
  26890. align-items: center;
  26891. color: #747474;
  26892. }
  26893. .progressBox .lbox img {
  26894. width: 40px;
  26895. margin-right: 20px;
  26896. }
  26897. .closeCss {
  26898. position: absolute;
  26899. top: 8px;
  26900. right: 8px;
  26901. cursor: pointer;
  26902. width: 20px;
  26903. height: 20px;
  26904. }
  26905. .closeCss > img {
  26906. width: 100%;
  26907. height: 100%;
  26908. }
  26909. .uploadVedio {
  26910. display: flex;
  26911. flex-direction: column;
  26912. flex-wrap: nowrap;
  26913. justify-content: center;
  26914. align-items: center;
  26915. margin: 0 15px 10px 0;
  26916. }
  26917. .uploadVedio > img {
  26918. width: 30px;
  26919. height: 30px;
  26920. }
  26921. .uploadVedio > span {
  26922. white-space: nowrap;
  26923. overflow: hidden;
  26924. text-overflow: ellipsis;
  26925. width: 75px;
  26926. margin-top: 7px;
  26927. }
  26928. .picName {
  26929. white-space: nowrap;
  26930. overflow: hidden;
  26931. text-overflow: ellipsis;
  26932. width: 75px;
  26933. margin-top: 7px;
  26934. }
  26935. .new_top {
  26936. display: flex;
  26937. background: #fff;
  26938. flex-direction: row;
  26939. justify-content: flex-start;
  26940. align-items: center;
  26941. height: 60px;
  26942. position: fixed;
  26943. top: 20px;
  26944. left: 22%;
  26945. width: 77%;
  26946. z-index: 999;
  26947. border-radius: 12px 12px 0 0;
  26948. border-bottom: 1px solid #cad1dc;
  26949. padding: 10px 0;
  26950. }
  26951. .new_topFixed {
  26952. width: 100%;
  26953. height: 40px;
  26954. position: fixed;
  26955. top: 0px;
  26956. display: block;
  26957. background: #f2f2f2;
  26958. z-index: 998;
  26959. }
  26960. .before {
  26961. position: absolute;
  26962. background: #c3dad4;
  26963. width: 6px;
  26964. height: 100%;
  26965. }
  26966. .courseIndex {
  26967. display: flex;
  26968. flex-direction: row;
  26969. align-items: center;
  26970. width: calc(100% - 745px);
  26971. }
  26972. .courseIndex > div:nth-child(1) {
  26973. margin: 0 0 0 10px;
  26974. font-size: 20px;
  26975. min-width: 100px;
  26976. font-weight: bold;
  26977. border-left: 4px solid #3363b9;
  26978. height: 32px;
  26979. text-align: center;
  26980. line-height: 35px;
  26981. }
  26982. .courseIndex > div:nth-child(2) {
  26983. font-size: 20px;
  26984. /* width: 300px; */
  26985. max-width: calc(100% - 105px);
  26986. white-space: nowrap;
  26987. overflow: hidden;
  26988. text-overflow: ellipsis;
  26989. }
  26990. .courseIndex > div:nth-child(3) {
  26991. border-bottom: 1px solid #d7d7d7;
  26992. padding-bottom: 5px;
  26993. background: #3681fc;
  26994. width: 55px;
  26995. min-width: 55px;
  26996. border-radius: 5px;
  26997. color: #fff;
  26998. text-align: center;
  26999. height: 20px;
  27000. line-height: 26px;
  27001. font-size: 14px;
  27002. margin: 0 0 0 10px;
  27003. }
  27004. .course_text {
  27005. padding: 20px 0 0 15px;
  27006. text-indent: 30px;
  27007. width: 80%;
  27008. min-height: 20px;
  27009. }
  27010. .vedioList {
  27011. background: #f2f2f2;
  27012. border: 1px solid #ececec;
  27013. /* width: 38.8%; */
  27014. /* width: 300px; */
  27015. width: 100%;
  27016. height: 445px;
  27017. border-radius: 10px;
  27018. overflow: hidden;
  27019. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  27020. }
  27021. .vedioNav {
  27022. margin: 10px 0 0 15px;
  27023. border-bottom: 1px solid #d7d7d7;
  27024. padding-bottom: 5px;
  27025. background: #3681fc;
  27026. width: 55px;
  27027. min-width: 55px;
  27028. border-radius: 5px;
  27029. color: #fff;
  27030. text-align: center;
  27031. height: 20px;
  27032. line-height: 26px;
  27033. font-size: 14px;
  27034. }
  27035. .queTop {
  27036. display: flex;
  27037. padding: 20px 0 20px 30px;
  27038. width: 100%;
  27039. flex-direction: row;
  27040. justify-content: flex-start;
  27041. align-items: center;
  27042. box-sizing: border-box;
  27043. }
  27044. .queTopTitle {
  27045. display: flex;
  27046. flex-direction: row;
  27047. flex-wrap: nowrap;
  27048. align-items: center;
  27049. font-weight: bold;
  27050. font-size: 20px;
  27051. color: rgb(14, 30, 51);
  27052. }
  27053. .queTopTitle::before {
  27054. content: "";
  27055. width: 2px;
  27056. height: 22px;
  27057. background: #3681fc;
  27058. border-radius: 3px;
  27059. display: block;
  27060. margin: 2px 6px 0 0;
  27061. }
  27062. .queTopRight {
  27063. display: flex;
  27064. flex-direction: row;
  27065. flex-wrap: nowrap;
  27066. align-items: center;
  27067. }
  27068. .queTopClose {
  27069. margin-right: 20px;
  27070. cursor: pointer;
  27071. position: relative;
  27072. display: flex;
  27073. }
  27074. .closeImg,
  27075. .openImg {
  27076. width: 25px;
  27077. height: 25px;
  27078. position: absolute;
  27079. left: -20px;
  27080. top: -1px;
  27081. }
  27082. .closeImg > img,
  27083. .openImg > img {
  27084. width: 100%;
  27085. height: 100%;
  27086. }
  27087. .question {
  27088. width: 40px;
  27089. margin-right: 10px;
  27090. margin-top: 7px;
  27091. }
  27092. .queTitle {
  27093. margin-left: 5px;
  27094. font-size: 25px;
  27095. display: flex;
  27096. align-items: center;
  27097. }
  27098. .addEditor {
  27099. width: 100px;
  27100. height: 30px;
  27101. background: #42cda6;
  27102. color: #fff;
  27103. border-radius: 5px;
  27104. text-align: center;
  27105. line-height: 30px;
  27106. box-shadow: 1px 3px 6px 1px #bfbfbf;
  27107. cursor: pointer;
  27108. }
  27109. /* .vedioName {
  27110. cursor: pointer;
  27111. margin: 0px 0px 10px 5px;
  27112. white-space: nowrap;
  27113. overflow: hidden;
  27114. text-overflow: ellipsis;
  27115. width: 100%;
  27116. } */
  27117. .vedioTime {
  27118. width: 35px;
  27119. position: absolute;
  27120. color: #fff;
  27121. bottom: 0px;
  27122. right: 0px;
  27123. text-align: center;
  27124. background: #46411f;
  27125. height: 20px;
  27126. font-size: 14px;
  27127. line-height: 20px;
  27128. }
  27129. .homework {
  27130. width: 200px;
  27131. display: flex;
  27132. flex-direction: column;
  27133. flex-wrap: nowrap;
  27134. align-items: center;
  27135. cursor: pointer;
  27136. }
  27137. .homebox {
  27138. display: flex;
  27139. flex-wrap: wrap;
  27140. flex-direction: row;
  27141. justify-content: flex-start;
  27142. align-items: center;
  27143. padding: 15px 0;
  27144. }
  27145. .isChooseActive {
  27146. color: #3681fc !important;
  27147. font-weight: bold !important;
  27148. }
  27149. .chooseWho {
  27150. display: flex;
  27151. width: 100%;
  27152. flex-direction: row;
  27153. flex-wrap: nowrap;
  27154. justify-content: flex-start;
  27155. padding-bottom: 10px;
  27156. }
  27157. .chooseWho > div {
  27158. cursor: pointer;
  27159. padding-bottom: 10px;
  27160. margin: 0 30px 0 0;
  27161. font-weight: 400;
  27162. color: #0e1e33;
  27163. }
  27164. .addPoint > div > img {
  27165. cursor: pointer;
  27166. width: 85px;
  27167. border-radius: 15px;
  27168. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  27169. }
  27170. .addPoint > div {
  27171. display: flex;
  27172. flex-direction: column;
  27173. flex-wrap: nowrap;
  27174. align-items: center;
  27175. }
  27176. .isBorder > div {
  27177. margin: 0 0 10px 0;
  27178. align-items: flex-start !important;
  27179. }
  27180. .noiframeBox {
  27181. display: flex;
  27182. flex-wrap: wrap;
  27183. }
  27184. .iframeBox iframe {
  27185. width: 100%;
  27186. height: 800px;
  27187. border: none;
  27188. margin-bottom: 20px;
  27189. border: 1px solid #ccc;
  27190. }
  27191. .upload_toolBtn {
  27192. background: #3681fc;
  27193. color: #fff;
  27194. width: 110px;
  27195. text-align: center;
  27196. height: 35px;
  27197. line-height: 35px;
  27198. font-size: 14px;
  27199. border-radius: 5px;
  27200. cursor: pointer;
  27201. position: absolute;
  27202. right: 10px;
  27203. bottom: 0;
  27204. }
  27205. .binfo_input,
  27206. .pj {
  27207. font: inherit;
  27208. color: currentColor;
  27209. width: 100%;
  27210. margin: 0;
  27211. padding: 15px 14px;
  27212. display: block;
  27213. min-width: 0;
  27214. outline: none;
  27215. box-sizing: content-box;
  27216. background: none;
  27217. -webkit-tap-highlight-color: transparent;
  27218. border: 1px solid rgba(0, 0, 0, 0.23);
  27219. border-radius: 4px;
  27220. box-sizing: border-box;
  27221. resize: none;
  27222. }
  27223. .binfo_input:focus-visible {
  27224. border: 1px solid rgba(61, 103, 188);
  27225. }
  27226. .dialog_diyCopy >>> .el-dialog__header {
  27227. display: none !important;
  27228. }
  27229. .dialog_diyCopy >>> .el-dialog__body {
  27230. padding: 0 !important;
  27231. height: 100% !important;
  27232. }
  27233. .confirmOpenDigCss > div{
  27234. font-size: 14px;
  27235. color: rgba(0, 0, 0, 0.6);
  27236. }
  27237. .confirmOpenDigCss >>> .el-dialog{
  27238. border-radius: 6px;
  27239. }
  27240. .confirmOpenDigCss >>> .el-dialog__body{
  27241. padding: 25px !important;
  27242. }
  27243. .confirmOpenDigCss > span{
  27244. font-size: 16px;
  27245. font-weight: 600;
  27246. color: rgba(0, 0, 0, 0.8);
  27247. }
  27248. .dialog_diy >>> .el-dialog__header,
  27249. .dialog_diy1 >>> .el-dialog__header {
  27250. background: #454545 !important;
  27251. padding: 15px 20px;
  27252. }
  27253. .dialog_diy >>> .el-dialog__title,
  27254. .dialog_diy1 >>> .el-dialog__title {
  27255. color: #fff;
  27256. }
  27257. .dialog_diy >>> .el-dialog__headerbtn,
  27258. .dialog_diy1 >>> .el-dialog__headerbtn {
  27259. top: 19px;
  27260. }
  27261. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  27262. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  27263. color: #fff;
  27264. }
  27265. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  27266. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  27267. color: #fff;
  27268. }
  27269. .dialog_diy1 >>> .el-dialog__body {
  27270. padding: 0;
  27271. }
  27272. .dialog_diy >>> .el-dialog__body,
  27273. .dialog_diy >>> .el-dialog__footer,
  27274. .dialog_diy1 >>> .el-dialog__footer {
  27275. background: #fafafa;
  27276. }
  27277. .markScore_diy >>> .el-dialog {
  27278. border-radius: 10px;
  27279. }
  27280. .markScore_diy >>> .el-dialog__body {
  27281. padding: 0;
  27282. height: 621px;
  27283. min-height: calc(100% - 60px);
  27284. }
  27285. .markScore_diy >>> .el-dialog__header {
  27286. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  27287. }
  27288. .markScore_diy >>> .markScore_diyTit {
  27289. width: calc(100% - 60px);
  27290. display: flex;
  27291. justify-content: space-between;
  27292. align-items: center;
  27293. }
  27294. .a_addBox {
  27295. padding: 0 0 0 15px;
  27296. }
  27297. .a_add_box {
  27298. padding: 10px;
  27299. background: #fff;
  27300. margin-bottom: 10px;
  27301. border-radius: 5px;
  27302. box-shadow: 0 0 5px 0 #d5d5d5;
  27303. }
  27304. .a_add_head {
  27305. display: flex;
  27306. align-items: flex-start;
  27307. /* justify-content: space-between; */
  27308. flex-direction: column;
  27309. /* flex-direction: row; */
  27310. margin: 10px 0 20px 0;
  27311. font-size: 18px;
  27312. width: 100%;
  27313. }
  27314. .askIndex {
  27315. background: #3681fc;
  27316. border-radius: 50%;
  27317. color: #fff;
  27318. width: 25px;
  27319. height: 25px;
  27320. min-width: 25px;
  27321. min-height: 25px;
  27322. text-align: center;
  27323. line-height: 25px;
  27324. margin-right: 5px;
  27325. }
  27326. .a_add_head .a_add_head_input {
  27327. width: 300px;
  27328. }
  27329. .a_add_head .a_add_head_div {
  27330. display: flex;
  27331. align-items: center;
  27332. justify-content: space-between;
  27333. }
  27334. .a_add_body {
  27335. display: flex;
  27336. align-items: center;
  27337. }
  27338. .a_add_input {
  27339. display: flex;
  27340. align-items: center;
  27341. flex-wrap: wrap;
  27342. width: 100%;
  27343. }
  27344. .a_add_input >>> .el-radio-group,
  27345. .a_add_input >>> .el-checkbox-group {
  27346. width: 100%;
  27347. }
  27348. .a_add_input >>> .el-radio,
  27349. .a_add_input >>> .el-checkbox {
  27350. display: flex;
  27351. flex-direction: row;
  27352. flex-wrap: nowrap;
  27353. align-items: center;
  27354. padding: 15px 0;
  27355. }
  27356. .a_add_input >>> .el-radio:not(:last-child),
  27357. .a_add_input >>> .el-checkbox:not(:last-child) {
  27358. width: 100%;
  27359. border-bottom: 1px solid #efefef;
  27360. }
  27361. .redioStyle >>> .el-radio__label {
  27362. font-size: 18px;
  27363. }
  27364. .redioStyle >>> .el-radio__label > span,
  27365. .redioStyle >>> .el-checkbox__label > span {
  27366. word-break: break-all;
  27367. white-space: normal;
  27368. }
  27369. .redioStyle >>> .el-checkbox__label {
  27370. font-size: 18px;
  27371. }
  27372. .toolHeng2 {
  27373. width: 100%;
  27374. padding-left: 15px;
  27375. box-sizing: border-box;
  27376. }
  27377. .workNav {
  27378. font-size: 20px;
  27379. font-weight: bold;
  27380. color: #0e1e33;
  27381. display: flex;
  27382. flex-direction: row;
  27383. flex-wrap: nowrap;
  27384. align-items: center;
  27385. padding: 15px 0 15px 0;
  27386. }
  27387. .workNav::before {
  27388. content: "";
  27389. width: 2px;
  27390. height: 22px;
  27391. background: #3681fc;
  27392. border-radius: 3px;
  27393. display: block;
  27394. margin: 2px 6px 0 0;
  27395. }
  27396. .toolHeng {
  27397. display: flex;
  27398. flex-direction: row;
  27399. flex-wrap: wrap;
  27400. justify-content: flex-start;
  27401. align-items: center;
  27402. width: 100%;
  27403. }
  27404. .toolHeng > div {
  27405. padding-left: 20px;
  27406. }
  27407. .isWidth {
  27408. width: 20%;
  27409. }
  27410. .textTitle {
  27411. display: flex;
  27412. flex-direction: row;
  27413. flex-wrap: nowrap;
  27414. align-items: center;
  27415. width: 95%;
  27416. }
  27417. .textTitle >>> .el-form-item__label {
  27418. font-size: 22px;
  27419. color: #918f8f;
  27420. width: 100px;
  27421. }
  27422. .textTitle >>> .el-form-item__content {
  27423. width: calc(100% - 100px);
  27424. }
  27425. .textCss >>> .el-dialog {
  27426. width: 800px !important;
  27427. height: 400px;
  27428. background: #fafafa;
  27429. }
  27430. .textCss >>> .el-dialog__body {
  27431. margin: 55px 8% 0 8%;
  27432. padding: 0 !important;
  27433. }
  27434. .textCss >>> .el-dialog__footer {
  27435. padding-top: 38px;
  27436. }
  27437. .toolsCss >>> .el-dialog__body {
  27438. padding: 20px;
  27439. }
  27440. .lineCss >>> .el-dialog__body {
  27441. display: flex;
  27442. flex-direction: row;
  27443. align-items: center;
  27444. justify-content: center;
  27445. }
  27446. .newNav {
  27447. display: flex;
  27448. flex-direction: row;
  27449. align-items: baseline;
  27450. justify-content: flex-start;
  27451. }
  27452. .navListItem {
  27453. width: calc(100% - 20px);
  27454. height: 50px;
  27455. margin: 0px auto 10px;
  27456. display: flex;
  27457. flex-direction: row;
  27458. flex-wrap: nowrap;
  27459. align-items: center;
  27460. justify-content: space-between;
  27461. background: #f0f4fa;
  27462. border-radius: 6px 6px 6px 6px;
  27463. }
  27464. .navText {
  27465. cursor: pointer;
  27466. white-space: nowrap;
  27467. overflow: hidden;
  27468. text-overflow: ellipsis;
  27469. width: 220px;
  27470. padding: 0 10px;
  27471. font-weight: 400;
  27472. color: #0e1e33;
  27473. }
  27474. .downIcon {
  27475. width: 20px;
  27476. min-width: 20px;
  27477. height: 20px;
  27478. margin-right: 15px;
  27479. cursor: pointer;
  27480. }
  27481. .downIcon > img {
  27482. width: 100%;
  27483. height: 100%;
  27484. }
  27485. .noVedio {
  27486. display: flex;
  27487. flex-direction: row;
  27488. justify-content: center;
  27489. align-content: center;
  27490. }
  27491. .noNavText {
  27492. cursor: pointer;
  27493. margin: 0px 0px 10px 5px;
  27494. width: 112px;
  27495. }
  27496. .listNoVedio {
  27497. margin: 0 0 0 30px;
  27498. width: 97%;
  27499. }
  27500. .video-player >>> .video-js {
  27501. height: 100%;
  27502. }
  27503. .hangVedioList {
  27504. width: 90% !important;
  27505. height: 150px !important;
  27506. margin: 20px 0 0 30px;
  27507. }
  27508. .hangVedio {
  27509. width: 100%;
  27510. height: 170px !important;
  27511. align-items: flex-start !important;
  27512. }
  27513. .hangHand {
  27514. height: 150px !important;
  27515. }
  27516. .twoChild {
  27517. width: 95%;
  27518. margin: 10px;
  27519. border-radius: 5px;
  27520. background: #f2f2f2;
  27521. display: flex;
  27522. flex-direction: column;
  27523. flex-wrap: nowrap;
  27524. justify-content: flex-start;
  27525. align-items: flex-start;
  27526. transition: all 0.5s;
  27527. overflow: hidden;
  27528. height: 0;
  27529. background: #e7f3ff;
  27530. }
  27531. .twoChild > div:nth-child(1) {
  27532. margin-top: 5px;
  27533. }
  27534. .navChild {
  27535. width: 100%;
  27536. cursor: pointer;
  27537. margin-bottom: 10px;
  27538. position: relative;
  27539. }
  27540. .navChild img {
  27541. position: absolute;
  27542. right: 11px;
  27543. width: 15px;
  27544. top: 50%;
  27545. transform: translateY(-50%);
  27546. }
  27547. .navActive,
  27548. .toolActive {
  27549. height: auto !important;
  27550. overflow: auto !important;
  27551. /* // padding-bottom: 16px; */
  27552. }
  27553. .toolActive {
  27554. padding: 0;
  27555. }
  27556. .navTask {
  27557. display: flex;
  27558. flex-direction: row;
  27559. flex-wrap: nowrap;
  27560. align-items: center;
  27561. align-content: flex-start;
  27562. height: 40px;
  27563. justify-content: flex-start;
  27564. padding: 0 10px;
  27565. width: 100%;
  27566. box-sizing: border-box;
  27567. }
  27568. .navTaskname {
  27569. white-space: nowrap;
  27570. text-overflow: ellipsis;
  27571. overflow: hidden;
  27572. word-break: break-all;
  27573. padding-left: 5px;
  27574. }
  27575. .openTaskActive {
  27576. /* background-color: #e0eafb !important;
  27577. color: #0061ff; */
  27578. color: #fff;
  27579. background: rgb(55, 129, 252) !important;
  27580. }
  27581. .iframeName {
  27582. margin: 5px 0;
  27583. border-left: 4px solid #41c4a4;
  27584. padding-left: 4px;
  27585. }
  27586. .toolTitle {
  27587. margin: 0px 0px 20px;
  27588. font-size: 20px;
  27589. font-weight: 500;
  27590. border-left: 4px solid #41c4a4;
  27591. padding-left: 4px;
  27592. }
  27593. .cru_selectBox {
  27594. overflow: auto;
  27595. width: 95%;
  27596. margin: 17px auto 0;
  27597. height: calc(100% - 40px - 21px - 20px - 17px);
  27598. background: #fff;
  27599. border-radius: 8px;
  27600. }
  27601. .cru_selectBox::-webkit-scrollbar,
  27602. .study_top::-webkit-scrollbar,
  27603. .textContent::-webkit-scrollbar {
  27604. /*滚动条整体样式*/
  27605. width: 6px;
  27606. /*高宽分别对应横竖滚动条的尺寸*/
  27607. height: 6px;
  27608. }
  27609. /*定义滚动条轨道 内阴影+圆角*/
  27610. .cru_selectBox::-webkit-scrollbar-track,
  27611. .study_top::-webkit-scrollbar-track,
  27612. .textContent::-webkit-scrollbar {
  27613. border-radius: 10px;
  27614. background-color: #b8bdc9;
  27615. }
  27616. /*定义滑块 内阴影+圆角*/
  27617. .cru_selectBox::-webkit-scrollbar-thumb,
  27618. .study_top::-webkit-scrollbar-thumb,
  27619. .textContent::-webkit-scrollbar-thumb {
  27620. border-radius: 10px;
  27621. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  27622. background-color: #2c5ab3;
  27623. }
  27624. .vedioBox {
  27625. border-radius: 0 0 20px 20px;
  27626. background: #fff;
  27627. overflow: auto;
  27628. }
  27629. .taskBox {
  27630. width: 98%;
  27631. background: #f0f4fa;
  27632. margin: 10px auto;
  27633. padding: 0 10px;
  27634. border-radius: 4px;
  27635. box-sizing: border-box;
  27636. }
  27637. .vedioTaskBox {
  27638. width: 100%;
  27639. display: flex;
  27640. flex-direction: row;
  27641. flex-wrap: nowrap;
  27642. align-items: flex-start;
  27643. position: relative;
  27644. }
  27645. .toolBox {
  27646. margin: 15px 0 0 25px;
  27647. display: flex;
  27648. position: relative;
  27649. padding: 18px 20px;
  27650. border-top-left-radius: 5px;
  27651. border-top-right-radius: 5px;
  27652. width: 90%;
  27653. }
  27654. .btnAll {
  27655. position: absolute;
  27656. right: 0;
  27657. display: flex;
  27658. flex-direction: row;
  27659. flex-wrap: nowrap;
  27660. align-items: center;
  27661. }
  27662. .btnLeft,
  27663. .btnRight {
  27664. display: flex;
  27665. flex-direction: row;
  27666. flex-wrap: nowrap;
  27667. align-items: center;
  27668. padding: 5px 0;
  27669. }
  27670. .btnLeft {
  27671. border-right: 1px solid #cad1dc;
  27672. }
  27673. .btnLeft > .custom-tooltip {
  27674. background: #3681fc;
  27675. color: #fff;
  27676. }
  27677. .last:hover {
  27678. background: #3383fa !important;
  27679. color: #fff;
  27680. border: 1px solid #3383fa !important;
  27681. }
  27682. .last,
  27683. .returnBtn1 {
  27684. width: 90px;
  27685. height: 36px;
  27686. background: #ffffff;
  27687. border-radius: 4px;
  27688. border: 1px solid #0061ff;
  27689. color: #0061ff;
  27690. cursor: pointer;
  27691. display: flex;
  27692. flex-direction: row;
  27693. flex-wrap: nowrap;
  27694. align-items: center;
  27695. justify-content: center;
  27696. margin-left: 12px;
  27697. }
  27698. .returnBtn1 {
  27699. background: #f0f4fa;
  27700. border-radius: 4px;
  27701. border: 1px solid #cad1dc;
  27702. margin: 0 12px;
  27703. }
  27704. .lastImg {
  27705. min-width: 15px;
  27706. width: 15px;
  27707. height: 15px;
  27708. display: flex;
  27709. }
  27710. .lastText {
  27711. padding: 0 5px 0 5px;
  27712. box-sizing: border-box;
  27713. font-size: 14px;
  27714. }
  27715. .lastImg > img {
  27716. width: 100%;
  27717. height: 100%;
  27718. }
  27719. /* .vedioTimeBox {
  27720. display: flex;
  27721. flex-direction: row;
  27722. align-items: center;
  27723. flex-wrap: nowrap;
  27724. position: relative;
  27725. } */
  27726. .navBox {
  27727. background: #fff;
  27728. height: calc(100% - 40px);
  27729. overflow-y: auto;
  27730. overflow-x: hidden;
  27731. }
  27732. .worksBox {
  27733. margin: 0 0 10px 25px;
  27734. border-bottom: 1px solid #eeeeee;
  27735. padding: 18px 20px;
  27736. border-radius: 4px;
  27737. width: 90%;
  27738. }
  27739. .worksBTitle {
  27740. font-size: 20px;
  27741. padding-bottom: 15px;
  27742. border-bottom: 1px solid #eeeeee;
  27743. display: flex;
  27744. align-items: center;
  27745. }
  27746. .greenBox {
  27747. width: 5px;
  27748. height: 30px;
  27749. background: #63b6fa;
  27750. margin-right: 5px;
  27751. }
  27752. .worksDetailBox {
  27753. display: flex;
  27754. width: 100%;
  27755. flex-direction: row;
  27756. flex-wrap: wrap;
  27757. align-items: flex-end;
  27758. justify-content: flex-start;
  27759. padding: 15px 5px;
  27760. box-sizing: border-box;
  27761. }
  27762. .works {
  27763. display: flex;
  27764. flex-direction: column;
  27765. flex-wrap: nowrap;
  27766. align-items: flex-start;
  27767. justify-content: flex-start;
  27768. align-content: center;
  27769. max-width: 240px;
  27770. width: calc(100% / 3 - 10px);
  27771. height: auto;
  27772. margin-right: 10px;
  27773. margin-bottom: 10px;
  27774. overflow: hidden;
  27775. height: 140px;
  27776. box-shadow: 0 0 6px 1px #dfdada;
  27777. border-radius: 15px;
  27778. }
  27779. .workImg {
  27780. width: 100%;
  27781. /* height: calc(100% - 40px); */
  27782. height: 105px;
  27783. position: relative;
  27784. }
  27785. .workImg > img {
  27786. width: 100%;
  27787. height: 100%;
  27788. object-fit: contain;
  27789. cursor: pointer;
  27790. }
  27791. .worksName {
  27792. height: 40px;
  27793. line-height: 40px;
  27794. display: flex;
  27795. width: 100%;
  27796. flex-direction: row;
  27797. flex-wrap: nowrap;
  27798. justify-content: space-between;
  27799. align-items: center;
  27800. margin: 0 0 0 10px;
  27801. }
  27802. .worksName > div:nth-child(1) {
  27803. width: 110px;
  27804. white-space: nowrap;
  27805. overflow: hidden;
  27806. text-overflow: ellipsis;
  27807. }
  27808. .worksName > div:nth-child(2) {
  27809. color: #b7b4b5;
  27810. }
  27811. .noWorksS {
  27812. padding: 15px 0;
  27813. display: flex;
  27814. flex-direction: row;
  27815. flex-wrap: wrap;
  27816. align-items: center;
  27817. justify-content: flex-start;
  27818. }
  27819. .noWorksName,
  27820. .isWorksName,
  27821. .isWorksName2 {
  27822. background: #ddebf8;
  27823. color: #000;
  27824. width: 90px;
  27825. height: 25px;
  27826. text-align: center;
  27827. line-height: 25px;
  27828. border-radius: 4px;
  27829. margin: 10px 15px 10px 0;
  27830. white-space: nowrap;
  27831. overflow: hidden;
  27832. padding: 5px;
  27833. text-overflow: ellipsis;
  27834. cursor: pointer;
  27835. border: 1px solid #ddebf8;
  27836. }
  27837. .noWorksName {
  27838. background: #fff;
  27839. color: #0061ff;
  27840. border: 1px solid #0061ff;
  27841. }
  27842. .noWorksName > span {
  27843. max-width: 100%;
  27844. display: block;
  27845. overflow: hidden;
  27846. text-overflow: ellipsis;
  27847. white-space: nowrap;
  27848. }
  27849. .isWorksName2 {
  27850. width: 100px;
  27851. height: 40px;
  27852. line-height: 40px;
  27853. position: relative;
  27854. background: #dae6f9;
  27855. }
  27856. .isWorksName {
  27857. background: #e7ebf1 !important;
  27858. width: 100px;
  27859. height: 40px;
  27860. line-height: 40px;
  27861. position: relative;
  27862. color: #acb4bf;
  27863. border: 1px solid #cad1dc !important;
  27864. }
  27865. .isSelectName,
  27866. .noWorksName:hover {
  27867. background: #3383fa !important;
  27868. color: #fff !important;
  27869. border: 1px solid #3383fa !important;
  27870. }
  27871. .title {
  27872. background: #1e5cc9;
  27873. /* width: 98%; */
  27874. height: 45px;
  27875. color: #fff;
  27876. line-height: 45px;
  27877. padding-left: 20px;
  27878. box-sizing: border-box;
  27879. }
  27880. .textBox {
  27881. font-size: 20px;
  27882. width: 90%;
  27883. display: flex;
  27884. flex-direction: column;
  27885. align-items: center;
  27886. margin: 20px auto 0;
  27887. max-height: calc(100% - 75px);
  27888. overflow: auto;
  27889. }
  27890. .textContent {
  27891. font-size: 18px;
  27892. width: 95%;
  27893. max-width: 95%;
  27894. }
  27895. .answerBg {
  27896. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27897. background-size: 100% 100%;
  27898. width: 100%;
  27899. height: 100%;
  27900. color: #fff;
  27901. text-align: center;
  27902. display: flex;
  27903. flex-direction: column;
  27904. flex-wrap: nowrap;
  27905. align-items: center;
  27906. position: relative;
  27907. justify-content: center;
  27908. }
  27909. /* .answerBg > div:nth-child(1) { */
  27910. /* font-size: 22px;
  27911. padding: 25px 0 10px; */
  27912. /* } */
  27913. .answerContent {
  27914. width: 215px;
  27915. max-height: 60px;
  27916. word-break: break-all;
  27917. text-align: center;
  27918. /* white-space: nowrap; */
  27919. overflow: hidden;
  27920. text-overflow: ellipsis;
  27921. /* padding: 23px 0 0; */
  27922. -webkit-line-clamp: 3;
  27923. -webkit-box-orient: vertical;
  27924. display: -webkit-box;
  27925. font-size: 15px;
  27926. cursor: pointer;
  27927. }
  27928. .elist_input_box {
  27929. display: flex;
  27930. align-items: flex-start;
  27931. flex-wrap: nowrap;
  27932. padding: 10px 0 15px 30px;
  27933. flex-direction: column;
  27934. }
  27935. .elist_input {
  27936. /* width: 40%; */
  27937. width: 45%;
  27938. padding: 20px;
  27939. /* margin: 20px; */
  27940. box-sizing: border-box;
  27941. }
  27942. .elist_input .elist_input_box input {
  27943. font: inherit;
  27944. color: currentColor;
  27945. width: 200px;
  27946. padding: 8px 14px;
  27947. display: block;
  27948. min-width: 0;
  27949. outline: none;
  27950. border: 1px solid rgba(0, 0, 0, 0.23);
  27951. border-radius: 4px;
  27952. box-sizing: border-box;
  27953. background: #fff;
  27954. margin: 0 20px 0 0;
  27955. }
  27956. .elist_input .elist_input_box span {
  27957. height: 36px;
  27958. line-height: 36px;
  27959. color: rgb(82, 82, 82);
  27960. }
  27961. .elist_input .elist_input_box .remove {
  27962. height: 20px;
  27963. width: 20px;
  27964. background-size: 100% 100%;
  27965. background-position: unset;
  27966. margin-left: 5px;
  27967. }
  27968. .elist_input_box >>> .el-rate {
  27969. display: flex;
  27970. height: 36px;
  27971. align-items: center;
  27972. }
  27973. .elist_input_box .elist_inptu_text {
  27974. min-height: 50px;
  27975. /* width: 500px;
  27976. max-height: 150px; */
  27977. width: 100%;
  27978. line-height: 50px;
  27979. color: rgb(82, 82, 82);
  27980. overflow: auto;
  27981. text-indent: 5px;
  27982. background: #f7f6f9;
  27983. border-radius: 10px;
  27984. }
  27985. .elist_input_box .elist_inptu_text input {
  27986. width: 500px;
  27987. }
  27988. .elist_input_box >>> .el-rate__icon {
  27989. font-size: 24px;
  27990. }
  27991. .isClick {
  27992. background: #4d9def;
  27993. }
  27994. .bzBox {
  27995. display: flex;
  27996. flex-direction: row;
  27997. align-items: center;
  27998. }
  27999. .bzBox .yCss {
  28000. width: 7px;
  28001. height: 7px;
  28002. background: #fff;
  28003. margin: 0 16px 0 6px;
  28004. border-radius: 50%;
  28005. border: 5px solid #3681fc;
  28006. z-index: 99;
  28007. }
  28008. .bzBox > div:nth-child(2) {
  28009. font-size: 18px;
  28010. font-weight: bold;
  28011. color: #0e1e33;
  28012. }
  28013. .navTitile {
  28014. padding: 0 0px 0 15px;
  28015. font-size: 16px;
  28016. font-weight: bold;
  28017. color: #0e1e33;
  28018. height: 40px;
  28019. line-height: 40px;
  28020. }
  28021. .isTypeOne {
  28022. width: 240px;
  28023. height: 170px;
  28024. /* border: 1px solid #f8f8f8; */
  28025. border-radius: 10px;
  28026. box-shadow: 0 0 6px 1px #dfdada;
  28027. }
  28028. .e_add_top {
  28029. display: flex;
  28030. justify-content: space-between;
  28031. padding: 10px 20px;
  28032. border-radius: 3px;
  28033. background: #fff;
  28034. }
  28035. .e_add_title2 {
  28036. display: flex;
  28037. align-items: center;
  28038. }
  28039. .e_add_title2 span {
  28040. width: 40px;
  28041. }
  28042. .e_add_title {
  28043. display: flex;
  28044. align-items: center;
  28045. color: #b8b8b8;
  28046. font-size: 18px;
  28047. position: relative;
  28048. height: 40px;
  28049. }
  28050. .e_add_title span {
  28051. margin-right: 10px;
  28052. }
  28053. .e_add_title .el_input {
  28054. width: 300px;
  28055. }
  28056. .e_add_title >>> .el-input__inner {
  28057. width: 400px;
  28058. }
  28059. /* .e_add_btn {
  28060. } */
  28061. .e_add_content {
  28062. display: flex;
  28063. width: 100%;
  28064. max-width: 650px;
  28065. height: 550px;
  28066. }
  28067. .e_add_list {
  28068. background: #fff;
  28069. height: 500px;
  28070. width: 210px;
  28071. position: relative;
  28072. margin: 15px 5px 0 0;
  28073. flex-shrink: 0;
  28074. display: flex;
  28075. flex-direction: column;
  28076. }
  28077. .e_add_list_title {
  28078. font-size: 20px;
  28079. width: 100%;
  28080. box-sizing: border-box;
  28081. padding: 15px 40px;
  28082. text-align: center;
  28083. border-bottom: 1px solid #eaeaea;
  28084. position: relative;
  28085. display: flex;
  28086. align-items: center;
  28087. justify-content: center;
  28088. height: 57px;
  28089. background: #f6f6f6;
  28090. }
  28091. .e_add_list_title span {
  28092. overflow: hidden;
  28093. white-space: nowrap;
  28094. text-overflow: ellipsis;
  28095. }
  28096. .e_add_list_title img {
  28097. position: absolute;
  28098. right: 15px;
  28099. width: 25px;
  28100. cursor: pointer;
  28101. top: 50%;
  28102. transform: translateY(-50%);
  28103. }
  28104. .e_add_list_body {
  28105. height: calc(100% - 187px);
  28106. overflow: auto;
  28107. }
  28108. .e_add_list_child {
  28109. width: 100%;
  28110. display: flex;
  28111. align-items: center;
  28112. justify-content: center;
  28113. position: relative;
  28114. box-sizing: border-box;
  28115. padding: 15px 40px;
  28116. text-align: center;
  28117. }
  28118. .e_add_list_child span {
  28119. overflow: hidden;
  28120. white-space: nowrap;
  28121. text-overflow: ellipsis;
  28122. cursor: pointer;
  28123. }
  28124. .e_add_list_child img {
  28125. position: absolute;
  28126. right: 10px;
  28127. width: 21px;
  28128. cursor: pointer;
  28129. top: 50%;
  28130. transform: translateY(-50%);
  28131. }
  28132. .e_add_list_child + .e_add_list_child {
  28133. border-top: 1px solid #eaeaea;
  28134. }
  28135. .e_add_list_child .active {
  28136. color: #409eff;
  28137. }
  28138. .e_add_list_btn {
  28139. position: absolute;
  28140. bottom: 0;
  28141. height: 50px;
  28142. background: rgb(120, 120, 254);
  28143. width: 100%;
  28144. color: #fff;
  28145. font-size: 16px;
  28146. text-align: center;
  28147. line-height: 50px;
  28148. cursor: pointer;
  28149. }
  28150. .e_add_list_detail {
  28151. position: absolute;
  28152. bottom: 0;
  28153. height: 130px;
  28154. background: rgb(120, 120, 254);
  28155. width: 100%;
  28156. color: #fff;
  28157. font-size: 16px;
  28158. display: flex;
  28159. align-items: center;
  28160. justify-content: center;
  28161. }
  28162. .e_add_list_detail textarea {
  28163. height: 90%;
  28164. width: 95%;
  28165. border: none;
  28166. resize: none;
  28167. outline: none;
  28168. padding: 5px;
  28169. box-sizing: border-box;
  28170. }
  28171. .e_add_list_pbox {
  28172. width: 100%;
  28173. max-width: 650px;
  28174. /* height: 600px; */
  28175. }
  28176. .e_add_list_pbox_title {
  28177. height: 50px;
  28178. background: #fff;
  28179. display: flex;
  28180. align-items: center;
  28181. width: 100%;
  28182. box-sizing: border-box;
  28183. padding: 0 20px;
  28184. }
  28185. .type_title {
  28186. font-size: 18px;
  28187. font-weight: 700;
  28188. }
  28189. .type_content {
  28190. font-size: 16px;
  28191. /* margin-left: 30px; */
  28192. }
  28193. .type_content span + span {
  28194. margin-left: 20px;
  28195. }
  28196. .type_content span {
  28197. cursor: pointer;
  28198. padding-bottom: 5px;
  28199. box-sizing: border-box;
  28200. }
  28201. .type_content .active {
  28202. color: #409eff;
  28203. border-bottom: 2px solid #409eff;
  28204. }
  28205. .e_add_list_pbox_content {
  28206. height: calc(100% - 50px);
  28207. display: flex;
  28208. align-items: center;
  28209. width: 100%;
  28210. background: #fff;
  28211. }
  28212. .evaCss {
  28213. display: flex;
  28214. flex-direction: row;
  28215. flex-wrap: nowrap;
  28216. align-items: flex-start;
  28217. padding: 0 0 20px;
  28218. }
  28219. .evaCss >>> .cell {
  28220. position: relative;
  28221. overflow: visible;
  28222. }
  28223. .evaCss >>> .el-table__body-wrapper {
  28224. overflow: visible;
  28225. }
  28226. .evaCss >>> .el-table {
  28227. overflow: visible;
  28228. }
  28229. .blueRootCss {
  28230. position: absolute;
  28231. top: 50%;
  28232. left: 0;
  28233. transform: translate(-20px, -50%);
  28234. }
  28235. .cru_line {
  28236. position: absolute;
  28237. bottom: 0px;
  28238. transition: all 0.5s;
  28239. left: 0px;
  28240. width: 125px;
  28241. margin-left: -25px;
  28242. }
  28243. .isNoMessage {
  28244. width: 20%;
  28245. margin: 25% auto 0;
  28246. }
  28247. .isNoMessage > img {
  28248. width: 100%;
  28249. height: 100%;
  28250. }
  28251. .fullStyle >>> .el-dialog__body {
  28252. height: 100% !important;
  28253. }
  28254. .fullStyle >>> .el-dialog,
  28255. .fullStyle {
  28256. width: 100% !important;
  28257. max-width: 100% !important;
  28258. height: 100% !important;
  28259. margin: 0 !important;
  28260. }
  28261. .full_diy >>> .el-dialog {
  28262. margin: 0 !important;
  28263. height: 100%;
  28264. padding: 4px;
  28265. }
  28266. .full_diy >>> .el-dialog__body {
  28267. height: calc(100% - 100px);
  28268. }
  28269. .full_diy2 >>> .el-dialog__body {
  28270. height: calc(100% - 50px);
  28271. padding: 0;
  28272. }
  28273. .switchCss {
  28274. /* width: 100%; */
  28275. display: flex;
  28276. flex-direction: row;
  28277. flex-wrap: nowrap;
  28278. align-items: center;
  28279. /* justify-content: center; */
  28280. }
  28281. .isClickNav {
  28282. /* color: #499eef; */
  28283. color: #000;
  28284. }
  28285. .commentImg {
  28286. width: 25px;
  28287. height: 25px;
  28288. cursor: pointer;
  28289. }
  28290. .commentImg > img {
  28291. width: 100%;
  28292. height: 100%;
  28293. }
  28294. .comment {
  28295. background: #f9f9f9;
  28296. border-radius: 0 0 4px 4px;
  28297. display: flex;
  28298. flex-direction: row;
  28299. flex-wrap: nowrap;
  28300. align-items: center;
  28301. justify-content: flex-end;
  28302. height: 35px;
  28303. }
  28304. .commentList {
  28305. display: flex;
  28306. flex-direction: row;
  28307. flex-wrap: nowrap;
  28308. align-items: center;
  28309. justify-content: center;
  28310. align-content: center;
  28311. /* margin-left: 15px; */
  28312. /* margin-left: 8px; */
  28313. }
  28314. .scoreImg {
  28315. width: 17px;
  28316. height: 17px;
  28317. }
  28318. .studentDetail {
  28319. display: flex;
  28320. flex-direction: row;
  28321. flex-wrap: nowrap;
  28322. /* align-items: center; */
  28323. align-items: flex-start;
  28324. }
  28325. .tx {
  28326. width: 50px;
  28327. }
  28328. .tx > img {
  28329. width: 100%;
  28330. height: 100%;
  28331. }
  28332. .nameAndTime {
  28333. display: flex;
  28334. flex-direction: column;
  28335. flex-wrap: nowrap;
  28336. align-items: flex-start;
  28337. margin-left: 10px;
  28338. }
  28339. .worksAnswer {
  28340. color: #4078dd;
  28341. margin: 10px 0;
  28342. font-size: 16px;
  28343. position: relative;
  28344. }
  28345. .worksAnswer > img {
  28346. width: 500px;
  28347. height: 300px;
  28348. object-fit: contain;
  28349. margin: 0 auto;
  28350. display: block;
  28351. }
  28352. .commentTop {
  28353. border-bottom: 1px solid #eaeaea;
  28354. padding-bottom: 10px;
  28355. }
  28356. .commentBox {
  28357. padding-top: 15px;
  28358. }
  28359. .pl {
  28360. font-size: 18px;
  28361. }
  28362. .plPerson {
  28363. width: 100%;
  28364. }
  28365. .plName {
  28366. display: flex;
  28367. flex-direction: row;
  28368. flex-wrap: nowrap;
  28369. align-items: baseline;
  28370. color: #78787a;
  28371. width: 100%;
  28372. }
  28373. .deleteComment {
  28374. cursor: pointer;
  28375. margin-left: auto;
  28376. color: #237ade;
  28377. }
  28378. .plContent {
  28379. margin-top: 5px;
  28380. }
  28381. .evalCss {
  28382. background: #fff;
  28383. font-size: 18px;
  28384. }
  28385. .nav {
  28386. color: #9d9d9d;
  28387. padding: 5px 0 15px 20px;
  28388. }
  28389. .middleBox {
  28390. padding: 5px 0 15px 20px;
  28391. }
  28392. .pfBox {
  28393. padding-bottom: 30px;
  28394. }
  28395. .nameAndrate {
  28396. display: flex;
  28397. flex-direction: row;
  28398. flex-wrap: nowrap;
  28399. align-items: center;
  28400. padding-bottom: 10px;
  28401. height: 30px;
  28402. line-height: 30px;
  28403. }
  28404. .nameAndrate > div {
  28405. margin-left: 10px;
  28406. color: #000;
  28407. height: 30px;
  28408. }
  28409. .nameAndrate >>> .el-rate__icon {
  28410. font-size: 28px !important;
  28411. }
  28412. .pfBox > div:nth-child(2) {
  28413. background: #f7f6f9;
  28414. width: 400px;
  28415. min-height: 45px;
  28416. border-radius: 10px;
  28417. font-size: 16px;
  28418. display: flex;
  28419. flex-wrap: wrap;
  28420. align-items: center;
  28421. padding: 10px 20px;
  28422. box-sizing: border-box;
  28423. color: #000;
  28424. }
  28425. .bz {
  28426. display: flex;
  28427. flex-direction: row;
  28428. flex-wrap: nowrap;
  28429. align-items: flex-start;
  28430. }
  28431. .bz > div {
  28432. padding: 0 10px;
  28433. }
  28434. .select_box2_title {
  28435. background: #fff;
  28436. border-radius: 5px;
  28437. padding: 15px 10px;
  28438. box-sizing: border-box;
  28439. margin-bottom: 10px;
  28440. display: flex;
  28441. flex-direction: row;
  28442. flex-wrap: nowrap;
  28443. align-items: center;
  28444. }
  28445. .select_box2_title > div:nth-child(2) {
  28446. margin-left: 10px;
  28447. color: #c4c4c4;
  28448. }
  28449. .select_box2_box {
  28450. display: flex;
  28451. height: 500px;
  28452. }
  28453. .select_box2_img {
  28454. width: calc(100% - 310px);
  28455. height: 100%;
  28456. overflow: auto;
  28457. background: #fff;
  28458. border-radius: 5px;
  28459. }
  28460. .select_box2_img img {
  28461. width: 100%;
  28462. }
  28463. .select_box2_answer {
  28464. background: #fff;
  28465. margin-left: 10px;
  28466. border-radius: 5px;
  28467. width: 300px;
  28468. overflow: auto;
  28469. height: 90%;
  28470. display: flex;
  28471. flex-direction: column;
  28472. align-items: flex-start;
  28473. padding-top: 10px;
  28474. box-sizing: border-box;
  28475. position: relative;
  28476. }
  28477. .select_answer_title {
  28478. padding: 0 0 15px 20px;
  28479. color: #c4c4c4;
  28480. }
  28481. .select_box2_answer_box {
  28482. margin: 0 0 10px 20px;
  28483. width: 85%;
  28484. display: flex;
  28485. flex-direction: row;
  28486. flex-wrap: nowrap;
  28487. align-items: center;
  28488. }
  28489. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  28490. color: #000;
  28491. }
  28492. .upAnswerCss {
  28493. position: absolute;
  28494. bottom: 15px;
  28495. right: 15px;
  28496. }
  28497. .upAnswerCss >>> .el-button {
  28498. width: 95px;
  28499. height: 35px;
  28500. line-height: 35px;
  28501. padding: 0;
  28502. }
  28503. .rightWidthCss {
  28504. width: 60%;
  28505. display: flex;
  28506. flex-direction: row;
  28507. align-items: flex-start;
  28508. }
  28509. .rightAnswer {
  28510. display: flex;
  28511. flex-direction: row;
  28512. flex-wrap: nowrap;
  28513. align-items: center;
  28514. color: red;
  28515. margin-bottom: 31px;
  28516. }
  28517. .rightAnswerCss {
  28518. display: flex;
  28519. flex-direction: column;
  28520. flex-wrap: nowrap;
  28521. padding-top: 60px;
  28522. }
  28523. .blueCss {
  28524. color: #767de1;
  28525. margin-left: 10px;
  28526. }
  28527. .redCss {
  28528. color: red;
  28529. }
  28530. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  28531. color: rgb(0 123 255) !important;
  28532. }
  28533. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  28534. color: rgb(0 123 255) !important;
  28535. }
  28536. .zuoyeYulan {
  28537. padding-top: 0;
  28538. font-size: 18px;
  28539. display: flex;
  28540. align-items: flex-end;
  28541. }
  28542. .buttonA {
  28543. margin-left: 10px;
  28544. padding: 0;
  28545. }
  28546. .displayBox {
  28547. margin-bottom: 10px;
  28548. display: block;
  28549. border-bottom: 3px solid #eee;
  28550. display: flex;
  28551. align-items: center;
  28552. }
  28553. .easy_comment {
  28554. width: calc(100% - 90px);
  28555. margin-left: 10px;
  28556. display: flex;
  28557. flex-wrap: wrap;
  28558. }
  28559. .easy_comment > div {
  28560. border: 1px solid #4a4a4a;
  28561. color: #666;
  28562. border-radius: 15px;
  28563. padding: 5px 10px;
  28564. font-size: 16px;
  28565. margin-bottom: 10px;
  28566. margin-right: 5px;
  28567. cursor: pointer;
  28568. }
  28569. .easy_comment div:hover {
  28570. border: 1px solid #f7ba2a;
  28571. color: #c69217;
  28572. }
  28573. .xuan_right_box {
  28574. padding: 10px 0;
  28575. background: #f0f4fa;
  28576. margin: 0 15px 0 25px;
  28577. border-bottom-left-radius: 5px;
  28578. border-bottom-right-radius: 5px;
  28579. width: 91.5%;
  28580. }
  28581. .tool_right_box {
  28582. display: flex;
  28583. align-items: center;
  28584. }
  28585. .tool_right_box >>> .katex {
  28586. font-size: 16px;
  28587. }
  28588. .tool_right_box + .tool_right_box {
  28589. margin-top: 10px;
  28590. }
  28591. .right_box_xuan {
  28592. border-radius: 5px;
  28593. padding: 5px;
  28594. margin-left: 10px;
  28595. min-width: 85px;
  28596. background: #fff;
  28597. color: #0061ff;
  28598. border: 1px solid #0061ff;
  28599. font-size: 14px;
  28600. }
  28601. .pButton:hover {
  28602. opacity: 1 !important;
  28603. }
  28604. .pButton {
  28605. position: fixed;
  28606. text-align: center;
  28607. cursor: pointer;
  28608. z-index: 999;
  28609. right: 20px;
  28610. top: 110px;
  28611. width: 50px;
  28612. height: 50px;
  28613. display: flex;
  28614. align-items: center;
  28615. justify-content: center;
  28616. border-radius: 5px;
  28617. }
  28618. .pzClass {
  28619. width: calc(100% - 340px);
  28620. }
  28621. .newDialogCss {
  28622. /* position: fixed;
  28623. right: 5%;
  28624. top: 50%;
  28625. width: 340px;
  28626. transform: translateY(-50%);
  28627. height: 60%;
  28628. box-shadow: 0px 0 8px 0px #555555;
  28629. border-radius: 15px;
  28630. z-index: 999; */
  28631. position: fixed;
  28632. right: 20px;
  28633. top: 101px;
  28634. width: 330px;
  28635. height: calc(100% - 80px);
  28636. z-index: 999;
  28637. background: #fff;
  28638. border-top-right-radius: 0px;
  28639. border-bottom-right-radius: 0px;
  28640. overflow: hidden;
  28641. }
  28642. .newDialogCss > .scoreList {
  28643. width: 100%;
  28644. height: 100%;
  28645. box-sizing: border-box;
  28646. padding: 10px 15px;
  28647. overflow: auto;
  28648. padding-bottom: 80px;
  28649. }
  28650. .pzTop {
  28651. color: #fff;
  28652. background: #000;
  28653. display: flex;
  28654. flex-direction: row;
  28655. flex-wrap: nowrap;
  28656. align-items: center;
  28657. justify-content: space-between;
  28658. height: 40px;
  28659. border-radius: 15px 15px 0 0;
  28660. user-select: none;
  28661. }
  28662. .pzTop2 .checkbox {
  28663. display: flex;
  28664. align-items: center;
  28665. padding: 5px 10px;
  28666. flex: 0 0 auto;
  28667. font-weight: bold;
  28668. border-bottom: 1px solid #eee;
  28669. justify-content: space-between;
  28670. }
  28671. .checkbox > .cb-tabList {
  28672. display: flex;
  28673. align-items: center;
  28674. }
  28675. .cb-tabList > div {
  28676. margin-right: 20px;
  28677. font-weight: 400;
  28678. cursor: pointer;
  28679. }
  28680. .cb-tabList > .cb-tabItem {
  28681. color: #1684fc;
  28682. position: relative;
  28683. }
  28684. .cb-tabItem::after {
  28685. content: "";
  28686. width: 100%;
  28687. height: 2px;
  28688. background: #1684fc;
  28689. position: absolute;
  28690. bottom: -5px;
  28691. left: 0;
  28692. }
  28693. .pzTop2 .check {
  28694. text-align: center;
  28695. cursor: pointer;
  28696. box-sizing: border-box;
  28697. display: flex;
  28698. }
  28699. .pzTop2 img {
  28700. width: 25px;
  28701. cursor: pointer;
  28702. }
  28703. .pzTop > div:nth-child(1) {
  28704. padding-left: 10px;
  28705. }
  28706. .pzTop > div:nth-child(2) {
  28707. width: 15px;
  28708. height: 15px;
  28709. padding-right: 10px;
  28710. cursor: pointer;
  28711. }
  28712. .pzTop > div:nth-child(2) > img {
  28713. width: 100%;
  28714. height: 100%;
  28715. }
  28716. .pzBox,
  28717. .noPzBox {
  28718. height: calc(100% - 60px);
  28719. /* background: #ededed; */
  28720. background: #fff;
  28721. /* border-radius: 0 0 15px 15px; */
  28722. }
  28723. .noPzBox {
  28724. display: flex;
  28725. flex-direction: column;
  28726. flex-wrap: nowrap;
  28727. justify-content: center;
  28728. align-items: center;
  28729. }
  28730. .pzList {
  28731. background: #f7f7f7;
  28732. width: 90%;
  28733. margin: 0 auto 15px;
  28734. border-radius: 5px;
  28735. }
  28736. .pzNavTop {
  28737. display: flex;
  28738. flex-direction: row;
  28739. flex-wrap: nowrap;
  28740. padding: 10px 10px 0 10px;
  28741. align-items: center;
  28742. }
  28743. .pzDelete {
  28744. cursor: pointer;
  28745. margin-left: auto;
  28746. font-size: 14px;
  28747. color: #afafaf;
  28748. }
  28749. .pzNavTop > div:nth-child(1) {
  28750. background: #3760af;
  28751. width: 35px;
  28752. height: 35px;
  28753. color: #fff;
  28754. text-align: center;
  28755. line-height: 35px;
  28756. border-radius: 50%;
  28757. font-size: 14px;
  28758. }
  28759. .pzNavTop > div:nth-child(2) {
  28760. font-size: 18px;
  28761. color: #959595;
  28762. margin-left: 5px;
  28763. }
  28764. .pzContent {
  28765. padding: 10px;
  28766. word-break: break-word;
  28767. }
  28768. .pzContent audio {
  28769. width: 100%;
  28770. }
  28771. .pzContent audio::-webkit-media-controls-panel {
  28772. background: #fff;
  28773. }
  28774. .pzContent >>> img {
  28775. max-width: 100%;
  28776. }
  28777. .pzListBox {
  28778. padding-top: 15px;
  28779. height: calc(100% - 110px);
  28780. overflow: auto;
  28781. }
  28782. .addPzButton {
  28783. position: relative;
  28784. margin-top: 3px;
  28785. width: 100%;
  28786. }
  28787. .addPzButton .img1 {
  28788. position: absolute;
  28789. top: 50%;
  28790. right: 25px;
  28791. transform: translateY(-50%);
  28792. height: 100%;
  28793. display: flex;
  28794. align-items: center;
  28795. }
  28796. .addPzButton .img1 div {
  28797. display: flex;
  28798. }
  28799. .addPzButton .img1 div img {
  28800. width: 28px;
  28801. margin-left: 10px;
  28802. cursor: pointer;
  28803. }
  28804. .addPzButton .img1 div span {
  28805. font-size: 14px;
  28806. margin: 4px 0 0 3px;
  28807. color: #afafaf;
  28808. }
  28809. .addPz {
  28810. background: #4b79ce;
  28811. width: 100px;
  28812. color: #fff;
  28813. font-size: 12px;
  28814. height: 30px;
  28815. margin: 0 auto;
  28816. text-align: center;
  28817. line-height: 30px;
  28818. border-radius: 10px;
  28819. cursor: pointer;
  28820. }
  28821. .addDialogCss {
  28822. position: fixed;
  28823. width: 600px;
  28824. height: 70%;
  28825. min-height: 450px;
  28826. box-shadow: 0px 0 8px 0px #555555;
  28827. border-radius: 15px;
  28828. z-index: 999;
  28829. left: 50%;
  28830. top: 50%;
  28831. margin: -18% 0 0 -300px;
  28832. }
  28833. .teacherPz {
  28834. display: flex;
  28835. flex-direction: row;
  28836. align-items: center;
  28837. flex-wrap: nowrap;
  28838. }
  28839. .teacherPzImg {
  28840. width: 30px;
  28841. height: 30px;
  28842. }
  28843. .teacherPzImg > img {
  28844. width: 100%;
  28845. height: 100%;
  28846. }
  28847. .addPzBox {
  28848. height: calc(100% - 40px);
  28849. background: #ededed;
  28850. border-bottom-left-radius: 15px;
  28851. border-bottom-right-radius: 15px;
  28852. }
  28853. .pzAudioClass {
  28854. margin: 15px 14px;
  28855. background: #fff;
  28856. height: 100%;
  28857. display: flex;
  28858. justify-content: center;
  28859. align-items: center;
  28860. }
  28861. .pzConText {
  28862. width: 95%;
  28863. height: 100%;
  28864. margin: 10px auto 0;
  28865. border: none;
  28866. background: #fff;
  28867. border-radius: 0px;
  28868. }
  28869. .pzConText >>> .text {
  28870. height: calc(100% - 82px);
  28871. }
  28872. .addTextCss {
  28873. background: #4b79ce;
  28874. width: 80px;
  28875. height: 30px;
  28876. text-align: center;
  28877. color: #fff;
  28878. line-height: 30px;
  28879. border-radius: 10px;
  28880. margin: 10px auto 0;
  28881. cursor: pointer;
  28882. }
  28883. .pzConText:focus-visible {
  28884. border: none !important;
  28885. }
  28886. .maxWidth {
  28887. width: 1000px;
  28888. }
  28889. .noPz {
  28890. width: 150px;
  28891. margin: 0 auto 20%;
  28892. }
  28893. .noPz > img {
  28894. width: 100%;
  28895. height: 100%;
  28896. }
  28897. .timeAndReply {
  28898. display: flex;
  28899. flex-direction: row;
  28900. flex-wrap: nowrap;
  28901. justify-content: space-between;
  28902. align-items: center;
  28903. font-size: 14px;
  28904. box-sizing: border-box;
  28905. padding: 0 10px 10px 0px;
  28906. }
  28907. .timeAndReply .time {
  28908. color: #bfbfbf;
  28909. padding: 0 0 0 10px;
  28910. box-sizing: border-box;
  28911. }
  28912. .timeAndReply > div:last-child {
  28913. cursor: pointer;
  28914. color: #777;
  28915. }
  28916. /* table 样式 */
  28917. .cont >>> table {
  28918. border-top: 1px solid #ccc;
  28919. border-left: 1px solid #ccc;
  28920. }
  28921. .cont >>> table td,
  28922. .cont >>> table th {
  28923. border-bottom: 1px solid #ccc;
  28924. border-right: 1px solid #ccc;
  28925. /* padding: 20px 5px; */
  28926. padding: 5px 10px;
  28927. max-width: 0px;
  28928. height: 30px;
  28929. vertical-align: baseline;
  28930. box-sizing: border-box;
  28931. }
  28932. .cont >>> table th {
  28933. border-bottom: 2px solid #ccc;
  28934. text-align: center;
  28935. }
  28936. /* blockquote 样式 */
  28937. .cont >>> blockquote {
  28938. display: block;
  28939. border-left: 8px solid #d0e5f2;
  28940. padding: 5px 10px;
  28941. margin: 10px 0;
  28942. line-height: 1.4;
  28943. font-size: 100%;
  28944. background-color: #f1f1f1;
  28945. }
  28946. /* code 样式 */
  28947. .cont >>> code {
  28948. display: inline-block;
  28949. /* *display: inline; */
  28950. zoom: 1;
  28951. background-color: #f1f1f1;
  28952. border-radius: 3px;
  28953. padding: 3px 5px;
  28954. margin: 0 3px;
  28955. }
  28956. .cont >>> pre code {
  28957. display: block;
  28958. }
  28959. /* ul ol 样式 */
  28960. .cont >>> ul,
  28961. ol {
  28962. margin: 10px 0 10px 20px;
  28963. }
  28964. .addPzCheck {
  28965. display: flex;
  28966. flex-direction: row;
  28967. flex-wrap: nowrap;
  28968. padding: 10px 15px 0;
  28969. }
  28970. .addPzCheck span {
  28971. cursor: pointer;
  28972. padding-bottom: 5px;
  28973. font-weight: bold;
  28974. }
  28975. .addPzCheck span + span {
  28976. margin-left: 10px;
  28977. }
  28978. .addPzCheck .isChooseActive {
  28979. color: #3e88f4;
  28980. border-bottom: 2px solid #2f80f3;
  28981. }
  28982. /* code 样式 */
  28983. .cont {
  28984. /* -webkit-user-modify: read-write; */
  28985. overflow-wrap: break-word;
  28986. -webkit-line-break: after-white-space;
  28987. word-break: break-word;
  28988. white-space: pre-line;
  28989. }
  28990. .scoreBox,
  28991. .scoreDetailBox {
  28992. display: flex;
  28993. align-items: center;
  28994. justify-content: flex-start;
  28995. margin-top: 20px;
  28996. font-size: 18px;
  28997. width: 100%;
  28998. }
  28999. .scoreBox .t,
  29000. .scoreDetailBox .t {
  29001. margin-right: 10px;
  29002. width: 100px;
  29003. text-align: right;
  29004. }
  29005. .scoreDetailBox {
  29006. align-items: flex-start;
  29007. }
  29008. .scoreDetailBox >>> .el-textarea {
  29009. width: calc(100% - 200px);
  29010. }
  29011. .scoreBox >>> .el-input {
  29012. width: 130px;
  29013. font-size: 38px;
  29014. }
  29015. .scoreBox >>> .el-input__inner {
  29016. height: 60px;
  29017. }
  29018. .answerScore {
  29019. position: absolute;
  29020. top: 10px;
  29021. right: 10px;
  29022. background: #0000008f;
  29023. border-radius: 5px;
  29024. padding: 3px 5px;
  29025. font-size: 14px;
  29026. color: #fff;
  29027. cursor: pointer;
  29028. }
  29029. .open_box .switch_box {
  29030. width: 100%;
  29031. margin: 0 auto;
  29032. display: flex;
  29033. justify-content: space-between;
  29034. }
  29035. .open_box .switch_box + .switch_box {
  29036. margin-top: 10px;
  29037. }
  29038. .deleteImg,
  29039. .deleteImg1 {
  29040. width: 25px !important;
  29041. height: 25px !important;
  29042. cursor: pointer;
  29043. position: absolute;
  29044. top: 10px;
  29045. right: 10px;
  29046. }
  29047. .deleteImg2 {
  29048. width: 23px !important;
  29049. height: 23px !important;
  29050. top: 5px;
  29051. right: 5px;
  29052. }
  29053. .deleteImg1 {
  29054. width: 23px !important;
  29055. height: 23px !important;
  29056. top: 5px !important;
  29057. right: 30px !important;
  29058. }
  29059. .rightW {
  29060. right: 40px;
  29061. }
  29062. .drawPBox {
  29063. display: flex;
  29064. flex-direction: column;
  29065. position: relative;
  29066. }
  29067. .drawPBox span {
  29068. font-size: 18px;
  29069. color: #606266;
  29070. padding-bottom: 10px;
  29071. margin: 10px 0;
  29072. border-bottom: 1px solid #eaeaea;
  29073. }
  29074. .drawPBox img {
  29075. width: 500px;
  29076. height: 300px;
  29077. object-fit: contain;
  29078. cursor: pointer;
  29079. margin: 0 auto;
  29080. }
  29081. .sentenBox {
  29082. background: #fff;
  29083. height: 450px;
  29084. overflow: auto;
  29085. background-image: url("../../assets/icon/conSentences/stuBg.png");
  29086. background-position: 102%;
  29087. background-repeat: no-repeat;
  29088. background-size: 60%;
  29089. }
  29090. .addSen {
  29091. background: #409efe;
  29092. width: 90px;
  29093. color: #fff;
  29094. height: 35px;
  29095. text-align: center;
  29096. line-height: 35px;
  29097. border-radius: 5px;
  29098. float: right;
  29099. margin: 10px 20px 0 0;
  29100. cursor: pointer;
  29101. }
  29102. .sentenTop {
  29103. display: flex;
  29104. flex-direction: row;
  29105. flex-wrap: nowrap;
  29106. align-items: center;
  29107. padding: 55px 0 0 20px;
  29108. box-sizing: border-box;
  29109. }
  29110. .sentenTop > div:nth-child(2) {
  29111. width: 300px;
  29112. margin: 0 15px;
  29113. }
  29114. .sentenTop > div:nth-child(3) {
  29115. background: #409efe;
  29116. color: #fff;
  29117. width: 65px;
  29118. height: 35px;
  29119. text-align: center;
  29120. line-height: 35px;
  29121. border-radius: 5px;
  29122. cursor: pointer;
  29123. }
  29124. .cardList,
  29125. .cardList1 {
  29126. padding: 10px 0 10px 0;
  29127. display: flex;
  29128. flex-direction: row;
  29129. flex-wrap: wrap;
  29130. align-items: center;
  29131. box-sizing: border-box;
  29132. border-bottom: 1px solid #f4f4f4;
  29133. width: 98%;
  29134. margin: 0 auto;
  29135. min-width: 60%;
  29136. max-width: 85%;
  29137. }
  29138. .cardList1 {
  29139. padding: 10px 0 10px 10px !important;
  29140. margin: 0 !important;
  29141. }
  29142. .cardBox {
  29143. display: flex;
  29144. flex-direction: row;
  29145. flex-wrap: wrap;
  29146. align-items: center;
  29147. align-content: center;
  29148. }
  29149. .cardBox > div {
  29150. margin-bottom: 10px;
  29151. }
  29152. .isCard,
  29153. .isChooseCard,
  29154. .noCard,
  29155. .isCard1 {
  29156. min-width: 130px;
  29157. width: auto;
  29158. height: 60px;
  29159. text-align: center;
  29160. line-height: 60px;
  29161. font-size: 20px;
  29162. cursor: pointer;
  29163. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  29164. background-size: cover;
  29165. transition: all 2s;
  29166. margin-right: 20px;
  29167. background-size: 100% 100%;
  29168. padding: 0 20px;
  29169. box-sizing: border-box;
  29170. }
  29171. .isCard > div,
  29172. .noCard > div,
  29173. .isCard1 > div {
  29174. white-space: nowrap;
  29175. overflow: hidden;
  29176. text-overflow: ellipsis;
  29177. width: 100%;
  29178. margin: 0 auto;
  29179. }
  29180. .noCard {
  29181. background-image: none;
  29182. }
  29183. .isCard1 {
  29184. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  29185. }
  29186. .isChooseCard {
  29187. background-image: none;
  29188. border: 1px dashed #b9b9b9;
  29189. border-radius: 10px;
  29190. }
  29191. .card {
  29192. width: 130px;
  29193. height: 60px;
  29194. }
  29195. .card > img {
  29196. width: 100%;
  29197. height: 100%;
  29198. }
  29199. .rightCardBox {
  29200. margin: 10px 0 0 10px;
  29201. }
  29202. .rightCardBox > div:nth-child(1) {
  29203. margin-bottom: 10px;
  29204. }
  29205. .cardCss {
  29206. display: flex;
  29207. flex-direction: column;
  29208. flex-wrap: nowrap;
  29209. align-items: center;
  29210. border-bottom: 3px solid #b4c3d3;
  29211. padding: 0 0 5px 0;
  29212. margin-right: 10px;
  29213. }
  29214. .cardCss > div:nth-child(2) {
  29215. background: #5b7b9d;
  29216. color: #fff;
  29217. width: 20px;
  29218. height: 20px;
  29219. border-radius: 50%;
  29220. text-align: center;
  29221. line-height: 20px;
  29222. }
  29223. .isWrong {
  29224. display: flex;
  29225. flex-direction: row;
  29226. flex-wrap: nowrap;
  29227. align-content: center;
  29228. align-items: center;
  29229. }
  29230. .answerRight {
  29231. width: 25%;
  29232. }
  29233. .isTj {
  29234. display: flex;
  29235. flex-direction: row;
  29236. flex-wrap: nowrap;
  29237. align-items: center;
  29238. }
  29239. .isTj > div:nth-child(2) {
  29240. color: #727070;
  29241. margin-left: 10px;
  29242. }
  29243. .isTjImg {
  29244. width: 30px;
  29245. height: 30px;
  29246. }
  29247. .isTjImg > img {
  29248. width: 100%;
  29249. height: 100%;
  29250. }
  29251. .cardAnswerBox {
  29252. font-size: 18px;
  29253. width: 97%;
  29254. border: 5px;
  29255. padding: 0;
  29256. border-radius: 5px;
  29257. margin: 10px auto;
  29258. word-break: break-word;
  29259. }
  29260. .w_name {
  29261. margin-bottom: 10px;
  29262. }
  29263. .w_name span {
  29264. font-size: 16px;
  29265. }
  29266. .w_teachert {
  29267. width: 50px !important;
  29268. position: absolute;
  29269. height: auto !important;
  29270. z-index: 10;
  29271. right: 25px;
  29272. top: -25px;
  29273. }
  29274. /* .group_workBox {
  29275. } */
  29276. .group_workBox + .group_workBox {
  29277. margin-top: 20px;
  29278. }
  29279. .group_box {
  29280. padding-bottom: 20px;
  29281. border-bottom: 2px solid #f0f0f0;
  29282. margin-top: 10px;
  29283. }
  29284. .group_title {
  29285. display: flex;
  29286. align-items: center;
  29287. justify-content: space-between;
  29288. width: 95%;
  29289. }
  29290. .group_name {
  29291. background-image: url(../../assets/icon/groupN.png);
  29292. width: 220px;
  29293. background-size: 100% 100%;
  29294. height: 67px;
  29295. padding: 0 20px 0 43px;
  29296. box-sizing: border-box;
  29297. line-height: 63px;
  29298. color: #fff;
  29299. overflow: hidden;
  29300. white-space: nowrap;
  29301. text-overflow: ellipsis;
  29302. }
  29303. .group_work {
  29304. width: 100%;
  29305. padding: 0 10px;
  29306. box-sizing: border-box;
  29307. display: flex;
  29308. flex-wrap: wrap;
  29309. }
  29310. .g_d_box {
  29311. display: flex;
  29312. flex-flow: wrap;
  29313. justify-content: space-around;
  29314. }
  29315. .g_d_box .isChair {
  29316. background-image: url(../../assets/avatar.png) !important;
  29317. }
  29318. .g_d_group {
  29319. width: 500px;
  29320. margin-bottom: 80px;
  29321. }
  29322. .g_d_group_chair {
  29323. display: flex;
  29324. align-items: center;
  29325. justify-content: center;
  29326. }
  29327. .g_d_group_chair > div + div {
  29328. margin-left: 30px;
  29329. }
  29330. .g_d_group_chair > div,
  29331. .g_d_group_chair2 > div {
  29332. display: flex;
  29333. flex-direction: column;
  29334. align-items: center;
  29335. }
  29336. .g_d_group_chair > div > span:nth-child(1),
  29337. .g_d_group_chair2 > div > span:nth-child(1) {
  29338. background-image: url(../../assets/icon/chair.png);
  29339. width: 50px;
  29340. height: 50px;
  29341. display: block;
  29342. background-size: 100% 100%;
  29343. }
  29344. .g_d_group_tableBox {
  29345. display: flex;
  29346. align-items: center;
  29347. justify-content: center;
  29348. }
  29349. .g_d_group_chair2 {
  29350. display: flex;
  29351. flex-direction: column;
  29352. align-items: center;
  29353. justify-content: center;
  29354. }
  29355. .g_d_group_chair2 > div + div {
  29356. margin-top: 10px;
  29357. }
  29358. .g_d_group_table {
  29359. background-image: url(../../assets/icon/groupBg.png);
  29360. width: 354px;
  29361. height: 196px;
  29362. background-size: 100% 100%;
  29363. display: flex;
  29364. align-items: center;
  29365. justify-content: center;
  29366. flex-direction: column;
  29367. color: #fff;
  29368. }
  29369. .g_d_group_table > div:nth-child(1) {
  29370. font-size: 24px;
  29371. margin-bottom: 5px;
  29372. }
  29373. .g_d_group_table > div:nth-child(2) div {
  29374. cursor: pointer;
  29375. background: #2e77bf;
  29376. padding: 4px 10px;
  29377. border-radius: 5px;
  29378. }
  29379. /* .groupBox {
  29380. } */
  29381. .groupContent + .groupContent {
  29382. margin-top: 30px;
  29383. }
  29384. .groupTitle {
  29385. font-size: 24px;
  29386. color: rgb(80, 80, 80);
  29387. margin-bottom: 20px;
  29388. }
  29389. .groupName {
  29390. display: flex;
  29391. align-items: center;
  29392. }
  29393. .groupn {
  29394. font-size: 15px;
  29395. margin-right: 10px;
  29396. }
  29397. .groupName + .groupName {
  29398. margin-top: 15px;
  29399. }
  29400. .groupBtn {
  29401. margin-left: 10px;
  29402. }
  29403. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  29404. text-align: left;
  29405. }
  29406. .g_d_btnBox {
  29407. display: flex;
  29408. justify-content: flex-end;
  29409. align-items: center;
  29410. margin-bottom: 20px;
  29411. }
  29412. .updateChair {
  29413. position: relative;
  29414. }
  29415. .updateChairBtn {
  29416. position: absolute;
  29417. width: 50px;
  29418. height: 50px;
  29419. overflow: hidden;
  29420. /* display: flex; */
  29421. align-items: center;
  29422. justify-content: center;
  29423. background: #00000087;
  29424. color: #fff;
  29425. border-radius: 50px;
  29426. display: none;
  29427. cursor: pointer;
  29428. }
  29429. .updateChair:hover .updateChairBtn {
  29430. display: flex;
  29431. }
  29432. .group_staic_box {
  29433. display: flex;
  29434. padding: 30px 40px 10px;
  29435. flex-wrap: wrap;
  29436. }
  29437. .group_staic {
  29438. /* width: 50%; */
  29439. margin-bottom: 20px;
  29440. display: flex;
  29441. align-items: center;
  29442. }
  29443. .group_staic span:nth-child(1) {
  29444. width: 150px;
  29445. text-align: right;
  29446. margin-right: 15px;
  29447. }
  29448. .group_staic span:nth-child(2) {
  29449. background: rgb(0 123 255);
  29450. color: #fff;
  29451. border-radius: 5px;
  29452. padding: 5px;
  29453. }
  29454. .codeFileBox {
  29455. height: 300px;
  29456. background: #fff;
  29457. display: flex;
  29458. align-items: center;
  29459. justify-content: center;
  29460. }
  29461. .codeFileBox img {
  29462. width: 200px;
  29463. margin: 0;
  29464. height: auto;
  29465. }
  29466. .codeFileBox div {
  29467. background: rgb(80, 142, 226);
  29468. color: #fff;
  29469. padding: 10px 20px;
  29470. border-radius: 25px;
  29471. cursor: pointer;
  29472. margin-left: 15px;
  29473. }
  29474. .radioBox {
  29475. display: flex;
  29476. flex-direction: column;
  29477. flex-wrap: nowrap;
  29478. align-items: flex-start;
  29479. }
  29480. .radioBox > div {
  29481. margin: 10px 0 0 10px;
  29482. }
  29483. /* .radioBox >>> .el-radio__input,
  29484. .radioBox >>> .el-checkbox__inner {
  29485. margin-left: 10px;
  29486. } */
  29487. .radioBox >>> .el-radio__label,
  29488. .radioBox >>> .el-checkbox__label {
  29489. display: flex;
  29490. align-items: center;
  29491. width: 100%;
  29492. }
  29493. .radioBox >>> .el-radio__label > span {
  29494. width: 100%;
  29495. display: -webkit-box;
  29496. overflow: hidden;
  29497. white-space: normal !important;
  29498. text-overflow: ellipsis;
  29499. word-wrap: break-word;
  29500. }
  29501. .inImg {
  29502. width: 100px;
  29503. cursor: pointer;
  29504. }
  29505. .inImg > img {
  29506. width: 100%;
  29507. height: 100%;
  29508. object-fit: cover;
  29509. }
  29510. .timuImgBox {
  29511. margin: 10px 0;
  29512. display: flex;
  29513. flex-direction: column;
  29514. flex-wrap: wrap;
  29515. align-items: flex-start;
  29516. }
  29517. .timuImg {
  29518. width: 150px;
  29519. margin: 5px 0;
  29520. cursor: pointer;
  29521. }
  29522. .timuImg > img {
  29523. width: 100%;
  29524. height: 100%;
  29525. object-fit: cover;
  29526. }
  29527. .worksTop {
  29528. display: flex;
  29529. flex-direction: row;
  29530. align-items: flex-end;
  29531. }
  29532. .worksTitle {
  29533. display: flex;
  29534. flex-direction: row;
  29535. flex-wrap: nowrap;
  29536. align-items: center;
  29537. }
  29538. .worksTitle::before,
  29539. .worksTop::before {
  29540. content: "";
  29541. display: block;
  29542. width: 3px;
  29543. height: 20px;
  29544. background: #0061ff;
  29545. border-radius: 3px;
  29546. margin: 0 5px 0 0;
  29547. }
  29548. .corOpen {
  29549. margin: 0 0 0 10px;
  29550. font-size: 14px;
  29551. cursor: pointer;
  29552. color: #505050;
  29553. }
  29554. .corOpen:hover {
  29555. color: #499eef;
  29556. }
  29557. .navCorOpenBox {
  29558. display: flex;
  29559. flex-direction: row;
  29560. align-items: center;
  29561. justify-content: space-between;
  29562. height: 55px;
  29563. background: #ffffff;
  29564. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  29565. border-radius: 8px 8px 0px 0px;
  29566. z-index: 9;
  29567. position: relative;
  29568. }
  29569. .navCorOpen {
  29570. padding-right: 15px;
  29571. cursor: pointer;
  29572. width: 45px;
  29573. display: flex;
  29574. }
  29575. .navCorOpen > img {
  29576. width: 100%;
  29577. height: 100%;
  29578. }
  29579. .mlImg {
  29580. width: 40px !important;
  29581. min-width: 40px;
  29582. cursor: pointer;
  29583. transform: rotate(180deg);
  29584. }
  29585. .mlImg > img {
  29586. width: 100%;
  29587. height: 100%;
  29588. }
  29589. .navLeftCss {
  29590. width: 100% !important;
  29591. left: 0 !important;
  29592. }
  29593. .isContentCss {
  29594. width: 100% !important;
  29595. }
  29596. .isAllWidth {
  29597. width: 100% !important;
  29598. }
  29599. .group_switch {
  29600. margin-right: 10px;
  29601. height: 30px;
  29602. display: flex;
  29603. align-items: center;
  29604. }
  29605. .group_switch > span {
  29606. margin-right: 5px;
  29607. }
  29608. .fileC_box {
  29609. padding-top: 15px;
  29610. }
  29611. .fileC_box > .fileC_title {
  29612. padding: 10px 5px 14px 10px;
  29613. border-top: 1px solid #cad1dc;
  29614. font-size: 14px;
  29615. font-weight: 400;
  29616. color: #cad1dc;
  29617. width: calc(100% - 20px);
  29618. margin: 0 auto;
  29619. box-sizing: border-box;
  29620. }
  29621. .pl_select_box {
  29622. height: 40px;
  29623. line-height: 40px;
  29624. width: 100%;
  29625. cursor: pointer;
  29626. padding: 0 20px;
  29627. box-sizing: border-box;
  29628. border-radius: 5px;
  29629. border: 1px solid #d6d6d6;
  29630. white-space: nowrap;
  29631. overflow: hidden;
  29632. text-overflow: ellipsis;
  29633. background: #fff;
  29634. text-align: left;
  29635. }
  29636. .newButton {
  29637. width: 102px;
  29638. height: 36px;
  29639. background: #e7ebf1;
  29640. border-radius: 4px;
  29641. color: #0e1e33;
  29642. font-weight: 400;
  29643. font-size: 14px;
  29644. border: none;
  29645. float: right;
  29646. margin-left: 10px;
  29647. }
  29648. .el-table >>> .even_row {
  29649. background-color: #f0f4fa;
  29650. }
  29651. .stageBoxCss,
  29652. .stageBoxIsCss {
  29653. display: flex;
  29654. flex-direction: row;
  29655. flex-wrap: nowrap;
  29656. align-items: center;
  29657. height: 50px;
  29658. border-bottom: 1px solid #e2f5fc;
  29659. cursor: pointer;
  29660. width: 100%;
  29661. }
  29662. .stageBoxIsCss {
  29663. background: #0061ff;
  29664. color: #fff;
  29665. border-radius: 8px;
  29666. }
  29667. .closeTri,
  29668. .closeTri1 {
  29669. min-width: 15px;
  29670. width: 15px;
  29671. height: 15px;
  29672. }
  29673. .closeTri1 {
  29674. padding-left: 10px;
  29675. cursor: pointer;
  29676. }
  29677. .closeTri > img,
  29678. .closeTri1 > img {
  29679. width: 100%;
  29680. height: 100%;
  29681. /* transition: all .5s; */
  29682. }
  29683. .noToolBlue {
  29684. min-width: 10px;
  29685. width: 10px;
  29686. height: 10px;
  29687. background: #0061ff;
  29688. border-radius: 50%;
  29689. margin-left: 13px;
  29690. }
  29691. .stageChild,
  29692. .toolChild {
  29693. height: 0;
  29694. overflow: hidden;
  29695. transition: all 0.5s;
  29696. }
  29697. /* .toolChild { */
  29698. /* margin: 0 0 0 17px;
  29699. padding: 0 0 0 20px;
  29700. border-left: 1px solid #d7d7d7; */
  29701. /* } */
  29702. .toolChild > div + div {
  29703. margin-top: 5px;
  29704. }
  29705. .gjCss {
  29706. display: flex;
  29707. flex-direction: row;
  29708. flex-wrap: nowrap;
  29709. align-items: center;
  29710. padding: 10px 0 10px 40px;
  29711. box-sizing: border-box;
  29712. font-size: 14px;
  29713. cursor: pointer;
  29714. border-radius: 5px;
  29715. }
  29716. .toolChild > div {
  29717. position: relative;
  29718. width: 100%;
  29719. }
  29720. /* .toolChild > div::before { */
  29721. /* content: "";
  29722. width: 15px;
  29723. height: 1px;
  29724. background: #cad1dc;
  29725. position: absolute;
  29726. top: 24px;
  29727. left: -20px;
  29728. display: block; */
  29729. /* } */
  29730. .isGjCss {
  29731. /* color: #0061ff; */
  29732. color: #fff;
  29733. background: rgb(55, 129, 252);
  29734. /* background-color: #e0eafb !important;
  29735. color: #0061ff !important; */
  29736. }
  29737. .navItem {
  29738. background: #ffffff;
  29739. border-radius: 4px;
  29740. width: 100%;
  29741. margin: 10px auto;
  29742. position: relative;
  29743. height: 40px;
  29744. display: flex;
  29745. flex-direction: row;
  29746. flex-wrap: nowrap;
  29747. align-items: center;
  29748. }
  29749. .navItemList {
  29750. display: flex;
  29751. flex-direction: row;
  29752. flex-wrap: nowrap;
  29753. align-items: center;
  29754. padding: 0 13px;
  29755. cursor: pointer;
  29756. width: calc(100% - 60px);
  29757. height: 100%;
  29758. }
  29759. .navItemList > div:first-child {
  29760. min-width: 60px;
  29761. }
  29762. .navItemList > div:last-child {
  29763. width: calc(100% - 80px);
  29764. white-space: nowrap;
  29765. overflow: hidden;
  29766. text-overflow: ellipsis;
  29767. word-break: break-word;
  29768. }
  29769. /* .isItemList > div {
  29770. color: #fff !important;
  29771. } */
  29772. .tool_work_box {
  29773. width: 100%;
  29774. padding: 0 37px 0;
  29775. box-sizing: border-box;
  29776. }
  29777. .tool_box {
  29778. width: 100%;
  29779. padding: 0 0 0 20px;
  29780. }
  29781. .tool_type_box {
  29782. display: flex;
  29783. flex-direction: row;
  29784. align-items: baseline;
  29785. flex-wrap: nowrap;
  29786. justify-content: flex-start;
  29787. position: relative;
  29788. }
  29789. .toolSort {
  29790. display: flex;
  29791. flex-direction: row;
  29792. flex-wrap: wrap;
  29793. justify-content: flex-start;
  29794. align-items: flex-start;
  29795. padding: 0 0 15px 0;
  29796. }
  29797. .toolSort > div {
  29798. margin: 0 10px 0 0;
  29799. width: 135px;
  29800. box-sizing: border-box;
  29801. border: 2px solid transparent;
  29802. }
  29803. .tools {
  29804. width: 100%;
  29805. display: flex;
  29806. flex-direction: column;
  29807. flex-wrap: nowrap;
  29808. align-items: flex-start;
  29809. }
  29810. .whiteBIcon {
  29811. width: fit-content;
  29812. cursor: pointer;
  29813. display: flex;
  29814. flex-direction: column;
  29815. flex-wrap: nowrap;
  29816. align-items: center;
  29817. font-size: 14px;
  29818. }
  29819. .tool:hover {
  29820. border: 2px solid #a5c7ff;
  29821. border-radius: 5px;
  29822. }
  29823. .whiteBIcon > img {
  29824. width: 65px;
  29825. height: 100%;
  29826. }
  29827. .whiteBIcon > img {
  29828. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29829. border-radius: 15px;
  29830. }
  29831. .check {
  29832. /* width: 20px;
  29833. height: 20px; */
  29834. cursor: pointer;
  29835. margin: 10px 0;
  29836. position: absolute;
  29837. right: 2px;
  29838. top: -5px;
  29839. }
  29840. .noChoose,
  29841. .isChoose {
  29842. width: 15px;
  29843. height: 15px;
  29844. border-radius: 50%;
  29845. border: 1px solid #adadad;
  29846. }
  29847. .isChoose {
  29848. border: 4px solid #0363ff !important;
  29849. width: 10px;
  29850. height: 10px;
  29851. }
  29852. .isToolChoose {
  29853. border: 2px solid #5394ff !important;
  29854. border-radius: 5px;
  29855. box-shadow: 0 0 6px 0px #5394ff;
  29856. }
  29857. .checkDiv {
  29858. display: flex;
  29859. align-items: center;
  29860. }
  29861. .checkDiv span {
  29862. margin-left: 5px;
  29863. color: #858585;
  29864. }
  29865. .check img {
  29866. width: 20px;
  29867. height: 20px;
  29868. }
  29869. .lockTaskIcon {
  29870. width: 20px;
  29871. height: 20px;
  29872. position: absolute;
  29873. right: 10px;
  29874. top: 10px;
  29875. }
  29876. .lockTaskIcon > img {
  29877. width: 100%;
  29878. height: 100%;
  29879. }
  29880. .pick_box {
  29881. display: flex;
  29882. align-items: flex-start;
  29883. flex-wrap: wrap;
  29884. }
  29885. .selectBox {
  29886. width: 110px;
  29887. margin-left: 10px;
  29888. margin: 0 10px 0 auto;
  29889. }
  29890. .selectBox >>> .el-input__inner {
  29891. height: 30px;
  29892. line-height: 30px;
  29893. }
  29894. .selectBox >>> .el-input__icon {
  29895. line-height: 30px;
  29896. }
  29897. .sentenceTitle {
  29898. display: flex;
  29899. flex-direction: row;
  29900. flex-wrap: nowrap;
  29901. align-items: center;
  29902. }
  29903. .sentenceTitle::before {
  29904. content: attr(index);
  29905. background: #3681fc;
  29906. border-radius: 50%;
  29907. color: #fff;
  29908. width: 25px;
  29909. height: 25px;
  29910. min-width: 25px;
  29911. min-height: 25px;
  29912. text-align: center;
  29913. line-height: 25px;
  29914. margin-right: 5px;
  29915. }
  29916. .hfBox {
  29917. padding: 10px;
  29918. box-sizing: border-box;
  29919. }
  29920. .whoReplyWho {
  29921. display: flex;
  29922. flex-direction: row;
  29923. flex-wrap: nowrap;
  29924. align-items: baseline;
  29925. justify-content: flex-start;
  29926. }
  29927. .hfBottom {
  29928. display: flex;
  29929. flex-direction: row;
  29930. flex-wrap: nowrap;
  29931. align-items: center;
  29932. justify-content: space-between;
  29933. font-size: 14px;
  29934. }
  29935. .deleteHfItem {
  29936. cursor: pointer;
  29937. width: 20px;
  29938. height: 20px;
  29939. }
  29940. .deleteHfItem > img {
  29941. width: 100%;
  29942. height: 100%;
  29943. }
  29944. .whoReplyWho > .hfImg {
  29945. width: 12px;
  29946. height: 12px;
  29947. margin: 0 5px;
  29948. }
  29949. .whoReplyWho > .hfImg > img {
  29950. width: 100%;
  29951. height: 100%;
  29952. }
  29953. .hfContent {
  29954. padding-top: 10px;
  29955. box-sizing: border-box;
  29956. display: -webkit-box;
  29957. overflow: hidden;
  29958. white-space: normal !important;
  29959. text-overflow: ellipsis;
  29960. word-wrap: break-word;
  29961. -webkit-box-orient: vertical;
  29962. }
  29963. .hfTime {
  29964. text-align: left;
  29965. box-sizing: border-box;
  29966. padding: 10px 0 10px 0px;
  29967. color: #bfbfbf;
  29968. font-size: 14px;
  29969. }
  29970. .btnAllNT {
  29971. position: fixed;
  29972. bottom: 100px;
  29973. right: 40px;
  29974. z-index: 999;
  29975. display: flex;
  29976. flex-direction: row;
  29977. }
  29978. .btnAllNT > img {
  29979. cursor: pointer;
  29980. width: 80px;
  29981. }
  29982. .toolMask {
  29983. position: fixed;
  29984. width: 100%;
  29985. height: 100%;
  29986. background: #3f3c3c;
  29987. opacity: 0.5;
  29988. top: 0;
  29989. left: 0;
  29990. z-index: 999;
  29991. }
  29992. .addToolCss {
  29993. position: fixed;
  29994. z-index: 999;
  29995. background: #fff;
  29996. right: 5%;
  29997. bottom: 18%;
  29998. min-width: 1035px;
  29999. min-height: 300px;
  30000. border-radius: 10px;
  30001. box-shadow: 0 0 8px 1px #b2b2b2;
  30002. }
  30003. .toolTop {
  30004. display: flex;
  30005. flex-direction: row;
  30006. flex-wrap: nowrap;
  30007. justify-content: space-between;
  30008. align-items: center;
  30009. padding: 20px;
  30010. }
  30011. .toolTop > div:nth-child(2) {
  30012. width: 15px;
  30013. height: 15px;
  30014. padding-right: 10px;
  30015. cursor: pointer;
  30016. }
  30017. .toolTop > div:nth-child(2) > img {
  30018. width: 100%;
  30019. height: 100%;
  30020. }
  30021. .fullStyle >>> .el-dialog__body {
  30022. height: calc(100% - 125px) !important;
  30023. box-sizing: border-box;
  30024. padding: 30px 0 !important;
  30025. background: #fff !important;
  30026. }
  30027. .fullStyle >>> .el-dialog {
  30028. width: 100% !important;
  30029. max-width: 100% !important;
  30030. height: 100% !important;
  30031. margin: 0 !important;
  30032. }
  30033. .fullStyle {
  30034. width: 100% !important;
  30035. max-width: 100% !important;
  30036. height: 100% !important;
  30037. margin: 0 auto !important;
  30038. }
  30039. .fullStyle >>> .el-dialog__footer {
  30040. background: #fff !important;
  30041. }
  30042. .engUpBox {
  30043. width: 100%;
  30044. height: 100%;
  30045. }
  30046. .engTitle,
  30047. .engText {
  30048. display: flex;
  30049. flex-direction: row;
  30050. flex-wrap: nowrap;
  30051. align-items: flex-start;
  30052. padding: 0 20px 20px 20px;
  30053. box-sizing: border-box;
  30054. }
  30055. .engTitle > .div:first-child,
  30056. .engText > div:first-child {
  30057. min-width: 75px;
  30058. }
  30059. .correctBox {
  30060. width: 100%;
  30061. display: flex;
  30062. flex-direction: row;
  30063. flex-wrap: nowrap;
  30064. align-items: flex-start;
  30065. }
  30066. .oldBox {
  30067. width: 50%;
  30068. height: 100%;
  30069. display: flex;
  30070. flex-direction: column;
  30071. flex-wrap: nowrap;
  30072. align-items: center;
  30073. border-top: 1px solid #d9d9d9;
  30074. border-left: 1px solid #d9d9d9;
  30075. border-right: 1px solid #d9d9d9;
  30076. }
  30077. .oldBox > div:first-child {
  30078. width: 100%;
  30079. text-align: center;
  30080. background: #d9d9d9;
  30081. height: 35px;
  30082. line-height: 35px;
  30083. font-weight: bold;
  30084. }
  30085. .oldText {
  30086. width: 100%;
  30087. height: calc(100% - 35px);
  30088. overflow: auto;
  30089. margin: 10px 0;
  30090. display: flex;
  30091. flex-direction: column;
  30092. flex-wrap: nowrap;
  30093. align-content: center;
  30094. align-items: center;
  30095. }
  30096. .detailBox {
  30097. width: 50%;
  30098. padding: 10px;
  30099. background: #f6f6f6;
  30100. border-radius: 5px;
  30101. }
  30102. .oldDetail,
  30103. .oldDetail1 {
  30104. padding-bottom: 30px;
  30105. }
  30106. .oldImg {
  30107. width: 30px;
  30108. height: 30px;
  30109. }
  30110. .oldImg > img {
  30111. width: 100%;
  30112. height: 100%;
  30113. }
  30114. .allName {
  30115. min-width: 200px;
  30116. white-space: nowrap;
  30117. overflow: hidden;
  30118. text-overflow: ellipsis;
  30119. word-break: break-word;
  30120. cursor: pointer;
  30121. text-align: center;
  30122. border: 1px solid #bcc2cc;
  30123. box-sizing: border-box;
  30124. }
  30125. .engUpTop {
  30126. max-height: 300px;
  30127. overflow: auto;
  30128. }
  30129. .isUpdateToolDetailClass {
  30130. padding: 0 !important;
  30131. }
  30132. .isUpdateToolDetailClass textarea {
  30133. padding: 12px;
  30134. font-size: 16px;
  30135. min-height: 100%;
  30136. width: 100%;
  30137. box-sizing: border-box;
  30138. outline: none;
  30139. border: none;
  30140. line-height: 30px;
  30141. resize: none;
  30142. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  30143. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  30144. color: #838383;
  30145. }
  30146. .show_taskD {
  30147. min-width: fit-content;
  30148. margin-left: 10px;
  30149. display: flex;
  30150. align-items: center;
  30151. font-size: 14px;
  30152. cursor: pointer;
  30153. color: #717c8d;
  30154. }
  30155. .show_taskD > img {
  30156. width: 15px;
  30157. margin-right: 5px;
  30158. transition: 0.2s all;
  30159. transform: rotate(-90deg);
  30160. }
  30161. .show_taskD.show > img {
  30162. transform: rotate(0deg);
  30163. }
  30164. .correctCss {
  30165. position: absolute;
  30166. bottom: -70px;
  30167. background: #409eff;
  30168. color: #fff;
  30169. }
  30170. .ScoreBtn {
  30171. background: rgba(87, 159, 248, 1);
  30172. display: flex;
  30173. justify-content: center;
  30174. align-items: center;
  30175. color: #fff;
  30176. font-size: 14px;
  30177. padding: 8px 12px;
  30178. border-radius: 5px;
  30179. cursor: pointer;
  30180. }
  30181. .max-height-popover .el-popover {
  30182. min-height: 200px;
  30183. max-height: 400px; /* 设置最大高度 */
  30184. overflow: auto; /* 超出部分显示滚动条 */
  30185. }
  30186. .blueRootCss {
  30187. display: block;
  30188. margin-right: 5px;
  30189. }
  30190. .stuLookScore {
  30191. position: absolute;
  30192. top: 12px;
  30193. right: 40px;
  30194. background: #0000008f;
  30195. border-radius: 5px;
  30196. padding: 3px 5px;
  30197. font-size: 14px;
  30198. color: #fff;
  30199. cursor: pointer;
  30200. }
  30201. div::-webkit-scrollbar {
  30202. width: 10px;
  30203. height: 6px;
  30204. }
  30205. .Ovh{
  30206. margin: 5px 0;
  30207. width: 4em;
  30208. -webkit-line-clamp: 2;
  30209. display: -webkit-box;
  30210. -webkit-box-orient: vertical;
  30211. overflow: hidden;
  30212. text-overflow: ellipsis;
  30213. }
  30214. .renderedFor >>> .katex {
  30215. font-size: 16px;
  30216. width: 100%;
  30217. white-space: normal;
  30218. }
  30219. .renderedFor >>> .katex .base{
  30220. display: inline !important;
  30221. display: contents !important;
  30222. }
  30223. .renderedFor>>> .katex .base .cjk_fallback{
  30224. white-space: normal !important;
  30225. display: inline !important;
  30226. }
  30227. </style>